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: Fetch MES scheduler/KIQ versions

Store MES scheduler and MES KIQ version numbers in amdgpu_mes for GFX11.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Jack Xiao <Jack.Xiao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Graham Sider and committed by
Alex Deucher
ff83e6e7 508f748b

+15
+3
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
··· 65 65 66 66 spinlock_t queue_id_lock; 67 67 68 + uint32_t sched_version; 69 + uint32_t kiq_version; 70 + 68 71 uint32_t total_max_queue; 69 72 uint32_t doorbell_id_offset; 70 73 uint32_t max_doorbell_slices;
+12
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
··· 858 858 mes_v11_0_queue_init_register(ring); 859 859 } 860 860 861 + /* get MES scheduler/KIQ versions */ 862 + mutex_lock(&adev->srbm_mutex); 863 + soc21_grbm_select(adev, 3, pipe, 0, 0); 864 + 865 + if (pipe == AMDGPU_MES_SCHED_PIPE) 866 + adev->mes.sched_version = RREG32_SOC15(GC, 0, regCP_MES_GP3_LO); 867 + else if (pipe == AMDGPU_MES_KIQ_PIPE && adev->enable_mes_kiq) 868 + adev->mes.kiq_version = RREG32_SOC15(GC, 0, regCP_MES_GP3_LO); 869 + 870 + soc21_grbm_select(adev, 0, 0, 0, 0); 871 + mutex_unlock(&adev->srbm_mutex); 872 + 861 873 return 0; 862 874 } 863 875