From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8EC06C5AD4E for ; Mon, 10 Aug 2026 09:58:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kXpnAU9rLor/yEpitd3dwcYiAP758cLDp3hfyvLPk1g=; b=Vkq1BtIGcakzG8fFl3mSvAbxKk jLpHQz5BC5lnU6fuZ9bbkYPsOEKfnfO6SSORRJZ/bNoo1HY4kC9AntuAPi8RDHuwIkV6mz8DqSrtA JfxGO+LUmWBsUzmy+bz5t/FB4RZvTFqNlhqUFAsgk9wnNl0sC9/7885vdom3WA+qWAGAYt77B4Ev6 fg9TiyPpv1BDQ0mMHjI4Olf+KNATtCkJ+qp48VuewfvHvYHCNcH0M3UuXPV7OAIxMikySRHsrBmee GMqeQ4vJRuj/gkWj6Cz6/+z8I0FruJ7SnR+pJ3gcrimkhFgvHjN6/YdcBADHxdSR01OlFGTwO9FWv zpKtm2Nw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wtMlh-0000000BRdw-155f; Mon, 10 Aug 2026 09:58:05 +0000 Received: from mgamail.intel.com ([198.175.65.18]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wtMld-0000000BRd4-256b; Mon, 10 Aug 2026 09:58:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1786355882; x=1817891882; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OIBLn+vI6UtjzTR690g/0/DqXLgizFSN5e6xNFRiIQY=; b=U20vFjroV3OoQke60PyBkCTPDfMFAFlmCbbnh2Haeh62dLlLF3BKiP+s kwyBwxtTuEDFm7jAWsjrMKVHbwF7yniwlElLS3d9xqJLZeJEYBHAZHlNE 8UBS4RKjhld3gT7bglqxq+2C+9NPhHzrraWJgj3jwBC6xRZwlr9r/uMFJ xajevu5EXnl9Xe3RJuH9bF8XWpYGZc5IhPGRyyUJoSpIl7uW1vk7sLr/A LvsEL0OLv6R7sK4BJmNPixAshGAAfn6p1go9gbNDe8LTtk03oh1tShlZh Vf1RPfa17RlP9GIImVfYCq3b8rWMiCkYiGS7fhXWpemUz1bpkebVhq/pD g==; X-CSE-ConnectionGUID: 3tV1Gs+FQ5aMnKiDViKKXA== X-CSE-MsgGUID: G4VNbjU9R5qyIquAil0nsQ== X-IronPort-AV: E=McAfee;i="6800,10657,11870"; a="86941076" X-IronPort-AV: E=Sophos;i="6.25,215,1779174000"; d="scan'208";a="86941076" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2026 02:58:01 -0700 X-CSE-ConnectionGUID: 1s6lpu4bQyymJDs4F82TDA== X-CSE-MsgGUID: PFzlndWpT9OR6jAyiitIZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,215,1779174000"; d="scan'208";a="261708904" Received: from lkp-server01.sh.intel.com (HELO 6eda058d650d) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 10 Aug 2026 02:57:58 -0700 Received: from kbuild by 6eda058d650d with local (Exim 4.98.2) (envelope-from ) id 1wtMlX-00000000N6k-1EnS; Mon, 10 Aug 2026 09:57:55 +0000 Date: Mon, 10 Aug 2026 17:57:15 +0800 From: kernel test robot To: Jose Ignacio Tornos Martinez , bhelgaas@google.com, alex@shazbot.org, mani@kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, jjohnson@kernel.org, linux-pci@vger.kernel.org, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, ath12k@lists.infradead.org, mhi@lists.linux.dev, linux-kernel@vger.kernel.org, Jose Ignacio Tornos Martinez Subject: Re: [PATCH v11] PCI: Add device-specific reset for Qualcomm devices Message-ID: <202608101710.4bALXXJf-lkp@intel.com> References: <20260626055023.197470-1-jtornosm@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260626055023.197470-1-jtornosm@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260810_025801_614768_FAA2B19B X-CRM114-Status: GOOD ( 11.68 ) X-BeenThere: ath12k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath12k" Errors-To: ath12k-bounces+ath12k=archiver.kernel.org@lists.infradead.org Hi Jose, kernel test robot noticed the following build warnings: [auto build test WARNING on pci/next] [also build test WARNING on pci/for-linus linus/master v7.2-rc6 next-20260807] [cannot apply to linux-review/Jose-Ignacio-Tornos-Martinez/Add-device-specific-reset-for-Qualcomm-devices/20260804-001013] [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/Jose-Ignacio-Tornos-Martinez/PCI-Add-device-specific-reset-for-Qualcomm-devices/20260810-131417 base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next patch link: https://lore.kernel.org/r/20260626055023.197470-1-jtornosm%40redhat.com patch subject: [PATCH v11] PCI: Add device-specific reset for Qualcomm devices config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260810/202608101710.4bALXXJf-lkp@intel.com/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 12df34b8469b8095359de8c249cb1b2753fadeea) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260810/202608101710.4bALXXJf-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/202608101710.4bALXXJf-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/pci/quirks.c:4278:11: warning: result of comparison of constant 18446744073709551615 with expression of type 'u32' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare] 4278 | if (val != PCI_ERROR_RESPONSE) { | ~~~ ^ ~~~~~~~~~~~~~~~~~~ 1 warning generated. vim +4278 drivers/pci/quirks.c 4234 4235 /* 4236 * Qualcomm WiFi device-specific reset using SoC global reset via BAR0 4237 * registers. 4238 */ 4239 static int reset_qualcomm_wifi(struct pci_dev *pdev, bool probe) 4240 { 4241 bool link_recovered = false; 4242 unsigned long timeout; 4243 void __iomem *bar; 4244 u32 val; 4245 u16 cmd; 4246 4247 if (probe) 4248 return 0; 4249 4250 if (pdev->current_state != PCI_D0) 4251 return -EINVAL; 4252 4253 pci_read_config_word(pdev, PCI_COMMAND, &cmd); 4254 pci_write_config_word(pdev, PCI_COMMAND, cmd | PCI_COMMAND_MEMORY); 4255 4256 bar = pci_iomap(pdev, 0, 0); 4257 if (!bar) { 4258 pci_write_config_word(pdev, PCI_COMMAND, cmd); 4259 return -ENODEV; 4260 } 4261 4262 val = ioread32(bar + QUALCOMM_WIFI_PCIE_SOC_GLOBAL_RESET); 4263 val |= QUALCOMM_WIFI_PCIE_SOC_GLOBAL_RESET_V; 4264 iowrite32(val, bar + QUALCOMM_WIFI_PCIE_SOC_GLOBAL_RESET); 4265 ioread32(bar + QUALCOMM_WIFI_PCIE_SOC_GLOBAL_RESET); 4266 4267 msleep(10); 4268 4269 val &= ~QUALCOMM_WIFI_PCIE_SOC_GLOBAL_RESET_V; 4270 iowrite32(val, bar + QUALCOMM_WIFI_PCIE_SOC_GLOBAL_RESET); 4271 ioread32(bar + QUALCOMM_WIFI_PCIE_SOC_GLOBAL_RESET); 4272 4273 msleep(10); 4274 4275 timeout = jiffies + msecs_to_jiffies(5000); 4276 while (time_before(jiffies, timeout)) { 4277 val = ioread32(bar + QUALCOMM_WIFI_PCIE_SOC_GLOBAL_RESET); > 4278 if (val != PCI_ERROR_RESPONSE) { 4279 link_recovered = true; 4280 break; 4281 } 4282 msleep(20); 4283 } 4284 4285 if (!link_recovered) { 4286 pci_err(pdev, "PCIe link failed to recover after reset\n"); 4287 goto out_restore; 4288 } 4289 4290 /* After SOC_GLOBAL_RESET, MHISTATUS may still have SYSERR bit set 4291 * and thus need to set MHICTRL_RESET to clear SYSERR. 4292 */ 4293 iowrite32(QUALCOMM_WIFI_MHICTRL_RESET_MASK, bar + QUALCOMM_WIFI_MHICTRL); 4294 ioread32(bar + QUALCOMM_WIFI_MHICTRL); 4295 4296 msleep(10); 4297 4298 out_restore: 4299 pci_iounmap(pdev, bar); 4300 pci_write_config_word(pdev, PCI_COMMAND, cmd); 4301 4302 return link_recovered ? 0 : -ETIMEDOUT; 4303 } 4304 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki