diff options
| author | Andrea Parri <parri.andrea@gmail.com> | 2026-10-15 10:19:35 +0200 |
|---|---|---|
| committer | Alex Williamson <alex@shazbot.org> | 2026-10-16 09:32:02 -0600 |
| commit | 076d7e989cb69f6ded7d60f2a080eb909930061b (patch) | |
| tree | 667845652ebd1131ca0840c73e83ca6189ea47e1 /kernel/dma | |
| parent | 9c48b994b66d7b585698f9aaee8ff559a7755c0a (diff) | |
vfio/nvgrace-gpu: Drop the usemem length check in open_device
nvgrace_gpu_open_device() sets up the fake BAR registers and remap_lock
only when usemem.memlength is nonzero. The check exists for fallback
mode, which used to share this open path. Fallback mode now has its own
open_device, so only devices with ACPI memory properties reach this one.
For those devices usemem.memlength is never zero: an empty region from
nvgrace_gpu_fetch_memory_property() selects fallback mode, and probe
fails when nvgrace_gpu_init_nvdev_struct() rounds usemem down to
nothing. Do the setup unconditionally.
Assisted-by: LLM
Signed-off-by: Andrea Parri <parri.andrea@gmail.com>
Reviewed-by: Ankit Agrawal <ankita@nvidia.com>
Link: https://lore.kernel.org/r/20261015081937.405320-3-parri.andrea@gmail.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'kernel/dma')
0 files changed, 0 insertions, 0 deletions
