Re: [PATCH v2 1/3] gpu: nova-core: falcon: remove unnecessary check
Ethan Plant <[email protected]> Wed, 5 Aug 2026 00:02:31 -0700
| Newsgroups | gmane.linux.kernel.rust,gmane.comp.video.dri.devel,gmane.linux.kernel |
|---|---|
| Message-ID | <CA+ZM=sFFWx-yCWaWsUk0usONc7BMh3xckFxZj5tQx70SXtao+g@mail.gmail.com> |
On Tue, Aug 4, 2026 at 10:03 PM Alexandre Courbot <[email protected]> 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