Re: [PATCH v2 1/1] vfio/nvgrace-gpu: Convey kvm to map device memory region as noncached

From: Ankit Agrawal
Date: Tue Mar 05 2024 - 20:46:54 EST


>> To use VM_ALLOW_ANY_UNCACHED flag, the platform must guarantee that
>> no action taken on the MMIO mapping can trigger an uncontained
>> failure. The Grace Hopper satisfies this requirement. So set
>> the VM_ALLOW_ANY_UNCACHED flag in the VMA.
>>
>> Applied over next-20240227.
>> base-commit: 22ba90670a51
>>
>> Link: https://lore.kernel.org/all/20240220115055.23546-4-ankita@xxxxxxxxxx/ [1]
>> Link: https://www.nvidia.com/en-in/technologies/multi-instance-gpu/ [2]
>> Link: https://developer.arm.com/documentation/ddi0487/latest/ section D8.5.5 [3]
>> Link: https://lore.kernel.org/all/20240224150546.368-1-ankita@xxxxxxxxxx/ [4]
>>
>> Cc: Alex Williamson <alex.williamson@xxxxxxxxxx>
>> Cc: Kevin Tian <kevin.tian@xxxxxxxxx>
>> Cc: Jason Gunthorpe <jgg@xxxxxxxxxx>
>> Cc: Vikram Sethi <vsethi@xxxxxxxxxx>
>> Cc: Zhi Wang <zhiw@xxxxxxxxxx>
>> Signed-off-by: Ankit Agrawal <ankita@xxxxxxxxxx>
>> ---
>>  drivers/vfio/pci/nvgrace-gpu/main.c | 11 ++++++++++-
>>  1 file changed, 10 insertions(+), 1 deletion(-)
>
> Applied to vfio next branch for v6.9.
>
> Oliver, FYI I did merge the branch you provided in [1] for this, thanks
> for the foresight in providing that.
>
> Alex
>
> [1]https://lore.kernel.org/all/170899100569.1405597.5047894183843333522.b4-ty@xxxxxxxxx/

Many thanks Alex, appreciate your help with this!