]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcdc0e09e059112a4e42370d6ed41d8a79dde4728
treeec30b8e9ad88e7c3188559380150d560303a9875
parentdbaae4380fb90059f17de4ec368d2246c566fd42
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]