linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Beagleboard xM crashes when being set to 800MHz with smartreflex on linux-omap-3.6-rc6
@ 2012-09-21  6:45 Maximilian Schwerin
  2012-09-21  8:34 ` Joni Lapilainen
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Maximilian Schwerin @ 2012-09-21  6:45 UTC (permalink / raw)
  To: linux-omap

[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

Hi,

I've just built a linux-omap kernel at 3.6-rc6 using omap2plus_defconfig
as basis for the kernel config.

When I enable smartreflex and switch to 800MHz via

echo 1 > /sys/kernel/debug/smartreflex/smartreflex_core/autocomp
echo 1 > /sys/kernel/debug/smartreflex/smartreflex_mpu_iva/autocomp
cpufreq-set -f 800MHz

the board crashes. If I switch to 800MHz and enable smartreflex later
nothing happens. This used to work in my 3.3 based kernel.

Regards, Maximilian

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: Beagleboard xM crashes when being set to 800MHz with smartreflex on linux-omap-3.6-rc6
  2012-09-21  6:45 Beagleboard xM crashes when being set to 800MHz with smartreflex on linux-omap-3.6-rc6 Maximilian Schwerin
@ 2012-09-21  8:34 ` Joni Lapilainen
  2012-09-21 12:52 ` Robert Nelson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Joni Lapilainen @ 2012-09-21  8:34 UTC (permalink / raw)
  To: Maximilian Schwerin; +Cc: linux-omap

On Fri, Sep 21, 2012 at 9:45 AM, Maximilian Schwerin
<Maximilian.Schwerin@tigris.de> wrote:
> Hi,
>
> I've just built a linux-omap kernel at 3.6-rc6 using omap2plus_defconfig
> as basis for the kernel config.
>
> When I enable smartreflex and switch to 800MHz via
>
> echo 1 > /sys/kernel/debug/smartreflex/smartreflex_core/autocomp
> echo 1 > /sys/kernel/debug/smartreflex/smartreflex_mpu_iva/autocomp
> cpufreq-set -f 800MHz
>
> the board crashes. If I switch to 800MHz and enable smartreflex later
> nothing happens. This used to work in my 3.3 based kernel.
>
> Regards, Maximilian

Also happens with N900 when changing frequency.

-JL

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

* Re: Beagleboard xM crashes when being set to 800MHz with smartreflex on linux-omap-3.6-rc6
  2012-09-21  6:45 Beagleboard xM crashes when being set to 800MHz with smartreflex on linux-omap-3.6-rc6 Maximilian Schwerin
  2012-09-21  8:34 ` Joni Lapilainen
