drm/amdgpu/soc21: don't remap HDP registers for SR-IOV
authorjsg <jsg@openbsd.org>
Mon, 9 Oct 2023 02:30:32 +0000 (02:30 +0000)
committerjsg <jsg@openbsd.org>
Mon, 9 Oct 2023 02:30:32 +0000 (02:30 +0000)
From Alex Deucher
cca15a82790772c0303ae295f7153c4af0536ad1 in linux-6.1.y/6.1.56
1832403cd41ca6b19b24e9d64f79cb08d920ca44 in mainline linux

sys/dev/pci/drm/amd/amdgpu/soc21.c

index d150a90..56af7b5 100644 (file)
@@ -755,7 +755,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 */
        soc21_enable_doorbell_aperture(adev, true);