]> git.itanic.dy.fi Git - linux-stable/commit
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>
Wed, 19 Oct 2022 02:07:58 +0000 (22:07 -0400)
commit65f8682b9aaae20c2cdee993e6fe52374ad513c9
tree4424caa91be444a248ce9a30b46bc383020a10e3
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
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