mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: sundeep subbaraya <sundeep.lkml@gmail.com>
Cc: "balbi@ti.com" <balbi@ti.com>,
	Alan Stern <stern@rowland.harvard.edu>,
	Subbaraya Sundeep Bhatta <subbaraya.sundeep.bhatta@xilinx.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Michal Simek <michals@xilinx.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Subject: Re: [PATCH v2 2/2] usb: gadget: Add xilinx axi usb2 device support
Date: Wed, 2 Jul 2014 11:46:30 -0500	[thread overview]
Message-ID: <20140702164629.GI5541@saruman.home> (raw)
In-Reply-To: <CALHRZur13jLsszV8m_2q1nnBcd00P+2jO60Bvn48aKeu0f7yNQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1399 bytes --]

Hi,

On Sun, May 25, 2014 at 11:10:30PM +0530, sundeep subbaraya wrote:
> Hi Felipe,
> 
> Please take a look at below about how this IP works:
> 
> IN:
>       req.buf ---> DMA (transfers from ddr to IP buffer, raise DMA
> done interrupt and set Buffer ready to transfer data to Host)---->Host
> PC
>   buffer sent interrupt
> 
> OUT:
>      Host PC--->buffer ready interrupt--->DMA (transfer from IP buffer
> to DDR,DMA done interrupt, set Buffer ready to receive next data from
> Host)-->req.buf
> 
> I written logic to call completion in DMA done handler because it
> works for both IN and OUT eps. But I see significant performance
> degradation (by copying a file to mass storage gadget). DMA can handle
> unaligned address too but it has ep max limit (say 512 for bulk).
> Hence it is SW job to split packets and to drive DMA till req.length
> completes. I feel polling for a while is faster than switching between
> interrupt handler back and forth rapidly. Moreover, DMA may or may not
> be present in IP based on user configuration at design time.
> 
> I fixed all other comments expect this one if you do not agree for
> polling then I may have to create threads and do this stuff. What do
> you suggest?

Can you resend your driver so we can review again everything you have
fixed ? I guess you have no other way... polling it is.

cheers

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2014-07-02 16:46 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1396510519-8555-1-git-send-email-sbhatta@xilinx.com>
2014-04-03  7:35 ` Subbaraya Sundeep Bhatta
2014-04-03 14:58   ` Felipe Balbi
2014-04-03 15:23     ` Michal Simek
2014-04-07  9:01       ` sundeep subbaraya
     [not found]     ` <CALHRZupk2ywMNKjzAtCPgg=9-KsDqrVBAKFNoHOoSJOQ4FDJkA@mail.gmail.com>
2014-04-07  9:06       ` Fwd: " sundeep subbaraya
2014-04-07 16:35         ` Felipe Balbi
2014-04-08 16:01           ` sundeep subbaraya
2014-04-08 21:24             ` Felipe Balbi
2014-04-16 10:39     ` sundeep subbaraya
2014-04-16 18:02       ` Felipe Balbi
2014-04-17  9:31         ` sundeep subbaraya
2014-04-17 15:01           ` Felipe Balbi
2014-04-18 14:04             ` sundeep subbaraya
2014-04-21 16:08               ` Felipe Balbi
2014-04-21 16:39                 ` Alan Stern
2014-04-22  7:28                   ` sundeep subbaraya
2014-04-22 13:57                     ` Alan Stern
2014-04-22 14:49                     ` Felipe Balbi
2014-04-23  4:27                       ` sundeep subbaraya
2014-04-30 16:54                         ` Felipe Balbi
2014-05-25 17:40                           ` sundeep subbaraya
2014-07-02 16:46                             ` Felipe Balbi [this message]
2014-07-07  6:28                               ` sundeep subbaraya
2014-04-16 20:08       ` Paul Zimmerman
2014-04-17 14:27         ` sundeep subbaraya

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=20140702164629.GI5541@saruman.home \
    --to=balbi@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=michals@xilinx.com \
    --cc=sbhatta@xilinx.com \
    --cc=stern@rowland.harvard.edu \
    --cc=subbaraya.sundeep.bhatta@xilinx.com \
    --cc=sundeep.lkml@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

all inboxes | Powered by JetHome®