drm/amdgpu: add sysfs node for compute partition mode
authorLe Ma <le.ma@amd.com>
Tue, 17 May 2022 14:20:10 +0000 (22:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:40:25 +0000 (09:40 -0400)
commit98a54e88e87f7291d4bbc6ec646c498f64ae042f
tree10a7f745657401b9e996345d6e931534848bcbc2
parent3566938b3491bb3aad701b487130f3efc363e2dc
drm/amdgpu: add sysfs node for compute partition mode

Add current/available compute partitin mode sysfs node.

v2: make the sysfs node as IP independent one in amdgpu_gfx.c

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
drivers/gpu/drm/amd/amdgpu/nbio_v7_9.c