linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Xie Shaohui-B21989 <B21989@freescale.com>,
	Zang Roy-R61911 <r61911@freescale.com>,
	Timur Tabi <timur@tabi.org>,
	"tiejun.chen" <tiejun.chen@windriver.com>,
	Fleming Andy-AFLEMING <afleming@freescale.com>,
	Bhushan Bharat-R65777 <R65777@freescale.com>,
	"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: FSL 64-bit DMA window question
Date: Fri, 7 Jun 2013 17:34:35 -0500	[thread overview]
Message-ID: <1370644475.6813.17@snotra> (raw)
In-Reply-To: <1370642994.3766.421.camel@pasglop> (from benh@kernel.crashing.org on Fri Jun  7 17:09:54 2013)

On 06/07/2013 05:09:54 PM, Benjamin Herrenschmidt wrote:
> On Fri, 2013-06-07 at 17:02 -0500, Scott Wood wrote:
> > O
> > > I thought the device tree was for describing the hardware, rather
> > > than configuration? :-)
>=20
> A bit of both really. See things like /chosen etc...
>=20
> Also to what extent a MAC address is HW vs. configuration ? :-)

Normally I'd consider that hardware, unless you're overriding it for =20
some reason.

> The HW configuration for a given boards (ie, internal address map,
> location of the various bridge windows etc...) is a fairly common =20
> thing
> to put in a device-tree.

Sure, there's some stuff that is technically software config, but which =20
is easier to treat as a fixed property of the hardware once U-Boot is =20
done setting it up.  But U-Boot doesn't have anything to do with this =20
DMA window...

> If the PCI outbound windows are there (and they are), why not the
> inbound ones ? IE, it's not far fetched.

PCI outbound windows (and the LAWs that back them up) are set up by =20
U-Boot.  With the current FSL kernel code, if you set it to something =20
that isn't covered by a PCIe LAW from U-Boot, it won't work.

> > > A kernel command line option might be more appropriate, unless you
> > > just mean describing the difference between e6500 (which supports =20
> 40
> > > bit addresses) and previous chips (which support 36 bits), rather
> > > than an ability to move it earlier even on e6500.
>=20
> Well, so we could indeed locate it at 36 on e5500 and that would clear
> the current use case and break again on e6500... or we can make it
> depend on the overall address map of the board, which is described
> in the device-tree. IE, if you don't "locate" anything above 39-bit
> in our address map, then using 39 for the window is ok. IE. It's a
> choice. A server board setup that doesn't need gfx but want address
> space for some other things wouldn't care.

I suppose we could put in the device tree the highest address that has =20
been configured for anything...  though for that to be useful we'd need =20
to get out of the habit of putting CCSR near the top of the physical =20
address space.

> > > Maybe we could by default use the size of actual RAM, rather than =20
> the
> > > physical address space.  Then only odd scenarios such as DMA to
> > > non-kernel-owned RAM would need manual adjustment (MSIs would =20
> still
> > > go through the special window below 4G).
>=20
> You also need to account for other on-chip MMIOs no ? Or do you never
> intend to let PCI devices hit them ?

I don't think we normally need that (other than MSIs, which have a =20
special window under 4G)...  The question is whether it's better to let =20
odd use cases work without having to manually move the DMA window, at =20
the cost of decreased out-of-the-box performance with common PCIe cards.

-Scott=

  reply	other threads:[~2013-06-07 22:34 UTC|newest]

