aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2025-03-21 03:35:17 +0000
committerDave Airlie <[email protected]>2025-05-18 21:14:35 +0000
commit76b8f81a5b928cfb81d0c1477ab9be1e7d03660c (patch)
tree532a3226fc2ec653eb46f96fda11a4c54d67d7a4 /rust/helpers/platform.c
parentdrm/nouveau/gv100-: switch to volta semaphore methods (diff)
downloadkernel-76b8f81a5b928cfb81d0c1477ab9be1e7d03660c.tar.gz
kernel-76b8f81a5b928cfb81d0c1477ab9be1e7d03660c.zip
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 <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Timur Tabi <[email protected]> Tested-by: Timur Tabi <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions