Commit fced3c3a authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher

drm/amdgpu: skip sdma1 in nv_allowed_read_registers list for van gogh (v2)

Van gogh only has one sdma.

v2: use num_instances rather than APU flag
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 026570e6
...@@ -254,7 +254,8 @@ static int nv_read_register(struct amdgpu_device *adev, u32 se_num, ...@@ -254,7 +254,8 @@ static int nv_read_register(struct amdgpu_device *adev, u32 se_num,
*value = 0; *value = 0;
for (i = 0; i < ARRAY_SIZE(nv_allowed_read_registers); i++) { for (i = 0; i < ARRAY_SIZE(nv_allowed_read_registers); i++) {
en = &nv_allowed_read_registers[i]; en = &nv_allowed_read_registers[i];
if (reg_offset != if ((i == 7 && (adev->sdma.num_instances == 1)) || /* some asics don't have SDMA1 */
reg_offset !=
(adev->reg_offset[en->hwip][en->inst][en->seg] + en->reg_offset)) (adev->reg_offset[en->hwip][en->inst][en->seg] + en->reg_offset))
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment