* Re: [PATCH] saa7134: Add pm_qos_request to fix video corruption
[not found] ` <20121029134445.1f58657e@infradead.org>
@ 2012-10-29 16:03 ` Simon Farnsworth
2012-10-30 15:11 ` Alan Stern
0 siblings, 1 reply; 2+ messages in thread
From: Simon Farnsworth @ 2012-10-29 16:03 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: Andy Walls, linux-media, linux-pm
[-- Attachment #1: Type: text/plain, Size: 1163 bytes --]
On Monday 29 October 2012 13:44:45 Mauro Carvalho Chehab wrote:
> Thanks for digging into it and getting more data. Do you know if this change
> it also needed with USB devices that do DMA (isoc and/or bulk)? Or the USB
> core already handles that?
>
I'm not a huge expert - the linux-pm list (cc'd) will have people around who
know more.
If I've understood correctly, though, the USB core should take care of pm_qos
requests if they're needed for the hardware; remember that if the HCD has
enough buffering, there's no need for a pm_qos request. It's only needed for
devices like the SAA7134 where the buffer is small (1K split into pieces)
compared to the sample data rate (27 megabytes/second raw video).
For the benefit of the linux-pm list; this all starts with me providing a
patch to have the saa7134 driver request reduced cpu_dma_latency when
streaming, as I've seen buffer exhaustion. We've got far enough to know that
the value I chose was wrong for the saa7134, but Mauro also wants guidance on
whether USB devices (not host controllers) also need to request reduced
latency.
--
Simon Farnsworth
Software Engineer
ONELAN Ltd
http://www.onelan.com
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] saa7134: Add pm_qos_request to fix video corruption
2012-10-29 16:03 ` [PATCH] saa7134: Add pm_qos_request to fix video corruption Simon Farnsworth
@ 2012-10-30 15:11 ` Alan Stern
0 siblings, 0 replies; 2+ messages in thread
From: Alan Stern @ 2012-10-30 15:11 UTC (permalink / raw)
To: Simon Farnsworth; +Cc: Mauro Carvalho Chehab, Andy Walls, linux-media, linux-pm
On Mon, 29 Oct 2012, Simon Farnsworth wrote:
> On Monday 29 October 2012 13:44:45 Mauro Carvalho Chehab wrote:
> > Thanks for digging into it and getting more data. Do you know if this change
> > it also needed with USB devices that do DMA (isoc and/or bulk)? Or the USB
> > core already handles that?
> >
> I'm not a huge expert - the linux-pm list (cc'd) will have people around who
> know more.
>
> If I've understood correctly, though, the USB core should take care of pm_qos
> requests if they're needed for the hardware; remember that if the HCD has
> enough buffering, there's no need for a pm_qos request.
The USB core is not PM-QOS aware. It relies on the PM core to tell it
when devices may safely be runtime-suspended.
Alan Stern
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-30 15:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1350906611-17498-1-git-send-email-simon.farnsworth@onelan.co.uk>
[not found] ` <13391942.y8AEurCsVE@f17simon>
[not found] ` <20121029134445.1f58657e@infradead.org>
2012-10-29 16:03 ` [PATCH] saa7134: Add pm_qos_request to fix video corruption Simon Farnsworth
2012-10-30 15:11 ` Alan Stern
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox