mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Imre Kaloz" <kaloz@kernel.org>
To: netdev-bot+sashiko@kernel.org
Cc: "Thomas Bogendoerfer" <tsbogend@alpha.franken.de>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"Andrew Lunn" <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@kernel.org>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Paolo Abeni" <pabeni@redhat.com>,
	linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v2 1/2] net: sgi: ioc3-eth: apply the DMA attributes only to 64-bit addresses
Date: Sat, 28 Nov 2026 17:29:09 +0100	[thread overview]
Message-ID: <4a95e051-9fec-47be-88a8-0cd41b5342b4@app.fastmail.com> (raw)
In-Reply-To: <179508377005.3136.7735552086490209084@kernel.org>

On Thu, Nov 19, 2026, at 11:22, netdev-bot+sashiko@kernel.org 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@kernel.org

> 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@kernel.org


Thanks,
Imre

  reply	other threads:[~2026-11-28 16:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16 10:21 [PATCH net-next v2 0/2] net: sgi: ioc3-eth: two changes for the IOC3 on SGI IP35 machines Imre Kaloz
2026-11-16 10:21 ` [PATCH net-next v2 1/2] net: sgi: ioc3-eth: apply the DMA attributes only to 64-bit addresses Imre Kaloz
2026-11-19 10:22   ` netdev-bot+sashiko
2026-11-28 16:29     ` Imre Kaloz [this message]
2026-11-16 10:21 ` [PATCH net-next v2 2/2] net: sgi: ioc3-eth: take the MAC address from a device property Imre Kaloz
2026-11-19 10:22   ` netdev-bot+sashiko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4a95e051-9fec-47be-88a8-0cd41b5342b4@app.fastmail.com \
    --to=kaloz@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=tsbogend@alpha.franken.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®