Re: [PATCH v2 1/3] gpu: nova-core: falcon: remove unnecessary check

From: Ethan Plant

Date: Wed Aug 05 2026 - 03:04:18 EST


On Tue, Aug 4, 2026 at 10:03 PM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>
> The `try_with_base` call performed on `NV_PFALCON_FALCON_DMATRFBASE1`
> already returns `EOVERFLOW` if the address is too large for the
> register, making this check redundant.
>
> - // The DMATRFBASE/1 register pair only supports a 49-bit address.
> - if dma_start > DmaMask::new::<49>().value() {
> - dev_err!(self.dev, "DMA address {:#x} exceeds 49 bits\n", dma_start);
> - return Err(ERANGE);
> - }

This also changes the error returned for an address that does not fit
from `ERANGE` to `EOVERFLOW`, and drops the `dev_err!` diagnostic.

Is that change intentional? If so, would it be worth
mentioning that in the commit message?

Thanks,
Ethan