drm/amdgpu: Add debugfs TA load/unload/invoke support
authorCandice Li <candice.li@amd.com>
Sun, 17 Apr 2022 10:50:27 +0000 (18:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Apr 2022 19:58:22 +0000 (15:58 -0400)
commite50d9ba0d2cd0cb4dd18e2a41a83fe21d3b046b8
treeec30b8e9ad88e7c3188559380150d560303a9875
parentfe96e5636acf4243834bc1686f6ee8264b7a68dd
drm/amdgpu: Add debugfs TA load/unload/invoke support

v1:
Add debugfs support to load/unload/invoke TA in runtime.

v2:
1. Update some variables to static.
2. Use PAGE_ALIGN to calculate shared buf size directly.
3. Remove fp check.
4. Update debugfs from read to write.

Signed-off-by: John Clements <john.clements@amd.com>
Signed-off-by: Candice Li <candice.li@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@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_psp_ta.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.h [new file with mode: 0644]