public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Shilimkar, Santosh" <santosh.shilimkar@ti.com>
Cc: "Pandita, Vikram" <vikram.pandita@ti.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] [OMAPZOOM]  OMAP : DMA: Spurious interrupt fix
Date: Mon, 12 Jan 2009 15:05:43 +0200	[thread overview]
Message-ID: <20090112130542.GH9373@atomide.com> (raw)
In-Reply-To: <EAF47CD23C76F840A9E7FCE10091EFAB02983E1FC5@dbde02.ent.ti.com>

* Shilimkar, Santosh <santosh.shilimkar@ti.com> [090112 15:00]:
> > -----Original Message-----
> > From: Tony Lindgren [mailto:tony@atomide.com] 
> > Sent: Monday, January 12, 2009 6:11 PM
> > To: Shilimkar, Santosh
> > Cc: Pandita, Vikram; linux-omap@vger.kernel.org
> > Subject: Re: [PATCH] [OMAPZOOM] OMAP : DMA: Spurious interrupt fix
> > 
> > * Shilimkar, Santosh <santosh.shilimkar@ti.com> [090109 15:22]:
> > > > -----Original Message-----
> > > > From: Tony Lindgren [mailto:tony@atomide.com] 
> > > > Sent: Friday, January 09, 2009 6:27 PM
> > > > To: Shilimkar, Santosh
> > > > Cc: Pandita, Vikram; linux-omap@vger.kernel.org
> > > > Subject: Re: [PATCH] [OMAPZOOM] OMAP : DMA: Spurious interrupt fix
> > > > 
> > > > * Shilimkar, Santosh <santosh.shilimkar@ti.com> [090109 14:52]:
> > > > > > -----Original Message-----
> > > > > > From: Tony Lindgren [mailto:tony@atomide.com] 
> > > > > > Sent: Friday, January 09, 2009 4:58 PM
> > > > > > To: Shilimkar, Santosh
> > > > > > Cc: Pandita, Vikram; linux-omap@vger.kernel.org
> > > > > > Subject: Re: [PATCH] [OMAPZOOM] OMAP : DMA: Spurious 
> > interrupt fix
> > > > > > 
> > > > > > * Shilimkar, Santosh <santosh.shilimkar@ti.com> 
> > [090109 12:51]:
> > > > > > > 
> > > > > > > Tony,
> > > > > > > Regarding your proposal of doing the no. of channel 
> > > > > > reservation during runtime has one problem. 
> > > > > > > 
> > > > > > > The whole idea was not to restrict users from using all 32 
> > > > > > channels and hence the config option. For OMAP secure chips, 
> > > > > > few security drivers which will execute in secure contex 
> > > > > > needs dedicated DMA channels and kernel dma library can't be 
> > > > > > used in that case. So in such cases, required DMA channels 
> > > > > > can be reserved using this config option. For GP devices all 
> > > > > > 32 channels can be used currently. 
> > > > > > > 
> > > > > > > If it can done in better way, please suggest.
> > > > > > 
> > > > > > Well how about passing the configuration for the DMA channels
> > > > > > from board-*.c file then?
> > > > > This is certainly a good option if the setting is fixed for 
> > > > a particular board type. With this how do we ensure user 
> > > > configurability. Lets say on a particular board, two 
> > > > users/customers wants to use separate configurations for DMA 
> > > > channels because of the needs what mentioned earlier. Then 
> > > > again we need some kind of comfit option.
> > > > >    Another clean way to achieve this is through 'bootargs'. 
> > > > But this might be too much of a design for this requirement.
> > > > 
> > > > Hmm, well how about starting with all of them, and allow
> > > > limiting the active DMA number via /sys? I guess we could
> > > > just set some of the DMA channels inactive that way.
> > > > 
> > > > Or maybe allow setting indvidual DMA channels inactive
> > > > via /sys?
> > > 
> > > This won't be a good option because of few limitations.
> > > - dma library init will configure the entire register set 
> > for all the channels. So through /sys disable , you have to 
> > mask all of this registers with appropriate mask depending on 
> > the no of channels deactivated. This is almost like doing 
> > another DMA init.
> > > - Secondly the security driver is active even before the 
> > dma library is initialed and hence it won't get the required 
> > reservation of channels which is bottleneck.
> > > - If both, dma library and security driver configure the 
> > DMA channels then, you end up in a problem because the way 
> > OMAP DMA hardware is.  Just a brief - "In
> > > contrast to the SDMA.DMA4_CSRi registers, the 
> > SDMA.DMA4_IRQSTATUS_Lj registers are updated regardless of 
> > the corresponding bits in the SDMA.DMA4_IRQENABLE_Lj 
> > registers". For more details, you can refer the DMA section in TRM. 
> > > Because of above, this is not seems to be an option. 
> > 
> > How about set up a cmdline option for omap dma for masking the
> > available channels?
> Do you mean through bootargs ? 
> If yes then I already wrote about it.Indeed it is nice method to do this. So if your answer is yes, I will make a patch along with spurious interrupt patch.

Yes, sorry if I missed that earlier.

Tony

      reply	other threads:[~2009-01-12 13:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04  6:21 [PATCH] [OMAPZOOM] OMAP : DMA: Spurious interrupt fix Shilimkar, Santosh
2009-01-08 15:11 ` Tony Lindgren
2009-01-09  4:51   ` Shilimkar, Santosh
2009-01-09 10:51   ` Shilimkar, Santosh
2009-01-09 11:28     ` Tony Lindgren
2009-01-09 12:52       ` Shilimkar, Santosh
2009-01-09 12:57         ` Tony Lindgren
2009-01-09 13:21           ` Shilimkar, Santosh
2009-01-12 12:40             ` Tony Lindgren
2009-01-12 13:00               ` Shilimkar, Santosh
2009-01-12 13:05                 ` Tony Lindgren [this message]

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=20090112130542.GH9373@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=santosh.shilimkar@ti.com \
    --cc=vikram.pandita@ti.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