]> git.itanic.dy.fi Git - linux-stable/commitdiff
drm/amdgpu/soc21: don't remap HDP registers for SR-IOV
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Sep 2023 15:35:04 +0000 (11:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Sep 2023 22:19:42 +0000 (18:19 -0400)
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>
drivers/gpu/drm/amd/amdgpu/soc21.c

index 40d23738ee4ec0528fb7a13e3978654e055233ea..8b2ff2b281b0ade2f37d309476f20eb8a10c732a 100644 (file)
@@ -766,7 +766,7 @@ static int soc21_common_hw_init(void *handle)
         * for the purpose of expose those registers
         * to process space
         */
-       if (adev->nbio.funcs->remap_hdp_registers)
+       if (adev->nbio.funcs->remap_hdp_registers && !amdgpu_sriov_vf(adev))
                adev->nbio.funcs->remap_hdp_registers(adev);
        /* enable the doorbell aperture */
        adev->nbio.funcs->enable_doorbell_aperture(adev, true);