# git rev-parse -q --verify 7fd5004bbade1bf77fbb7e73b2b5a9eda1e892ea^{commit} 7fd5004bbade1bf77fbb7e73b2b5a9eda1e892ea already have revision, skipping fetch # git checkout -q -f -B kisskb 7fd5004bbade1bf77fbb7e73b2b5a9eda1e892ea # git clean -qxdf # < git log -1 # commit 7fd5004bbade1bf77fbb7e73b2b5a9eda1e892ea # Author: Christophe Leroy # Date: Sat Jan 11 19:20:49 2020 +0000 # # powerpc/vdso: Switch VDSO to generic C implementation. # # For VDSO32 on PPC64, we create a fake 32 bits config, on the same # principle as MIPS architecture, in order to get the correct parts of # the different asm header files. # # With the C VDSO, the performance is slightly lower, but it is worth # it as it will ease maintenance and evolution, and also brings clocks # that are not supported with the ASM VDSO. # # On an 8xx at 132 MHz, vdsotest with the ASM VDSO: # gettimeofday: vdso: 828 nsec/call # clock-getres-realtime-coarse: vdso: 391 nsec/call # clock-gettime-realtime-coarse: vdso: 614 nsec/call # clock-getres-realtime: vdso: 460 nsec/call # clock-gettime-realtime: vdso: 876 nsec/call # clock-getres-monotonic-coarse: vdso: 399 nsec/call # clock-gettime-monotonic-coarse: vdso: 691 nsec/call # clock-getres-monotonic: vdso: 460 nsec/call # clock-gettime-monotonic: vdso: 1026 nsec/call # # On an 8xx at 132 MHz, vdsotest with the C VDSO: # gettimeofday: vdso: 955 nsec/call # clock-getres-realtime-coarse: vdso: 545 nsec/call # clock-gettime-realtime-coarse: vdso: 592 nsec/call # clock-getres-realtime: vdso: 545 nsec/call # clock-gettime-realtime: vdso: 941 nsec/call # clock-getres-monotonic-coarse: vdso: 545 nsec/call # clock-gettime-monotonic-coarse: vdso: 591 nsec/call # clock-getres-monotonic: vdso: 545 nsec/call # clock-gettime-monotonic: vdso: 940 nsec/call # # It is even better for gettime with monotonic clocks. # # Unsupported clocks with ASM VDSO: # clock-gettime-boottime: vdso: 3851 nsec/call # clock-gettime-tai: vdso: 3852 nsec/call # clock-gettime-monotonic-raw: vdso: 3396 nsec/call # # Same clocks with C VDSO: # clock-gettime-tai: vdso: 941 nsec/call # clock-gettime-monotonic-raw: vdso: 1001 nsec/call # clock-gettime-monotonic-coarse: vdso: 591 nsec/call # # On an 8321E at 333 MHz, vdsotest with the ASM VDSO: # gettimeofday: vdso: 220 nsec/call # clock-getres-realtime-coarse: vdso: 102 nsec/call # clock-gettime-realtime-coarse: vdso: 178 nsec/call # clock-getres-realtime: vdso: 129 nsec/call # clock-gettime-realtime: vdso: 235 nsec/call # clock-getres-monotonic-coarse: vdso: 105 nsec/call # clock-gettime-monotonic-coarse: vdso: 208 nsec/call # clock-getres-monotonic: vdso: 129 nsec/call # clock-gettime-monotonic: vdso: 274 nsec/call # # On an 8321E at 333 MHz, vdsotest with the C VDSO: # gettimeofday: vdso: 272 nsec/call # clock-getres-realtime-coarse: vdso: 160 nsec/call # clock-gettime-realtime-coarse: vdso: 184 nsec/call # clock-getres-realtime: vdso: 166 nsec/call # clock-gettime-realtime: vdso: 281 nsec/call # clock-getres-monotonic-coarse: vdso: 160 nsec/call # clock-gettime-monotonic-coarse: vdso: 184 nsec/call # clock-getres-monotonic: vdso: 169 nsec/call # clock-gettime-monotonic: vdso: 275 nsec/call # # Signed-off-by: Christophe Leroy # --- # v7: # - Split out preparatory changes in a new preceding patch # - Added -fasynchronous-unwind-tables to CC flags. # # v6: # - Added missing prototypes in asm/vdso/gettimeofday.h for __c_kernel_ functions. # - Using STACK_FRAME_OVERHEAD instead of INT_FRAME_SIZE # - Rebased on powerpc/merge as of 7 Apr 2020 # - Fixed build failure with gcc 9 # - Added a patch to create asm/vdso/processor.h and more cpu_relax() in it # < /opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux-gcc --version # < /opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux-ld --version # < git log --format=%s --max-count=1 7fd5004bbade1bf77fbb7e73b2b5a9eda1e892ea # < make -s -j 24 ARCH=arm64 O=/kisskb/build/chleroy_arm64-defconfig_arm64-gcc5.4 CROSS_COMPILE=/opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux- defconfig # < make -s -j 24 ARCH=arm64 O=/kisskb/build/chleroy_arm64-defconfig_arm64-gcc5.4 CROSS_COMPILE=/opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux- help # make -s -j 24 ARCH=arm64 O=/kisskb/build/chleroy_arm64-defconfig_arm64-gcc5.4 CROSS_COMPILE=/opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux- olddefconfig # make -s -j 24 ARCH=arm64 O=/kisskb/build/chleroy_arm64-defconfig_arm64-gcc5.4 CROSS_COMPILE=/opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux- arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum arch/arm64/Makefile:35: LSE atomics not supported by binutils /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but its #address-cells (1) differs from / (2) /kisskb/src/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but its #size-cells (1) differs from / (2) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but its #address-cells (1) differs from / (2) /kisskb/src/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but its #size-cells (1) differs from / (2) /kisskb/src/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but its #address-cells (1) differs from / (2) /kisskb/src/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but its #size-cells (1) differs from / (2) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/scripts/dtc/include-prefixes/arm/bcm2835-rpi.dtsi:18.4-15: Warning (dma_ranges_format): /soc/firmware:dma-ranges: empty "dma-ranges" property but its #address-cells (2) differs from /soc (1) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/scripts/dtc/include-prefixes/arm/bcm2835-rpi.dtsi:18.4-15: Warning (dma_ranges_format): /soc/firmware:dma-ranges: empty "dma-ranges" property but its #address-cells (2) differs from /soc (1) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/scripts/dtc/include-prefixes/arm/bcm2835-rpi.dtsi:18.4-15: Warning (dma_ranges_format): /soc/firmware:dma-ranges: empty "dma-ranges" property but its #address-cells (2) differs from /soc (1) /kisskb/src/arch/arm64/boot/dts/qcom/ipq6018.dtsi:127.3-14: Warning (dma_ranges_format): /soc:dma-ranges: empty "dma-ranges" property but its #address-cells (1) differs from / (2) /kisskb/src/arch/arm64/boot/dts/qcom/ipq6018.dtsi:127.3-14: Warning (dma_ranges_format): /soc:dma-ranges: empty "dma-ranges" property but its #size-cells (1) differs from / (2) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/scripts/dtc/include-prefixes/arm/bcm2835-rpi.dtsi:18.4-15: Warning (dma_ranges_format): /soc/firmware:dma-ranges: empty "dma-ranges" property but its #address-cells (2) differs from /soc (1) /kisskb/src/scripts/dtc/include-prefixes/arm/bcm2835-rpi.dtsi:18.4-15: Warning (dma_ranges_format): /soc/firmware:dma-ranges: empty "dma-ranges" property but its #address-cells (2) differs from /soc (1) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:1086.4-52: Warning (dma_ranges_format): /soc/dram-controller@1c62000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) /kisskb/src/kernel/futex.c: In function 'do_futex': /kisskb/src/kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg; ^ /kisskb/src/kernel/futex.c:1652:6: note: 'oldval' was declared here int oldval, ret; ^ In file included from /kisskb/src/include/linux/rwsem.h:16:0, from /kisskb/src/include/linux/notifier.h:15, from /kisskb/src/include/linux/clk.h:14, from /kisskb/src/drivers/tty/serial/sh-sci.c:20: /kisskb/src/drivers/tty/serial/sh-sci.c: In function 'sci_dma_rx_submit': /kisskb/src/include/linux/spinlock.h:289:3: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] _raw_spin_unlock_irqrestore(lock, flags); \ ^ /kisskb/src/drivers/tty/serial/sh-sci.c:1348:16: note: 'flags' was declared here unsigned long flags; ^ /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c: In function 'sh_mobile_i2c_isr': /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c:396:26: warning: 'data' may be used uninitialized in this function [-Wmaybe-uninitialized] pd->msg->buf[real_pos] = data; ^ /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c:369:16: note: 'data' was declared here unsigned char data; ^ Completed OK # rm -rf /kisskb/build/chleroy_arm64-defconfig_arm64-gcc5.4 # Build took: 0:06:26.972364