From: Simon Horman <horms@verge.net.au>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Magnus Damm <magnus.damm@gmail.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH 3/4] arm64: dts: renesas: r8a7796: Add DU device to DT
Date: Thu, 8 Dec 2016 14:28:14 +0100 [thread overview]
Message-ID: <20161208132813.GC7150@verge.net.au> (raw)
In-Reply-To: <CAMuHMdWVvdkdrUTNU+JsJp7yak2baCDyS2=k6YMD1CCrYN5r3A@mail.gmail.com>
On Fri, Nov 25, 2016 at 10:22:59AM +0100, Geert Uytterhoeven wrote:
> Hi Magnus,
>
> (this time with CC kept)
>
> On Fri, Nov 25, 2016 at 9:16 AM, Magnus Damm <magnus.damm@gmail.com> wrote:
> > On Mon, Nov 21, 2016 at 8:09 PM, Geert Uytterhoeven
> > <geert@linux-m68k.org> wrote:
> >> On Thu, Nov 17, 2016 at 9:51 AM, Magnus Damm <magnus.damm@gmail.com> wrote:
> >>> On Thu, Nov 17, 2016 at 5:31 PM, Geert Uytterhoeven
> >>> <geert@linux-m68k.org> wrote:
> >>>> On Thu, Nov 17, 2016 at 3:28 AM, Magnus Damm <magnus.damm@gmail.com> wrote:
> >>>>> First of all, we might have slightly different view of the hardware,
> >>>>> so this might need some further discussions. Also, this topic in my
> >>>>> mind is mainly about DT integration code merge ordering for r8a7796 to
> >>>>> enable >4GB memory access early on without introducing any potential
> >>>>> issues.
> >>>>
> >>>> Note that >4GB memory is already enabled on r8a7796 by U-Boot.
> >>>
> >>> Right, can you remind me - did we get any conclusion about how to
> >>> handle the memory ranges in DTS and the ones from u-boot?
> >>>
> >>> It would be good with a consistent plan how to handle such.
> >>
> >> I think we should just apply "arm64: dts: r8a7796: salvator-x: Update memory
> >> node to 4 GiB map".
> >
> > I guess that we cannot control what u-boot will pass to us, but with
> > the patch above at least we have some chance of having a consistent
> > memory map.
>
> Indeed.
>
> >> IMHO it doesn't make much sense to pretend the memory is not present nor
> >> enabled.
> >
> > Enabling all the memory makes sense at this point, but I'd like us to
> > keep considering performance of bounce buffers and/or IPMMU when
> > merging different on-chip devices that may not support addressing of
> > the full physical memory space.
> >
> > We earlier had issues with "enable-and-forget" development approach in
> > case of USB host over on-chip PCI for the R-Car Gen2 family of
> > devices. In that case the hardware was unable to do bus mastering to
> > all the memory but this was not considered as part of the upstreaming
> > plan and instead came as a nasty surprise later on. So for each device
> > that we develop code for and integrate i would like to make sure that
> > we understand how memory handling is supposed to work and what
> > potential workarounds we may have to use.
>
> Sure.
>
> All existing devices in r8a7796.dtsi in Simon's tree either use PIO, or DMA
> through SYS-DMAC. The latter supports 64-bit addressing hardware-wise,
> but the software side needs a patch to enable that, cfr. "[PATCH/RFC 5/5]
> dmaengine: rcar-dmac: Widen DMA mask to 40 bits".
> Without that, it still works, but using swiotlb bounce buffers.
>
> Once that's fixed, there are no performance deteriorations due to bounce
> buffers, with the current set of enabled devices.
So we can enable all the memory with a low risk of regression?
next prev parent reply other threads:[~2016-12-08 13:28 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-17 21:34 [PATCH 0/4] R-Car Salvator-X M3-W: Enable DU support Laurent Pinchart
2016-10-17 21:34 ` [PATCH 1/4] arm64: dts: renesas: r8a7796: Add FCPF and FCPV instances Laurent Pinchart
2016-10-18 8:49 ` Geert Uytterhoeven
2016-10-17 21:34 ` [PATCH 2/4] arm64: dts: renesas: r8a7796: Add VSP instances Laurent Pinchart
2016-10-18 9:02 ` Geert Uytterhoeven
2016-10-17 21:34 ` [PATCH 3/4] arm64: dts: renesas: r8a7796: Add DU device to DT Laurent Pinchart
2016-10-18 9:05 ` Geert Uytterhoeven
2016-10-18 9:19 ` Laurent Pinchart
2016-10-20 8:56 ` Simon Horman
2016-10-27 6:52 ` Magnus Damm
2016-10-27 7:04 ` Geert Uytterhoeven
2016-10-27 7:09 ` Magnus Damm
2016-10-27 7:13 ` Simon Horman
2016-10-27 7:25 ` Magnus Damm
2016-10-27 10:18 ` Simon Horman
2016-10-27 13:00 ` Simon Horman
2016-10-27 15:40 ` Laurent Pinchart
2016-11-15 19:12 ` Laurent Pinchart
2016-11-17 2:28 ` Magnus Damm
2016-11-17 8:31 ` Geert Uytterhoeven
2016-11-17 8:51 ` Magnus Damm
2016-11-21 11:09 ` Geert Uytterhoeven
2016-11-25 8:16 ` Magnus Damm
2016-11-25 9:22 ` Geert Uytterhoeven
2016-12-08 13:28 ` Simon Horman [this message]
2016-12-08 13:45 ` Geert Uytterhoeven
2016-11-17 9:12 ` Laurent Pinchart
2016-10-17 21:34 ` [PATCH 4/4] arm64: dts: renesas: r8a7796-salvator-x: Enable DU Laurent Pinchart
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=20161208132813.GC7150@verge.net.au \
--to=horms@verge.net.au \
--cc=geert@linux-m68k.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.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