Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/gfx_v12_1: add mqd_stride_size input parameter

mqd_stride_size is used to calculate the next mqd offset
for cooperative dispatch.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Jack Xiao and committed by
Alex Deucher
364f168f 03a4c89d

+4
+1
drivers/gpu/drm/amd/amdgpu/amdgpu.h
··· 774 774 uint64_t eop_gpu_addr; 775 775 uint32_t hqd_pipe_priority; 776 776 uint32_t hqd_queue_priority; 777 + uint32_t mqd_stride_size; 777 778 bool allow_tunneling; 778 779 bool hqd_active; 779 780 uint64_t shadow_addr;
+3
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
··· 2217 2217 mqd->cp_hqd_pipe_priority = prop->hqd_pipe_priority; 2218 2218 mqd->cp_hqd_queue_priority = prop->hqd_queue_priority; 2219 2219 2220 + mqd->cp_mqd_stride_size = prop->mqd_stride_size ? prop->mqd_stride_size : 2221 + sizeof(struct v12_1_compute_mqd); 2222 + 2220 2223 mqd->cp_hqd_active = prop->hqd_active; 2221 2224 2222 2225 return 0;