aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2016-11-29 23:02:12 +0000
committerAlex Deucher <[email protected]>2017-03-30 03:53:37 +0000
commit7ccf5aa8ba8241cba0f6a894ec1e68a2794cef6f (patch)
tree4a88927965fe6c3c54a98938f1342eedf7af9ac0 /drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h
parentdrm/amdgpu: switch ih handling to two levels (v3) (diff)
downloadkernel-7ccf5aa8ba8241cba0f6a894ec1e68a2794cef6f.tar.gz
kernel-7ccf5aa8ba8241cba0f6a894ec1e68a2794cef6f.zip
drm/amdgpu/ih: store the full context id
The contextID field (formerly known as src_data) of the IH vector stores client specific information about an interrupt. It was expanded from 32 bits to 128 on newer asics. Expand the src_id field to handle this. Reviewed-by: Harry Wentland <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h
index d77c63940a3c..584136e579a3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h
@@ -50,10 +50,12 @@ struct amdgpu_ih_ring {
dma_addr_t rb_dma_addr; /* only used when use_bus_addr = true */
};
+#define AMDGPU_IH_SRC_DATA_MAX_SIZE_DW 4
+
struct amdgpu_iv_entry {
unsigned client_id;
unsigned src_id;
- unsigned src_data;
+ unsigned src_data[AMDGPU_IH_SRC_DATA_MAX_SIZE_DW];
unsigned ring_id;
unsigned vm_id;
unsigned vm_id_src;