From: "Alexandre Courbot" <acourbot@nvidia.com>
To: "Eliot Courtney" <ecourtney@nvidia.com>
Cc: <airlied@redhat.com>, "Danilo Krummrich" <dakr@kernel.org>,
"David Airlie" <airlied@gmail.com>, <nova-gpu@lists.linux.dev>,
<dri-devel@lists.freedesktop.org>,
"dri-devel" <dri-devel-bounces@lists.freedesktop.org>
Subject: Re: [PATCH] gpu: nova-core: make pramin/buddy optional
Date: Fri, 30 Oct 2026 20:23:13 +0900 [thread overview]
Message-ID: <DMI4UK02HZB8.1KEPETWUOZ7E5@nvidia.com> (raw)
In-Reply-To: <DMI0H1ZU5R4C.25MM4QF6UDWA2@nvidia.com>
On Fri Oct 30, 2026 at 4:57 PM JST, Eliot Courtney wrote:
> On Mon Oct 26, 2026 at 1:24 PM JST, Dave Airlie via B4 Relay wrote:
>> From: Dave Airlie <airlied@redhat.com>
>>
>> These aren't used on systems with no framebuffer memory.
>>
>> Signed-off-by: Dave Airlie <airlied@redhat.com>
>> ---
>> drivers/gpu/nova-core/gpu.rs | 15 +++++++------
>> drivers/gpu/nova-core/mm.rs | 34 +++++++++++++++---------------
>> drivers/gpu/nova-core/mm/bar_user.rs | 14 ++++++------
>> drivers/gpu/nova-core/mm/pagetable/map.rs | 10 ++++-----
>> drivers/gpu/nova-core/mm/pagetable/walk.rs | 2 +-
>> 5 files changed, 38 insertions(+), 37 deletions(-)
>>
>> diff --git a/drivers/gpu/nova-core/gpu.rs b/drivers/gpu/nova-core/gpu.rs
>> index 4e59072cab50..5d53fde2cdc1 100644
>> --- a/drivers/gpu/nova-core/gpu.rs
>> +++ b/drivers/gpu/nova-core/gpu.rs
>> @@ -564,18 +564,19 @@ pub(crate) fn new<'a>(
>>
>> // Create GPU memory manager owning memory management resources.
>> mm: {
>> - let usable_vram = gsp_static_info.usable_fb_regions.first().ok_or(ENODEV)?;
>> - let buddy_params = GpuBuddyParams {
>> - base_offset: usable_vram.start,
>> - size: usable_vram.end - usable_vram.start,
>> - chunk_size: Alignment::new::<SZ_4K>(),
>> - };
>> + let buddy_params = gsp_static_info.usable_fb_regions.first().map(|usable_vram| {
>> + GpuBuddyParams {
>> + base_offset: usable_vram.start,
>> + size: usable_vram.end - usable_vram.start,
>> + chunk_size: Alignment::new::<SZ_4K>(),
>> + }
>> + });
>
> We should probably add a helper method on e.g. Chipset to say which
> chips we expect FB on vs not, instead of proceeding with no fb regions
> here for ones where we expect there to be one.
Typically "a helper method on Chipset" means that we want a HAL method.
It just so happens that we already have a FB HAL, and a `vidmem_size`
method on it. I don't know if a vidmem size of `0` can always be
interpreted as "no framebuffer", but if not maybe we can rework it to
add that information, or just add a new method.
prev parent reply other threads:[~2026-10-30 11:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-26 4:24 [PATCH] gpu: nova-core: make pramin/buddy optional Dave Airlie via B4 Relay
2026-10-26 6:58 ` sashiko-bot
2026-10-26 18:50 ` Danilo Krummrich
2026-10-30 3:51 ` Alexandre Courbot
2026-10-30 6:18 ` David Airlie
2026-10-30 11:28 ` Alexandre Courbot
2026-10-30 7:54 ` Eliot Courtney
2026-10-30 7:57 ` Eliot Courtney
2026-10-30 11:23 ` Alexandre Courbot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DMI4UK02HZB8.1KEPETWUOZ7E5@nvidia.com \
--to=acourbot@nvidia.com \
--cc=airlied@gmail.com \
--cc=airlied@redhat.com \
--cc=dakr@kernel.org \
--cc=dri-devel-bounces@lists.freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=ecourtney@nvidia.com \
--cc=nova-gpu@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox