linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: tomasz.figa@gmail.com (Tomasz Figa)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V5 00/20] ARM: exynos: cpuidle: Move the driver to drivers/cpuidle
Date: Fri, 23 May 2014 23:31:46 +0200	[thread overview]
Message-ID: <537FBE42.7050608@gmail.com> (raw)
In-Reply-To: <537F6A02.2040606@linaro.org>

Hi Daniel,

On 23.05.2014 17:32, Daniel Lezcano wrote:
> On 05/22/2014 08:35 PM, Kukjin Kim wrote:
>> On 04/26/14 20:05, Kukjin Kim wrote:
>>> Tomasz Figa wrote:
>>>>
>>>> On 14.04.2014 11:01, Daniel Lezcano wrote:
>>>>>
>>>>> Hi Kukjin,
>>>>>
>>>>> I believe I addressed all the comments. Is it possible to take this
>>>>> patchset for next ?
>>>>
>>> Sure ;-)
>>>
>>>> +1.
>>>>
>>>> Also when applying you might add
>>>>
>>>> Reviewed-by: Tomasz Figa<t.figa@samsung.com>
>>>>
>>>> to any patches that don't have it yet.
>>>>
>>> Tomasz, thanks for your review.
>>>
>>> I will take this series, "moving exynos-cpuidle into drivers/cpuidle"
>>> into samsung tree if Rafael is OK on that.
>>>
>> Daniel,
>>
>> Can you please check/test the functionality your series with using my
>> for-next because there were merge conflicts with mcpm-exynos stuff...?
> 
> Hi Kukjin,
> 
> I tested the latest tree. Unfortunately it panics when unplugging cpu1:
> 
> [    3.124189] Unable to handle kernel paging request at virtual address
> f8400024
> [    3.129950] pgd = c0004000
> [    3.132626] [f8400024] *pgd=6f7f7841, *pte=00000000, *ppte=00000000
> [    3.138877] Internal error: Oops: 827 [#1] PREEMPT SMP ARM
> [    3.192782] r3 : f8400024  r2 : f8180800  r1 : ee836e44  r0 : f8400024
> [    3.199293] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM
> Segment kernel
> [    3.206673] Control: 10c5387d  Table: 6e37c04a  DAC: 00000015
> [    3.212398] Process swapper/0 (pid: 0, stack limit = 0xc0510240)
> [    3.218388] Stack: (0xc0511ef4 to 0xc0512000)
> [    3.222728] 1ee0: 00000030 c02b20f8 ee836e40
> [    3.230894] 1f00: c001234c 6e880000 c0511f34 40018a80 00000000
> 00000000 00000000 00000015
> [    3.239053] 1f20: 4000404a 10c5387d 00000041 00f00000 00000000
> 00000000 c02b20e4 edc4a540
> [    3.247212] 1f40: c038dacc eefc5cf8 c050ecf0 c0543210 00000000
> c0012460 00000001 c0543210
> [    3.255371] 1f60: eefc5cf8 c02b2148 b9f92927 00000000 c054326c
> c02b0968 b9f92927 00000000
> [    3.263530] 1f80: c0510000 c0518480 c038dacc c0510000 c0510000
> c0518480 c038dacc eefc5cf8
> [    3.271689] 1fa0: c0543210 c004e990 c0511fb4 c03873b8 00000000
> c04f90c8 00000000 c04d4b18
> [    3.279848] 1fc0: ffffffff ffffffff c04d457c 00000000 00000000
> c04f90c8 00000000 10c5387d
> [    3.288007] 1fe0: c0518410 c04f90c4 c051bd5c 4000406a 00000000
> 40008074 00000000 00000000
> [    3.296184] [<c0019c5c>] (exynos_enter_aftr) from [<c02b20f8>]
> (idle_finisher+0x14/0x20)
> [    3.304247] [<c02b20f8>] (idle_finisher) from [<c001234c>]
> (cpu_suspend_abort+0x0/0x14)
> [    3.312226] [<c001234c>] (cpu_suspend_abort) from [<00000000>] ( 
> (null))
> [    3.318994] Code: e34f3840 e3500010 11a00002 01a00003 (e5804000)
> [    3.325069] ---[ end trace fca911f75a18c040 ]---
> 
> 
> After git bisecting I falls on this commit:
> 
> commit b3205dea8fbf6db9b1e46a0dad19a0712fdff44f
> Author: Sachin Kamat <sachin.kamat@linaro.org>
> Date:   Tue May 13 07:13:44 2014 +0900
> 
>     ARM: EXYNOS: Map SYSRAM through generic DT bindings
> 
>     Instead of hardcoding the SYSRAM details for each SoC,
>     pass this information through device tree (DT) and make
>     the code SoC agnostic. Generic DT SRAM bindings are
>     used for achieving this.
> 
>     Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>     Acked-by: Arnd Bergmann <arnd@arndb.de>
>     Acked-by: Heiko Stuebner <heiko@sntech.de>
>     Reviewed-by: Tomasz Figa <t.figa@samsung.com>
>     Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
> 
> 
> ... which is before my series is applied.
> 
> So I am not able to tell yet if my series is correctly rebased or not.
> 
> And before someone asks me, yes I updated the dtb :)

