aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h
diff options
context:
space:
mode:
authorLijo Lazar <lijo.lazar@amd.com>2025-07-24 13:05:12 +0530
committerAlex Deucher <alexander.deucher@amd.com>2025-08-06 14:22:03 -0400
commit892bac995bab7379aeca607a5dd592ecc7d98021 (patch)
treeac5c05fc42dbc6f4e2bd56d679a19196319d7217 /drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h
parentdrm/amdgpu/vcn: Fix double-free of vcn dump buffer (diff)
downloadlinux-892bac995bab7379aeca607a5dd592ecc7d98021.tar.gz
linux-892bac995bab7379aeca607a5dd592ecc7d98021.zip
drm/amdgpu: Prevent hardware access in dpc state
Don't allow hardware access while in dpc state. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Ce Sun <cesun102@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h
index 3a806953338f..2f92b3be40f5 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h
@@ -164,6 +164,7 @@ static inline void amdgpu_reset_set_dpc_status(struct amdgpu_device *adev,
bool status)
{
adev->pcie_reset_ctx.occurs_dpc = status;
+ adev->no_hw_access = status;
}
static inline bool amdgpu_reset_in_dpc(struct amdgpu_device *adev)