# git rev-parse -q --verify 892db32b07b340b60492e8e543aedc039639eef1^{commit} 892db32b07b340b60492e8e543aedc039639eef1 already have revision, skipping fetch # git checkout -q -f -B kisskb 892db32b07b340b60492e8e543aedc039639eef1 # git clean -qxdf # < git log -1 # commit 892db32b07b340b60492e8e543aedc039639eef1 # Author: David Hildenbrand # Date: Mon Dec 16 11:30:58 2019 +0100 # # powerpc/pseries/cmm: fix managed page counts when migrating pages between zones # # Commit 63341ab03706 (virtio-balloon: fix managed page counts when migrating # pages between zones) fixed a long existing BUG in the virtio-balloon # driver when pages would get migrated between zones. I did not try to # reproduce on powerpc, but looking at the code, the same should apply to # powerpc/cmm ever since it started using the balloon compaction # infrastructure (luckily just recently). # # In case we have to migrate a ballon page to a newpage of another zone, the # managed page count of both zones is wrong. Paired with memory offlining # (which will adjust the managed page count), we can trigger kernel crashes # and all kinds of different symptoms. # # Fix it by properly adjusting the managed page count when migrating if # the zone changed. # # We'll temporarily modify the totalram page count. If this ever becomes a # problem, we can fine tune by providing helpers that don't touch # the totalram pages (e.g., adjust_zone_managed_page_count()). # # Fixes: fe030c9b85e6 ("powerpc/pseries/cmm: Implement balloon compaction") # Signed-off-by: David Hildenbrand # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20191216103058.4958-1-david@redhat.com # < /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 892db32b07b340b60492e8e543aedc039639eef1 # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_85xx_mpc85xx_cds_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- 85xx/mpc85xx_cds_defconfig # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_85xx_mpc85xx_cds_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/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0x532f68) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x532f68) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x532f68) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x52286c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.5.0-rc1-g892db32b07b3 Created: Mon Dec 16 23:45:12 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2690168 Bytes = 2627.12 KiB = 2.57 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.5.0-rc1-g892db32b07b3 Created: Mon Dec 16 23:45:12 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2720470 Bytes = 2656.71 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006002a4 Image Name: Linux-5.5.0-rc1-g892db32b07b3 Created: Mon Dec 16 23:45:12 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2719364 Bytes = 2655.63 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006002a4 Image Name: Linux-5.5.0-rc1-g892db32b07b3 Created: Mon Dec 16 23:45:12 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2719366 Bytes = 2655.63 KiB = 2.59 MiB Load Address: 00600000 Entry Point: 006002a4 Completed OK # rm -rf /kisskb/build/powerpc-fixes_85xx_mpc85xx_cds_defconfig_powerpc-gcc5 # Build took: 0:00:50.809815