summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-04-10 10:15:26 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-05-15 13:43:11 -0500
commit5eeae247d227c448d4db8f60ce184ddb0e0feca0 (patch)
tree8e16eeaef325e7bc03ab2a115967e140efae78bf /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent5452cf44d691edada697108f883c78edb40dc281 (diff)
downloadop-kernel-dev-5eeae247d227c448d4db8f60ce184ddb0e0feca0.zip
op-kernel-dev-5eeae247d227c448d4db8f60ce184ddb0e0feca0.tar.gz
drm/amdgpu/gfx9: cache DB_DEBUG2 and make it available to userspace
Userspace needs to query this value to work around a hw bug in certain cases. Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 7e5defb..7eb0e48 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -867,6 +867,8 @@ struct amdgpu_gfx_config {
/* gfx configure feature */
uint32_t double_offchip_lds_buf;
+ /* cached value of DB_DEBUG2 */
+ uint32_t db_debug2;
};
struct amdgpu_cu_info {
OpenPOWER on IntegriCloud