[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACVXFVNc8jgK6kb+BaOYxeh26yBmEV5q51ZsK1=V=A1JkMU99w@mail.gmail.com>
Date: Thu, 13 Oct 2011 22:52:55 +0800
From: Ming Lei <tom.leiming@...il.com>
To: markgross@...gnar.org
Cc: "Rafael J. Wysocki" <rjw@...k.pl>,
mark gross <mgross@...ux.intel.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux PM List <linux-pm@...r.kernel.org>
Subject: Re: [Question] PM-QoS: PM_QOS_CPU_DMA_LATENCY == interrupt latency?
Hi,
On Thu, Oct 13, 2011 at 12:06 PM, mark gross <markgross@...gnar.org> wrote:
> On Mon, Oct 10, 2011 at 10:31:34PM +0800, Ming Lei wrote:
>> Hi,
>>
>> Looks like it is a bit difficult to understand PM_QOS_CPU_DMA_LATENCY
>> from the words' meaning.
>>
>> After searching from google, I don't find some useful information about
>> the root cause for introducing PM_QOS_CPU_DMA_LATENCY. I understand
>> it is very similar to interrupt latency. Also from the comment for
>> omap_pm_set_max_mpu_wakeup_lat in file[1], the description is basically same
>> with interrupt latency.
>
> its the amount of time the CPU can take to wake up and feed a DMA
> engine. Its a bit more general than interrupt latency.
Maybe interrupt or wake up latency is more general than cpu dma
latency, since interrupt/wake up latency should include this kind of
DMA case.
But the latency name does not matter, what maters is below idea.
>> From comments of pm_qos_add_request usages in drivers, it can be understood
>> as interrupt latency too, IMO.
>
> The original 2 issues that drove its predecessor implementation where
> DMA'ing data to the original intel wifi device. If the CPU snoozed too
> long the wifi device would get lost and network would suffer.
If the original 2 issues are only related slow cpu snooping in deep idle
state, maybe it is enough to keep one cpu(suppose CPU0) to obey the
constraint, then only let CPU0 handle IRQ from the devices, so the
other CPUs may be allowed to enter deep idle state.
>
> The other one was something to do with generating audio pops if the cpu
> didn't keep some audio buffer that was getting DMA'd to something from
> underflowing.
>From the old comment for audio case[1], we can see the below:
- * An example announcer of latency is an audio driver that knowns it
- * will get an interrupt when the hardware has 200 usec of samples
- * left in the DMA buffer; in that case the driver can set a latency
- * constraint of, say, 150 usec.
so the audio case may be a wake up or interrupt latency, and maybe
it is possible to apply the constraint on only one CPU which will be
responsible for handling audio irq.
Anyway, it is just a rough idea for discussion. If it is doable, I think
it should make sense because multiple core CPU is very popular
in current application from server, laptop, desktop to tablet.
>
>>
>> So, could we think that PM_QOS_CPU_DMA_LATENCY is interrupt latency?
> nope.
[1], commit f011e2e2df3393c16b0fdc48e855e909b7e021ee
Author: Mark Gross <mgross@...ux.intel.com>
Date: Mon Feb 4 22:30:09 2008 -0800
latency.c: use QoS infrastructure
thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists