All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
@ 2015-11-13 10:50 ` Eddie Huang
  0 siblings, 0 replies; 15+ messages in thread
From: Eddie Huang @ 2015-11-13 10:50 UTC (permalink / raw)
  To: Matthias Brugger, Arnd Bergmann, Kevin Hilman
  Cc: Sascha Hauer, linux-kernel, linux-arm-kernel, linux-mediatek,
	srv_heupstream, Eddie Huang

If enable Mediatek 8173 SoC, it should also enable power domain
driver. Otherwise access clk subsystem register will fail.

Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>

---
MT8173 clk driver is enabled by default, but power domain driver
is not. If MM subsystem power on, mm_sel topckgen mux is off,
then access any MM subsystem register will cause system hang. Enable
SCPSYS driver to make sure both MM subsystem power and mm_sel to
on/off together to avoid system hang.

This patch fix current linux-next mt8173-evb boot to shell fail
problem.
---
 drivers/soc/mediatek/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig
index 9d50682..0a4ea80 100644
--- a/drivers/soc/mediatek/Kconfig
+++ b/drivers/soc/mediatek/Kconfig
@@ -23,6 +23,7 @@ config MTK_PMIC_WRAP
 config MTK_SCPSYS
 	bool "MediaTek SCPSYS Support"
 	depends on ARCH_MEDIATEK || COMPILE_TEST
+	default ARM64 && ARCH_MEDIATEK
 	select REGMAP
 	select MTK_INFRACFG
 	select PM_GENERIC_DOMAINS if PM
-- 
1.9.1


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

* [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
@ 2015-11-13 10:50 ` Eddie Huang
  0 siblings, 0 replies; 15+ messages in thread
From: Eddie Huang @ 2015-11-13 10:50 UTC (permalink / raw)
  To: Matthias Brugger, Arnd Bergmann, Kevin Hilman
  Cc: Sascha Hauer, linux-kernel, linux-arm-kernel, linux-mediatek,
	srv_heupstream, Eddie Huang

If enable Mediatek 8173 SoC, it should also enable power domain
driver. Otherwise access clk subsystem register will fail.

Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>

---
MT8173 clk driver is enabled by default, but power domain driver
is not. If MM subsystem power on, mm_sel topckgen mux is off,
then access any MM subsystem register will cause system hang. Enable
SCPSYS driver to make sure both MM subsystem power and mm_sel to
on/off together to avoid system hang.

This patch fix current linux-next mt8173-evb boot to shell fail
problem.
---
 drivers/soc/mediatek/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig
index 9d50682..0a4ea80 100644
--- a/drivers/soc/mediatek/Kconfig
+++ b/drivers/soc/mediatek/Kconfig
@@ -23,6 +23,7 @@ config MTK_PMIC_WRAP
 config MTK_SCPSYS
 	bool "MediaTek SCPSYS Support"
 	depends on ARCH_MEDIATEK || COMPILE_TEST
+	default ARM64 && ARCH_MEDIATEK
 	select REGMAP
 	select MTK_INFRACFG
 	select PM_GENERIC_DOMAINS if PM
-- 
1.9.1

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

