Skip to content

Commit 1832403

Browse files
committed
drm/amdgpu/soc21: don't remap HDP registers for SR-IOV
This matches the behavior for soc15 and nv. Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Timmy Tsai <timmtsai@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent f5b2c10 commit 1832403

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/soc21.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ static int soc21_common_hw_init(void *handle)
766766
* for the purpose of expose those registers
767767
* to process space
768768
*/
769-
if (adev->nbio.funcs->remap_hdp_registers)
769+
if (adev->nbio.funcs->remap_hdp_registers && !amdgpu_sriov_vf(adev))
770770
adev->nbio.funcs->remap_hdp_registers(adev);
771771
/* enable the doorbell aperture */
772772
adev->nbio.funcs->enable_doorbell_aperture(adev, true);

0 commit comments

Comments
 (0)