From: Russell King - ARM Linux admin <linux@armlinux.org.uk>
To: Christoph Hellwig <hch@lst.de>
Cc: Roger Quadros <rogerq@ti.com>,
"hdegoede@redhat.com" <hdegoede@redhat.com>,
axboe@kernel.dk, iommu@lists.linux-foundation.org,
linux-ide@vger.kernel.org, linux-omap@vger.kernel.org,
jejb@linux.ibm.com, martin.petersen@oracle.com, "Nori,
Sekhar" <nsekhar@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>,
Tony Lindgren <tony@atomide.com>
Subject: Re: SATA broken with LPAE
Date: Thu, 27 Jun 2019 10:07:53 +0100 [thread overview]
Message-ID: <20190627090753.b5xfpnsicynnqj5c@shell.armlinux.org.uk> (raw)
In-Reply-To: <20190626125325.GA4744@lst.de>
On Wed, Jun 26, 2019 at 02:53:25PM +0200, Christoph Hellwig wrote:
> Hi Roger,
>
> it seems the arm dma direct mapping code isn't doing the right thing
> here. On other platforms that have > 4G memory we always use swiotlb
> for bounce buffering in case a device that can't DMA to all the memory.
>
> Arm is the odd one out and uses its own dmabounce framework instead,
> but it seems like it doesn't get used in this case. We need to make
> sure dmabounce (or swiotlb for that matter) is set up if > 32-bit
> addressing is supported. I'm not really an arm platform expert,
> but some of those on the Cc list are and might chime in on how to
> do that.
dmabounce has only ever been used with specific devices that have weird
setups. Otherwise, we've never expected what you describe on ARM. I
also don't recognise your assertion about the way the DMA API should
behave as ever having been documented as a requirement for architectures
to implement.
dmabounce comes with it some serious issues that have been known to
cause OOMs with old kernels (which have never been solved), so that
really isn't the answer.
This kind of breakage that is now being reported is exactly the problem
that I thought would happen with your patches.
32-bit ARM is in maintenance only now, there is no longer any appetite
nor funding for development work on core code.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up
next prev parent reply other threads:[~2019-06-27 9:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-26 8:43 SATA broken with LPAE Roger Quadros
2019-06-26 12:53 ` Christoph Hellwig
2019-06-27 9:07 ` Russell King - ARM Linux admin [this message]
2019-06-27 9:15 ` Christoph Hellwig
2019-06-27 10:09 ` Russell King - ARM Linux admin
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=20190627090753.b5xfpnsicynnqj5c@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=axboe@kernel.dk \
--cc=hch@lst.de \
--cc=hdegoede@redhat.com \
--cc=iommu@lists.linux-foundation.org \
--cc=jejb@linux.ibm.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=nsekhar@ti.com \
--cc=rogerq@ti.com \
--cc=tony@atomide.com \
--cc=vigneshr@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox