# 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-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 17adceb5b3e37c894ee5f36814b4e1a3fb603e0d # < make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc32_allmodconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc32_allmodconfig # make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc32_allmodconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. In file included from /kisskb/src/arch/powerpc/include/asm/book3s/pgtable.h:8:0, from /kisskb/src/arch/powerpc/include/asm/pgtable.h:18, from /kisskb/src/include/linux/hugetlb.h:12, from /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c:19: /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c: In function 'populate_markers': /kisskb/src/arch/powerpc/include/asm/book3s/32/pgtable.h:53:19: error: 'PKMAP_BASE' undeclared (first use in this function) #define KVIRT_TOP PKMAP_BASE ^ /kisskb/src/arch/powerpc/include/asm/book3s/32/pgtable.h:64:23: note: in expansion of macro 'KVIRT_TOP' #define IOREMAP_TOP ((KVIRT_TOP - CONFIG_CONSISTENT_SIZE) & PAGE_MASK) ^ /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c:456:39: note: in expansion of macro 'IOREMAP_TOP' address_markers[i++].start_address = IOREMAP_TOP; ^ /kisskb/src/arch/powerpc/include/asm/book3s/32/pgtable.h:53:19: note: each undeclared identifier is reported only once for each function it appears in #define KVIRT_TOP PKMAP_BASE ^ /kisskb/src/arch/powerpc/include/asm/book3s/32/pgtable.h:64:23: note: in expansion of macro 'KVIRT_TOP' #define IOREMAP_TOP ((KVIRT_TOP - CONFIG_CONSISTENT_SIZE) & PAGE_MASK) ^ /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c:456:39: note: in expansion of macro 'IOREMAP_TOP' address_markers[i++].start_address = IOREMAP_TOP; ^ /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c:464:39: error: implicit declaration of function 'PKMAP_ADDR' [-Werror=implicit-function-declaration] address_markers[i++].start_address = PKMAP_ADDR(LAST_PKMAP); ^ /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c:464:50: error: 'LAST_PKMAP' undeclared (first use in this function) address_markers[i++].start_address = PKMAP_ADDR(LAST_PKMAP); ^ cc1: some warnings being treated as errors /kisskb/src/scripts/Makefile.build:317: recipe for target 'arch/powerpc/mm/dump_linuxpagetables.o' failed make[2]: *** [arch/powerpc/mm/dump_linuxpagetables.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /kisskb/src/Makefile:1034: recipe for target 'arch/powerpc/mm' failed make[1]: *** [arch/powerpc/mm] Error 2 make[1]: *** Waiting for unfinished jobs.... Makefile:146: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 Command 'make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc32_allmodconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next_ppc32_allmodconfig_powerpc-5.3 # Build took: 0:00:23.762015