590.44.01

This commit is contained in:
Maneet Singh
2025-12-02 15:32:25 -08:00
parent 2af9f1f0f7
commit a5bfb10e75
954 changed files with 421883 additions and 408177 deletions

View File

@@ -601,7 +601,12 @@ NV_STATUS uvm_ats_service_faults(uvm_gpu_va_space_t *gpu_va_space,
uvm_page_mask_zero(faults_serviced_mask);
uvm_page_mask_zero(reads_serviced_mask);
if (!(vma->vm_flags & VM_READ))
// If the VMA doesn't have read or write permissions then all faults are
// fatal so we exit early.
// TODO: Bug 5451843: This fix brings to light potential issues in the ATS
// fault handling path as described in the bug. Those need to be handled
// to avoid any potential permission issues.
if (!(vma->vm_flags & (VM_READ | VM_WRITE)))
return NV_OK;
if (!(vma->vm_flags & VM_WRITE)) {