summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAlistair Popple <apopple@nvidia.com>2026-10-01 10:56:15 +1000
committerDanilo Krummrich <dakr@kernel.org>2026-10-05 21:48:36 +0200
commite56059016a8753f26dcd6c9d826ccfdd45e8b80c (patch)
tree49f55e0977da28ad4e08b15b76e85147b56658af /scripts/Makefile.thinlto
parent04476103b7bc58d6919ecec1b52e0166a426c187 (diff)
downloadlinux-e56059016a8753f26dcd6c9d826ccfdd45e8b80c.tar.gz
linux-e56059016a8753f26dcd6c9d826ccfdd45e8b80c.zip
gpu: nova-core: Use bar1_resource_index() in NovaCoreApi::bar1_size()
bar1_size() reports the length of PCI resource 1 as the size of BAR1. That is only correct when BAR0 is a 32-bit BAR. On Blackwell, and on some Ampere GA100 and Hopper SKUs, BAR0 is 64-bit and takes resource slots 0 and 1, pushing BAR1 to slot 2. Slot 1 is then the upper half of BAR0 rather than a BAR of its own, so NOVA_GETPARAM_VRAM_BAR_SIZE reports the wrong size on those GPUs. Probe handles this with the new bar1_resource_index(), which it uses to map BAR1, so use the same lookup here. Fixes: 7edc491f6fca ("drm: nova: Use nova-core to read VRAM_BAR_SIZE parameter") Signed-off-by: Alistair Popple <apopple@nvidia.com> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Link: https://patch.msgid.link/20261001005615.77130-1-apopple@nvidia.com [ Import the driver module. - Danilo ] Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions