drm/amdgpu: pass queue size and is_aql_queue to MES
authorGraham Sider <Graham.Sider@amd.com>
Mon, 19 Sep 2022 17:57:14 +0000 (13:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Sep 2022 21:54:12 +0000 (17:54 -0400)
commit91ef6cfd30bf75763f41e7a4bc119883fe190606
tree0f0f48eef3c091edfddf31d90832dc0e505796dd
parenta9b4700279f21c5c1a3425630dea86d338ab13b2
drm/amdgpu: pass queue size and is_aql_queue to MES

Update mes_v11_api_def.h add_queue API with is_aql_queue parameter. Also
re-use gds_size for the queue size (unused for KFD). MES requires the
queue size in order to compute the actual wptr offset within the queue
RB since it increases monotonically for AQL queues.

v2: Make is_aql_queue assign clearer

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
drivers/gpu/drm/amd/include/mes_v11_api_def.h