drm/amdgpu: add the per-context meta data v3
authorJack Xiao <Jack.Xiao@amd.com>
Thu, 26 Mar 2020 16:38:05 +0000 (00:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:03:17 +0000 (10:03 -0400)
commit2bc956ef54415e0f7240ebb6d269c5ec1e12a46d
tree023bd61ef61d73a2e1f7b424bffb360e94cfdf3c
parent80af9daa62faeb9397a80ddf5777f97809efb166
drm/amdgpu: add the per-context meta data v3

The per-context meta data is a per-context data structure associated
with a mes-managed hardware ring, which includes MCBP CSA, ring buffer
and etc.

v2: fix typo
v3: a. use structure instead of typedef
    b. move amdgpu_mes_ctx_get_offs_* to amdgpu_ring.h
    c. use __aligned to make alignement

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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_mes_ctx.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h