Kernel panic in Power Management on Samsung Arndale board with Linux Linaro ubuntu image.

Bug #1128729 reported by Botao on 2013-02-18
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Arndale
Fix Released
Undecided
Unassigned
Linaro Linux Baseline
Fix Released
Medium
Andrey Konovalov
Linaro Ubuntu
Medium
Fathi Boudra
linaro-landing-team-samsung
Fix Committed
Medium
Inderpal Singh
Amit Kucheria (amitk) on 2013-02-22
Changed in linaro-ubuntu:
importance: Undecided → Medium
Botao (botao-sun) on 2013-02-28
description: updated
Botao (botao-sun) wrote :

On Samsung Arndale board with Linux Linaro ubuntu image:

http://snapshots.linaro.org/quantal/pre-built/arndale/269/arndale-quantal_server_20130315-269.img.gz

Kernel panic has gone during the power management test, but still some failed test cases got observed. Also, after ran test case "thermal_05.0", system hangs. Please refer to attachment to get detailed test result.

Botao (botao-sun) wrote :

On Samsung Arndale board with Linux Linaro ubuntu image:

http://snapshots.linaro.org/quantal/pre-built/arndale/276/arndale-quantal_server_20130324-276.img.gz

Kernel panic shows up again, with some other failures. Please refer to attachment to get full test result output.

Amit Kucheria (amitk) wrote :

Marking invalid for PM-QA. This seems to be hotplug-related problem with Arndale. Samsung LT needs to investigate.

Changed in linaro-power-qa:
status: New → Invalid
Botao (botao-sun) on 2013-04-04
description: updated
Botao (botao-sun) on 2013-04-11
description: updated
Botao (botao-sun) on 2013-04-17
description: updated
Inderpal Singh (ips) wrote :

The kernel panic can be fixed with patch:

https://patchwork.kernel.org/patch/2400391/

Fathi Boudra (fboudra) wrote :

Hot-plugging with CONFIG_DEBUG_PREEMPT=y on a device with arm
architected timers causes a slew of "using smp_processor_id() in
preemptible" warnings:

  BUG: using smp_processor_id() in preemptible [00000000] code: sh/111
  caller is arch_timer_cpu_notify+0x14/0xc8

This happens because sometimes the cpu notifier,
arch_timer_cpu_notify(), is called in preemptible context and
other times in non-preemptible context but we use this_cpu_ptr()
to retrieve the clockevent in all cases. We're only going to
actually use the pointer in non-preemptible context though, so
push the this_cpu_ptr() access down into the cases to force the
checks to occur only in non-preemptible contexts.

Changed in linaro-ubuntu:
milestone: none → 13.04
no longer affects: linaro-power-qa
Changed in linaro-linux-baseline:
milestone: none → 13.04
Changed in linaro-ubuntu:
assignee: nobody → Fathi Boudra (fboudra)
Changed in linaro-linux-baseline:
assignee: nobody → Andrey Konovalov (andrey-konovalov)
importance: Undecided → Medium
status: New → In Progress
Changed in linaro-ubuntu:
status: New → In Progress
Changed in linaro-landing-team-samsung:
status: New → In Progress
Changed in linaro-landing-team-samsung:
importance: Undecided → Medium
assignee: nobody → Inderpal Singh (ips)
Tushar Behera (tusharbehera) wrote :

CPU hotplug is still an issue on Arndale. LT is working on fixing this.

Inderpal Singh (ips) wrote :

The hotplug issue happens because u-boot commit "3d28a181aab5e... arndale5250: Boot in Hyp
mode and enable architected timers" puts the CPUs in HYP mode. Same needs to be done in hotplug case.

The attached patch fixes the issue.

Changed in linaro-linux-baseline:
status: In Progress → Fix Released
status: Fix Released → In Progress
Fathi Boudra (fboudra) on 2013-04-25
Changed in linaro-ubuntu:
milestone: 13.04 → 13.05
Changed in linaro-linux-baseline:
milestone: 13.04 → 13.05
Botao (botao-sun) on 2013-04-25
description: updated
Changed in linaro-landing-team-samsung:
milestone: none → 2013.05
status: In Progress → Fix Committed
Changed in arndale:
status: New → Fix Committed
Botao (botao-sun) on 2013-05-08
description: updated
Tushar Behera (tusharbehera) wrote :

Should be fixed with next rebuild of linux-linaro tree. Tested locally to be working fine.

Botao (botao-sun) wrote :

On Samsung Arndale board with Linux Linaro ubuntu Raring image:

http://snapshots.linaro.org/raring/pre-built/arndale/336/arndale-raring_server_20130520-336.img.gz

Kernel panic has gone, please refer to attachment to get full test result output.

However, there are some errors related to CPU hot plug, and a new bug has been rasied for that:

https://bugs.launchpad.net/linaro-ubuntu/+bug/1182848

Botao (botao-sun) on 2013-05-28
description: updated
Changed in linaro-linux-baseline:
status: In Progress → Fix Committed
Fathi Boudra (fboudra) on 2013-05-31
Changed in linaro-ubuntu:
status: In Progress → Fix Released
Changed in arndale:
status: Fix Committed → Fix Released
Changed in linaro-linux-baseline:
status: Fix Committed → Fix Released
To post a comment you must log in.