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: Implement gfx_v12_1_get_xccs_per_xcp

Use gfx v12_1 callback to query the numbers of xccs
per xcp

v2: add todo (Alex)

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Hawking Zhang and committed by
Alex Deucher
7ce72341 b7cb3669

+7
+7
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
··· 692 692 soc_v1_0_grbm_select(adev, me, pipe, q, vm, GET_INST(GC, xcc_id)); 693 693 } 694 694 695 + static int gfx_v12_1_get_xccs_per_xcp(struct amdgpu_device *adev) 696 + { 697 + /* Fill this in when the interface is ready */ 698 + return 1; 699 + } 700 + 695 701 static const struct amdgpu_gfx_funcs gfx_v12_1_gfx_funcs = { 696 702 .get_gpu_clock_counter = &gfx_v12_1_get_gpu_clock_counter, 697 703 .select_se_sh = &gfx_v12_1_xcc_select_se_sh, ··· 706 700 .read_wave_vgprs = &gfx_v12_1_read_wave_vgprs, 707 701 .select_me_pipe_q = &gfx_v12_1_select_me_pipe_q, 708 702 .update_perfmon_mgcg = &gfx_v12_1_update_perf_clk, 703 + .get_xccs_per_xcp = &gfx_v12_1_get_xccs_per_xcp, 709 704 }; 710 705 711 706 static int gfx_v12_1_gpu_early_init(struct amdgpu_device *adev)