Skip to content

Commit

Permalink
drm/amdgpu: remove repeat code for mes_add_queue_pkt
Browse files Browse the repository at this point in the history
The setting of mes_add_queue_pkt is repeated, so remove it.

Signed-off-by: Bob Zhou <bob.zhou@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Bob Zhou authored and Alex Deucher committed Jul 27, 2023
1 parent 6d67b68 commit 8a92e86
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,6 @@ static int mes_v11_0_add_hw_queue(struct amdgpu_mes *mes,
mes_add_queue_pkt.is_aql_queue = input->is_aql_queue;
mes_add_queue_pkt.gds_size = input->queue_size;

/* For KFD, gds_size is re-used for queue size (needed in MES for AQL queues) */
mes_add_queue_pkt.is_aql_queue = input->is_aql_queue;
mes_add_queue_pkt.gds_size = input->queue_size;

mes_add_queue_pkt.exclusively_scheduled = input->exclusively_scheduled;

return mes_v11_0_submit_pkt_and_poll_completion(mes,
Expand Down

0 comments on commit 8a92e86

Please sign in to comment.