linux/drivers/gpu/drm/nouveau/nvkm/subdev/fault
Ben Skeggs 76b8f81a5b drm/nouveau: improve handling of 64-bit BARs
GPUs exist now with a 64-bit BAR0, which mean that BAR1 and BAR2's
indices (as passed to pci_resource_len() etc) are bumped up by one.

Modify nvkm_device.resource_addr/size() to take an enum instead of
an integer bar index, and take IORESOURCE_MEM_64 into account when
translating to the "raw" bar id.

[airlied: fixup ERR_PTR]
Signed-off-by: Ben Skeggs <bskeggs@nvidia.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Timur Tabi <ttabi@nvidia.com>
Tested-by: Timur Tabi <ttabi@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2025-05-19 07:14:35 +10:00
..
base.c drm/nouveau/fault: expose replayable fault buffer event class 2022-11-09 10:44:27 +10:00
gp10b.c
gp100.c drm/nouveau/nvkm: rip out old notify 2022-11-09 10:44:27 +10:00
gv100.c drm/nouveau/nvkm: rip out old notify 2022-11-09 10:44:27 +10:00
Kbuild
priv.h drm/nouveau/fault/tu102: switch to explicit intr handlers 2022-11-09 10:44:36 +10:00
tu102.c drm/nouveau/fault/tu102-: prepare for GSP-RM 2023-10-31 15:08:11 +10:00
user.c drm/nouveau: improve handling of 64-bit BARs 2025-05-19 07:14:35 +10:00