All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
To: "Subbrathnam, Swaminathan" <swami.iyer-l0cyMroinI0@public.gmane.org>
Cc: Dmitry Krivoschekov
	<dmitry.krivoschekov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org"
	<felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>,
	Kevin Hilman
	<khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
Subject: Re: Patch [2/2] DaVinci CPPI TX DMA tasklet
Date: Thu, 21 Aug 2008 20:24:11 -0700	[thread overview]
Message-ID: <200808212024.11659.david-b@pacbell.net> (raw)
In-Reply-To: <FCCFB4CDC6E5564B9182F639FC3560870229F52486-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>

On Thursday 21 August 2008, Subbrathnam, Swaminathan wrote:
> Without these changes DMA on DaVinci has never worked traditionally.
> We fixed this issue pretty early in DaVinci program ~2006 on the 2.6.10
> treee. 

I remember a recommendation not to use DMA, but that was primarily
because it seemed to hurt performance (unless it was configured to
provide incorrect semantics).  If there were also correctness issues,
2006 is too long ago for me to remember.  :)


> We are now in the process of forward porting the musb patches 
> from that tree to the git tree.
> 
> We did some performance enhancements/bug fixes on that tree and hope to make
> it available to the general community w.r.t MUSB.  This (specific to DaVinci)
> and the following patches (musb generic) are in that direction.

Great.  Seems to me those could be ready for the 2.6.28 merge window,
given some updates to the DaVinci platform support.

They'll need to be in nicely reviewable chunks ... I remember seeing
some DaVinci patches in late 2006 which broke on TUSB6010 silicon,
for example.

DMA in particular could really stand some cleanup.  Having four
different chunks of DMA code -- RX/TX vs Host/Peripheral -- with
ifdeffery for multiple DMA engines is ... chaotic.


> I discussed with Kevin on the DaVinci Git tree and Filipe here and they recommended that
> I take the changes to linux-usb, linux-omap tree (w.r.t musb changes) to get a wider 
> audience for review and acceptance.
> 
> Kevin would then pull in the changes as part of his regular synch ups.

I think the plan should be to have various SOC-specific trees (DaVinci,
OMAP, Blackfin, etc) stop hosting MUSB-specific patches.  They should
be pushed up to mainline ASAP ... the linux-omap tree should stop being
the place where the latest MUSB code sits.


> This patch (+ CPPI DMA changes) in a different form has already been 
> tested in the DaVinci git community

It has???   It's not git://source.mvista.com/git/linux-davinci-2.6 ...


>	 and it resolved the USB DMA issues and 
> improved performance considerably as communicated by the community
> members like Neuros.
> 
> I will be submitting the CPPI DMA changes as a seperate patch as it is big
> and based on preliminary review needs to be broken down significantly to
> enable better review and acceptance.

I'm quite willing to believe the CPPI stuff can be improved.  :)

- Dave


> Thanks for your comments.
> 
> regards
> swami
> 
> ________________________________________
> From: David Brownell [david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org]
> Sent: Friday, August 22, 2008 12:45 AM
> To: Dmitry Krivoschekov; Subbrathnam, Swaminathan
> Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org; Kevin Hilman
> Subject: Re: Patch [2/2] DaVinci CPPI TX DMA tasklet
> 
> On Thursday 21 August 2008, Dmitry Krivoschekov wrote:
> > why don't rely on an endpoint interrupt which is generated
> > after a USB transaction is complete?
> 
> That's what I thought *was* working a couple years ago...
> 
> I take it that something broke since then?  Or is this
> a corner case which didn't always work right?
> 
> I'm not sure this would be appropriate for mainline
> until the DaVinci code can run there.  There are a
> bunch of arch/arm/mach-davinci updates needed first.
> I know Kevin was looking at some of this, but just
> now I think enabling MUSB on a 2.6.27-rc4 DaVinci
> config means a broken build.
> 
> - Dave


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2008-08-22  3:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-21 13:58 Patch [2/2] DaVinci CPPI TX DMA tasklet Swaminathan S
2008-08-21 14:25 ` Felipe Balbi
     [not found] ` <1219327122-28334-1-git-send-email-swami.iyer-l0cyMroinI0@public.gmane.org>
2008-08-21 15:09   ` Dmitry Krivoschekov
2008-08-21 19:15     ` David Brownell
     [not found]       ` <200808211215.37760.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-08-22  1:47         ` Subbrathnam, Swaminathan
     [not found]           ` <FCCFB4CDC6E5564B9182F639FC3560870229F52486-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2008-08-22  3:24             ` David Brownell [this message]
2008-08-22  7:21               ` Felipe Balbi
2008-08-22  1:31     ` Subbrathnam, Swaminathan
2008-08-22  7:23       ` Felipe Balbi
     [not found]         ` <20080822072308.GB9474-f9ZlEuEWxVfta4EC/59zMBl4MBrZKKet0E9HWUfgJXw@public.gmane.org>
2008-08-22  9:12           ` Subbrathnam, Swaminathan

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=200808212024.11659.david-b@pacbell.net \
    --to=david-b-ybekhbn/0ldr7s880joybq@public.gmane.org \
    --cc=dmitry.krivoschekov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org \
    --cc=khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=swami.iyer-l0cyMroinI0@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.