The driver seemed to be working fine for me on Exynos4210-TRATS board
(with right bootloader, which supports AFTR).

Still, a quick look at the code reveals use of S5P_VA_SYSRAM macro, in
case of certain SoC revisions, which is not valid any longer, after
SYSRAM started to be mapped dynamically. As you can see in platsmp.c,
the new dynamic mapping is stored in sysram_base_addr variable, which is
static right now.

My proposed fix would be to make it non-static, declare it in one of
existing private headers (common.h probably) and use it in pm.c instead
of S5P_VA_SYSRAM.

Best regards,
Tomasz

  reply	other threads:[~2014-05-23 21:31 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-11 10:39 [PATCH V5 00/20] ARM: exynos: cpuidle: Move the driver to drivers/cpuidle Daniel Lezcano
2014-04-11 10:39 ` [PATCH V5 01/20] ARM: EXYNOS: Move arm core power down clock to exynos5250 common clock Daniel Lezcano
2014-04-11 10:39 ` [PATCH V5 02/20] ARM: exynos: cpuidle: Prevent forward declaration Daniel Lezcano
2014-04-11 10:39 ` [PATCH V5 03/20] ARM: exynos: cpuidle: Use cpuidle_register Daniel Lezcano
2014-04-11 10:39 ` [PATCH V5 04/20] ARM: exynos: cpuidle: Change function name prefix Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 05/20] ARM: exynos: cpuidle: Encapsulate register access inside a function Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 06/20] ARM: exynos: cpuidle: Move some code inside the idle_finisher Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 07/20] ARM: exynos: cpuidle: Fix S5P_WAKEUP_STAT call Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 08/20] ARM: exynos: cpuidle: Use the cpu_pm notifier Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 09/20] ARM: exynos: cpuidle: Move scu_enable in " Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 10/20] ARM: exynos: cpuidle: Remove ifdef for scu_enable Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 11/20] ARM: exynos: cpuidle: Pass wakeup mask parameter to function Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 12/20] ARM: exynos: cpuidle: Encapsulate boot vector code into a function Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 13/20] ARM: exynos: cpuidle: Disable cpuidle for 5440 Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 14/20] ARM: exynos: cpuidle: Encapsulate the AFTR code into a function Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 15/20] ARM: exynos: cpuidle: Move the AFTR state function into pm.c Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 16/20] ARM: exynos: cpuidle: Move the power sequence call in the cpu_pm notifier Daniel Lezcano
2014-06-26  9:07   ` Chander Kashyap
2014-06-26  9:48     ` Tomasz Figa
2014-06-27  5:56       ` Chander Kashyap
2014-04-11 10:40 ` [PATCH V5 17/20] ARM: exynos: cpuidle: Move S5P_CHECK_SLEEP into pm.c Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 18/20] ARM: exynos: cpuidle: Pass the AFTR callback to the platform_data Daniel Lezcano
2014-05-09 10:56   ` Arnd Bergmann
2014-05-09 12:02     ` Tomasz Figa
2014-05-09 15:29       ` Bartlomiej Zolnierkiewicz
2014-05-12 15:18       ` Daniel Lezcano
2014-05-15 14:07         ` Tomasz Figa
2014-05-15 20:40           ` Kukjin Kim
2014-05-21  7:15             ` Daniel Lezcano
2014-05-21  8:10               ` Arnd Bergmann
2014-05-21  9:02                 ` Daniel Lezcano
2014-05-21 14:56                   ` Arnd Bergmann
2014-05-21 13:54                 ` Kukjin Kim
2014-05-09 13:10     ` Kukjin Kim
2014-04-11 10:40 ` [PATCH V5 19/20] ARM: exynos: cpuidle: Cleanup all unneeded headers from cpuidle.c Daniel Lezcano
2014-04-11 10:40 ` [PATCH V5 20/20] ARM: exynos: cpuidle: Move the driver to drivers/cpuidle directory Daniel Lezcano
2014-04-14  9:01 ` [PATCH V5 00/20] ARM: exynos: cpuidle: Move the driver to drivers/cpuidle Daniel Lezcano
2014-04-24 17:02   ` Tomasz Figa
2014-04-26 11:05     ` Kukjin Kim
2014-05-22 18:35       ` Kukjin Kim
2014-05-22 18:57         ` Daniel Lezcano
2014-05-23 15:32         ` Daniel Lezcano
2014-05-23 21:31           ` Tomasz Figa [this message]
2014-05-24  4:57             ` Sachin Kamat
2014-05-24 17:24             ` [PATCH] ARM: exynos: Fix kernel panic when unplugging CPU1 on 4210 Daniel Lezcano
2014-05-24 17:31               ` Daniel Lezcano
2014-05-25 19:51                 ` Kukjin Kim
2014-05-24 17:32               ` Tomasz Figa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=537FBE42.7050608@gmail.com \
    --to=tomasz.figa@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).