drm/amdgpu/mes: add helper function to get the ctx meta data offset
authorJack Xiao <Jack.Xiao@amd.com>
Fri, 27 Mar 2020 09:42:01 +0000 (17:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:43:52 +0000 (10:43 -0400)
commit11ec5b3605db3a136c1a0fde0d78883f6361d666
tree8423951578c77427987c54f2cc0d0f733b8a17af
parent1a27aacb6ed7422eb9c47e03d3355d201c35f224
drm/amdgpu/mes: add helper function to get the ctx meta data offset

Add the helper function to get the corresponding ctx meta data offset.

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_mes.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h