* Re: [PATCH][RFC] PCI: rcar: Add bus notifier so we can limit the DMA range [not found] ` <c2897d82-fe33-52cd-5aa6-3bddb478cb9f@gmail.com> @ 2018-06-04 22:30 ` Bjorn Helgaas 2018-06-06 15:45 ` Will Deacon 0 siblings, 1 reply; 2+ messages in thread From: Bjorn Helgaas @ 2018-06-04 22:30 UTC (permalink / raw) To: Marek Vasut Cc: Arnd Bergmann, linux-pci, Phil Edworthy, Marek Vasut, Geert Uytterhoeven, Simon Horman, Wolfram Sang, Linux-Renesas, Nikita Yushchenko, Catalin Marinas, Will Deacon, linux-arm-kernel, linux-kernel [+cc ARM64 folks, linux-kernel] The original patch under discussion is: https://lkml.kernel.org/r/20180521220514.30256-1-marek.vasut+renesas@gmail.com On Tue, May 22, 2018 at 11:52:21AM +0200, Marek Vasut wrote: > On 05/22/2018 10:10 AM, Arnd Bergmann wrote: > > On Tue, May 22, 2018 at 12:05 AM, Marek Vasut <marek.vasut@gmail.com> wrote: > >> From: Phil Edworthy <phil.edworthy@renesas.com> > >> > >> The PCIe DMA controller on RCar Gen2 and earlier is on 32bit bus, > >> so limit the DMA range to 32bit. > >> > >> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> > >> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> > >> Cc: Arnd Bergmann <arnd@arndb.de> > >> Cc: Geert Uytterhoeven <geert+renesas@glider.be> > >> Cc: Phil Edworthy <phil.edworthy@renesas.com> > >> Cc: Simon Horman <horms+renesas@verge.net.au> > >> Cc: Wolfram Sang <wsa@the-dreams.de> > >> Cc: linux-renesas-soc@vger.kernel.org > >> To: linux-pci@vger.kernel.org > >> --- > >> NOTE: I'm aware of https://patchwork.kernel.org/patch/9495895/ , but the > >> discussion seems to have gone way off, so I'm sending this as a > >> RFC. Any feedback on how to do this limiting properly would be nice. > > > > Doing it in the driver is clearly not appropriate, we must do this in > > common code. If I remember correctly, it's specifically ARM64 that is > > broken here, it incorrectly allows setting a DMA mask to 64 bit > > when that is not available. > > Yep, that's correct. ARM64 with devices mapping tremendous amounts of > memory. So did anything change since that discussion references in the NOTE? > > -- > Best regards, > Marek Vasut ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH][RFC] PCI: rcar: Add bus notifier so we can limit the DMA range 2018-06-04 22:30 ` [PATCH][RFC] PCI: rcar: Add bus notifier so we can limit the DMA range Bjorn Helgaas @ 2018-06-06 15:45 ` Will Deacon 0 siblings, 0 replies; 2+ messages in thread From: Will Deacon @ 2018-06-06 15:45 UTC (permalink / raw) To: Bjorn Helgaas Cc: Marek Vasut, Arnd Bergmann, linux-pci, Phil Edworthy, Marek Vasut, Geert Uytterhoeven, Simon Horman, Wolfram Sang, Linux-Renesas, Nikita Yushchenko, Catalin Marinas, linux-arm-kernel, linux-kernel On Mon, Jun 04, 2018 at 05:30:48PM -0500, Bjorn Helgaas wrote: > [+cc ARM64 folks, linux-kernel] > > The original patch under discussion is: > https://lkml.kernel.org/r/20180521220514.30256-1-marek.vasut+renesas@gmail.com > > On Tue, May 22, 2018 at 11:52:21AM +0200, Marek Vasut wrote: > > On 05/22/2018 10:10 AM, Arnd Bergmann wrote: > > > On Tue, May 22, 2018 at 12:05 AM, Marek Vasut <marek.vasut@gmail.com> wrote: > > >> From: Phil Edworthy <phil.edworthy@renesas.com> > > >> > > >> The PCIe DMA controller on RCar Gen2 and earlier is on 32bit bus, > > >> so limit the DMA range to 32bit. > > >> > > >> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> > > >> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> > > >> Cc: Arnd Bergmann <arnd@arndb.de> > > >> Cc: Geert Uytterhoeven <geert+renesas@glider.be> > > >> Cc: Phil Edworthy <phil.edworthy@renesas.com> > > >> Cc: Simon Horman <horms+renesas@verge.net.au> > > >> Cc: Wolfram Sang <wsa@the-dreams.de> > > >> Cc: linux-renesas-soc@vger.kernel.org > > >> To: linux-pci@vger.kernel.org > > >> --- > > >> NOTE: I'm aware of https://patchwork.kernel.org/patch/9495895/ , but the > > >> discussion seems to have gone way off, so I'm sending this as a > > >> RFC. Any feedback on how to do this limiting properly would be nice. > > > > > > Doing it in the driver is clearly not appropriate, we must do this in > > > common code. If I remember correctly, it's specifically ARM64 that is > > > broken here, it incorrectly allows setting a DMA mask to 64 bit > > > when that is not available. > > > > Yep, that's correct. ARM64 with devices mapping tremendous amounts of > > memory. So did anything change since that discussion references in the NOTE? Is it specifically arm64 that's broken here? If so, why and how do other archs (e.g. riscv) handle this? I thought all of this behaviour was driven by the DMA ops, and we're just using generic code for that afaict. Will ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-06-06 15:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20180521220514.30256-1-marek.vasut+renesas@gmail.com>
[not found] ` <CAK8P3a1PZ_MfgEcvWdUbN-eCcs5Xo38LQ54imLc4kNtSKO9Txw@mail.gmail.com>
[not found] ` <c2897d82-fe33-52cd-5aa6-3bddb478cb9f@gmail.com>
2018-06-04 22:30 ` [PATCH][RFC] PCI: rcar: Add bus notifier so we can limit the DMA range Bjorn Helgaas
2018-06-06 15:45 ` Will Deacon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox