[PATCH v4 00/21] Add perf support to the rockchip-dfi driver

Vincent Legoll vincent.legoll at gmail.com
Fri May 5 09:38:10 PDT 2023


Hello,

On Fri, May 5, 2023 at 11:41 AM Sascha Hauer <s.hauer at pengutronix.de> wrote:
> This is v4 of the patches adding DDR perf support to the rockchip-dfi
> driver.

I tested this series on a Pine64 QuartzPro64 dev board.

I applied the series on top of my branch, which is based on Collabora's
rockchip-3588 plus some QP64 DTS patches, and your WIP patch to
enable the series in the rk3588s.dtsi.

Looks like this is working properly:

# perf list | grep rockchip_ddr
  rockchip_ddr/bytes/                                [Kernel PMU event]
  rockchip_ddr/cycles/                               [Kernel PMU event]
  rockchip_ddr/read-bytes/                           [Kernel PMU event]
  rockchip_ddr/write-bytes/                          [Kernel PMU event]

# and while doing nothing...
# perf stat -a -e
rockchip_ddr/cycles/,rockchip_ddr/read-bytes/,rockchip_ddr/write-bytes/,rockchip_ddr/bytes/
sleep 1

 Performance counter stats for 'system wide':

        1058497566      rockchip_ddr/cycles/
              9.01 MB   rockchip_ddr/read-bytes/
              0.66 MB   rockchip_ddr/write-bytes/
              9.65 MB   rockchip_ddr/bytes/

       1.002460137 seconds time elapsed

# then with a background memory (ab-)user...
# memtester 4G > /dev/null 2>&1 &
# perf stat -a -e
rockchip_ddr/cycles/,rockchip_ddr/read-bytes/,rockchip_ddr/write-bytes/,rockchip_ddr/bytes/
sleep 10

 Performance counter stats for 'system wide':

       10561937833      rockchip_ddr/cycles/
          59192.90 MB   rockchip_ddr/read-bytes/
          29104.02 MB   rockchip_ddr/write-bytes/
          88296.92 MB   rockchip_ddr/bytes/

      10.001867723 seconds time elapsed

You can add my T-B, for the whole series:

Tested-by: Vincent Legoll <vincent.legoll at gmail.com>

Thanks for your work
Regards

--
Vincent Legoll



More information about the linux-arm-kernel mailing list