Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1456750rdg; Sat, 12 Aug 2023 01:53:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrm3rgKTWI+DgskeSLplDnlYVqQLCD/Ipo7JMK+QqCHIb2Nzc4LW4hiuhAIl++twvrJRDU X-Received: by 2002:a17:902:f684:b0:1ab:11c8:777a with SMTP id l4-20020a170902f68400b001ab11c8777amr5199608plg.13.1691830385674; Sat, 12 Aug 2023 01:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691830385; cv=none; d=google.com; s=arc-20160816; b=T3j/asBjMgUikp7buAmhKlg20VXznBLQPC7ss7/oHe5Y74haruLly6dz5oe7OE3edz lVi1JVmtaxvC+FSRYm5jXplJIshSob5NjZYAd9qicbSafKF/AGdASnVTzcfQkRe+nTIA 8iq+e/gp3APK4hcMYGU0RBKifFx0HcziHysgkDe14r7pH+A2tKsNZ7eBxDqtyr4xgoKy yaLhv29AT10NYNP+MYTl7316ya1k1LpKNhjI5oNPH/EC+IlwVDVHshnvQauI63IaSsMg G3TXDECz73gZXfZXCMjj+c0al7Bvs0JF+3jSK81ABN3e65eRLLHayvnuTq/b7ipapQ8w ZTbA== 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=MAFVJ/hjtqDS2bD739vjoIzP7fBfoe+p0Oqpo0XAUWs=; fh=TiKdc/L+zBLih5ID85ckTpbrySGJiI7YCuKcAoQ20n4=; b=E8sq+WERahheJ0bEgjyJKWBNG1ivZWlIwTXhWoPWR+DL0h19t34ua7UxrJnecpyl00 N4xGEtSreBwXWnH5hUUH/TusJ0NhVhdq07o00qnN6ip+mlsRlr3OGflQ1l1TXg/b4F/X zlPTmPCDmg7xEMXBCqkWqedzobmXlhyXeim4JX0jkTg9oTTjtitRnoUWhmHBmC6oQPUv keoK1Q+WmP2bFJnlojD6tUfyrzQ5yCykab744nIZu8dtTdDS5ZgIbr1sFjXVfkQOKPPB 9fssaPxA00RvDvWOrdP4UT9rZH+FCRHgZ+b5kxL7cBfcR1ZnSC5FntcT9anLIn4yeTN5 gR2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QwuDEAls; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a17090ac24100b00262e650abadsi4692611pjx.117.2023.08.12.01.52.51; Sat, 12 Aug 2023 01:53:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QwuDEAls; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230427AbjHLImK (ORCPT + 55 others); Sat, 12 Aug 2023 04:42:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjHLImI (ORCPT ); Sat, 12 Aug 2023 04:42:08 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98A4E2684 for ; Sat, 12 Aug 2023 01:42:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691829730; x=1723365730; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pQKF6xXJnW38bRdKHnATqtBgpYbclGlvHTbo9KWLmsk=; b=QwuDEAlsimQqgbUmEdV6R2sNnFOr+yibJMFCDIiNVb+c8iOae6BrWreL 9GOX2pZDdKLc73F5YeuEuinS2dmM+mHp3H7arEOxDSadviUoe90D7KkR9 loB6yeAUIiQTbcVQSHbPGVB3VRRv0EAvf+hs3SEwstelGr6G0oXoGSnIs Rm35LZia4jBTExrTc3NAx034VxbXk7Ff83i9yTgPocKFBWW3eVllofo2D TkpqjLRXucp+HhlJELr2a4xUIGUQtrCH+1om7oV4ZDnSEbC1MKvikx8uN dmbGNxWwPSC0n5GNlCriU1OyFpgqJPphqXIrJo6wtEy8tGk64yZwsg78b w==; X-IronPort-AV: E=McAfee;i="6600,9927,10799"; a="402795721" X-IronPort-AV: E=Sophos;i="6.01,167,1684825200"; d="scan'208";a="402795721" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2023 01:42:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10799"; a="979443397" X-IronPort-AV: E=Sophos;i="6.01,167,1684825200"; d="scan'208";a="979443397" Received: from lkp-server01.sh.intel.com (HELO d1ccc7e87e8f) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 12 Aug 2023 01:42:08 -0700 Received: from kbuild by d1ccc7e87e8f with local (Exim 4.96) (envelope-from ) id 1qUkCF-0008QO-1g; Sat, 12 Aug 2023 08:42:07 +0000 Date: Sat, 12 Aug 2023 16:41:30 +0800 From: kernel test robot To: Prasurjya.Rohansaikia@microchip.com, linux-wireless@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Ajay.Kathat@microchip.com, claudiu.beznea@microchip.com Subject: Re: [PATCH] wifi: wilc1000: Added back-off algorithm to balance tx queue packets. Message-ID: <202308121630.OJIJ2i9a-lkp@intel.com> References: <20230810184633.94338-1-prasurjya.rohansaikia@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230810184633.94338-1-prasurjya.rohansaikia@microchip.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, kernel test robot noticed the following build warnings: [auto build test WARNING on wireless-next/main] [also build test WARNING on wireless/main linus/master v6.5-rc5 next-20230809] [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/Prasurjya-Rohansaikia-microchip-com/wifi-wilc1000-Added-back-off-algorithm-to-balance-tx-queue-packets/20230811-024902 base: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main patch link: https://lore.kernel.org/r/20230810184633.94338-1-prasurjya.rohansaikia%40microchip.com patch subject: [PATCH] wifi: wilc1000: Added back-off algorithm to balance tx queue packets. config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230812/202308121630.OJIJ2i9a-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230812/202308121630.OJIJ2i9a-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/202308121630.OJIJ2i9a-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/net/wireless/microchip/wilc1000/netdev.c: In function 'wilc_txq_task': >> drivers/net/wireless/microchip/wilc1000/netdev.c:147:21: warning: variable 'timeout' set but not used [-Wunused-but-set-variable] 147 | signed long timeout; | ^~~~~~~ vim +/timeout +147 drivers/net/wireless/microchip/wilc1000/netdev.c 142 143 static int wilc_txq_task(void *vp) 144 { 145 int ret; 146 u32 txq_count; > 147 signed long timeout; 148 struct wilc *wl = vp; 149 150 complete(&wl->txq_thread_started); 151 while (1) { 152 if (wait_for_completion_interruptible(&wl->txq_event)) 153 continue; 154 if (wl->close) { 155 complete(&wl->txq_thread_started); 156 157 while (!kthread_should_stop()) 158 schedule(); 159 break; 160 } 161 do { 162 ret = wilc_wlan_handle_txq(wl, &txq_count); 163 if (txq_count < FLOW_CONTROL_LOWER_THRESHOLD) { 164 int srcu_idx; 165 struct wilc_vif *ifc; 166 167 srcu_idx = srcu_read_lock(&wl->srcu); 168 list_for_each_entry_rcu(ifc, &wl->vif_list, 169 list) { 170 if (ifc->mac_opened && 171 netif_queue_stopped(ifc->ndev)) 172 netif_wake_queue(ifc->ndev); 173 } 174 srcu_read_unlock(&wl->srcu, srcu_idx); 175 } 176 if (ret != WILC_VMM_ENTRY_FULL_RETRY) 177 break; 178 /* Back off from sending packets for some time. 179 * schedule_timeout will allow RX task to run and free 180 * buffers. Setting state to TASK_INTERRUPTIBLE will 181 * put the thread back to CPU running queue when it's 182 * signaled even if 'timeout' isn't elapsed. This gives 183 * faster chance for reserved SK buffers to be freed 184 */ 185 set_current_state(TASK_INTERRUPTIBLE); 186 timeout = schedule_timeout(msecs_to_jiffies(TX_BACKOFF_WEIGHT_MS)); 187 } while (ret == WILC_VMM_ENTRY_FULL_RETRY && !wl->close); 188 } 189 return 0; 190 } 191 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki