mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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 <Likun.Gao@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f9ed1d463e
commit
d6e8148328
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user