From: Tai Tri Nguyen <ttnguyen-qTEPVZfXA3Y@public.gmane.org>
To: Dann Frazier <dann.frazier-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
Cc: arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-arm-kernel
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
patches <patches-qTEPVZfXA3Y@public.gmane.org>,
Jon Masters <jcm-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH 2/2 RESEND] power: reset: Add syscon poweroff device node for APM X-Gene platform
Date: Mon, 8 Jun 2015 21:34:03 -0700 [thread overview]
Message-ID: <CACgAJHwtCuZgZySmcvMxZHVxy__eZP02-TDbEn3FEpMx5y_LDQ@mail.gmail.com> (raw)
In-Reply-To: <CALdTtnvQg2xmL5MqxUcvJmk_33XiEg9tnLzYvC++ZQL3j7J46g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Dann,
On Mon, Jun 8, 2015 at 8:44 PM, Dann Frazier <dann.frazier-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org> wrote:
> On Tue, Jun 2, 2015 at 1:19 PM, Tai Nguyen <ttnguyen-qTEPVZfXA3Y@public.gmane.org> wrote:
>> This patch adds syscon poweroff device node to support poweroff feature
>> on APM X-Gene Mustang platform
>
> hey Tai,
> The reboot changes work just fine for me, but poweroff does not:
>
> [ OK ] Reached target Final Step.
> Starting Power-Off...
> reboot: Power down
> Unable to poweroff system
> Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
>
> CPU: 0 PID: 1 Comm: systemd-shutdow Tainted: G W 4.1.0-rc7+ #1
> Hardware name: APM X-Gene Mustang board (DT)
> Call trace:
> [<ffffffc00008990c>] dump_backtrace+0x0/0x11c
> [<ffffffc000089a38>] show_stack+0x10/0x1c
> [<ffffffc0005b447c>] dump_stack+0x88/0xc8
> [<ffffffc0005b3374>] panic+0xe0/0x220
> [<ffffffc0000b5f24>] do_exit+0x990/0x994
> [<ffffffc0000d06bc>] SyS_reboot+0x14c/0x208
> ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
>
> -dann
>
Thanks for testing my patches.
On APM X-Gene Mustang platform, power off circuit is controlled by firmware.
It requires a firmware update to support power off feature.
May I ask what firmware version you're running on?
Tai
>> Signed-off-by: Tai Nguyen <ttnguyen-qTEPVZfXA3Y@public.gmane.org>
>> ---
>> arch/arm64/boot/dts/apm/apm-mustang.dts | 12 ++++++++++++
>> 1 file changed, 12 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/apm/apm-mustang.dts b/arch/arm64/boot/dts/apm/apm-mustang.dts
>> index 83578e7..910d561 100644
>> --- a/arch/arm64/boot/dts/apm/apm-mustang.dts
>> +++ b/arch/arm64/boot/dts/apm/apm-mustang.dts
>> @@ -23,6 +23,18 @@
>> device_type = "memory";
>> reg = < 0x1 0x00000000 0x0 0x80000000 >; /* Updated by bootloader */
>> };
>> +
>> + poweroff_mbox: poweroff_mbox@10548000 {
>> + compatible = "syscon";
>> + reg = <0x0 0x10548000 0x0 0x30>;
>> + };
>> +
>> + poweroff: poweroff@10548010 {
>> + compatible = "syscon-poweroff";
>> + regmap = <&poweroff_mbox>;
>> + offset = <0x10>;
>> + mask = <0x1>;
>> + };
>> };
>>
>> &pcie0clk {
>> --
>> 1.7.9.5
>>
>>
>> _______________________________________________
>> linux-arm-kernel mailing list
>> linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Tai
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-06-09 4:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 19:19 [PATCH 0/2 RESEND] power: reset: Add syscon reboot/poweroff device nodes for APM X-Gene platform Tai Nguyen
2015-06-02 19:19 ` [PATCH 1/2 RESEND] power: reset: Add syscon reboot device node " Tai Nguyen
2015-06-09 15:32 ` Dann Frazier
2015-06-02 19:19 ` [PATCH 2/2 RESEND] power: reset: Add syscon poweroff " Tai Nguyen
[not found] ` <1433272747-27114-3-git-send-email-ttnguyen-qTEPVZfXA3Y@public.gmane.org>
2015-06-09 3:44 ` Dann Frazier
[not found] ` <CALdTtnvQg2xmL5MqxUcvJmk_33XiEg9tnLzYvC++ZQL3j7J46g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-09 4:34 ` Tai Tri Nguyen [this message]
[not found] ` <CACgAJHwtCuZgZySmcvMxZHVxy__eZP02-TDbEn3FEpMx5y_LDQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-09 15:31 ` Dann Frazier
[not found] ` <CALdTtnvwQ0W=3i-Yi73rQQ43uo1njwBoEuNQOpJ79Qoref9Yvw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-09 16:47 ` Tai Tri Nguyen
2015-06-10 19:13 ` Dann Frazier
[not found] ` <CALdTtnt+6RLD8VVx0UzQX0-5CQCL5cN1zo-USHHvqO5o25=w0A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-10 23:00 ` Moritz Fischer
2015-07-14 8:40 ` [PATCH 0/2 RESEND] power: reset: Add syscon reboot/poweroff device nodes " Olof Johansson
2015-07-22 17:46 ` Loc Ho
[not found] ` <CAPw-ZT=d2=dh-Hjugo9BStCuhTp82MMapUa1EGrD01EoTOG-nA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-22 17:52 ` Olof Johansson
[not found] ` <CAOesGMhKRxUtr6XXsZgCJVUFTFL3eHySP8y-SmEzi=R53MxLRw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-22 18:10 ` Loc Ho
[not found] ` <CAPw-ZTnk8cZyFyMnBMUYXuxs9=2ydqxOzm+dYsg-=9_Suq+q7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-22 18:20 ` Olof Johansson
[not found] ` <CAOesGMimzcUDW4e1etxZNerEusWmEtT_um8XZoT0MkFpCnTf5w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-25 18:34 ` Duc Dang
[not found] ` <CADaLNDmPqb73UrOaVphkywZh8mfd4sPdA6i25USLt53sZ3hFuw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-26 18:37 ` Olof Johansson
2015-07-28 17:51 ` Duc Dang
2015-08-28 20:00 ` Duc Dang
2015-08-28 20:06 ` Olof Johansson
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=CACgAJHwtCuZgZySmcvMxZHVxy__eZP02-TDbEn3FEpMx5y_LDQ@mail.gmail.com \
--to=ttnguyen-qtepvzfxa3y@public.gmane.org \
--cc=arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=dann.frazier-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=jcm-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=patches-qTEPVZfXA3Y@public.gmane.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).