@ 2012-09-21 12:52 ` Robert Nelson
  2012-09-21 19:16 ` Tony Lindgren
  2012-10-02  0:00 ` Kevin Hilman
  3 siblings, 0 replies; 7+ messages in thread
From: Robert Nelson @ 2012-09-21 12:52 UTC (permalink / raw)
  To: Maximilian Schwerin; +Cc: linux-omap

On Fri, Sep 21, 2012 at 1:45 AM, Maximilian Schwerin
<Maximilian.Schwerin@tigris.de> wrote:
> Hi,
>
> I've just built a linux-omap kernel at 3.6-rc6 using omap2plus_defconfig
> as basis for the kernel config.
>
> When I enable smartreflex and switch to 800MHz via
>
> echo 1 > /sys/kernel/debug/smartreflex/smartreflex_core/autocomp
> echo 1 > /sys/kernel/debug/smartreflex/smartreflex_mpu_iva/autocomp
> cpufreq-set -f 800MHz
>
> the board crashes. If I switch to 800MHz and enable smartreflex later
> nothing happens. This used to work in my 3.3 based kernel.

btw, once it locks up... retry with your 3.3 based kernel (hold reset
and swap sd card's, the "bug" should lock up again when trying to set
800Mhz on bootup..  In my testing, once it locks up, any cpufreq
enabled kernel will keep locking up...  Makes you wonder if a pll
setting isn't getting reset on bootup...)

I've traced it to the "arch_clock->clk_set_rate(clk, rate);" call in
the "int clk_set_rate(struct clk *clk, unsigned long rate)" function

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=arch/arm/plat-omap/clock.c;hb=HEAD#l132

at that point, I'm a little lost in the omap36xx code..

Regards,

-- 
Robert Nelson
http://www.rcn-ee.com/

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

* Re: Beagleboard xM crashes when being set to 800MHz with smartreflex on linux-omap-3.6-rc6
  2012-09-21  6:45 Beagleboard xM crashes when being set to 800MHz with smartreflex on linux-omap-3.6-rc6 Maximilian Schwerin
  2012-09-21  8:34 ` Joni Lapilainen
  2012-09-21 12:52 ` Robert Nelson
@ 2012-09-21 19:16 ` Tony Lindgren
  2012-10-02  0:00 ` Kevin Hilman
  3 siblings, 0 replies; 7+ messages in thread
From: Tony Lindgren @ 2012-09-21 19:16 UTC (permalink / raw)
  To: Maximilian Schwerin; +Cc: linux-omap

* Maximilian Schwerin <Maximilian.Schwerin@tigris.de> [120920 23:46]:
> Hi,
> 
> I've just built a linux-omap kernel at 3.6-rc6 using omap2plus_defconfig
> as basis for the kernel config.
> 
> When I enable smartreflex and switch to 800MHz via
> 
> echo 1 > /sys/kernel/debug/smartreflex/smartreflex_core/autocomp
> echo 1 > /sys/kernel/debug/smartreflex/smartreflex_mpu_iva/autocomp
> cpufreq-set -f 800MHz
> 
> the board crashes. If I switch to 800MHz and enable smartreflex later
> nothing happens. This used to work in my 3.3 based kernel.

I'm suspecting that this is because of all the missing PM
errata we don't have in the mainline kernel :(

I think we're missing at least the following based on a quick grep
of the Nokia patched PM code:

- 3430 (and 3630?) hs omap cs1 off-idle bug where save/restore needs to be in lowmem

- 3630 retention idle is missing errata handling for 1.85/i581

- 3630 off idle is missing 1.87 handling

- smartreflex missing twl4030 errata?

- Nokia patched PM code mentions also quite a few other missing
  errata such as 1.88, 1.142, i582, i467, i468, 1.164

This may be a bit out of date as it's based on some notes I made
few months ago after I started noticing flakeyness on my 3630 zoom3
board.

Regards,

Tony

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

* Re: Beagleboard xM crashes when being set to 800MHz with smartreflex on linux-omap-3.6-rc6
  2012-09-21  6:45 Beagleboard xM crashes when being set to 800MHz with smartreflex on linux-omap-3.6-rc6 Maximilian Schwerin
                   ` (2 preceding siblings ...)
  2012-09-21 19:16 ` Tony Lindgren
@ 2012-10-02  0:00 ` Kevin Hilman
  2012-10-08  8:50   ` AW: " Maximilian Schwerin
  2012-10-10 10:49   ` jean-philippe francois
  3 siblings, 2 replies; 7+ messages in thread
From: Kevin Hilman @ 2012-10-02  0:00 UTC (permalink / raw)
  To: Maximilian Schwerin; +Cc: linux-omap

"Maximilian Schwerin" <Maximilian.Schwerin@tigris.de> writes:

> Hi,
>
> I've just built a linux-omap kernel at 3.6-rc6 using omap2plus_defconfig
> as basis for the kernel config.
>
> When I enable smartreflex and switch to 800MHz via
>
> echo 1 > /sys/kernel/debug/smartreflex/smartreflex_core/autocomp
> echo 1 > /sys/kernel/debug/smartreflex/smartreflex_mpu_iva/autocomp
> cpufreq-set -f 800MHz
>
> the board crashes. If I switch to 800MHz and enable smartreflex later
> nothing happens. This used to work in my 3.3 based kernel.

SmartReflex is kwown to be unstable in mainline and there are several
errata that still need fixing for it to be stable.

I strongly recommend you simply leave SR disabled.

Kevin



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

