drm/amdgpu: set vm_update_mode=0 as default for NV32 in SRIOV case
Subsystems (2)
PATCH 1/1 drm/amdgpu: set vm_update_mode=0 as default for NV32 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 BIF_BX_DEV0_EPF0_VF0_HDP_MEM_COHERENCY_FLUSH_CNTL register during sriov runtime.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +2 -1
@@ -724,7 +724,8 @@ void amdgpu_detect_virtualization(struct amdgpu_device *adev) adev->virt.caps |=AMDGPU_PASSTHROUGH_MODE ; } -if (amdgpu_sriov_vf (adev) && adev->asic_type ==CHIP_SIENNA_CICHLID ) +if ((amdgpu_sriov_vf (adev) && adev->asic_type ==CHIP_SIENNA_CICHLID ) || + adev->pdev->device ==0x7461 )/* VF MMIO access (except mailbox range) from CPU * will be blocked during sriov runtime */
Signature · 1 line
2.25.1
Am 28.03.24 um 00:34 schrieb Danijel Slivka:
Quoted 4 lines
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
BIF_BX_DEV0_EPF0_VF0_HDP_MEM_COHERENCY_FLUSH_CNTLregister during sriov runtime.
Well big NAK to the reasoning. HDP flush is *mandatory* to work correctly.
This not only includes flushes for CPU based VM updates, but also GART updates.
Without reliable HDP flushes the driver is simply not stable.
Regards,
Christian.
Quoted 20 lines
Signed-off-by Danijel Slivka <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +2
-1@@ -724,7 +724,8 @@ void amdgpu_detect_virtualization(struct amdgpu_device *adev) adev->virt.caps |=AMDGPU_PASSTHROUGH_MODE ; } -if (amdgpu_sriov_vf (adev) && adev->asic_type ==CHIP_SIENNA_CICHLID ) +if ((amdgpu_sriov_vf (adev) && adev->asic_type ==CHIP_SIENNA_CICHLID ) || + adev->pdev->device ==0x7461 )/* VF MMIO access (except mailbox range) from CPU * will be blocked during sriov runtime */