From: Timo Kokkonen <timo.t.kokkonen@iki.fi>
To: Jean Pihet <jean.pihet@newoldbits.com>
Cc: Tony Lindgren <tony@atomide.com>,
mchehab@redhat.com, Kevin Hilman <khilman@ti.com>,
linux-omap@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [PATCHv2 7/8] ir-rx51: Convert latency constraints to PM QoS API
Date: Mon, 27 Aug 2012 14:11:13 +0300 [thread overview]
Message-ID: <503B55D1.9000908@iki.fi> (raw)
In-Reply-To: <CAORVsuVXDK896dBb+f6qLq6Dct0CWjTn72q4Y88hdgjNA+T0pg@mail.gmail.com>
On 08/27/12 12:25, Jean Pihet wrote:
> Hi Timo,
>
> On Fri, Aug 24, 2012 at 10:39 PM, Tony Lindgren <tony@atomide.com> wrote:
>> * Timo Kokkonen <timo.t.kokkonen@iki.fi> [120824 08:11]:
>>> Convert the driver from the obsolete omap_pm_set_max_mpu_wakeup_lat
>>> API to the new PM QoS API. This allows the callback to be removed from
>>> the platform data structure.
>>>
>>> The latency requirements are also adjusted to prevent the MPU from
>>> going into sleep mode. This is needed as the GP timers have no means
>>> to wake up the MPU once it has gone into sleep. The "side effect" is
>>> that from now on the driver actually works even if there is no
>>> background load keeping the MPU awake.
>>>
>>> Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
>>
>> This should get acked by Kevin ideally. Other than that:
>>
>> Acked-by: Tony Lindgren <tony@atomide.com>
>
> ...
> @@ -268,10 +270,14 @@ static ssize_t lirc_rx51_write(struct file
> *file, const char *buf,
> lirc_rx51->wbuf[count] = -1; /* Insert termination mark */
>
> /*
> - * Adjust latency requirements so the device doesn't go in too
> - * deep sleep states
> + * If the MPU is going into too deep sleep state while we are
> + * transmitting the IR code, timers will not be able to wake
> + * up the MPU. Thus, we need to set a strict enough latency
> + * requirement in order to ensure the interrupts come though
> + * properly.
> */
> - lirc_rx51->pdata->set_max_mpu_wakeup_lat(lirc_rx51->dev, 50);
> + pm_qos_add_request(&lirc_rx51->pm_qos_request,
> + PM_QOS_CPU_DMA_LATENCY, 10);
> Minor remark: it would be nice to have more detail on where the
> latency number 10 comes from. Is it fixed, is it linked to the baud
> rate etc?
>
Yeah, it was chosen to be low enough for the MPU to receive the IRQ from
the timers. 50us was good enough back then with the original n900
kernel, but nowadays it is not good enough from preventing the MPU from
going to sleep where the timer interrupts don't come through.
Yes, I should probably have stated that in the comment to make it clear.
Can I re-send just this one patch or should I send the entire set again?
I'm assuming these go in through Mauro's media tree as these depend on
stuff that's already there. So, which ever is easier for him I guess :)
Thanks!
-Timo
> Here is my ack for the PM QoS API part:
> Acked-by: Jean Pihet <j-pihet@ti.com>
>
> Regards,
> Jean
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2012-08-27 11:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-24 15:09 [PATCHv2 0/8] ir-rx51: Fixes in response to review comments Timo Kokkonen
2012-08-24 15:09 ` [PATCHv2 1/8] ir-rx51: Adjust dependencies Timo Kokkonen
2012-08-24 15:09 ` [PATCHv2 2/8] ir-rx51: Handle signals properly Timo Kokkonen
2012-08-24 15:09 ` [PATCHv2 3/8] ir-rx51: Trivial fixes Timo Kokkonen
2012-08-24 15:09 ` [PATCHv2 4/8] ir-rx51: Clean up timer initialization code Timo Kokkonen
2012-08-24 15:09 ` [PATCHv2 5/8] ir-rx51: Move platform data checking into probe function Timo Kokkonen
2012-08-24 15:09 ` [PATCHv2 6/8] ir-rx51: Replace module_{init,exit} macros with module_platform_driver Timo Kokkonen
2012-08-24 15:09 ` [PATCHv2 7/8] ir-rx51: Convert latency constraints to PM QoS API Timo Kokkonen
2012-08-24 20:39 ` Tony Lindgren
2012-08-27 9:25 ` Jean Pihet
2012-08-27 11:11 ` Timo Kokkonen [this message]
2012-08-24 15:09 ` [PATCHv2 8/8] ir-rx51: Remove useless variable from struct lirc_rx51 Timo Kokkonen
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=503B55D1.9000908@iki.fi \
--to=timo.t.kokkonen@iki.fi \
--cc=jean.pihet@newoldbits.com \
--cc=khilman@ti.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=mchehab@redhat.com \
--cc=tony@atomide.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;
as well as URLs for NNTP newsgroup(s).