Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3162177rdg; Tue, 17 Oct 2023 06:34:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2APW1zwE8mpmENaeNuhzGNdqrXveLaBVyj8d8ema9uSvF/Hl08HIeq1+UgVGxIF2xJ5iO X-Received: by 2002:a05:6a20:269f:b0:133:d17d:193a with SMTP id h31-20020a056a20269f00b00133d17d193amr1689233pze.59.1697549681644; Tue, 17 Oct 2023 06:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697549681; cv=none; d=google.com; s=arc-20160816; b=igo5DZkSPiIinmHpAFoE0w/UxVxVEJWiYzaVAuBP5PzbVbDYE37/pU+ckuNN2XcSeM yBjpdZHeeghPbTijuQKtb9g5R/qM44DG+Gm4cpz3nKMM4mLAoluOM42ahtFbnPhxtO4S 8pSHh5MFDIrml/+kt5Pxb8lO8zVlvLAvSB3ANN+daTCMdgBGkPb9WJkImEBWN4iMsz1w J5oc+68MGO/Oc7FFHbjDbqcW2DjDy7NU+cPFnCy6mx+Tzqxu5HFxEHZYvVb+OTt/AOY9 eD3sc8bNrIJSB0NGpsJcIxl3/P95f1Rjm4AB+hpb+iPEE7/px54EGkHblqGvQSlaXua8 DujA== 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=xQXZARSst1efR1RuwSpVhOijR2us1OiZl+MtDF6wDAE=; fh=QlBTNU58kDM/Oysfvp8YXFrzHUfZoJ4mccIfMW1b4q4=; b=eHCpT2D03/fGh6dNWoGxLcW2zRVOklftAA8Ua5A7cd/zVTWUTg3izZ2sQFoaQOxH41 BvHNxGnsPi9HBSuslkW92nbXL2oyVSAbGSMvAWJLZIoLwdvnki4IcUImRMjDDHTWYv0U mQYzPkgNpfxDnSm/WRptVBW/EVqtX/9Wy8nvYxzzoGWxh1fYOIEzenUtQ1XeffISR0uC 9C0hFzXRjLuPk7shuM3PdMqFMW0VW6dwOfr//UH8uGjFsmWQCQJCaA5st2BkuII/4IyN JnHNbB3/o7y/Eb6qE/20TgmsfHkaQQuuIn6Hk6dk3BMwfz7zuFYau0L8mTFxhIRQHo/U SBYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iEYMvrwc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id u6-20020a170902e5c600b001c72b13a1cbsi1937772plf.352.2023.10.17.06.34.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 06:34:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iEYMvrwc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 065A9803C46E; Tue, 17 Oct 2023 06:34:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343794AbjJQNeY (ORCPT + 99 others); Tue, 17 Oct 2023 09:34:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343642AbjJQNeX (ORCPT ); Tue, 17 Oct 2023 09:34:23 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 186D2ED for ; Tue, 17 Oct 2023 06:34:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697549662; x=1729085662; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0Ff530asQwhzMuaCrXBgBn7hMKrFyVFKwARb+hoQLog=; b=iEYMvrwcdc/1QpGaoIE+denGMn68kZtRP+ORNjCpaVwnxvUU1WziEZnH UsFT5UvcY7HG/XqgscD5aQXo1lgIpKGkoylM6eAEBe77g8eTPKuE1sXbI ya3Duzj/KqTnQNJOk9PbfgsTo3kd1Mr+lp3hlk13PJD4Eyb9hNEL7nwp7 lK84hfFS3M0uiKe2eaLd3jmP3q2cYrmWcyYBp33R1KtxBi8Gj0iWNELau Ku3ZtV6N7ikYafNbARoKxdVDX050WA6GLFIwARj9pax8u/eS+hDCPXVWn VOvc9jZXGuQo1fREmsm2OEFYllX8myRV9RpVBrD7+wPj21adqkAVX1hCD g==; X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="449999744" X-IronPort-AV: E=Sophos;i="6.03,232,1694761200"; d="scan'208";a="449999744" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 06:34:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="749697972" X-IronPort-AV: E=Sophos;i="6.03,232,1694761200"; d="scan'208";a="749697972" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 17 Oct 2023 06:34:18 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qskD8-0009e1-1K; Tue, 17 Oct 2023 13:34:14 +0000 Date: Tue, 17 Oct 2023 21:33:35 +0800 From: kernel test robot To: Frank Li , miquel.raynal@bootlin.com, conor.culhane@silvaco.com, alexandre.belloni@bootlin.com, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Cc: oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH 1/6] i3c: master: svc: fix race condition in ibi work thread Message-ID: <202310172150.4GVdV44X-lkp@intel.com> References: <20231016153232.2851095-2-Frank.Li@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231016153232.2851095-2-Frank.Li@nxp.com> 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 morse.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 (morse.vger.email [0.0.0.0]); Tue, 17 Oct 2023 06:34:39 -0700 (PDT) Hi Frank, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on v6.6-rc6 next-20231017] [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/Frank-Li/i3c-master-svc-fix-race-condition-in-ibi-work-thread/20231017-151123 base: linus/master patch link: https://lore.kernel.org/r/20231016153232.2851095-2-Frank.Li%40nxp.com patch subject: [PATCH 1/6] i3c: master: svc: fix race condition in ibi work thread config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20231017/202310172150.4GVdV44X-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231017/202310172150.4GVdV44X-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/202310172150.4GVdV44X-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/i3c/master/svc-i3c-master.c:207: warning: Function parameter or member 'lock' not described in 'svc_i3c_master' vim +207 drivers/i3c/master/svc-i3c-master.c 1c5ee2a77b1bacd Clark Wang 2023-05-17 153 dd3c52846d5954a Miquel Raynal 2021-01-21 154 /** dd3c52846d5954a Miquel Raynal 2021-01-21 155 * struct svc_i3c_master - Silvaco I3C Master structure dd3c52846d5954a Miquel Raynal 2021-01-21 156 * @base: I3C master controller dd3c52846d5954a Miquel Raynal 2021-01-21 157 * @dev: Corresponding device dd3c52846d5954a Miquel Raynal 2021-01-21 158 * @regs: Memory mapping 5496eac6ad7428f Miquel Raynal 2023-08-17 159 * @saved_regs: Volatile values for PM operations dd3c52846d5954a Miquel Raynal 2021-01-21 160 * @free_slots: Bit array of available slots dd3c52846d5954a Miquel Raynal 2021-01-21 161 * @addrs: Array containing the dynamic addresses of each attached device dd3c52846d5954a Miquel Raynal 2021-01-21 162 * @descs: Array of descriptors, one per attached device dd3c52846d5954a Miquel Raynal 2021-01-21 163 * @hj_work: Hot-join work dd3c52846d5954a Miquel Raynal 2021-01-21 164 * @ibi_work: IBI work dd3c52846d5954a Miquel Raynal 2021-01-21 165 * @irq: Main interrupt dd3c52846d5954a Miquel Raynal 2021-01-21 166 * @pclk: System clock dd3c52846d5954a Miquel Raynal 2021-01-21 167 * @fclk: Fast clock (bus) dd3c52846d5954a Miquel Raynal 2021-01-21 168 * @sclk: Slow clock (other events) dd3c52846d5954a Miquel Raynal 2021-01-21 169 * @xferqueue: Transfer queue structure dd3c52846d5954a Miquel Raynal 2021-01-21 170 * @xferqueue.list: List member dd3c52846d5954a Miquel Raynal 2021-01-21 171 * @xferqueue.cur: Current ongoing transfer dd3c52846d5954a Miquel Raynal 2021-01-21 172 * @xferqueue.lock: Queue lock dd3c52846d5954a Miquel Raynal 2021-01-21 173 * @ibi: IBI structure dd3c52846d5954a Miquel Raynal 2021-01-21 174 * @ibi.num_slots: Number of slots available in @ibi.slots dd3c52846d5954a Miquel Raynal 2021-01-21 175 * @ibi.slots: Available IBI slots dd3c52846d5954a Miquel Raynal 2021-01-21 176 * @ibi.tbq_slot: To be queued IBI slot dd3c52846d5954a Miquel Raynal 2021-01-21 177 * @ibi.lock: IBI lock dd3c52846d5954a Miquel Raynal 2021-01-21 178 */ dd3c52846d5954a Miquel Raynal 2021-01-21 179 struct svc_i3c_master { dd3c52846d5954a Miquel Raynal 2021-01-21 180 struct i3c_master_controller base; dd3c52846d5954a Miquel Raynal 2021-01-21 181 struct device *dev; dd3c52846d5954a Miquel Raynal 2021-01-21 182 void __iomem *regs; 1c5ee2a77b1bacd Clark Wang 2023-05-17 183 struct svc_i3c_regs_save saved_regs; dd3c52846d5954a Miquel Raynal 2021-01-21 184 u32 free_slots; dd3c52846d5954a Miquel Raynal 2021-01-21 185 u8 addrs[SVC_I3C_MAX_DEVS]; dd3c52846d5954a Miquel Raynal 2021-01-21 186 struct i3c_dev_desc *descs[SVC_I3C_MAX_DEVS]; dd3c52846d5954a Miquel Raynal 2021-01-21 187 struct work_struct hj_work; dd3c52846d5954a Miquel Raynal 2021-01-21 188 struct work_struct ibi_work; dd3c52846d5954a Miquel Raynal 2021-01-21 189 int irq; dd3c52846d5954a Miquel Raynal 2021-01-21 190 struct clk *pclk; dd3c52846d5954a Miquel Raynal 2021-01-21 191 struct clk *fclk; dd3c52846d5954a Miquel Raynal 2021-01-21 192 struct clk *sclk; dd3c52846d5954a Miquel Raynal 2021-01-21 193 struct { dd3c52846d5954a Miquel Raynal 2021-01-21 194 struct list_head list; dd3c52846d5954a Miquel Raynal 2021-01-21 195 struct svc_i3c_xfer *cur; dd3c52846d5954a Miquel Raynal 2021-01-21 196 /* Prevent races between transfers */ dd3c52846d5954a Miquel Raynal 2021-01-21 197 spinlock_t lock; dd3c52846d5954a Miquel Raynal 2021-01-21 198 } xferqueue; dd3c52846d5954a Miquel Raynal 2021-01-21 199 struct { dd3c52846d5954a Miquel Raynal 2021-01-21 200 unsigned int num_slots; dd3c52846d5954a Miquel Raynal 2021-01-21 201 struct i3c_dev_desc **slots; dd3c52846d5954a Miquel Raynal 2021-01-21 202 struct i3c_ibi_slot *tbq_slot; dd3c52846d5954a Miquel Raynal 2021-01-21 203 /* Prevent races within IBI handlers */ dd3c52846d5954a Miquel Raynal 2021-01-21 204 spinlock_t lock; dd3c52846d5954a Miquel Raynal 2021-01-21 205 } ibi; f32ae0219a47f74 Frank Li 2023-10-16 206 struct mutex lock; dd3c52846d5954a Miquel Raynal 2021-01-21 @207 }; dd3c52846d5954a Miquel Raynal 2021-01-21 208 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki