# git rev-parse -q --verify 5a3840a470c41ec0b85cd36ca80370330656b163^{commit} 5a3840a470c41ec0b85cd36ca80370330656b163 already have revision, skipping fetch # git checkout -q -f -B kisskb 5a3840a470c41ec0b85cd36ca80370330656b163 # git clean -qxdf # < git log -1 # commit 5a3840a470c41ec0b85cd36ca80370330656b163 # Author: Oliver O'Halloran # Date: Thu Jan 31 12:53:47 2019 +1100 # # powerpc/papr_scm: Use the correct bind address # # When binding an SCM volume to a physical address the hypervisor has the # option to return early with a continue token with the expectation that # the guest will resume the bind operation until it completes. A quirk of # this interface is that the bind address will only be returned by the # first bind h-call and the subsequent calls will return # 0xFFFF_FFFF_FFFF_FFFF for the bind address. # # We currently do not save the address returned by the first h-call. As a # result we will use the junk address as the base of the bound region if # the hypervisor decides to split the bind across multiple h-calls. This # bug was found when testing with very large SCM volumes where the bind # process would take more time than they hypervisor's internal h-call time # limit would allow. This patch fixes the issue by saving the bind address # from the first call. # # Cc: stable@vger.kernel.org # Fixes: b5beae5e224f ("powerpc/pseries: Add driver for PAPR SCM regions") # Signed-off-by: Oliver O'Halloran # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 5a3840a470c41ec0b85cd36ca80370330656b163 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc44x_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc44x_defconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc44x_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/boot/dts/katmai.dts:322.26-361.5: Warning (pci_bridge): /plb/pciex@d00000000: node name is not "pci" or "pcie" /kisskb/src/arch/powerpc/boot/dts/katmai.dts:363.26-402.5: Warning (pci_bridge): /plb/pciex@d20000000: node name is not "pci" or "pcie" /kisskb/src/arch/powerpc/boot/dts/katmai.dts:404.26-443.5: Warning (pci_bridge): /plb/pciex@d40000000: node name is not "pci" or "pcie" arch/powerpc/boot/dts/katmai.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' INFO: Uncompressed kernel (size 0x54f9e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x53f2c8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.0.0-rc1-g5a3840a470c4 Created: Tue Feb 5 23:04:56 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2710876 Bytes = 2647.34 KiB = 2.59 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.0.0-rc1-g5a3840a470c4 Created: Tue Feb 5 23:04:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2742840 Bytes = 2678.55 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 0060152c Image Name: Linux-5.0.0-rc1-g5a3840a470c4 Created: Tue Feb 5 23:04:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2742718 Bytes = 2678.44 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 00601544 Image Name: Linux-5.0.0-rc1-g5a3840a470c4 Created: Tue Feb 5 23:04:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2742714 Bytes = 2678.43 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.0.0-rc1-g5a3840a470c4 Created: Tue Feb 5 23:04:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2742672 Bytes = 2678.39 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 00601524 Image Name: Linux-5.0.0-rc1-g5a3840a470c4 Created: Tue Feb 5 23:04:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2742630 Bytes = 2678.35 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 006001b8 Image Name: Linux-5.0.0-rc1-g5a3840a470c4 Created: Tue Feb 5 23:04:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2742335 Bytes = 2678.06 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.0.0-rc1-g5a3840a470c4 Created: Tue Feb 5 23:04:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2742797 Bytes = 2678.51 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 00601514 Image Name: Linux-5.0.0-rc1-g5a3840a470c4 Created: Tue Feb 5 23:04:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2743303 Bytes = 2679.01 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 006000c4 Image Name: Linux-5.0.0-rc1-g5a3840a470c4 Created: Tue Feb 5 23:04:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2742762 Bytes = 2678.48 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 00601534 Completed OK # rm -rf /kisskb/build/powerpc-fixes_ppc44x_defconfig_powerpc-gcc5 # Build took: 0:00:48.475054