Register device memory for poison handling
Status from this message: Applied to vfio next branch for v6.20/7.0. Thanks,
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 2 repliesApplied
- v12 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- Fixed nit to cleanup nvgrace_gpu_vfio_pci_register_pfn_range (Thanks Jiaqi Yan)
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm: add stubs for PFNMAP memory failure registration functionsinclude/ | +11 | 0 replies | |
| 2/2 | vfio/nvgrace-gpu: register device memory for poison handlingdrivers/ | +109 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Jiaqi Yan |
|---|---|
| 1/2 | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] Register device memory for poison handling
From: Ankit Agrawal <[email protected]>
Linux MM provides interfaces to allow a driver to [un]register device memory not backed by struct page for poison handling through memory_failure.
The device memory on NVIDIA Grace based systems are not added to the kernel and are not backed by struct pages. So nvgrace-gpu module which manages the device memory can make use of these interfaces to get the benefit of poison handling. Make nvgrace-gpu register the device memory with the MM on open.
Moreover, the stubs are added to accommodate for CONFIG_MEMORY_FAILURE being disabled.
Patch 1/2 introduces stubs for CONFIG_MEMORY_FAILURE disabled. Patch 2/2 registers the device memory at the time of open instead of mmap.
Note that this is a reposting of an earlier series [1] which is partly (patch 1/3) merged to v6.19-rc4. This one addresses the leftover patching. Many thanks to Jason Gunthorpe ([email protected]) and Alex Williamson ([email protected]) for valuable suggestions.
Changelog:
v2:
- Fixed nit to cleanup nvgrace_gpu_vfio_pci_register_pfn_range (Thanks Jiaqi Yan)
Ankit Agrawal (2):
mm: add stubs for PFNMAP memory failure registration functions vfio/nvgrace-gpu: register device memory for poison handling
drivers/vfio/pci/nvgrace-gpu/main.c | 113 +++++++++++++++++++++++++++- include/linux/memory-failure.h | 13 +++- 2 files changed, 120 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1