linux/drivers/gpu/drm/nouveau/nvkm/engine/gr
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
..
fuc
base.c drm/nouveau/gr/tu102-: prepare for GSP-RM 2023-10-31 15:08:14 +10:00
ctxga102.c drm/nouveau/gr/ga102: initial support 2022-11-09 10:45:21 +10:00
ctxgf100.c drm/nouveau/gr/ga102: initial support 2022-11-09 10:45:21 +10:00
ctxgf100.h drm/nouveau/gr: enable memory loads on helper invocation on all channels 2023-08-03 11:23:50 +02:00
ctxgf104.c drm/nouveau/gr/gf100-: make global attrib_cb actually global 2022-11-09 10:45:11 +10:00
ctxgf108.c drm/nouveau/gr/gf100-: make global attrib_cb actually global 2022-11-09 10:45:11 +10:00
ctxgf110.c drm/nouveau/gr/gf100-: make global attrib_cb actually global 2022-11-09 10:45:11 +10:00
ctxgf117.c drm/nouveau/gr/gf117-: make ppc_nr[gpc] accurate 2022-11-09 10:45:12 +10:00
ctxgf119.c drm/nouveau/gr/gf100-: make global attrib_cb actually global 2022-11-09 10:45:11 +10:00
ctxgk20a.c drm/nouveau/gr/gf100-: make global attrib_cb actually global 2022-11-09 10:45:11 +10:00
ctxgk104.c drm/nouveau/gr: enable memory loads on helper invocation on all channels 2023-08-03 11:23:50 +02:00
ctxgk110.c drm/nouveau/gr: enable memory loads on helper invocation on all channels 2023-08-03 11:23:50 +02:00
ctxgk110b.c drm/nouveau/gr: enable memory loads on helper invocation on all channels 2023-08-03 11:23:50 +02:00
ctxgk208.c drm/nouveau/gr: enable memory loads on helper invocation on all channels 2023-08-03 11:23:50 +02:00
ctxgm20b.c drm/nouveau/gr/gf100-: make global attrib_cb actually global 2022-11-09 10:45:11 +10:00
ctxgm107.c drm/nouveau/gr: enable memory loads on helper invocation on all channels 2023-08-03 11:23:50 +02:00
ctxgm200.c drm/nouveau/gr/gf117-: make ppc_nr[gpc] accurate 2022-11-09 10:45:12 +10:00
ctxgp100.c drm/nouveau/gr/gf117-: make ppc_nr[gpc] accurate 2022-11-09 10:45:12 +10:00
ctxgp102.c drm/nouveau/gr/gf117-: make ppc_nr[gpc] accurate 2022-11-09 10:45:12 +10:00
ctxgp104.c drm/nouveau/gr/gf100-: make global attrib_cb actually global 2022-11-09 10:45:11 +10:00
ctxgp107.c drm/nouveau/gr/gf100-: make global attrib_cb actually global 2022-11-09 10:45:11 +10:00
ctxgv100.c drm/nouveau/gr/tu102-: use sw_veid_bundle_init from firmware 2022-11-09 10:45:13 +10:00
ctxnv40.c
ctxnv40.h
ctxnv50.c
ctxtu102.c drm/nouveau/gr/tu102: remove gv100_grctx_unkn88c 2022-11-09 10:45:13 +10:00
g84.c
ga102.c drm/nouveau/gsp: add common code for engines/engine objects 2025-05-19 06:29:24 +10:00
gf100.c drm/nouveau/gr/gf100: Fix missing unlock in gf100_gr_chan_new() 2024-10-29 15:48:56 -04:00
gf100.h drm/nouveau/gsp: add common code for engines/engine objects 2025-05-19 06:29:24 +10:00
gf104.c drm/nouveau/gr/gf100-: move some init to init_exception2() 2022-11-09 10:45:12 +10:00
gf108.c drm/nouveau/gr/gf100-: move some init to init_exception2() 2022-11-09 10:45:12 +10:00
gf110.c drm/nouveau/gr/gf100-: move some init to init_exception2() 2022-11-09 10:45:12 +10:00
gf117.c drm/nouveau/gr/gp100-: fix number of zcull tile regs 2022-11-09 10:45:12 +10:00
gf119.c drm/nouveau/gr/gf100-: move some init to init_exception2() 2022-11-09 10:45:12 +10:00
gk20a.c drm/nouveau/gr/tu102-: use sw_veid_bundle_init from firmware 2022-11-09 10:45:13 +10:00
gk104.c drm/nouveau/gr/gf117-: make ppc_nr[gpc] accurate 2022-11-09 10:45:12 +10:00
gk104.h
gk110.c drm/nouveau/gr/gf100-: move some init to init_exception2() 2022-11-09 10:45:12 +10:00
gk110b.c drm/nouveau/gr/gf100-: move some init to init_exception2() 2022-11-09 10:45:12 +10:00
gk208.c drm/nouveau/gr/gf100-: move some init to init_exception2() 2022-11-09 10:45:12 +10:00
gm20b.c drm/nouveau/gr/gf100-: move reset during golden ctx init to fecs_reset() 2022-11-09 10:45:11 +10:00
gm107.c drm/nouveau/gr/gf100-: move some init to init_exception2() 2022-11-09 10:45:12 +10:00
gm200.c drm/nouveau/gr/gv100-: port smid mapping code from nvgpu 2022-11-09 10:45:12 +10:00
gp10b.c drm/nouveau/gr/gf100-: move some init to init_exception2() 2022-11-09 10:45:12 +10:00
gp100.c drm/nouveau/gr/gp100-: modify init_fecs_exceptions 2022-11-09 10:45:12 +10:00
gp102.c drm/nouveau/gr/ga102: initial support 2022-11-09 10:45:21 +10:00
gp104.c drm/nouveau/gr/gf100-: move some init to init_exception2() 2022-11-09 10:45:12 +10:00
gp107.c drm/nouveau/gr/gf100-: move some init to init_exception2() 2022-11-09 10:45:12 +10:00
gp108.c drm/nouveau/gr/ga102: initial support 2022-11-09 10:45:21 +10:00
gt200.c
gt215.c
gv100.c drm/nouveau/gr/tu102: add gv100_gr_init_4188a4 2022-11-09 10:45:13 +10:00
Kbuild drm/nouveau/gsp: add common code for engines/engine objects 2025-05-19 06:29:24 +10:00
mcp79.c
mcp89.c
nv2a.c drm/nouveau/fifo: remove left-over references to nvkm_fifo_chan 2023-07-06 17:22:33 +02:00
nv04.c drm/nouveau/fifo: remove left-over references to nvkm_fifo_chan 2023-07-06 17:22:33 +02:00
nv10.c drm/nouveau/fifo: remove left-over references to nvkm_fifo_chan 2023-07-06 17:22:33 +02:00
nv10.h drm/nouveau/fifo: remove left-over references to nvkm_fifo_chan 2023-07-06 17:22:33 +02:00
nv15.c
nv17.c
nv20.c drm/nouveau: improve handling of 64-bit BARs 2025-05-19 07:14:35 +10:00
nv20.h
nv25.c drm/nouveau/fifo: remove left-over references to nvkm_fifo_chan 2023-07-06 17:22:33 +02:00
nv30.c drm/nouveau/fifo: remove left-over references to nvkm_fifo_chan 2023-07-06 17:22:33 +02:00
nv34.c drm/nouveau/fifo: remove left-over references to nvkm_fifo_chan 2023-07-06 17:22:33 +02:00
nv35.c drm/nouveau/fifo: remove left-over references to nvkm_fifo_chan 2023-07-06 17:22:33 +02:00
nv40.c drm/nouveau: improve handling of 64-bit BARs 2025-05-19 07:14:35 +10:00
nv40.h drm/nouveau/fifo: remove left-over references to nvkm_fifo_chan 2023-07-06 17:22:33 +02:00
nv44.c
nv50.c drm/nouveau/fifo: remove left-over references to nvkm_fifo_chan 2023-07-06 17:22:33 +02:00
nv50.h drm/nouveau/fifo: remove left-over references to nvkm_fifo_chan 2023-07-06 17:22:33 +02:00
priv.h drm/nouveau/fifo/ga100-: add per-runlist nonstall intr handling 2023-07-06 17:22:33 +02:00
regs.h
tu102.c drm/nouveau/gsp: add common code for engines/engine objects 2025-05-19 06:29:24 +10:00