tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
pending-4.14
head: 39c164530d283f4db56168df627b287878b57174
commit: 7a6f17582421b54ea202fa9527d00b9376577b65 [60/64] PCI: Increase D3 delay for AMD
Ryzen5/7 XHCI controllers
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.5.0
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
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-4.14
git checkout 7a6f17582421b54ea202fa9527d00b9376577b65
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=xtensa
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 >>):
In file included from include/linux/kernel.h:10:0,
from drivers/pci/quirks.c:16:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/xtensa/include/asm/page.h:185:9: warning: comparison of unsigned expression >=
0 is always true [-Wtype-limits]
((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
^
include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/scatterlist.h:141:2: note: in expansion of macro 'BUG_ON'
BUG_ON(!virt_addr_valid(buf));
^~~~~~
arch/xtensa/include/asm/page.h:193:32: note: in expansion of macro 'pfn_valid'
#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
^~~~~~~~~
include/linux/scatterlist.h:141:10: note: in expansion of macro
'virt_addr_valid'
BUG_ON(!virt_addr_valid(buf));
^~~~~~~~~~~~~~~
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/xtensa/include/asm/page.h:185:9: warning: comparison of unsigned expression >=
0 is always true [-Wtype-limits]
((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
^
include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/dma-mapping.h:327:2: note: in expansion of macro 'BUG_ON'
BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
^~~~~~
include/linux/dma-mapping.h:327:9: note: in expansion of macro 'pfn_valid'
BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
^~~~~~~~~
drivers/pci/quirks.c: In function 'quirk_ryzen_xhci_d3hot':
> drivers/pci/quirks.c:1714:2: error: implicit declaration of
function 'quirk_d3hot_delay'; did you mean 'quirk_dunord'?
[-Werror=implicit-function-declaration]
quirk_d3hot_delay(dev, 20);
^~~~~~~~~~~~~~~~~
quirk_dunord
drivers/pci/quirks.c: In function 'quirk_netmos':
drivers/pci/quirks.c:1972:6: warning: this statement may fall through
[-Wimplicit-fallthrough=]
if (dev->subsystem_vendor == PCI_VENDOR_ID_IBM &&
^
drivers/pci/quirks.c:1975:2: note: here
case PCI_DEVICE_ID_NETMOS_9735:
^~~~
cc1: some warnings being treated as errors
vim +1714 drivers/pci/quirks.c
1702
1703 /*
1704 * Ryzen5/7 XHCI controllers fail upon resume from runtime suspend or s2idle.
1705 *
https://bugzilla.kernel.org/show_bug.cgi?id=205587
1706 *
1707 * The kernel attempts to transition these devices to D3cold, but that seems
1708 * to be ineffective on the platforms in question; the PCI device appears to
1709 * remain on in D3hot state. The D3hot-to-D0 transition then requires an
1710 * extended delay in order to succeed.
1711 */
1712 static void quirk_ryzen_xhci_d3hot(struct pci_dev *dev)
1713 {
1714 quirk_d3hot_delay(dev, 20);
1715 }
1716 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x15e0, quirk_ryzen_xhci_d3hot);
1717 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x15e1, quirk_ryzen_xhci_d3hot);
1718
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org