# git rev-parse -q --verify c790c3d2b0ec5979d83451d0688d1cd07e23d8ba^{commit} c790c3d2b0ec5979d83451d0688d1cd07e23d8ba already have revision, skipping fetch # git checkout -q -f -B kisskb c790c3d2b0ec5979d83451d0688d1cd07e23d8ba # git clean -qxdf # < git log -1 # commit c790c3d2b0ec5979d83451d0688d1cd07e23d8ba # Author: Michael Ellerman # Date: Mon May 20 20:55:20 2019 +1000 # # selftests/powerpc: Add a test of spectre_v2 mitigations # # This test uses the PMU to count branch prediction hits/misses for a # known loop, and compare the result to the reported spectre v2 # mitigation. # # This gives us a way of sanity checking that the reported mitigation is # actually in effect. # # Sample output for some cases, eg: # # Power9: # sysfs reports: 'Vulnerable' # PM_BR_PRED_CCACHE: result 368 running/enabled 5792777124 # PM_BR_MPRED_CCACHE: result 319 running/enabled 5792775546 # PM_BR_PRED_PCACHE: result 2147483281 running/enabled 5792773128 # PM_BR_MPRED_PCACHE: result 213604201 running/enabled 5792771640 # Miss percent 9 % # OK - Measured branch prediction rates match reported spectre v2 mitigation. # # sysfs reports: 'Mitigation: Indirect branch serialisation (kernel only)' # PM_BR_PRED_CCACHE: result 895 running/enabled 5780320920 # PM_BR_MPRED_CCACHE: result 822 running/enabled 5780312414 # PM_BR_PRED_PCACHE: result 2147482754 running/enabled 5780308836 # PM_BR_MPRED_PCACHE: result 213639731 running/enabled 5780307912 # Miss percent 9 % # OK - Measured branch prediction rates match reported spectre v2 mitigation. # # sysfs reports: 'Mitigation: Indirect branch cache disabled' # PM_BR_PRED_CCACHE: result 2147483649 running/enabled 20540186160 # PM_BR_MPRED_CCACHE: result 2147483649 running/enabled 20540180056 # PM_BR_PRED_PCACHE: result 0 running/enabled 20540176090 # PM_BR_MPRED_PCACHE: result 0 running/enabled 20540174182 # Miss percent 100 % # OK - Measured branch prediction rates match reported spectre v2 mitigation. # # Power8: # sysfs reports: 'Vulnerable' # PM_BR_PRED_CCACHE: result 2147483649 running/enabled 3505888142 # PM_BR_MPRED_CCACHE: result 9 running/enabled 3505882788 # Miss percent 0 % # OK - Measured branch prediction rates match reported spectre v2 mitigation. # # sysfs reports: 'Mitigation: Indirect branch cache disabled' # PM_BR_PRED_CCACHE: result 2147483649 running/enabled 16931421988 # PM_BR_MPRED_CCACHE: result 2147483649 running/enabled 16931416478 # Miss percent 100 % # OK - Measured branch prediction rates match reported spectre v2 mitigation. # success: spectre_v2 # # Signed-off-by: Michael Ellerman # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20190520105520.22274-1-mpe@ellerman.id.au # < /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 c790c3d2b0ec5979d83451d0688d1cd07e23d8ba # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next_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 24 ARCH=powerpc O=/kisskb/build/powerpc-next_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/virtex440-ml510.dts:335.37-439.6: Warning (pci_bridge): /plb@0/plbv46-pci@85e00000: node name is not "pci" or "pcie" arch/powerpc/boot/dts/virtex440-ml510.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /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 0x55fc50) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x55fc50) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x55fc50) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x55fc50) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x55fc50) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x55fc50) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x55fc50) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x55fc50) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x55fc50) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f538) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x55fc50) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x55fc50) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 22:04:29 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2742674 Bytes = 2678.39 KiB = 2.62 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 22:04:29 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2774508 Bytes = 2709.48 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 006000c4 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 22:04:29 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2774112 Bytes = 2709.09 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 22:04:29 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2774315 Bytes = 2709.29 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 006001b8 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 22:04:29 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2774564 Bytes = 2709.54 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 22:04:29 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2774553 Bytes = 2709.52 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 0060152c Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 22:04:29 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2774427 Bytes = 2709.40 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 22:04:29 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2774391 Bytes = 2709.37 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 00601544 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 22:04:29 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2774598 Bytes = 2709.57 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 00601514 Image Name: Linux-5.4.0-rc2-gc790c3d2b0ec Created: Wed Oct 30 22:04:29 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2774346 Bytes = 2709.32 KiB = 2.65 MiB Load Address: 00600000 Entry Point: 00601524 Completed OK # rm -rf /kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc5 # Build took: 0:01:03.541709