]> git.ipfire.org Git - thirdparty/linux.git/commit
vfio/nvgrace-gpu: Inform devmem unmapped after reset
authorAnkit Agrawal <ankita@nvidia.com>
Thu, 27 Nov 2025 17:06:31 +0000 (17:06 +0000)
committerAlex Williamson <alex@shazbot.org>
Fri, 28 Nov 2025 17:07:26 +0000 (10:07 -0700)
commitdfe765499abfbdb9df0f2e70ebb1199c7d2fc65e
tree5fe0d78b6019cd8e9e8c6a606ca22b62a9699f80
parent7d055071d73bac7acc3a0b441f0632f564f048fe
vfio/nvgrace-gpu: Inform devmem unmapped after reset

Introduce a new flag reset_done to notify that the GPU has just
been reset and the mapping to the GPU memory is zapped.

Implement the reset_done handler to set this new variable. It
will be used later in the patches to wait for the GPU memory
to be ready before doing any mapping or access.

Cc: Jason Gunthorpe <jgg@ziepe.ca>
Reviewed-by: Shameer Kolothum <skolothumtho@nvidia.com>
Suggested-by: Alex Williamson <alex@shazbot.org>
Signed-off-by: Ankit Agrawal <ankita@nvidia.com>
Link: https://lore.kernel.org/r/20251127170632.3477-6-ankita@nvidia.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
drivers/vfio/pci/nvgrace-gpu/main.c