brintos

brintos / linux-shallow public Read only

0
0
Text · 2.4 KiB · 8e71be1 Raw
71 lines · plain
1.. SPDX-License-Identifier: GPL-2.02 3===========================================================4Amlogic SoC DDR Bandwidth Performance Monitoring Unit (PMU)5===========================================================6 7The Amlogic Meson G12 SoC contains a bandwidth monitor inside DRAM controller.8The monitor includes 4 channels. Each channel can count the request accessing9DRAM. The channel can count up to 3 AXI port simultaneously. It can be helpful10to show if the performance bottleneck is on DDR bandwidth.11 12Currently, this driver supports the following 5 perf events:13 14+ meson_ddr_bw/total_rw_bytes/15+ meson_ddr_bw/chan_1_rw_bytes/16+ meson_ddr_bw/chan_2_rw_bytes/17+ meson_ddr_bw/chan_3_rw_bytes/18+ meson_ddr_bw/chan_4_rw_bytes/19 20meson_ddr_bw/chan_{1,2,3,4}_rw_bytes/ events are channel-specific events.21Each channel support filtering, which can let the channel to monitor22individual IP module in SoC.23 24Below are DDR access request event filter keywords:25 26+ arm             - from CPU27+ vpu_read1       - from OSD + VPP read28+ gpu             - from 3D GPU29+ pcie            - from PCIe controller30+ hdcp            - from HDCP controller31+ hevc_front      - from HEVC codec front end32+ usb3_0          - from USB3.0 controller33+ hevc_back       - from HEVC codec back end34+ h265enc         - from HEVC encoder35+ vpu_read2       - from DI read36+ vpu_write1      - from VDIN write37+ vpu_write2      - from di write38+ vdec            - from legacy codec video decoder39+ hcodec          - from H264 encoder40+ ge2d            - from ge2d41+ spicc1          - from SPI controller 142+ usb0            - from USB2.0 controller 043+ dma             - from system DMA controller 144+ arb0            - from arb045+ sd_emmc_b       - from SD eMMC b controller46+ usb1            - from USB2.0 controller 147+ audio           - from Audio module48+ sd_emmc_c       - from SD eMMC c controller49+ spicc2          - from SPI controller 250+ ethernet        - from Ethernet controller51 52 53Examples:54 55  + Show the total DDR bandwidth per seconds:56 57    .. code-block:: bash58 59       perf stat -a -e meson_ddr_bw/total_rw_bytes/ -I 1000 sleep 1060 61 62  + Show individual DDR bandwidth from CPU and GPU respectively, as well as63    sum of them:64 65    .. code-block:: bash66 67       perf stat -a -e meson_ddr_bw/chan_1_rw_bytes,arm=1/ -I 1000 sleep 1068       perf stat -a -e meson_ddr_bw/chan_2_rw_bytes,gpu=1/ -I 1000 sleep 1069       perf stat -a -e meson_ddr_bw/chan_3_rw_bytes,arm=1,gpu=1/ -I 1000 sleep 1070 71