Thread overview: 78+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-16  4:47 SATA FSL and upstreaming Benjamin Herrenschmidt
2013-05-16  5:45 ` Benjamin Herrenschmidt
2013-05-16  5:55   ` tiejun.chen
2013-05-16  6:06     ` Benjamin Herrenschmidt
2013-05-16  5:59   ` Zang Roy-R61911
2013-05-16  6:01   ` Bhushan Bharat-R65777
2013-05-16  6:05     ` Zang Roy-R61911
2013-05-16  6:09       ` Benjamin Herrenschmidt
2013-05-16  6:17         ` tiejun.chen
2013-05-16  6:20           ` Zang Roy-R61911
2013-05-16  6:25             ` tiejun.chen
2013-05-16  7:20               ` Zang Roy-R61911
2013-05-16  6:26             ` Benjamin Herrenschmidt
2013-05-16  6:21           ` Benjamin Herrenschmidt
2013-05-16  6:35             ` tiejun.chen
2013-05-16  6:37               ` Zang Roy-R61911
2013-05-16  6:40               ` Benjamin Herrenschmidt
2013-05-16  6:43                 ` tiejun.chen
2013-05-16  6:48                   ` Bhushan Bharat-R65777
2013-05-16  6:49                     ` Zang Roy-R61911
2013-05-16  6:53                       ` Benjamin Herrenschmidt
2013-05-16  6:56                         ` tiejun.chen
2013-05-16  7:01                         ` Zang Roy-R61911
2013-05-16  7:05                           ` Benjamin Herrenschmidt
2013-05-16  7:13                             ` Bhushan Bharat-R65777
2013-05-16  7:26                               ` Benjamin Herrenschmidt
2013-05-16  7:20                             ` Xie Shaohui-B21989
2013-05-16  7:25                             ` Bhushan Bharat-R65777
2013-05-16  6:59                       ` Benjamin Herrenschmidt
2013-05-16  7:17                         ` Zang Roy-R61911
2013-05-16  6:52                     ` Benjamin Herrenschmidt
2013-05-16 14:56                       ` Timur Tabi
2013-06-07  3:52                         ` Benjamin Herrenschmidt
2013-06-07  4:39                           ` Benjamin Herrenschmidt
2013-06-07  4:45                             ` Zang Roy-R61911
2013-06-07  4:47                               ` Benjamin Herrenschmidt
2013-06-07  4:50                                 ` Zang Roy-R61911
2013-06-07  7:41                                   ` fsqrt Benjamin Herrenschmidt
2013-06-07  7:45                                     ` fsqrt Zang Roy-R61911
2013-06-07  8:53                                       ` fsqrt Benjamin Herrenschmidt
2013-06-07  8:59                                         ` fsqrt Benjamin Herrenschmidt
2013-06-07 10:48                                           ` fsqrt David Laight
2013-06-07 12:14                                             ` fsqrt Benjamin Herrenschmidt
2013-06-07 19:19                                               ` fsqrt Kumar Gala
2013-06-07 23:23                                                 ` fsqrt Benjamin Herrenschmidt
2013-06-07 23:25                                                   ` fsqrt Benjamin Herrenschmidt
2013-06-07 23:30                                                     ` fsqrt Benjamin Herrenschmidt
2013-06-08  0:20                                                       ` fsqrt Dan Malek
2013-06-08  0:34                                                         ` fsqrt Benjamin Herrenschmidt
2013-06-08  1:13                                                           ` fsqrt Dan Malek
2013-06-08  4:31                                                             ` fsqrt Benjamin Herrenschmidt
2013-06-09  6:32                                                             ` fsqrt Benjamin Herrenschmidt
2013-06-07  7:46                                     ` fsqrt tiejun.chen
2013-06-07  8:53                                       ` fsqrt Benjamin Herrenschmidt
2013-06-07  9:02                                         ` fsqrt tiejun.chen
2013-06-07 12:07                                           ` fsqrt Benjamin Herrenschmidt
2013-06-07  7:05                               ` FSL 64-bit DMA window question Benjamin Herrenschmidt
2013-06-07  7:58                                 ` Zang Roy-R61911
2013-06-07  8:55                                   ` Benjamin Herrenschmidt
2013-06-07  9:44                                     ` Zang Roy-R61911
2013-06-07 12:09                                       ` Benjamin Herrenschmidt
     [not found]                                         ` <1370642488.6813.15@snotra>
2013-06-07 22:02                                           ` Scott Wood
2013-06-07 22:09                                             ` Benjamin Herrenschmidt
2013-06-07 22:34                                               ` Scott Wood [this message]
2013-06-07 22:39                                                 ` Benjamin Herrenschmidt
2013-06-07 23:29                                                   ` Scott Wood
2013-06-07 23:33                                                     ` Benjamin Herrenschmidt
2013-06-07 12:09                             ` SATA FSL and upstreaming Timur Tabi
2013-05-16  6:17         ` Zang Roy-R61911
2013-05-16  6:23           ` Benjamin Herrenschmidt
2013-05-16  6:33             ` Bhushan Bharat-R65777
2013-05-16  6:34               ` Benjamin Herrenschmidt
2013-05-16  6:35               ` Zang Roy-R61911
2013-05-16  6:37               ` Benjamin Herrenschmidt
2013-05-16  6:41                 ` tiejun.chen
2013-05-16  6:48               ` Zang Roy-R61911
2013-05-16  6:24 ` Xie Shaohui-B21989
2013-05-16  6:31   ` Benjamin Herrenschmidt

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=1370644475.6813.17@snotra \
    --to=scottwood@freescale.com \
    --cc=B21989@freescale.com \
    --cc=R65777@freescale.com \
    --cc=afleming@freescale.com \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=r61911@freescale.com \
    --cc=tiejun.chen@windriver.com \
    --cc=timur@tabi.org \
    /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;
as well as URLs for NNTP newsgroup(s).