# git rev-parse -q --verify 17adceb5b3e37c894ee5f36814b4e1a3fb603e0d^{commit} 17adceb5b3e37c894ee5f36814b4e1a3fb603e0d already have revision, skipping fetch # git checkout -q -f -B kisskb 17adceb5b3e37c894ee5f36814b4e1a3fb603e0d # git clean -qxdf # < git log -1 # commit 17adceb5b3e37c894ee5f36814b4e1a3fb603e0d # Author: Christophe Lombard # Date: Tue Aug 14 14:45:15 2018 +0200 # # ocxl: Fix access to the AFU Descriptor Data # # The AFU Information DVSEC capability is a means to extract common, # general information about all of the AFUs associated with a Function # independent of the specific functionality that each AFU provides. # Write in the AFU Index field allows to access to the descriptor data # for each AFU. # # With the current code, we are not able to access to these specific data # when the index >= 1 because we are writing to the wrong location. # All requests to the data of each AFU are pointing to those of the AFU 0, # which could have impacts when using a card with more than one AFU per # function. # # This patch fixes the access to the AFU Descriptor Data indexed by the # AFU Info Index field. # # Fixes: 5ef3166e8a32 ("ocxl: Driver code for 'generic' opencapi devices") # Cc: stable # 4.16 # Signed-off-by: Christophe Lombard # # Acked-by: Frederic Barrat # Acked-by: Andrew Donnellan # 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 17adceb5b3e37c894ee5f36814b4e1a3fb603e0d # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc5200_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc5200_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc5200_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/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/drivers/dma-buf/reservation.c: In function 'reservation_object_add_shared_fence': /kisskb/src/drivers/dma-buf/reservation.c:225:6: warning: 'k' may be used uninitialized in this function [-Wuninitialized] /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 0x6d01d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6d01d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6d01d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6bfb2c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-4.18.0-rc3-g17adceb Created: Wed Aug 22 00:03:33 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3419303 Bytes = 3339.16 kB = 3.26 MB Load Address: 00700000 Entry Point: 00700248 Image Name: Linux-4.18.0-rc3-g17adceb Created: Wed Aug 22 00:03:33 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3395877 Bytes = 3316.29 kB = 3.24 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.18.0-rc3-g17adceb Created: Wed Aug 22 00:03:33 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3419996 Bytes = 3339.84 kB = 3.26 MB Load Address: 00700000 Entry Point: 00700248 Image Name: Linux-4.18.0-rc3-g17adceb Created: Wed Aug 22 00:03:33 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3420051 Bytes = 3339.89 kB = 3.26 MB Load Address: 00700000 Entry Point: 00700248 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc5200_defconfig_powerpc # Build took: 0:00:29.046429