drm/amdgpu: set vm_update_mode=0 as default for Sienna Cichlid in SRIOV case
authorDanijel Slivka <danijel.slivka@amd.com>
Tue, 4 Oct 2022 13:39:44 +0000 (15:39 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Oct 2022 21:41:20 +0000 (17:41 -0400)
commita7310d8de3ba60a6ec4294392daf747b8333b3b2
tree63a33af63ba501217026a7e385ca91d0ab15a7b2
parent7fe441d8b77a1e4fe09099092945d27607dda69b
drm/amdgpu: set vm_update_mode=0 as default for Sienna Cichlid in SRIOV case

For asic with VF MMIO access protection avoid using CPU for VM table updates.
CPU pagetable updates have issues with HDP flush as VF MMIO access protection
blocks write to mmBIF_BX_DEV0_EPF0_VF0_HDP_MEM_COHERENCY_FLUSH_CNTL register
during sriov runtime.

v3: introduce virtualization capability flag AMDGPU_VF_MMIO_ACCESS_PROTECT
which indicates that VF MMIO write access is not allowed in sriov runtime

Signed-off-by: Danijel Slivka <danijel.slivka@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c