All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Stefan Wahren <stefan.wahren@i2se.com>,
	Robin Murphy <robin.murphy@arm.com>,
	Florian Fainelli <f.fainelli@gmail.com>,
	Maxime Ripard <maxime@cerno.tech>, Christoph Hellwig <hch@lst.de>,
	Phil Elwell <phil@raspberrypi.com>,
	Linux ARM <linux-arm-kernel@lists.infradead.org>,
	Alexander Stein <alexander.stein@ew.tq-group.com>
Subject: Re: ARM_LPAE + VMSPLIT_2G cause swiotlb warning on Raspberry Pi 4
Date: Wed, 17 May 2023 12:06:35 +0100	[thread overview]
Message-ID: <ZGS1OyZx4JQTLxlz@shell.armlinux.org.uk> (raw)
In-Reply-To: <5cda1c4b-4c32-4509-9b02-62b2c6b50827@app.fastmail.com>

On Wed, May 17, 2023 at 12:54:30PM +0200, Arnd Bergmann wrote:
> On Wed, May 17, 2023, at 12:34, Arnd Bergmann wrote:
> > On Wed, May 17, 2023, at 12:24, Stefan Wahren wrote:
> >> Am 17.05.23 um 12:06 schrieb Robin Murphy:
> >>> On 2023-05-17 07:23, Stefan Wahren wrote:
> >
> > I think LPAE doesn't affect it, the configurations that Stefan
> > mentioned were LPAE with VMSPLIT_2G (broken), non-LPAE with
> > VMSPLIT_3G (works) and LPAE with VMSPLIT_3G (works). I would assume
> > that non-LPAE with VMSPLIT_2G or VMSPLIT_3G_OPT is also broken.
> >
> >> This one?
> >> [    0.000000] software IO TLB: area num 4.
> >> [    0.000000] software IO TLB: mapped [mem 
> >> 0x0000000069e7f000-0x000000006de7f000] (64MB)
> >
> > Indeed, that is clearly above the .dma_zone_size value from
> > the machine descriptor.
> 
> It looks like Arm does not set the ARCH_LOW_ADDRESS_LIMIT
> constant for swiotlb, so it gets the default 4GB maximum.
> 
> I think this would work on arm, though it's probably not the
> correct fix in general, as I think MAX_DMA_ADDRESS is meant
> to refer to the ISA_DMA_API limit, not the ZONE_DMA limit.:

MAX_DMA_ADDRESS is a _virtual_ address. What is ARCH_LOW_ADDRESS_LIMIT?

I can find no reference to this in obvious places (mm/ lib/ kernel/
drivers/base/ drivers/iommu/)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2023-05-17 11:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-16 20:46 ARM_LPAE + VMSPLIT_2G cause swiotlb warning on Raspberry Pi 4 Stefan Wahren
2023-05-16 22:17 ` Florian Fainelli
2023-05-17  6:23   ` Stefan Wahren
2023-05-17 10:06     ` Robin Murphy
2023-05-17 10:24       ` Stefan Wahren
2023-05-17 10:34         ` Arnd Bergmann
2023-05-17 10:54           ` Arnd Bergmann
2023-05-17 11:06             ` Russell King (Oracle) [this message]
2023-05-17 11:08               ` Russell King (Oracle)
2023-05-17 11:08             ` Robin Murphy
2023-05-17 14:35             ` Stefan Wahren
2023-05-17 14:45               ` Russell King (Oracle)
2023-05-17 17:40                 ` Stefan Wahren
2023-05-17 10:36         ` Robin Murphy
2023-05-17  7:37 ` Arnd Bergmann
2023-05-17 10:40   ` Stefan Wahren
2023-05-17 11:00     ` Arnd Bergmann

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=ZGS1OyZx4JQTLxlz@shell.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=alexander.stein@ew.tq-group.com \
    --cc=arnd@arndb.de \
    --cc=f.fainelli@gmail.com \
    --cc=hch@lst.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=maxime@cerno.tech \
    --cc=phil@raspberrypi.com \
    --cc=robin.murphy@arm.com \
    --cc=stefan.wahren@i2se.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.