Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp54580rda; Fri, 20 Oct 2023 20:43:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLuvJauCEWQcITTkbZ/eCTPXhJDPZG53A3o8gGaI0/BpSN66e4Fkikf0iX0flMseSNo4cq X-Received: by 2002:a05:6870:a99a:b0:1d5:40df:8fb1 with SMTP id ep26-20020a056870a99a00b001d540df8fb1mr4262017oab.19.1697859833189; Fri, 20 Oct 2023 20:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697859833; cv=none; d=google.com; s=arc-20160816; b=tA8vMD7WAq4zzT8R/jgTOs44oazcZIOcD8v36Jbh7D0YpFBqXVStg1DlqR/vb5nljf 9+wU+F2I5+UL+ZlMroLeFjAFsORr1fmHaw2wiXye9bOFAb4wbZ1J1CqdqWdTa7CntHd7 ZYzfVne76EouQMbJ7C38fPPSV7obJf3Dj82erRxBZzoczh5zbGNt3Dq3EVKF+H+LpclM iNUuk5fuJGIYXZ9/HOMOKU23ha1ShtVFY6cotjAYh+vIvQmvBYTHCdDiyuNo7p7/3aS6 mATB4nYCA9/WICIu9d3GQEYWLM0HISYKJhqLlJdTfEe+XxZQxlvDuWOlq5cPi6vthl2B qoQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9y2xPuZPkPnmpcgOHDCRcYCIFTRQYiNRkmHumq2thGM=; fh=QyHvhQiTxKRNgl3/y7AXO+NpHVzLkkjGSC5t8E8CPX4=; b=i/EWmvMkwBcxBSmyAYi+feGSDc6+T9oWH8K+q1QQxtgMZ229Zd0xXMvTHyIsSs/LZO X/whKgJDYn5cOXnefvcDOPQsdlvo1q2O3X4c2U5Nj7FuCCxn+VNdCm6JMUyRsvhMKf5Q G+6GBkbhCRWjnJyUGca1jyTHks5PdaKqtV+6PS+RYgTnOtpt3iaxzlzK1sq+wlydHiML lccOUSCYG+KzczrWzz8DJStBC4jKo0bA4Xgx9r9a6tjRFL8FBv2GELj6b44N+CiHGHJt SomuUtMxVHwPAykTzKoTZo+FV/z3HUH9mHA63BmsUHaLO5C1mJPGUUd3nthWJWNPR15p EKuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OYJNHGdj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id nw17-20020a17090b255100b002774aec6805si2979249pjb.68.2023.10.20.20.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 20:43:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OYJNHGdj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A8BCC81C00C1; Fri, 20 Oct 2023 20:43:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229642AbjJUDmz (ORCPT + 99 others); Fri, 20 Oct 2023 23:42:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjJUDmx (ORCPT ); Fri, 20 Oct 2023 23:42:53 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71392D76; Fri, 20 Oct 2023 20:42:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697859768; x=1729395768; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8PNS9IwLu/TMYdHnEZRKjglbKlVyBvxRYtzA2v+FvTs=; b=OYJNHGdjDY2uQiHI8RUMRE96033TPKS43bG7HrdlZVc9Uj9Khx8+0xOQ BZBHufg2v1/Y1BFIZ2thkU3zva7Ayd4Q1YfRRyaMiBhrDCOPfy3Rj2jrp IRaC9TcKyHfJrVQMnmUKEglAfBIYeDoTO5feQho+bLYhhLFyx7SbMoBae L9ZZrb43oORBr1QsxXchuLO1Pk+CCyDAe9d2pImo1orAS1r2/XQu9rRbG 1agwxgzBq/BZzMHPuGfr7pUE0T493Shm9rQfQp8iETqrS8xPsRzHdMmuK LEFGnjNg9nURigYqH4S5tp657aQpt1+yk97N3pQ1hJjxTE/Q9+ra7q6r1 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10869"; a="371676306" X-IronPort-AV: E=Sophos;i="6.03,239,1694761200"; d="scan'208";a="371676306" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2023 20:42:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10869"; a="881243647" X-IronPort-AV: E=Sophos;i="6.03,239,1694761200"; d="scan'208";a="881243647" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 20 Oct 2023 20:42:45 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qu2st-0004LK-1q; Sat, 21 Oct 2023 03:42:43 +0000 Date: Sat, 21 Oct 2023 11:42:31 +0800 From: kernel test robot To: Manivannan Sadhasivam , mhi@lists.linux.dev Cc: oe-kbuild-all@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam Subject: Re: [PATCH] bus: mhi: ep: Add support for interrupt moderation timer Message-ID: <202310211125.dCDfH087-lkp@intel.com> References: <20231019080911.57938-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231019080911.57938-1-manivannan.sadhasivam@linaro.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 20 Oct 2023 20:43:48 -0700 (PDT) Hi Manivannan, kernel test robot noticed the following build errors: [auto build test ERROR on mani-mhi/mhi-next] [also build test ERROR on linus/master v6.6-rc6 next-20231020] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Manivannan-Sadhasivam/bus-mhi-ep-Add-support-for-interrupt-moderation-timer/20231019-161023 base: https://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git mhi-next patch link: https://lore.kernel.org/r/20231019080911.57938-1-manivannan.sadhasivam%40linaro.org patch subject: [PATCH] bus: mhi: ep: Add support for interrupt moderation timer config: x86_64-buildonly-randconfig-003-20231021 (https://download.01.org/0day-ci/archive/20231021/202310211125.dCDfH087-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231021/202310211125.dCDfH087-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202310211125.dCDfH087-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/bus/mhi/ep/main.c: In function 'mhi_ep_send_event': >> drivers/bus/mhi/ep/main.c:71:52: error: 'struct mhi_ep_ring' has no member named 'intmod_work'; did you mean 'intmodt_work'? 71 | cancel_delayed_work(&ring->intmod_work); | ^~~~~~~~~~~ | intmodt_work drivers/bus/mhi/ep/main.c:76:46: error: 'struct mhi_ep_ring' has no member named 'intmod_work'; did you mean 'intmodt_work'? 76 | schedule_delayed_work(&ring->intmod_work, msecs_to_jiffies(ring->intmodt)); | ^~~~~~~~~~~ | intmodt_work Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for VIDEO_OV7670 Depends on [n]: MEDIA_SUPPORT [=y] && VIDEO_DEV [=y] && VIDEO_CAMERA_SENSOR [=n] Selected by [y]: - VIDEO_CAFE_CCIC [=y] && MEDIA_SUPPORT [=y] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && V4L_PLATFORM_DRIVERS [=y] && PCI [=y] && I2C [=y] && VIDEO_DEV [=y] && COMMON_CLK [=y] vim +71 drivers/bus/mhi/ep/main.c 27 28 static int mhi_ep_send_event(struct mhi_ep_cntrl *mhi_cntrl, u32 ring_idx, 29 struct mhi_ring_element *el, bool bei) 30 { 31 struct device *dev = &mhi_cntrl->mhi_dev->dev; 32 union mhi_ep_ring_ctx *ctx; 33 struct mhi_ep_ring *ring; 34 int ret; 35 36 mutex_lock(&mhi_cntrl->event_lock); 37 ring = &mhi_cntrl->mhi_event[ring_idx].ring; 38 ctx = (union mhi_ep_ring_ctx *)&mhi_cntrl->ev_ctx_cache[ring_idx]; 39 if (!ring->started) { 40 ret = mhi_ep_ring_start(mhi_cntrl, ring, ctx); 41 if (ret) { 42 dev_err(dev, "Error starting event ring (%u)\n", ring_idx); 43 goto err_unlock; 44 } 45 } 46 47 /* Add element to the event ring */ 48 ret = mhi_ep_ring_add_element(ring, el); 49 if (ret) { 50 dev_err(dev, "Error adding element to event ring (%u)\n", ring_idx); 51 goto err_unlock; 52 } 53 54 mutex_unlock(&mhi_cntrl->event_lock); 55 56 /* 57 * As per the MHI specification, section 4.3, Interrupt moderation: 58 * 59 * 1. If BEI flag is not set, cancel any pending intmodt work if started 60 * for the event ring and raise IRQ immediately. 61 * 62 * 2. If both BEI and intmodt are set, and if no IRQ is pending for the 63 * same event ring, start the IRQ delayed work as per the value of 64 * intmodt. If previous IRQ is pending, then do nothing as the pending 65 * IRQ is enough for the host to process the current event ring element. 66 * 67 * 3. If BEI is set and intmodt is not set, no need to raise IRQ. 68 */ 69 if (!bei) { 70 if (READ_ONCE(ring->irq_pending)) > 71 cancel_delayed_work(&ring->intmod_work); 72 73 mhi_cntrl->raise_irq(mhi_cntrl, ring->irq_vector); 74 } else if (ring->intmodt && !READ_ONCE(ring->irq_pending)) { 75 WRITE_ONCE(ring->irq_pending, true); 76 schedule_delayed_work(&ring->intmod_work, msecs_to_jiffies(ring->intmodt)); 77 } 78 79 return 0; 80 81 err_unlock: 82 mutex_unlock(&mhi_cntrl->event_lock); 83 84 return ret; 85 } 86 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki