# 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/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux-gcc --version # < git log --format=%s --max-count=1 b87b9cf4935325c98522823caeddd333022a1c62 # < make -s -j 48 ARCH=arm64 O=/kisskb/build/mpe-quick_arm64-allnoconfig_arm64-8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- allnoconfig # make -s -j 48 ARCH=arm64 O=/kisskb/build/mpe-quick_arm64-allnoconfig_arm64-8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- :1335:2: warning: #warning syscall rseq not implemented [-Wcpp] /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. In function 'fill_kobj_path', inlined from 'kobject_get_path' at /kisskb/src/lib/kobject.c:155:2: /kisskb/src/lib/kobject.c:128:3: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(path + length, kobject_name(parent), cur); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/lib/kobject.c: In function 'kobject_get_path': /kisskb/src/lib/kobject.c:125:13: note: length computed here int cur = strlen(kobject_name(parent)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Completed OK # rm -rf /kisskb/build/mpe-quick_arm64-allnoconfig_arm64-8 # Build took: 0:00:17.512342