All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/7] system halt when we enable bucks of PMIC rk808
Date: Wed, 5 Apr 2017 21:44:44 -0600	[thread overview]
Message-ID: <CAPnjgZ0DBK9LVc7yF-2bHdb5ZnqoBab-yMqV2kRSot4YDgC4hw@mail.gmail.com> (raw)
In-Reply-To: <1491057777-1640-2-git-send-email-eric.gao@rock-chips.com>

On 1 April 2017 at 08:42,  <eric.gao@rock-chips.com> wrote:
> From: "eric.gao" <eric.gao@rock-chips.com>
>
> if we enable PMIC rk808,the system will halt at very early stage
> ,log is shown as bellow.
>
> INFO:    plat_rockchip_pmu_init(1211): pd status 3e
> INFO:    BL31: Initializing runtime services
> INFO:    BL31: Preparing for EL3 exit to normal world
> INFO:    Entry point address = 0x200000
> INFO:    SPSR = 0x3c9
> time 44561b, 0 (<<----Just stop here)
>
> It's caused by the absence of "{ }" in file rk3399/syscon_rk3399.c
> ,which will lead to memory overflow like below.According to Sysmap
> file ,we can find the function buck_get_value of rk808 is just follow
> the compatible struct, the pointer "of_match" point to "buck_get_value",
> but it is not a struct and don't have member of compatible, In this
> case,system crash. So,on the face, it looks like that rk808 is guilty.
> but he is really innocent.
>
> while (of_match->compatible) { <<----------
>     if (!strcmp(of_match->compatible, compat)) {
>     *of_idp = of_match;
>     return 0;
>     }
>     of_match++;
> }
>
> Signed-off-by: eric.gao <eric.gao@rock-chips.com>
> ---
>
>  arch/arm/mach-rockchip/rk3399/syscon_rk3399.c | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

(I'm assuming you will resend with the changes Kever mentioned, thanks)

  reply	other threads:[~2017-04-06  3:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-01 14:42 [U-Boot] [PATCH 0/7] Enable MIPI dsi display for rk3399 eric.gao at rock-chips.com
2017-04-01 14:42 ` [U-Boot] [PATCH 1/7] system halt when we enable bucks of PMIC rk808 eric.gao at rock-chips.com
2017-04-06  3:44   ` Simon Glass [this message]
2017-04-01 14:42 ` [U-Boot] [PATCH 2/7] Enable i2c for rk3399 eric.gao at rock-chips.com
2017-04-03  4:16   ` Heiko Schocher
2017-04-01 14:42 ` [U-Boot] [PATCH 3/7] Enable RK808 for rk3399 evb eric.gao at rock-chips.com
2017-04-06  3:44   ` Simon Glass
2017-04-01 14:42 ` [U-Boot] [PATCH 4/7] Enable rkclk init function eric.gao at rock-chips.com
2017-04-02 11:52   ` Heiko Stuebner
2017-04-06  8:45     ` Eric
2017-04-01 14:42 ` [U-Boot] [PATCH 5/7] Add mipi display support for rk3399 && rk3288 eric.gao at rock-chips.com
2017-04-05  3:52   ` Jacob Chen
2017-04-06  3:44   ` Simon Glass
2017-04-01 14:42 ` [U-Boot] [PATCH 6/7] Enable print log file to lcd eric.gao at rock-chips.com
2017-04-06  3:44   ` Simon Glass
2017-04-06  8:48     ` Eric
2017-04-01 14:42 ` [U-Boot] [PATCH 7/7] crash when scroll screen eric.gao at rock-chips.com
2017-04-06  3:44   ` Simon Glass
2017-04-05  8:47 ` [U-Boot] [PATCH 0/7] Enable MIPI dsi display for rk3399 Kever Yang
  -- strict thread matches above, loose matches on Subject: below --
2017-04-01 14:30 eric.gao at rock-chips.com
2017-04-01 14:30 ` [U-Boot] [PATCH 1/7] system halt when we enable bucks of PMIC rk808 eric.gao at rock-chips.com

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=CAPnjgZ0DBK9LVc7yF-2bHdb5ZnqoBab-yMqV2kRSot4YDgC4hw@mail.gmail.com \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /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 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.