summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h
diff options
context:
space:
mode:
authorLe Ma <le.ma@amd.com>2022-05-17 22:20:10 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-06-09 09:40:25 -0400
commit98a54e88e87f7291d4bbc6ec646c498f64ae042f (patch)
tree10a7f745657401b9e996345d6e931534848bcbc2 /drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h
parent3566938b3491bb3aad701b487130f3efc363e2dc (diff)
downloadlinux-98a54e88e87f7291d4bbc6ec646c498f64ae042f.tar.gz
linux-98a54e88e87f7291d4bbc6ec646c498f64ae042f.tar.bz2
linux-98a54e88e87f7291d4bbc6ec646c498f64ae042f.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h
index c686ff4bcc39..6a636c34b717 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h
@@ -95,6 +95,9 @@ struct amdgpu_nbio_funcs {
void (*apply_l1_link_width_reconfig_wa)(struct amdgpu_device *adev);
void (*clear_doorbell_interrupt)(struct amdgpu_device *adev);
u32 (*get_rom_offset)(struct amdgpu_device *adev);
+ u32 (*get_compute_partition_mode)(struct amdgpu_device *adev);
+ void (*set_compute_partition_mode)(struct amdgpu_device *adev,
+ enum amdgpu_gfx_partition mode);
};
struct amdgpu_nbio {