linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Exynos4210: fix power domain for MDMA1 device
@ 2015-11-26 12:49 Marek Szyprowski
  2015-11-26 12:49 ` [PATCH v2 1/4] ARM: dts: exynos4210: MDMA1 device belongs to LCD0 power domain Marek Szyprowski
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Marek Szyprowski @ 2015-11-26 12:49 UTC (permalink / raw)
  To: linux-arm-kernel

This patchset fixes mysterious boot hang on Exynos 4210 SoCs, when IOMMU
is enabled. There is no direct dependency between IOMMU devices and
MDMA1. However enabling IOMMU changes the device probe order, what
results in LCD0 power domain being turned off for some time. During that
time the registration of MDMA1 device happens, what results in system
hangs, because the common bus code tries to read PID/CID registers from
turned-off device.

The main change from v1 is reusing patches, which move PID/CIR reading
from amba_device_add() to amba_match() and adding power domain support
there. This way -EPROBE_DEFER error code can be handled properly.

Best regards
Marek Szyprowski
Samsung R&D Institute Poland

Changelog:
v2:
- added 2 patches from 'On-demand device probing' thread
  (https://lkml.org/lkml/2015/9/29/189), which move PID/CIR reading
  from amba_device_add() to amba_match()
- moved dev_pm_domain_attach() to amba_match(), which is allowed to
  return -EPROBE_DEFER

v1: http://www.spinics.net/lists/arm-kernel/msg463185.html
- initial version


Patch summary:

Marek Szyprowski (2):
  ARM: dts: exynos4210: MDMA1 device belongs to LCD0 power domain
  ARM: amba: Properly handle devices with power domains

Tomeu Vizoso (2):
  driver core: handle -EPROBE_DEFER from bus_type.match()
  ARM: amba: Move reading of periphid to amba_match()

 arch/arm/boot/dts/exynos4210.dtsi |  4 ++
 drivers/amba/bus.c                | 94 ++++++++++++++++++++++-----------------
 drivers/base/dd.c                 | 24 +++++++++-
 include/linux/device.h            |  2 +-
 4 files changed, 79 insertions(+), 45 deletions(-)

-- 
1.9.2

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

end of thread, other threads:[~2015-12-01 12:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-26 12:49 [PATCH v2 0/4] Exynos4210: fix power domain for MDMA1 device Marek Szyprowski
2015-11-26 12:49 ` [PATCH v2 1/4] ARM: dts: exynos4210: MDMA1 device belongs to LCD0 power domain Marek Szyprowski
2015-11-30  6:58   ` Krzysztof Kozlowski
2015-11-26 12:49 ` [PATCH v2 2/4] driver core: handle -EPROBE_DEFER from bus_type.match() Marek Szyprowski
2015-11-30 13:36   ` Ulf Hansson
2015-12-01  9:25     ` Marek Szyprowski
2015-12-01 12:57       ` Ulf Hansson
2015-11-26 12:49 ` [PATCH v2 3/4] ARM: amba: Move reading of periphid to amba_match() Marek Szyprowski
2015-11-30 14:07   ` Ulf Hansson
2015-11-26 12:49 ` [PATCH v2 4/4] ARM: amba: Properly handle devices with power domains Marek Szyprowski

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