* [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
@ 2015-11-13 10:50 ` Eddie Huang
  0 siblings, 0 replies; 15+ messages in thread
From: Eddie Huang @ 2015-11-13 10:50 UTC (permalink / raw)
  To: linux-arm-kernel

If enable Mediatek 8173 SoC, it should also enable power domain
driver. Otherwise access clk subsystem register will fail.

Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>

---
MT8173 clk driver is enabled by default, but power domain driver
is not. If MM subsystem power on, mm_sel topckgen mux is off,
then access any MM subsystem register will cause system hang. Enable
SCPSYS driver to make sure both MM subsystem power and mm_sel to
on/off together to avoid system hang.

This patch fix current linux-next mt8173-evb boot to shell fail
problem.
---
 drivers/soc/mediatek/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig
index 9d50682..0a4ea80 100644
--- a/drivers/soc/mediatek/Kconfig
+++ b/drivers/soc/mediatek/Kconfig
@@ -23,6 +23,7 @@ config MTK_PMIC_WRAP
 config MTK_SCPSYS
 	bool "MediaTek SCPSYS Support"
 	depends on ARCH_MEDIATEK || COMPILE_TEST
+	default ARM64 && ARCH_MEDIATEK
 	select REGMAP
 	select MTK_INFRACFG
 	select PM_GENERIC_DOMAINS if PM
-- 
1.9.1

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

* Re: [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
  2015-11-13 10:50 ` Eddie Huang
  (?)
@ 2015-11-13 15:59   ` Kevin Hilman
  -1 siblings, 0 replies; 15+ messages in thread
From: Kevin Hilman @ 2015-11-13 15:59 UTC (permalink / raw)
  To: Eddie Huang
  Cc: Matthias Brugger, Arnd Bergmann, Sascha Hauer, linux-kernel,
	linux-arm-kernel, linux-mediatek, srv_heupstream, Olof Johansson

Eddie Huang <eddie.huang@mediatek.com> writes:

> If enable Mediatek 8173 SoC, it should also enable power domain
> driver. Otherwise access clk subsystem register will fail.
>
> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>

Tested-by: Kevin Hilman <khilman@linaro.org>

This gets the mt8173-evb booting again with arm-soc/for-next and
mainline for me.

I'll let Matthias queue this up and send it with any other fixes for
v4.4-rc1.

Thanks for the fix,

Kevin

P.S. it's curious that nobody caught this basic boot failure before.  Is
nobody else testing mainline on this board?  or maybe not using the
upstream defconfig?


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

* Re: [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
@ 2015-11-13 15:59   ` Kevin Hilman
  0 siblings, 0 replies; 15+ messages in thread
From: Kevin Hilman @ 2015-11-13 15:59 UTC (permalink / raw)
  To: Eddie Huang
  Cc: Matthias Brugger, Arnd Bergmann, Sascha Hauer, linux-kernel,
	linux-arm-kernel, linux-mediatek, srv_heupstream, Olof Johansson

Eddie Huang <eddie.huang@mediatek.com> writes:

> If enable Mediatek 8173 SoC, it should also enable power domain
> driver. Otherwise access clk subsystem register will fail.
>
> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>

Tested-by: Kevin Hilman <khilman@linaro.org>

This gets the mt8173-evb booting again with arm-soc/for-next and
mainline for me.

I'll let Matthias queue this up and send it with any other fixes for
v4.4-rc1.

Thanks for the fix,

Kevin

P.S. it's curious that nobody caught this basic boot failure before.  Is
nobody else testing mainline on this board?  or maybe not using the
upstream defconfig?

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

* [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
@ 2015-11-13 15:59   ` Kevin Hilman
  0 siblings, 0 replies; 15+ messages in thread
From: Kevin Hilman @ 2015-11-13 15:59 UTC (permalink / raw)
  To: linux-arm-kernel

Eddie Huang <eddie.huang@mediatek.com> writes:

> If enable Mediatek 8173 SoC, it should also enable power domain
> driver. Otherwise access clk subsystem register will fail.
>
> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>

Tested-by: Kevin Hilman <khilman@linaro.org>

This gets the mt8173-evb booting again with arm-soc/for-next and
mainline for me.

I'll let Matthias queue this up and send it with any other fixes for
v4.4-rc1.

Thanks for the fix,

Kevin

P.S. it's curious that nobody caught this basic boot failure before.  Is
nobody else testing mainline on this board?  or maybe not using the
upstream defconfig?

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

* Re: [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
  2015-11-13 15:59   ` Kevin Hilman
  (?)
@ 2015-11-19 20:05     ` Kevin Hilman
  -1 siblings, 0 replies; 15+ messages in thread
From: Kevin Hilman @ 2015-11-19 20:05 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Eddie Huang, Matthias Brugger, Arnd Bergmann, Sascha Hauer, lkml,
	linux-arm-kernel, linux-mediatek, srv_heupstream, Olof Johansson

On Fri, Nov 13, 2015 at 7:59 AM, Kevin Hilman <khilman@kernel.org> wrote:
> Eddie Huang <eddie.huang@mediatek.com> writes:
>
>> If enable Mediatek 8173 SoC, it should also enable power domain
>> driver. Otherwise access clk subsystem register will fail.
>>
>> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
>
> Tested-by: Kevin Hilman <khilman@linaro.org>
>
> This gets the mt8173-evb booting again with arm-soc/for-next and
> mainline for me.
>
> I'll let Matthias queue this up and send it with any other fixes for
> v4.4-rc1.

Matthias, this is still broken in arm-soc.  Curious if your planning
on sending a fix?  If you prefer, with your ack, we can apply directly
to arm-soc/fixes.

Kevin

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

* Re: [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
@ 2015-11-19 20:05     ` Kevin Hilman
  0 siblings, 0 replies; 15+ messages in thread
From: Kevin Hilman @ 2015-11-19 20:05 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Eddie Huang, Matthias Brugger, Arnd Bergmann, Sascha Hauer, lkml,
	linux-arm-kernel, linux-mediatek, srv_heupstream, Olof Johansson

On Fri, Nov 13, 2015 at 7:59 AM, Kevin Hilman <khilman@kernel.org> wrote:
> Eddie Huang <eddie.huang@mediatek.com> writes:
>
>> If enable Mediatek 8173 SoC, it should also enable power domain
>> driver. Otherwise access clk subsystem register will fail.
>>
>> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
>
> Tested-by: Kevin Hilman <khilman@linaro.org>
>
> This gets the mt8173-evb booting again with arm-soc/for-next and
> mainline for me.
>
> I'll let Matthias queue this up and send it with any other fixes for
> v4.4-rc1.

Matthias, this is still broken in arm-soc.  Curious if your planning
on sending a fix?  If you prefer, with your ack, we can apply directly
to arm-soc/fixes.

Kevin

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

* [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
@ 2015-11-19 20:05     ` Kevin Hilman
  0 siblings, 0 replies; 15+ messages in thread
From: Kevin Hilman @ 2015-11-19 20:05 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Nov 13, 2015 at 7:59 AM, Kevin Hilman <khilman@kernel.org> wrote:
> Eddie Huang <eddie.huang@mediatek.com> writes:
>
>> If enable Mediatek 8173 SoC, it should also enable power domain
>> driver. Otherwise access clk subsystem register will fail.
>>
>> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
>
> Tested-by: Kevin Hilman <khilman@linaro.org>
>
> This gets the mt8173-evb booting again with arm-soc/for-next and
> mainline for me.
>
> I'll let Matthias queue this up and send it with any other fixes for
> v4.4-rc1.

Matthias, this is still broken in arm-soc.  Curious if your planning
on sending a fix?  If you prefer, with your ack, we can apply directly
to arm-soc/fixes.

Kevin

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

* Re: [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
  2015-11-19 20:05     ` Kevin Hilman
  (?)
@ 2015-11-23 18:34       ` Matthias Brugger
  -1 siblings, 0 replies; 15+ messages in thread
From: Matthias Brugger @ 2015-11-23 18:34 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Eddie Huang, Arnd Bergmann, Sascha Hauer, lkml, linux-arm-kernel,
	linux-mediatek, srv_heupstream, Olof Johansson



On 19/11/15 21:05, Kevin Hilman wrote:
> On Fri, Nov 13, 2015 at 7:59 AM, Kevin Hilman <khilman@kernel.org> wrote:
>> Eddie Huang <eddie.huang@mediatek.com> writes:
>>
>>> If enable Mediatek 8173 SoC, it should also enable power domain
>>> driver. Otherwise access clk subsystem register will fail.
>>>
>>> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
>>
>> Tested-by: Kevin Hilman <khilman@linaro.org>
>>
>> This gets the mt8173-evb booting again with arm-soc/for-next and
>> mainline for me.
>>
>> I'll let Matthias queue this up and send it with any other fixes for
>> v4.4-rc1.
>
> Matthias, this is still broken in arm-soc.  Curious if your planning
> on sending a fix?  If you prefer, with your ack, we can apply directly
> to arm-soc/fixes.
>

Sorry for the delay. Please apply it directly.

Acked-by: Matthias Brugger <matthias.bgg@gmail.com>

Thanks a lot,
Matthias

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

* Re: [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
@ 2015-11-23 18:34       ` Matthias Brugger
  0 siblings, 0 replies; 15+ messages in thread
From: Matthias Brugger @ 2015-11-23 18:34 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Eddie Huang, Arnd Bergmann, Sascha Hauer, lkml, linux-arm-kernel,
	linux-mediatek, srv_heupstream, Olof Johansson



On 19/11/15 21:05, Kevin Hilman wrote:
> On Fri, Nov 13, 2015 at 7:59 AM, Kevin Hilman <khilman@kernel.org> wrote:
>> Eddie Huang <eddie.huang@mediatek.com> writes:
>>
>>> If enable Mediatek 8173 SoC, it should also enable power domain
>>> driver. Otherwise access clk subsystem register will fail.
>>>
>>> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
>>
>> Tested-by: Kevin Hilman <khilman@linaro.org>
>>
>> This gets the mt8173-evb booting again with arm-soc/for-next and
>> mainline for me.
>>
>> I'll let Matthias queue this up and send it with any other fixes for
>> v4.4-rc1.
>
> Matthias, this is still broken in arm-soc.  Curious if your planning
> on sending a fix?  If you prefer, with your ack, we can apply directly
> to arm-soc/fixes.
>

Sorry for the delay. Please apply it directly.

Acked-by: Matthias Brugger <matthias.bgg@gmail.com>

Thanks a lot,
Matthias

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

* [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
@ 2015-11-23 18:34       ` Matthias Brugger
  0 siblings, 0 replies; 15+ messages in thread
From: Matthias Brugger @ 2015-11-23 18:34 UTC (permalink / raw)
  To: linux-arm-kernel



On 19/11/15 21:05, Kevin Hilman wrote:
> On Fri, Nov 13, 2015 at 7:59 AM, Kevin Hilman <khilman@kernel.org> wrote:
>> Eddie Huang <eddie.huang@mediatek.com> writes:
>>
>>> If enable Mediatek 8173 SoC, it should also enable power domain
>>> driver. Otherwise access clk subsystem register will fail.
>>>
>>> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
>>
>> Tested-by: Kevin Hilman <khilman@linaro.org>
>>
>> This gets the mt8173-evb booting again with arm-soc/for-next and
>> mainline for me.
>>
>> I'll let Matthias queue this up and send it with any other fixes for
>> v4.4-rc1.
>
> Matthias, this is still broken in arm-soc.  Curious if your planning
> on sending a fix?  If you prefer, with your ack, we can apply directly
> to arm-soc/fixes.
>

Sorry for the delay. Please apply it directly.

Acked-by: Matthias Brugger <matthias.bgg@gmail.com>

Thanks a lot,
Matthias

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

* Re: [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
  2015-11-23 18:34       ` Matthias Brugger
  (?)
@ 2015-11-24 18:20         ` Kevin Hilman
  -1 siblings, 0 replies; 15+ messages in thread
From: Kevin Hilman @ 2015-11-24 18:20 UTC (permalink / raw)
  To: Matthias Brugger
  Cc: Eddie Huang, Arnd Bergmann, Sascha Hauer, lkml, linux-arm-kernel,
	linux-mediatek, srv_heupstream, Olof Johansson

Matthias Brugger <matthias.bgg@gmail.com> writes:

> On 19/11/15 21:05, Kevin Hilman wrote:
>> On Fri, Nov 13, 2015 at 7:59 AM, Kevin Hilman <khilman@kernel.org> wrote:
>>> Eddie Huang <eddie.huang@mediatek.com> writes:
>>>
>>>> If enable Mediatek 8173 SoC, it should also enable power domain
>>>> driver. Otherwise access clk subsystem register will fail.
>>>>
>>>> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
>>>
>>> Tested-by: Kevin Hilman <khilman@linaro.org>
>>>
>>> This gets the mt8173-evb booting again with arm-soc/for-next and
>>> mainline for me.
>>>
>>> I'll let Matthias queue this up and send it with any other fixes for
>>> v4.4-rc1.
>>
>> Matthias, this is still broken in arm-soc.  Curious if your planning
>> on sending a fix?  If you prefer, with your ack, we can apply directly
>> to arm-soc/fixes.
>>
>
> Sorry for the delay. Please apply it directly.
>
> Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
>

Thanks, applied to arm-soc/fixes.

Kevin

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

* Re: [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
@ 2015-11-24 18:20         ` Kevin Hilman
  0 siblings, 0 replies; 15+ messages in thread
From: Kevin Hilman @ 2015-11-24 18:20 UTC (permalink / raw)
  To: Matthias Brugger
  Cc: Eddie Huang, Arnd Bergmann, Sascha Hauer, lkml, linux-arm-kernel,
	linux-mediatek, srv_heupstream, Olof Johansson

Matthias Brugger <matthias.bgg@gmail.com> writes:

> On 19/11/15 21:05, Kevin Hilman wrote:
>> On Fri, Nov 13, 2015 at 7:59 AM, Kevin Hilman <khilman@kernel.org> wrote:
>>> Eddie Huang <eddie.huang@mediatek.com> writes:
>>>
>>>> If enable Mediatek 8173 SoC, it should also enable power domain
>>>> driver. Otherwise access clk subsystem register will fail.
>>>>
>>>> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
>>>
>>> Tested-by: Kevin Hilman <khilman@linaro.org>
>>>
>>> This gets the mt8173-evb booting again with arm-soc/for-next and
>>> mainline for me.
>>>
>>> I'll let Matthias queue this up and send it with any other fixes for
>>> v4.4-rc1.
>>
>> Matthias, this is still broken in arm-soc.  Curious if your planning
>> on sending a fix?  If you prefer, with your ack, we can apply directly
>> to arm-soc/fixes.
>>
>
> Sorry for the delay. Please apply it directly.
>
> Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
>

Thanks, applied to arm-soc/fixes.

Kevin

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

* [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default
@ 2015-11-24 18:20         ` Kevin Hilman
  0 siblings, 0 replies; 15+ messages in thread
From: Kevin Hilman @ 2015-11-24 18:20 UTC (permalink / raw)
  To: linux-arm-kernel

Matthias Brugger <matthias.bgg@gmail.com> writes:

> On 19/11/15 21:05, Kevin Hilman wrote:
>> On Fri, Nov 13, 2015 at 7:59 AM, Kevin Hilman <khilman@kernel.org> wrote:
>>> Eddie Huang <eddie.huang@mediatek.com> writes:
>>>
>>>> If enable Mediatek 8173 SoC, it should also enable power domain
>>>> driver. Otherwise access clk subsystem register will fail.
>>>>
>>>> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
>>>
>>> Tested-by: Kevin Hilman <khilman@linaro.org>
>>>
>>> This gets the mt8173-evb booting again with arm-soc/for-next and
>>> mainline for me.
>>>
>>> I'll let Matthias queue this up and send it with any other fixes for
>>> v4.4-rc1.
>>
>> Matthias, this is still broken in arm-soc.  Curious if your planning
>> on sending a fix?  If you prefer, with your ack, we can apply directly
>> to arm-soc/fixes.
>>
>
> Sorry for the delay. Please apply it directly.
>
> Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
>

Thanks, applied to arm-soc/fixes.

Kevin

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

end of thread, other threads:[~2015-11-24 18:21 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-13 10:50 [PATCH] soc: Mediatek: Enable SCPSYS power domain driver by default Eddie Huang
2015-11-13 10:50 ` Eddie Huang
2015-11-13 10:50 ` Eddie Huang
2015-11-13 15:59 ` Kevin Hilman
2015-11-13 15:59   ` Kevin Hilman
2015-11-13 15:59   ` Kevin Hilman
2015-11-19 20:05   ` Kevin Hilman
2015-11-19 20:05     ` Kevin Hilman
2015-11-19 20:05     ` Kevin Hilman
2015-11-23 18:34     ` Matthias Brugger
2015-11-23 18:34       ` Matthias Brugger
2015-11-23 18:34       ` Matthias Brugger
2015-11-24 18:20       ` Kevin Hilman
2015-11-24 18:20         ` Kevin Hilman
2015-11-24 18:20         ` Kevin Hilman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.