Skip to content

Commit 94a0872

Browse files
GnurouDanilo Krummrich
authored andcommitted
gpu: nova-core: increase BAR0 size to 16MB
The Turing+ register address space spans over that range, so increase it as future patches will access more registers. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Link: https://lore.kernel.org/r/20250619-nova-frts-v6-10-ecf41ef99252@nvidia.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
1 parent e66aaaf commit 94a0872

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/nova-core/driver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22

3-
use kernel::{auxiliary, bindings, c_str, device::Core, pci, prelude::*};
3+
use kernel::{auxiliary, bindings, c_str, device::Core, pci, prelude::*, sizes::SZ_16M};
44

55
use crate::gpu::Gpu;
66

@@ -11,7 +11,7 @@ pub(crate) struct NovaCore {
1111
_reg: auxiliary::Registration,
1212
}
1313

14-
const BAR0_SIZE: usize = 8;
14+
const BAR0_SIZE: usize = SZ_16M;
1515
pub(crate) type Bar0 = pci::Bar<BAR0_SIZE>;
1616

1717
kernel::pci_device_table!(

0 commit comments

Comments
 (0)