Re: [PATCH net-next v2 1/2] net: sgi: ioc3-eth: apply the DMA attributes only to 64-bit addresses

From: Imre Kaloz

Date: Sat Nov 28 2026 - 11:29:46 EST


On Thu, Nov 19, 2026, at 11:22, netdev-bot+sashiko@xxxxxxxxxx wrote:

> For a 32-bit direct window address, ioc3_map() now returns the bare
> address and ioc3_erbar() returns 0. Where do the dropped attributes come
> from in that case?

>From the slot's Device(x) register. Nothing sets them there yet, so
the IP35 Bridge support has to. v3 says so:
https://lore.kernel.org/r/20261128155146.2836-1-kaloz@xxxxxxxxxx

> Wouldn't ERBAR still OR the barrier attribute into the
> upper bits of that buffer's last store, which gives the widget 0 address
> this patch is meant to avoid?

No. With the IP35 changes, phys_to_dma() picks the form from the
IOC3's bus_dma_limit, so all DMA of one IOC3 uses the same form.

> Can this deadlock on SMP?

Yes, fixed here:
https://lore.kernel.org/r/20261128154953.2664-1-kaloz@xxxxxxxxxx


Thanks,
Imre