# git rev-parse -q --verify b87b9cf4935325c98522823caeddd333022a1c62^{commit} b87b9cf4935325c98522823caeddd333022a1c62 already have revision, skipping fetch # git checkout -q -f -B kisskb b87b9cf4935325c98522823caeddd333022a1c62 # git clean -qxdf # < git log -1 # commit b87b9cf4935325c98522823caeddd333022a1c62 # Author: Sam Bobroff # Date: Mon Jul 30 11:59:14 2018 +1000 # # powerpc/pseries: fix EEH recovery of some IOV devices # # EEH recovery currently fails on pSeries for some IOV capable PCI # devices, if CONFIG_PCI_IOV is on and the hypervisor doesn't provide # certain device tree properties for the device. (Found on an IOV # capable device using the ipr driver.) # # Recovery fails in pci_enable_resources() at the check on r->parent, # because r->flags is set and r->parent is not. This state is due to # sriov_init() setting the start, end and flags members of the IOV BARs # but the parent not being set later in # pseries_pci_fixup_iov_resources(), because the # "ibm,open-sriov-vf-bar-info" property is missing. # # Correct this by zeroing the resource flags for IOV BARs when they # can't be configured (this is the same method used by sriov_init() and # __pci_read_base()). # # VFs cleared this way can't be enabled later, because that requires # another device tree property, "ibm,number-of-configurable-vfs" as well # as support for the RTAS function "ibm_map_pes". These are all part of # hypervisor support for IOV and it seems unlikely that a hypervisor # would ever partially, but not fully, support it. (None are currently # provided by QEMU/KVM.) # # Signed-off-by: Sam Bobroff # Reviewed-by: Bryant G. Ly # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 b87b9cf4935325c98522823caeddd333022a1c62 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/mpe-quick_mpc512x_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc512x_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/mpe-quick_mpc512x_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2497:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1819:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:339:21: note: 'pdeo' was declared here INFO: Uncompressed kernel (size 0x5cd14c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-4.18.0-rc3-gb87b9cf Created: Thu Aug 2 00:51:15 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2952781 Bytes = 2883.58 kB = 2.82 MB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/mpe-quick_mpc512x_defconfig_powerpc # Build took: 0:00:37.616599