linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org
Subject: Re: [PATCH 1/4] Add DMA sector to Documentation/powerpc/booting-without-of.txt file.
Date: Wed, 11 Jul 2007 14:03:38 -0500	[thread overview]
Message-ID: <4695298A.6090604@freescale.com> (raw)
In-Reply-To: <12728378-7DC8-41D9-BCF4-5F883F651E40@kernel.crashing.org>

Segher Boessenkool wrote:
>> that if we really wanted to we could describe as a
>> second reg resource in each channel, combined with a channel-ID  
>> property.
> 
> 
> You cannot describe one register in two different nodes.

Why not?  It's read-only.

>> I'm not inclined to bother, though -- not because we don't  currently use
>> it, but because I have a hard time seeing anyone needing to use it.
> 
> 
> Unless you're sure no one ever wants to use it, it should be in
> the device tree.

There are lots of registers that are used that aren't in the device 
tree.  This one's pretty low on the priority list to get added, IMHO.

>> There is no information in that register that is not the individual
>> channels' registers.
> 
> People use it to get the status of all registers at once.  I/O reads
> aren't cheap...

On-chip I/O reads shouldn't be all that slow...

>> It's by far the simplest way to tell the generic DMA driver "do not
>> touch".  "fsl,mpc8548-dma" says "this is a generic, mem-to-mem DMA  
>> channel".
> 
> 
> I would expect it to mean "this is the 8548 DMA controller".

What if the mem-to-mem channels were explicitly labelled 
fsl,mpc8548-dma-mem-to-mem?

>> "fsl,mpc8548-audio-dma" says "this is a non-generic DMA channel,  
>> hooked up to an audio codec".
> 
> So this DMA channel cannot be used for general purpose stuff
> at all?

I don't know if it *can* or not, though it'd be a pretty unusual way of 
using it.  In any case, the device tree should be able to handle the 
case where it can't.

> Sure, we agree on this.  It is prudent to describe in the sound
> node which DMA channel is associated with the sound thing though,
> even if this is a SoC and all that.  It is just describing the
> hardware; if your sound driver wants to hardcode the DMA stuff,
> that's fine with me, but that's no reason to not describe the
> relation in the device tree.

Sure, I was never saying that there shouldn't be phandle linkage from 
the sound node to the dma channel node.  I just don't want the 
mem-to-mem driver to have to go to great lengths to figure out whether 
it owns the channel.

Phandle linkage the other way could work, though; if the channel has a 
phandle set in an attached-device property, then the mem-to-mem driver 
leaves it alone.

> I see no reason to pretend the non-mem-to-mem channels are somehow
> different from the mem-to-mem channels.

But they are different, just like an SCC UART is different from an SCC 
ethernet, even though they both go through the SCC.

-Scott

  reply	other threads:[~2007-07-11 19:03 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-10  9:44 [PATCH 0/4] DMA engine driver for Freescale MPC8xxx processor Zhang Wei
2007-07-10  9:44 ` [PATCH 1/4] Add DMA sector to Documentation/powerpc/booting-without-of.txt file Zhang Wei
2007-07-10  9:44   ` [PATCH 2/4] Add dma sector to mpc8641hpcn board dts Zhang Wei
2007-07-10 13:55     ` Segher Boessenkool
2007-07-11  7:16       ` Zhang Wei-r63237
2007-07-11 11:27         ` Segher Boessenkool
2007-07-12  9:51           ` Zhang Wei-r63237
2007-07-10 13:57     ` Segher Boessenkool
2007-07-11  7:17       ` Zhang Wei-r63237
2007-07-10 14:01   ` [PATCH 1/4] Add DMA sector to Documentation/powerpc/booting-without-of.txt file Segher Boessenkool
2007-07-10 16:11     ` Scott Wood
2007-07-11 10:00       ` Zhang Wei-r63237
2007-07-11 15:23         ` Scott Wood
2007-07-11 17:53           ` Segher Boessenkool
2007-07-12  9:48             ` Zhang Wei-r63237
2007-07-12 17:12               ` Phil Terry
2007-07-12 19:10                 ` Scott Wood
2007-07-16 14:56                   ` Segher Boessenkool
2007-07-16 14:54                 ` Segher Boessenkool
2007-07-17 11:17                   ` Paul Mackerras
2007-07-17 15:36                     ` Segher Boessenkool
2007-07-11 11:18       ` Segher Boessenkool
2007-07-11 15:30         ` Scott Wood
2007-07-11 18:01           ` Segher Boessenkool
2007-07-11 18:18             ` Scott Wood
2007-07-11 18:43               ` Segher Boessenkool
2007-07-11 19:03                 ` Scott Wood [this message]
2007-07-11 19:19                   ` Segher Boessenkool
2007-07-11 19:27                     ` Scott Wood
2007-07-11 20:27                       ` Segher Boessenkool
2007-07-11 10:06     ` Zhang Wei-r63237
2007-07-11 11:40       ` Segher Boessenkool
2007-07-12  9:45         ` Zhang Wei-r63237

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=4695298A.6090604@freescale.com \
    --to=scottwood@freescale.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.org \
    --cc=segher@kernel.crashing.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).