drm/amdgpu: Fix MMIO HDP flush on SRIOV
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 4 Nov 2021 20:15:43 +0000 (16:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Nov 2021 20:02:25 +0000 (15:02 -0500)
commitd3a21f7e353dc8d6939383578f3bd45b4ae3a946
treed1b51dbb2f03cc87075c74ea7360107d192dfda2
parent136057256686de39cc3a07c2e39ef6bc43003ff6
drm/amdgpu: Fix MMIO HDP flush on SRIOV

Disable HDP register remapping on SRIOV and set rmmio_remap.reg_offset
to the fixed address of the VF register for hdp_v*_flush_hdp.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Tested-by: Bokun Zhang <bokun.zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c
drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c
drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c
drivers/gpu/drm/amd/amdgpu/nbio_v7_2.c
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c
drivers/gpu/drm/amd/amdgpu/nv.c
drivers/gpu/drm/amd/amdgpu/soc15.c