Re: [PATCH 3/3] gpu: nova-core: Move one PBUS register definition

From: Alexandre Courbot

Date: Sat Jul 25 2026 - 09:31:10 EST


On Wed Jul 22, 2026 at 12:51 AM JST, Nanonej Dev wrote:
>> - Move the `NV_PBUS_SW_SCRATCH_0E_FRTS_ERR` register under the `gsp`
>> module, since it is clearly themed after `FRTS`, which is part of the
>> GSP boot. But, without moving `NV_PBUS_SW_SCRATCH` (the actual
>> register being aliased). I expect you will hit a bug of the `register`
>> macro when doing this one - I'll try to address it, but the first two
>> steps should be safe to do and correct.
>
> You told me that I would hit a bug on `NV_PBUS_SW_SCRATCH`, but as far as I compile, I didn't. Anything I could have missed?

I was expecting issues with relative registers that need to refer to a
base type defined in another module; but as relative registers should be
going away soon [1], so will this problem. IOW, I suggest waiting a bit
before attempting to move the PFALCON/PFALCON2 registers.

[1] https://lore.kernel.org/all/20260721-typed_register-v1-0-452d72b60262@xxxxxxxxxxx/