[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200422135642.GD3585@gaia>
Date: Wed, 22 Apr 2020 14:56:43 +0100
From: Catalin Marinas <catalin.marinas@....com>
To: Russell King - ARM Linux admin <linux@...linux.org.uk>
Cc: James Morse <james.morse@....com>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>, info@...ux.net,
linux-kernel@...r.kernel.org, linuxarm@...wei.com,
allison@...utok.net, gregkh@...uxfoundation.org,
Tian Tao <tiantao6@...ilicon.com>, tglx@...utronix.de,
Will Deacon <will@...nel.org>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] arm32: fix flushcache syscall with device address
On Tue, Apr 21, 2020 at 05:55:16PM +0100, Russell King wrote:
> On Tue, Apr 21, 2020 at 05:50:22PM +0100, James Morse wrote:
> > (Subject Nit: arm64, as that is what your patch modifies)
>
> That is irrelevent. This is a compatibility interface which is supposed
> to reflect the arm32 implementation. Augmenting a compatibility
> interface to do more than what it's counterpart that it's supposed to
> be compatible with is senseless.
>
> The API concerned is an ARM32 API which is expected to only be used
> for ensuring I/D cache coherency, it is not for DMA.
>
> Augmenting it on ARM64 for DMA is senseless.
I fully agree. I don't see any valid reason why this needs to be fixed.
It looks like some broken user process trying to do cache maintenance to
PoU on the mapped PCIe BAR (either inadvertently or for the wrong
reasons).
--
Catalin
Powered by blists - more mailing lists