From: Likun Gao Date: Mon, 9 Jun 2025 09:19:25 +0000 (+0800) Subject: drm/amdgpu: update sdma configuration for soc v1_0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6e81483282143d80c495a84b1e3fda31e77dedb;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: update sdma configuration for soc v1_0 Update SDMA instances/masks according to xcc num for multi-xcc models on soc v1.0. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c b/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c index 8ab30cafe0b8..0d8b245d49cf 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c +++ b/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c @@ -771,6 +771,10 @@ int soc_v1_0_init_soc_config(struct amdgpu_device *adev) /*TODO: init soc config */ adev->sdma.num_inst_per_xcc = 2; + adev->sdma.num_instances = + NUM_XCC(adev->gfx.xcc_mask) * adev->sdma.num_inst_per_xcc; + adev->sdma.sdma_mask = + GENMASK(adev->sdma.num_instances - 1, 0); ret = soc_v1_0_xcp_mgr_init(adev); if (ret)