Re: [PATCH 15/16] gpu: nova-core: mm: Add BAR1 user interface

From: Dave Airlie

Date: Thu Sep 17 2026 - 23:38:52 EST


On Wed, 9 Sept 2026 at 14:25, Eliot Courtney <ecourtney@xxxxxxxxxx> wrote:
>
> From: Joel Fernandes <joelagnelf@xxxxxxxxxx>
>
> Add the BAR1 user interface for CPU access to GPU virtual memory through
> the BAR1 aperture.
>
> Signed-off-by: Joel Fernandes <joelagnelf@xxxxxxxxxx>
> [ecourtney: map BAR1 in NovaCore, borrow it in Gpu and BarUser, no Devres]
> [ecourtney: update for the VramAddress raw API and gsp_resources chipset]
> [ecourtney: drop the owned GpuMm, pass it mutably through map and release]
> Signed-off-by: Eliot Courtney <ecourtney@xxxxxxxxxx>
> ---

BAR 1 and 2 need to be optionally detected and used. At least on SPARK
there is only BAR0.

I've been playing with John's branch on spark and had to rework this
code to make BAR 1 optional.

Dave.