From: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
To: Tom Mises <tommises-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Ash Charles <ashcharles-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Matthieu CASTET
<matthieu.castet-ITF29qwbsa/QT0dZR+AlfA@public.gmane.org>,
Alan Stern
<stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org>,
"linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-uvc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: High CPU usage when video streaming on EHCI, 3.17.8 kernel with DMA enabled
Date: Wed, 1 Jul 2015 23:22:35 -0700 [thread overview]
Message-ID: <20150702062234.GZ4156@atomide.com> (raw)
In-Reply-To: <CALmG-ARrzJ=kRH-958F20WPH+=VCpjrgMuyn9MWv4uj2dnSRpw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
* Tom Mises <tommises-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [150701 11:24]:
> On Mon, May 18, 2015 at 8:59 AM, Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> wrote:
> > For the memcpy part with DMA this patch should help too:
> >
> > [PATCH] dmaengine: omap-dma: Add support for memcpy
>
> The patch should help, but not out of the box as far as I understand.
> My understanding is that to take advantage of this, it would be
> necessary to explicitly call the DMA API either by replacing memcpy()
> in uvc_video_decode_data() or by modyfying the memcpy()
> implementation. Is that correct?
Yes you should be able to configure the DMA to do memory-to-memory
copy where both source and destination address is looping over
the desired buffer size. Ideally you would move the data from camera
directly to the buffer without doing a memcpy inbetween.
Regards,
Tony
--
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
prev parent reply other threads:[~2015-07-02 6:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-17 6:45 High CPU usage when video streaming on EHCI, 3.17.8 kernel with DMA enabled Tom Mises
[not found] ` <CALmG-ASRge4g6euyUEaxrLryvNR_tFSRexFSDZ5HNuzx_W4AyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-17 14:06 ` Alan Stern
2015-05-18 8:27 ` Matthieu CASTET
2015-05-18 14:59 ` Tony Lindgren
[not found] ` <20150518145919.GC10274-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2015-05-21 21:20 ` Ash Charles
[not found] ` <CAK8F28mdedXgL660SqTLeNZ7hVHOmRR7YwuTdkyY3XmnZ97_Zw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-01 18:22 ` Tom Mises
[not found] ` <CALmG-ARrzJ=kRH-958F20WPH+=VCpjrgMuyn9MWv4uj2dnSRpw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-02 6:22 ` 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=20150702062234.GZ4156@atomide.com \
--to=tony-4v6ys6ai5vpbdgjk7y7tuq@public.gmane.org \
--cc=ashcharles-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-uvc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=matthieu.castet-ITF29qwbsa/QT0dZR+AlfA@public.gmane.org \
--cc=stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org \
--cc=tommises-Re5JQEeQqe8AvxtiuMwx3w@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.