aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h
diff options
context:
space:
mode:
authorLijo Lazar <[email protected]>2024-09-19 13:21:07 +0000
committerAlex Deucher <[email protected]>2024-10-07 18:32:23 +0000
commitbbc160084edad8db569f6af0291e0ff9a8f41c0c (patch)
treedecd6ff70497a69cb30e43b930dc2af1b01d3199 /drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h
parentdrm/amdgpu/gfx10: Apply Isolation Enforcement to GFX & Compute rings (diff)
downloadkernel-bbc160084edad8db569f6af0291e0ff9a8f41c0c.tar.gz
kernel-bbc160084edad8db569f6af0291e0ff9a8f41c0c.zip
drm/amdgpu: Add gmc interface to request NPS mode
Add a common interface in GMC to request NPS mode through PSP. Also add a variable in hive and gmc control to track the last requested mode. Signed-off-by: Rajneesh Bhardwaj <[email protected]> Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Feifei Xu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h
index d652727ca565..67abadb4f298 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h
@@ -46,6 +46,7 @@ struct amdgpu_hive_info {
atomic_t ras_recovery;
struct ras_event_manager event_mgr;
struct work_struct reset_on_init_work;
+ atomic_t requested_nps_mode;
};
struct amdgpu_pcs_ras_field {