Re: [PATCH net-next v3 5/6] net: ftgmac100: Add AST2700 upper DMA address support

From: Andrew Lunn

Date: Fri Oct 16 2026 - 17:04:59 EST


On Thu, Oct 15, 2026 at 02:46:57PM +0800, Jacky Chou wrote:
> Program the high RX and TX descriptor ring base registers and carry the
> upper DMA address bits in RX and TX descriptors. Rebuild full buffer DMA
> addresses in a 64-bit type before unmapping them so bits 34:32 are not
> lost to 32-bit arithmetic.
>
> The descriptor format provides three upper buffer address bits, so
> request a 35-bit DMA mask instead of advertising an address range that
> the hardware cannot encode. Gate all extended address handling with a
> match-data quirk so older register layouts remain untouched and later
> compatible controllers can opt into the same capability.
>
> Signed-off-by: Jacky Chou <jacky_chou@xxxxxxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew