linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] mmc: sdhci: Support maximum DMA latency request via PM QoS
@ 2015-03-24 13:40 Adrian Hunter
  2015-03-24 13:40 ` [RFC PATCH 1/4] PM / QoS: Add pm_qos_cancel_request_lazy() that doesn't sleep Adrian Hunter
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Adrian Hunter @ 2015-03-24 13:40 UTC (permalink / raw)
  To: Ulf Hansson
  Cc: linux-mmc, Rafael J. Wysocki, Len Brown, Pavel Machek,
	Kevin Hilman, Tomeu Vizoso, linux-pm, linux-kernel

Hi

Here are some patches to address an issue with SDHCI
in Intel Baytrail. Intel Baytrail has been observed
sometimes to hang if host controllers are using DMA
while deep C-states are used. Workaround that by
specifying a maximum DMA latency that will prevent
deep C-states.

The first patch adds a new PM QOS function so that
the SDHCI driver can do a "lazy" cancel of the QoS
request from within its "finish" tasklet.

The second patch adds support to SDHCI for specifying a
maximum DMA latency.

The third and fourth patches take that facility into
use for Baytrail.

Ad hoc testing with Lenovo Thinkpad 10 showed a stress
test could run for at least 24 hours with the patches,
compared to less than an hour without.

These patches are on top of my driver strength patches
which are on top of my re-tuning patches.


Adrian Hunter (4):
      PM / QoS: Add pm_qos_cancel_request_lazy() that doesn't sleep
      mmc: sdhci: Support maximum DMA latency request via PM QOS
      mmc: sdhci-acpi: Fix device hang on Intel BayTrail
      mmc: sdhci-pci: Fix device hang on Intel BayTrail

 drivers/mmc/host/sdhci-acpi.c | 32 ++++++++++++++++++++++++++
 drivers/mmc/host/sdhci-pci.c  | 13 +++++++++++
 drivers/mmc/host/sdhci.c      | 52 +++++++++++++++++++++++++++++++++++++++++++
 drivers/mmc/host/sdhci.h      |  7 ++++++
 include/linux/pm_qos.h        |  2 ++
 kernel/power/qos.c            | 20 +++++++++++++++++
 6 files changed, 126 insertions(+)


Regards
Adrian

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-04-21 10:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-24 13:40 [RFC PATCH 0/4] mmc: sdhci: Support maximum DMA latency request via PM QoS Adrian Hunter
2015-03-24 13:40 ` [RFC PATCH 1/4] PM / QoS: Add pm_qos_cancel_request_lazy() that doesn't sleep Adrian Hunter
2015-04-20 14:00   ` Dov Levenglick
2015-04-21  8:26     ` Adrian Hunter
2015-04-21 10:18       ` Dov Levenglick
2015-04-21 10:25         ` Adrian Hunter
2015-03-24 13:40 ` [RFC PATCH 2/4] mmc: sdhci: Support maximum DMA latency request via PM QOS Adrian Hunter
2015-03-24 13:40 ` [RFC PATCH 3/4] mmc: sdhci-acpi: Fix device hang on Intel BayTrail Adrian Hunter
2015-03-24 13:40 ` [RFC PATCH 4/4] mmc: sdhci-pci: " Adrian Hunter
2015-03-24 20:13 ` [RFC PATCH 0/4] mmc: sdhci: Support maximum DMA latency request via PM QoS Rafael J. Wysocki
2015-03-25 12:37   ` Adrian Hunter
2015-03-25 19:43 ` Pavel Machek
2015-03-26  8:29   ` Adrian Hunter
2015-03-26  9:51     ` Pavel Machek
2015-04-01 19:59 ` Len Brown
2015-04-02 19:35   ` Adrian Hunter

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).