tree:
https://github.com/l1k/linux pciehp_dpc_v1
head: a0b9f6e639a1ab50faab2ed7a4b06994e9742b2a
commit: a0b9f6e639a1ab50faab2ed7a4b06994e9742b2a [1/1] PCI: pciehp: Ignore Link Down/Up
caused by DPC
config: powerpc-randconfig-r034-20210324 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
a4fb88669cd98db6fef7dcac88e3ec425d40c00d)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
#
https://github.com/l1k/linux/commit/a0b9f6e639a1ab50faab2ed7a4b06994e9742b2a
git remote add l1k
https://github.com/l1k/linux
git fetch --no-tags l1k pciehp_dpc_v1
git checkout a0b9f6e639a1ab50faab2ed7a4b06994e9742b2a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/pci/hotplug/pciehp_hpc.c:575:30: error: use of undeclared
identifier 'pdev'
pcie_capability_write_word(pdev,
PCI_EXP_SLTSTA,
^
drivers/pci/hotplug/pciehp_hpc.c:577:32: error: use of undeclared identifier
'pdev'
clear_bit(PCI_DPC_RECOVERED, &pdev->priv_flags);
^
2 errors generated.
vim +/pdev +575 drivers/pci/hotplug/pciehp_hpc.c
565
566 static void pciehp_ignore_dpc_link_change(struct controller *ctrl, int irq)
567 {
568 /*
569 * Ignore link changes which occurred while waiting for DPC recovery.
570 * Could be several if DPC triggered multiple times consecutively.
571 */
572 synchronize_hardirq(irq);
573 atomic_and(~PCI_EXP_SLTSTA_DLLSC, &ctrl->pending_events);
574 if (pciehp_poll_mode)
575 pcie_capability_write_word(pdev, PCI_EXP_SLTSTA,
576 PCI_EXP_SLTSTA_DLLSC);
577 clear_bit(PCI_DPC_RECOVERED, &pdev->priv_flags);
578 ctrl_info(ctrl, "Slot(%s): Link Down/Up ignored (recovered by DPC)\n",
579 slot_name(ctrl));
580
581 /*
582 * If the link is unexpectedly down after successful recovery,
583 * the corresponding link change may have been ignored above.
584 * Synthesize it to ensure that it is acted on.
585 */
586 down_read(&ctrl->reset_lock);
587 if (!pciehp_check_link_active(ctrl))
588 pciehp_request(ctrl, PCI_EXP_SLTSTA_DLLSC);
589 up_read(&ctrl->reset_lock);
590 }
591
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org