From: jsg Date: Mon, 9 Oct 2023 02:30:32 +0000 (+0000) Subject: drm/amdgpu/soc21: don't remap HDP registers for SR-IOV X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=aaa53d70fd67ea0a28c2733fd4c6649e10e9d3fc;p=openbsd drm/amdgpu/soc21: don't remap HDP registers for SR-IOV From Alex Deucher cca15a82790772c0303ae295f7153c4af0536ad1 in linux-6.1.y/6.1.56 1832403cd41ca6b19b24e9d64f79cb08d920ca44 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/soc21.c b/sys/dev/pci/drm/amd/amdgpu/soc21.c index d150a90daa4..56af7b5abac 100644 --- a/sys/dev/pci/drm/amd/amdgpu/soc21.c +++ b/sys/dev/pci/drm/amd/amdgpu/soc21.c @@ -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);