diff options
author | Jack Xiao <Jack.Xiao@amd.com> | 2020-03-16 17:12:23 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-05-04 10:03:20 -0400 |
commit | c6abbcbc769554bf5661b3fa54b7ef52975d561d (patch) | |
tree | 872ca4f8ef2143fc1e9ff7e71bc6dcc1e0094aee | |
parent | 2bc956ef54415e0f7240ebb6d269c5ec1e12a46d (diff) | |
download | linux-c6abbcbc769554bf5661b3fa54b7ef52975d561d.tar.bz2 |
drm/amdgpu: add mes ctx data in amdgpu_ring
Add mes context data structure in amdgpu_ring.
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h index 112c2b0ef0b1..317a66bcd258 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h @@ -267,6 +267,11 @@ struct amdgpu_ring { int hw_prio; unsigned num_hw_submission; atomic_t *sched_score; + + /* used for mes */ + bool is_mes_queue; + uint32_t hw_queue_id; + struct amdgpu_mes_ctx_data *mes_ctx; }; #define amdgpu_ring_parse_cs(r, p, job, ib) ((r)->funcs->parse_cs((p), (job), (ib))) |