drm/amdgpu: add debugfs interface for RAP test
authorWenhui Sheng <Wenhui.Sheng@amd.com>
Tue, 11 Aug 2020 03:02:03 +0000 (11:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Aug 2020 20:22:40 +0000 (16:22 -0400)
commita4322e1881bed80ddb904482f0b2e948fa7fd47e
tree4ad6305307d8a6aedaca5d957ae6c808cd903614
parent8602692b6f73d2ea0312cccea5416b270d0f7247
drm/amdgpu: add debugfs interface for RAP test

After amdgpu driver loading successfully, we can use
RAP debugfs interface <debugfs_dir>/dri/xxx/rap_test
to trigger RAP test.

Currently only L0 validate test is supported.

v2: refine amdgpu_rap.h

Signed-off-by: Wenhui Sheng <Wenhui.Sheng@amd.com>
Reviewed-by: Guchun Chen <Guchun.Chen@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_rap.h [new file with mode: 0644]