Commit e30dedb
NVIDIA: SAUCE: vfio/nvgrace-gpu: Avoid resmem pfn unregistration
On platforms without the mig HW bug (e.g. Grace-Blackwell) there is not a
requirement to create the resmem region. Accordingly, this region is not
configured on these platforms, which leads to the following print when the
device is closed:
resource: Trying to free nonexistent resource <0x0000000000000000-0x000000000000ffff>
Avoid calling unregister_pfn_address_space for resmem when the region is
not being used.
Fixes: 2d21b7b ("vfio/nvgrace-gpu: register device memory for poison handling")
Signed-off-by: Matthew R. Ochs <[email protected]>
Acked-by: Carol L. Soto <[email protected]>
Acked-by: Nirmoy Das <[email protected]>
Signed-off-by: Matthew R. Ochs <[email protected]>
(cherry picked from commit bd0187d https://github.com/NVIDIA/NV-Kernels/tree/24.04_linux-nvidia-adv-6.11-next)
Signed-off-by: Nirmoy Das <[email protected]>1 parent b31ac4e commit e30dedb
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
| 243 | + | |
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
| |||
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
323 | | - | |
| 324 | + | |
| 325 | + | |
324 | 326 | | |
325 | | - | |
| 327 | + | |
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
| |||
0 commit comments