Re: [PATCH 03/22] clk: sunxi: add "pll6" to sun6i protected clock list

2014-05-27 Thread Maxime Ripard
On Mon, May 26, 2014 at 12:47:30PM +0800, Chen-Yu Tsai wrote:
> On Mon, May 26, 2014 at 2:48 AM, Maxime Ripard
>  wrote:
> > On Fri, May 23, 2014 at 03:51:06PM +0800, Chen-Yu Tsai wrote:
> >> PLL6 is used by some important but undocumented module, most likely
> >> memory related, such as mbus or the actual memory controller. As we
> >> do not have a driver for that, add pll6 to the list of protected
> >> clocks, so that it won't be disabled and leave us with a non-responsive
> >> system.
> >
> > What issue have you seen?
> 
> Completely unresponsive after PLL6 is gated (on the A23).
> 
> > The system actually works pretty great on the A31.
> 
> Does it work when there aren't any other PLL6 consumers?

Yes.

> Maybe the boot0 on A31 and A23 setup some DRAM-related modules differently.
> 
> If the A31 works without protecting PLL6, I'll add a separate list
> for the A23.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


signature.asc
Description: Digital signature


Re: [PATCH 03/22] clk: sunxi: add pll6 to sun6i protected clock list

2014-05-27 Thread Maxime Ripard
On Mon, May 26, 2014 at 12:47:30PM +0800, Chen-Yu Tsai wrote:
 On Mon, May 26, 2014 at 2:48 AM, Maxime Ripard
 maxime.rip...@free-electrons.com wrote:
  On Fri, May 23, 2014 at 03:51:06PM +0800, Chen-Yu Tsai wrote:
  PLL6 is used by some important but undocumented module, most likely
  memory related, such as mbus or the actual memory controller. As we
  do not have a driver for that, add pll6 to the list of protected
  clocks, so that it won't be disabled and leave us with a non-responsive
  system.
 
  What issue have you seen?
 
 Completely unresponsive after PLL6 is gated (on the A23).
 
  The system actually works pretty great on the A31.
 
 Does it work when there aren't any other PLL6 consumers?

Yes.

 Maybe the boot0 on A31 and A23 setup some DRAM-related modules differently.
 
 If the A31 works without protecting PLL6, I'll add a separate list
 for the A23.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


signature.asc
Description: Digital signature


Re: [PATCH 03/22] clk: sunxi: add "pll6" to sun6i protected clock list

2014-05-25 Thread Chen-Yu Tsai
On Mon, May 26, 2014 at 2:48 AM, Maxime Ripard
 wrote:
> On Fri, May 23, 2014 at 03:51:06PM +0800, Chen-Yu Tsai wrote:
>> PLL6 is used by some important but undocumented module, most likely
>> memory related, such as mbus or the actual memory controller. As we
>> do not have a driver for that, add pll6 to the list of protected
>> clocks, so that it won't be disabled and leave us with a non-responsive
>> system.
>
> What issue have you seen?

Completely unresponsive after PLL6 is gated (on the A23).

> The system actually works pretty great on the A31.

Does it work when there aren't any other PLL6 consumers?
Maybe the boot0 on A31 and A23 setup some DRAM-related modules differently.

If the A31 works without protecting PLL6, I'll add a separate list
for the A23.


Thanks,
ChenYu
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 03/22] clk: sunxi: add "pll6" to sun6i protected clock list

2014-05-25 Thread Maxime Ripard
On Fri, May 23, 2014 at 03:51:06PM +0800, Chen-Yu Tsai wrote:
> PLL6 is used by some important but undocumented module, most likely
> memory related, such as mbus or the actual memory controller. As we
> do not have a driver for that, add pll6 to the list of protected
> clocks, so that it won't be disabled and leave us with a non-responsive
> system.

What issue have you seen?

The system actually works pretty great on the A31.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


signature.asc
Description: Digital signature


Re: [PATCH 03/22] clk: sunxi: add pll6 to sun6i protected clock list

2014-05-25 Thread Maxime Ripard
On Fri, May 23, 2014 at 03:51:06PM +0800, Chen-Yu Tsai wrote:
 PLL6 is used by some important but undocumented module, most likely
 memory related, such as mbus or the actual memory controller. As we
 do not have a driver for that, add pll6 to the list of protected
 clocks, so that it won't be disabled and leave us with a non-responsive
 system.

What issue have you seen?

The system actually works pretty great on the A31.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


signature.asc
Description: Digital signature


Re: [PATCH 03/22] clk: sunxi: add pll6 to sun6i protected clock list

2014-05-25 Thread Chen-Yu Tsai
On Mon, May 26, 2014 at 2:48 AM, Maxime Ripard
maxime.rip...@free-electrons.com wrote:
 On Fri, May 23, 2014 at 03:51:06PM +0800, Chen-Yu Tsai wrote:
 PLL6 is used by some important but undocumented module, most likely
 memory related, such as mbus or the actual memory controller. As we
 do not have a driver for that, add pll6 to the list of protected
 clocks, so that it won't be disabled and leave us with a non-responsive
 system.

 What issue have you seen?

Completely unresponsive after PLL6 is gated (on the A23).

 The system actually works pretty great on the A31.

Does it work when there aren't any other PLL6 consumers?
Maybe the boot0 on A31 and A23 setup some DRAM-related modules differently.

If the A31 works without protecting PLL6, I'll add a separate list
for the A23.


Thanks,
ChenYu
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 03/22] clk: sunxi: add "pll6" to sun6i protected clock list

2014-05-23 Thread Chen-Yu Tsai
PLL6 is used by some important but undocumented module, most likely
memory related, such as mbus or the actual memory controller. As we
do not have a driver for that, add pll6 to the list of protected
clocks, so that it won't be disabled and leave us with a non-responsive
system.

Signed-off-by: Chen-Yu Tsai 
---
 drivers/clk/sunxi/clk-sunxi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c
index e0e24d5..3e33bc1 100644
--- a/drivers/clk/sunxi/clk-sunxi.c
+++ b/drivers/clk/sunxi/clk-sunxi.c
@@ -1229,6 +1229,7 @@ CLK_OF_DECLARE(sun7i_a20_clk_init, "allwinner,sun7i-a20", 
sun5i_init_clocks);
 
 static const char *sun6i_critical_clocks[] __initdata = {
"cpu",
+   "pll6", /* something we don't know about uses pll6 */
"ahb1_sdram",
 };
 
-- 
2.0.0.rc2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 03/22] clk: sunxi: add pll6 to sun6i protected clock list

2014-05-23 Thread Chen-Yu Tsai
PLL6 is used by some important but undocumented module, most likely
memory related, such as mbus or the actual memory controller. As we
do not have a driver for that, add pll6 to the list of protected
clocks, so that it won't be disabled and leave us with a non-responsive
system.

Signed-off-by: Chen-Yu Tsai w...@csie.org
---
 drivers/clk/sunxi/clk-sunxi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c
index e0e24d5..3e33bc1 100644
--- a/drivers/clk/sunxi/clk-sunxi.c
+++ b/drivers/clk/sunxi/clk-sunxi.c
@@ -1229,6 +1229,7 @@ CLK_OF_DECLARE(sun7i_a20_clk_init, allwinner,sun7i-a20, 
sun5i_init_clocks);
 
 static const char *sun6i_critical_clocks[] __initdata = {
cpu,
+   pll6, /* something we don't know about uses pll6 */
ahb1_sdram,
 };
 
-- 
2.0.0.rc2

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/