OSDN Git Service

drm/amdkfd: Shift sdma_engine_id and sdma_queue_id in mqd
authorOak Zeng <ozeng@amd.com>
Tue, 4 Dec 2018 22:08:33 +0000 (16:08 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:21:01 +0000 (12:21 -0500)
commitc6fd980ab154455df62adc89d81898d24654ab72
tree8549d52b9c6e071f0545498dad32858442b586fa
parent323c71df9447f277dd151b65711bc9ba51fcc4c0
drm/amdkfd: Shift sdma_engine_id and sdma_queue_id in mqd

FW of some new ASICs requires sdma mqd size to be not more than
128 dwords. Repurpose the last 2 reserved fields of sdma mqd for
driver internal use, so the total mqd size is no bigger than 128
dwords

Signed-off-by: Oak Zeng <ozeng@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/cik_structs.h
drivers/gpu/drm/amd/include/v9_structs.h
drivers/gpu/drm/amd/include/vi_structs.h