diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2023-09-06 11:35:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-06 14:56:53 +0200 |
commit | cca15a82790772c0303ae295f7153c4af0536ad1 (patch) | |
tree | 210a007978a945e33403869d990e9306f5ac2769 | |
parent | b9971393d4c9be5eec3c6b30d9e312ba88c865ac (diff) | |
download | linux-stable-cca15a82790772c0303ae295f7153c4af0536ad1.tar.gz linux-stable-cca15a82790772c0303ae295f7153c4af0536ad1.tar.bz2 linux-stable-cca15a82790772c0303ae295f7153c4af0536ad1.zip |
drm/amdgpu/soc21: don't remap HDP registers for SR-IOV
[ Upstream commit 1832403cd41ca6b19b24e9d64f79cb08d920ca44 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc21.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index d150a90daa40..56af7b5abac1 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc21.c +++ b/drivers/gpu/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); |