drm/amdgpu: Do not program VF copy regs in mmhub v1.8 under SRIOV (v2)
authorVictor Lu <victorchengchi.lu@amd.com>
Wed, 4 Oct 2023 18:24:15 +0000 (14:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2023 17:45:00 +0000 (18:45 +0100)
commit3a56e61b57791f2e4db66a80b723b8515ea5880f
treea537f86ab411b6d78a5afea778a64a1fc7e67730
parentb97debd07a8da5b2d47d5c77aad9b7d4ea53942a
drm/amdgpu: Do not program VF copy regs in mmhub v1.8 under SRIOV (v2)

[ Upstream commit 0288603040c38ccfeb5342f34a52673366d90038 ]

MC_VM_AGP_* registers should not be programmed by guest driver.

v2: move early return outside of loop

Signed-off-by: Victor Lu <victorchengchi.lu@amd.com>
Reviewed-by: Samir Dhume <samir.dhume@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c