From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38E0243E498; Wed, 21 Jan 2026 12:22:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768998160; cv=none; b=tSe/X4XtgraA5yXEWf/Ac+ruygPqYWidZP7EihTclK1fHrHu44wehsOANAYSGhgs8zuZHbizWNNn+bvNR5R2G2W0Hg6ZvaCYrcZeOU2MAaprQIzxfDUhZ7LjTVi/ZEOk8MfVHhEVl7+UuIgSVPM7OzB77c1AdzFx6zdg0OiNqnw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768998160; c=relaxed/simple; bh=tW81FPKkcatXF7kK/DoJm00cBAYV1HjEPXiuEniIR8o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pWrZkMH3wykqg1zplc60Xw+OHGqPd2lzcGm8mJS3Lg+nvf7pvYY9p1sNyOhquruoQgHQKT8AcgsPC5GJD1lQDIj1Rwd+X/pxKMiLYtQV/qV6pWSdgCnU6wZk1P1TaxvI/BOVIQHUaO0X1ZqL4OIp30hs9rG9s/z7pqoZyd4QbMk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=U/UzJ3Ad; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="U/UzJ3Ad" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1768998159; x=1800534159; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tW81FPKkcatXF7kK/DoJm00cBAYV1HjEPXiuEniIR8o=; b=U/UzJ3AddEyPE69FYk5KWamBcODdq/1REdlZhHAMdT6nZJV8c1T/73X4 F96UBJ5YZTcwoQ35ihsc43Kv1CzmMW/UPmgBn9g0YoCATgO5FLldtayFa 4IgqMyh8zAhk1X4gxkMhF1kIfnr19MkpL5o68H4YQz9UroPYstp+bSjgG gPIl7GGc7GCQMeJY/RsBXYiG0FFVHOhIpkjmRxUnwDs1yLEYcdKDh3OYP m3SQGfRsL+ya+yJt9TIVBlnh3MsYQpAHgwz/p2CCI0vMFXUWEP8Ir65Wu J7FM1Sevb/Yi4cKZ0sLIQixqY3CmwRF0dQMopjPw0+w6R7d2TaSRalgff A==; X-CSE-ConnectionGUID: q2HhbyYbTrmNlpn68A2sOg== X-CSE-MsgGUID: vmqtn4xDT3uRtvch56mumw== X-IronPort-AV: E=McAfee;i="6800,10657,11677"; a="69948478" X-IronPort-AV: E=Sophos;i="6.21,242,1763452800"; d="scan'208";a="69948478" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2026 04:22:39 -0800 X-CSE-ConnectionGUID: mOOiMACLSrWDcU0vqO1eVg== X-CSE-MsgGUID: lPZ2qKhfQI6NJ3r1xjRF0A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,242,1763452800"; d="scan'208";a="244005788" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 21 Jan 2026 04:22:36 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1viXEH-00000000RE9-0P0x; Wed, 21 Jan 2026 12:22:33 +0000 Date: Wed, 21 Jan 2026 20:21:56 +0800 From: kernel test robot To: Pragnesh Patel Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, gcherian@marvell.com, Suneel Garapati , Pragnesh Patel , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH] PCI: octeon: Add link down handler support for PCIe MAC controller Message-ID: <202601211935.bHNggPkG-lkp@intel.com> References: <20260121051439.1882086-1-pragneshp@marvell.com> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260121051439.1882086-1-pragneshp@marvell.com> Hi Pragnesh, kernel test robot noticed the following build errors: [auto build test ERROR on pci/for-linus] [also build test ERROR on linus/master v6.19-rc6 next-20260120] [cannot apply to pci/next] [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/Pragnesh-Patel/PCI-octeon-Add-link-down-handler-support-for-PCIe-MAC-controller/20260121-131806 base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git for-linus patch link: https://lore.kernel.org/r/20260121051439.1882086-1-pragneshp%40marvell.com patch subject: [PATCH] PCI: octeon: Add link down handler support for PCIe MAC controller config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20260121/202601211935.bHNggPkG-lkp@intel.com/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260121/202601211935.bHNggPkG-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/202601211935.bHNggPkG-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/pci/controller/pci-octeon-pem.c:130:12: error: no member named 'domain_nr' in 'struct pci_bus' 130 | if (bus->domain_nr == rc_domain) | ~~~ ^ 1 error generated. vim +130 drivers/pci/controller/pci-octeon-pem.c 53 54 static void pem_recover_rc_link(struct work_struct *ws) 55 { 56 struct pem_ctlr *pem = container_of(ws, struct pem_ctlr, 57 recover_rc_work); 58 struct pci_dev *pem_dev = pem->pdev; 59 struct pci_dev *root_port; 60 struct pci_bus *bus; 61 struct pcie_device *pcie; 62 struct controller *ctrl; 63 int rc_domain, timeout = 100; 64 u64 pem_reg; 65 66 rc_domain = pem->index + DOMAIN_OFFSET; 67 68 root_port = pci_get_domain_bus_and_slot(rc_domain, 0, 0); 69 if (!root_port) { 70 dev_err(&pem_dev->dev, "failed to get root port\n"); 71 return; 72 } 73 74 dev_dbg(&pem_dev->dev, "PEM%d rcvr work\n", pem->index); 75 76 /* Check if HP interrupt thread is in progress 77 * and wait for it to complete 78 */ 79 pcie = to_pciehp_dev(root_port); 80 if (!pcie) 81 return; 82 ctrl = get_service_data(pcie); 83 wait_event(ctrl->requester, 84 !atomic_read(&ctrl->pending_events) && 85 !ctrl->ist_running); 86 dev_dbg(&pem_dev->dev, "PEM%d HP ist done\n", pem->index); 87 88 /* Disable hot-plug interrupt 89 * Removal and rescan below would setup again. 90 */ 91 pcie_disable_interrupt(ctrl); 92 dev_dbg(&pem_dev->dev, "PEM%d Disable interrupt\n", pem->index); 93 94 pci_lock_rescan_remove(); 95 96 pci_walk_bus(root_port->subordinate, pci_dev_set_disconnected, NULL); 97 98 /* Clean-up device and RC bridge */ 99 pci_stop_and_remove_bus_device(root_port); 100 101 pci_unlock_rescan_remove(); 102 103 usleep_range(100, 200); 104 105 writeq(0x0, pem->base + RST_SOFT_PERST_OFFSET); 106 107 while (timeout--) { 108 /* Check for PEM_OOR to be set */ 109 pem_reg = readq(pem->base + ON_OFFSET); 110 if (pem_reg & BIT(1)) 111 break; 112 usleep_range(1000, 2000); 113 } 114 if (!timeout) { 115 dev_warn(&pem_dev->dev, 116 "PEM failed to get out of reset\n"); 117 return; 118 } 119 120 pci_lock_rescan_remove(); 121 122 /* 123 * Hardware resets and initializes config space of RC bridge 124 * on every link down event with auto-mode in use. 125 * Re-scan will setup RC bridge cleanly in kernel 126 * after removal and to be ready for next link-up event. 127 */ 128 bus = NULL; 129 while ((bus = pci_find_next_bus(bus)) != NULL) > 130 if (bus->domain_nr == rc_domain) 131 pci_rescan_bus(bus); 132 pci_unlock_rescan_remove(); 133 pci_dev_put(root_port); 134 135 /* Ack interrupt */ 136 writeq(RST_INT_LINKDOWN, pem->base + RST_INT_OFFSET); 137 /* Enable RST_INT[LINKDOWN] interrupt */ 138 writeq(RST_INT_LINKDOWN, pem->base + RST_INT_ENA_W1S_OFFSET); 139 } 140 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki