drm/amdgpu: add amdgpu_jpeg_sched_mask debugfs
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Mon, 9 Sep 2024 09:22:39 +0000 (14:52 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 Sep 2024 21:06:17 +0000 (17:06 -0400)
commitf0b19b84d3918e88c27e6e39a7a4bca2b3fb7709
tree2606da11cb89a410c3001725fbf68e98bc18a4e1
parent8b1f72876b1495e3b8e0db9722278fbe86307e2d
drm/amdgpu: add amdgpu_jpeg_sched_mask debugfs

JPEG_4_0_3 has up to 32 jpeg cores and a single mjpeg video decode
will use all available cores on the hardware. This debugfs entry
helps to disable or enable job submission to a cluster of cores or
one specific core in the ip for debugging. The entry is populated
only if there is at least two or more cores in the jpeg ip.

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.h