drm: add meson drm debugfs node [1/1]
authorAo Xu <ao.xu@amlogic.com>
Tue, 13 Aug 2019 03:17:40 +0000 (11:17 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 22 Aug 2019 09:18:31 +0000 (02:18 -0700)
commitecb30a523105c4e17c1e4b7b7f96cabccda9de77
treef29dd9a412bf58871b1e2752a3d812485e404f9b
parentebe37655606e87817f55d34ed4b8f6e3b215399c
drm: add meson drm debugfs node [1/1]

PD#SWPL-12289

Problem:
drm driver has no debug sysfs file

Solution:
add follow sysfs node
1. dump the osd register
/sys/kernel/debug/dri/%minor%/vpu/reg_dump
2. dump the gem buffer image
/sys/kernel/debug/dri/%minor%/vpu/dump
3. set the gem buffer image store path
/sys/kernel/debug/dri/%minor%/vpu/imgpath
4. set 1 to disable the osd plane
/sys/kernel/debug/dri/%minor%/vpu/blank

Verify:
g12a-u200

Change-Id: I10746d65b09d3b530dc22720b8cee669fa120dde
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
17 files changed:
MAINTAINERS
drivers/amlogic/drm/Makefile
drivers/amlogic/drm/meson_crtc.c
drivers/amlogic/drm/meson_crtc.h
drivers/amlogic/drm/meson_debugfs.c [new file with mode: 0644]
drivers/amlogic/drm/meson_drv.c
drivers/amlogic/drm/meson_drv.h
drivers/amlogic/drm/meson_plane.c
drivers/amlogic/drm/meson_vpu_pipeline.c
drivers/amlogic/drm/meson_vpu_pipeline.h
drivers/amlogic/drm/meson_vpu_util.c
drivers/amlogic/drm/meson_vpu_util.h
drivers/amlogic/drm/vpu-hw/meson_osd_afbc.c
drivers/amlogic/drm/vpu-hw/meson_osd_scaler.c
drivers/amlogic/drm/vpu-hw/meson_vpu_osd_mif.c
drivers/amlogic/drm/vpu-hw/meson_vpu_osdblend.c
drivers/amlogic/drm/vpu-hw/meson_vpu_postblend.c