* AW: Beagleboard xM crashes when being set to 800MHz with smartreflex on linux-omap-3.6-rc6
  2012-10-02  0:00 ` Kevin Hilman
@ 2012-10-08  8:50   ` Maximilian Schwerin
  2012-10-10 10:49   ` jean-philippe francois
  1 sibling, 0 replies; 7+ messages in thread
From: Maximilian Schwerin @ 2012-10-08  8:50 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: linux-omap

[-- Attachment #1: Type: text/plain, Size: 1293 bytes --]

> -----Ursprüngliche Nachricht-----
> Von: Kevin Hilman [mailto:khilman@deeprootsystems.com] 
> Gesendet: Dienstag, 2. Oktober 2012 02:00
> An: Maximilian Schwerin
> Cc: linux-omap@vger.kernel.org
> Betreff: Re: Beagleboard xM crashes when being set to 800MHz 
> with smartreflex on linux-omap-3.6-rc6
> 
> "Maximilian Schwerin" <Maximilian.Schwerin@tigris.de> writes:
> 
> > Hi,
> >
> > I've just built a linux-omap kernel at 3.6-rc6 using 
> omap2plus_defconfig
> > as basis for the kernel config.
> >
> > When I enable smartreflex and switch to 800MHz via
> >
> > echo 1 > /sys/kernel/debug/smartreflex/smartreflex_core/autocomp
> > echo 1 > /sys/kernel/debug/smartreflex/smartreflex_mpu_iva/autocomp
> > cpufreq-set -f 800MHz
> >
> > the board crashes. If I switch to 800MHz and enable 
> smartreflex later
> > nothing happens. This used to work in my 3.3 based kernel.
> 
> SmartReflex is kwown to be unstable in mainline and there are several
> errata that still need fixing for it to be stable.
> 
> I strongly recommend you simply leave SR disabled.
> 
> Kevin
> 

So what does this mean for 800MHz and 1GHz? Is this not usable at all? Is there another kernel branch, that supports both frequencies? My customer needs 800MHz and 1GHz.

Cheers, m. 

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: Beagleboard xM crashes when being set to 800MHz with smartreflex on linux-omap-3.6-rc6
  2012-10-02  0:00 ` Kevin Hilman
  2012-10-08  8:50   ` AW: " Maximilian Schwerin
@ 2012-10-10 10:49   ` jean-philippe francois
  1 sibling, 0 replies; 7+ messages in thread
From: jean-philippe francois @ 2012-10-10 10:49 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: Maximilian Schwerin, linux-omap

2012/10/2 Kevin Hilman <khilman@deeprootsystems.com>:
> "Maximilian Schwerin" <Maximilian.Schwerin@tigris.de> writes:
>
>> Hi,
>>
>> I've just built a linux-omap kernel at 3.6-rc6 using omap2plus_defconfig
>> as basis for the kernel config.
>>
>> When I enable smartreflex and switch to 800MHz via
>>
>> echo 1 > /sys/kernel/debug/smartreflex/smartreflex_core/autocomp
>> echo 1 > /sys/kernel/debug/smartreflex/smartreflex_mpu_iva/autocomp
>> cpufreq-set -f 800MHz
>>
>> the board crashes. If I switch to 800MHz and enable smartreflex later
>> nothing happens. This used to work in my 3.3 based kernel.
>
> SmartReflex is kwown to be unstable in mainline and there are several
> errata that still need fixing for it to be stable.
>
> I strongly recommend you simply leave SR disabled.
>
Does it apply to a device always at opp1G ?
Ie if I boot @1GHz and then enable smart reflex, is it ok ?

> Kevin
>
>
> --
> 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

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

end of thread, other threads:[~2012-10-10 10:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21  6:45 Beagleboard xM crashes when being set to 800MHz with smartreflex on linux-omap-3.6-rc6 Maximilian Schwerin
2012-09-21  8:34 ` Joni Lapilainen
2012-09-21 12:52 ` Robert Nelson
2012-09-21 19:16 ` Tony Lindgren
2012-10-02  0:00 ` Kevin Hilman
2012-10-08  8:50   ` AW: " Maximilian Schwerin
2012-10-10 10:49   ` jean-philippe francois

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