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)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Nov 2023 05:46:27 +0000 (00:46 -0500)
commit0288603040c38ccfeb5342f34a52673366d90038
treee965c18d2c632396435064fab0b6a7681c44ae2b
parent1ffa8602e39b89469dc703ebab7a7e44c33da0f7
drm/amdgpu: Do not program VF copy regs in mmhub v1.8 under SRIOV (v2)

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>
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c