From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm/ls1021a: Add Sleep feature for ls1021
Date: Thu, 17 Sep 2015 13:31:55 +0100 [thread overview]
Message-ID: <20150917123155.GC12808@leverpostej> (raw)
In-Reply-To: <SN1PR0301MB161620AA4926EEF6541D901E9D500@SN1PR0301MB1616.namprd03.prod.outlook.com>
On Fri, Sep 11, 2015 at 04:53:04AM +0100, Wang Dongsheng wrote:
> Hi Mark,
Hi,
> > > > diff --git a/arch/arm/mach-imx/pm-ls1.c b/arch/arm/mach-imx/pm-ls1.c
> > > > new file mode 100644 index 0000000..f80b24d
> > > > --- /dev/null
> > > > +++ b/arch/arm/mach-imx/pm-ls1.c
> > > > @@ -0,0 +1,222 @@
> > > > +/*
> > > > + * Support Power Management Control for LS1
> > > > + *
> > > > + * Copyright 2015 Freescale Semiconductor Inc.
> > > > + *
> > > > + * This program is free software; you can redistribute it and/or modify it
> > > > + * under the terms of the GNU General Public License as
> > published by
> > > the
> > > > + * Free Software Foundation; either version 2 of the License, or
> > > > +(at your
> > > > + * option) any later version.
> > > > + */
> > > > +
> > > > +#include <linux/io.h>
> > > > +#include <linux/kernel.h>
> > > > +#include <linux/of_platform.h>
> > > > +#include <linux/of_address.h>
> > > > +#include <linux/psci.h>
> > > > +#include <linux/suspend.h>
> > > > +
> > > > +#include <uapi/linux/psci.h>
> > > > +
> > > > +#include <asm/cacheflush.h>
> > > > +#include <asm/psci.h>
> > >
> > > NAK.
> > >
> > > No new platform code should be calling the PSCI functions directly;
> > > you should not need to include these files in platform code.
> >
> > PSCI 1.0 define SYSTEM_SUSPEND, and 0.2 and 0.1 not support this feature.
> >
> > I will drop psci-cpu_suspend to implement SYSTEM SUSPEND, and implement system
> > suspend in platform code.
>
> Now 0.1 and 0.2 not support SYSTEM SUSPEND, means if do system suspend we still
> need to use platform_suspend_ops to implement system suspend in platform code and
> cannot use PSCI interface to do it?
As PSCI_SYSTEM_SUSPEND was introduced in PSCI 1.0, you would need a PSCI
1.0 implementation in order to use PSCI_SYSTEM_SUSPEND. Is there
anything preventing implementing PSCI 1.0?
> How about PSCI 1.0 support, could you share some information about it?
Lorenzo has implemented basic PSCI 1.0 support [1,2], and Sudeep has
been working on SYSTEM_SUSPEND [3], though I'm not immediately aware of
the state of the world there.
Do you have any specific questions?
Thanks,
Mark.
[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/355098.html
[2] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-September/369806.html
[3] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-September/369804.html
WARNING: multiple messages have this Message-ID (diff)
From: Mark Rutland <mark.rutland@arm.com>
To: Wang Dongsheng <Dongsheng.Wang@freescale.com>
Cc: "shawnguo@kernel.org" <shawnguo@kernel.org>,
Catalin Marinas <Catalin.Marinas@arm.com>,
Huan Wang <alison.wang@freescale.com>,
"Zhao C.H." <chenhui.zhao@freescale.com>,
Jin Jason <Jason.Jin@freescale.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
lorenzo.pieralisi@arm.com, sudeep.holla@arm.com
Subject: Re: [PATCH] arm/ls1021a: Add Sleep feature for ls1021
Date: Thu, 17 Sep 2015 13:31:55 +0100 [thread overview]
Message-ID: <20150917123155.GC12808@leverpostej> (raw)
In-Reply-To: <SN1PR0301MB161620AA4926EEF6541D901E9D500@SN1PR0301MB1616.namprd03.prod.outlook.com>
On Fri, Sep 11, 2015 at 04:53:04AM +0100, Wang Dongsheng wrote:
> Hi Mark,
Hi,
> > > > diff --git a/arch/arm/mach-imx/pm-ls1.c b/arch/arm/mach-imx/pm-ls1.c
> > > > new file mode 100644 index 0000000..f80b24d
> > > > --- /dev/null
> > > > +++ b/arch/arm/mach-imx/pm-ls1.c
> > > > @@ -0,0 +1,222 @@
> > > > +/*
> > > > + * Support Power Management Control for LS1
> > > > + *
> > > > + * Copyright 2015 Freescale Semiconductor Inc.
> > > > + *
> > > > + * This program is free software; you can redistribute it and/or modify it
> > > > + * under the terms of the GNU General Public License as
> > published by
> > > the
> > > > + * Free Software Foundation; either version 2 of the License, or
> > > > +(at your
> > > > + * option) any later version.
> > > > + */
> > > > +
> > > > +#include <linux/io.h>
> > > > +#include <linux/kernel.h>
> > > > +#include <linux/of_platform.h>
> > > > +#include <linux/of_address.h>
> > > > +#include <linux/psci.h>
> > > > +#include <linux/suspend.h>
> > > > +
> > > > +#include <uapi/linux/psci.h>
> > > > +
> > > > +#include <asm/cacheflush.h>
> > > > +#include <asm/psci.h>
> > >
> > > NAK.
> > >
> > > No new platform code should be calling the PSCI functions directly;
> > > you should not need to include these files in platform code.
> >
> > PSCI 1.0 define SYSTEM_SUSPEND, and 0.2 and 0.1 not support this feature.
> >
> > I will drop psci-cpu_suspend to implement SYSTEM SUSPEND, and implement system
> > suspend in platform code.
>
> Now 0.1 and 0.2 not support SYSTEM SUSPEND, means if do system suspend we still
> need to use platform_suspend_ops to implement system suspend in platform code and
> cannot use PSCI interface to do it?
As PSCI_SYSTEM_SUSPEND was introduced in PSCI 1.0, you would need a PSCI
1.0 implementation in order to use PSCI_SYSTEM_SUSPEND. Is there
anything preventing implementing PSCI 1.0?
> How about PSCI 1.0 support, could you share some information about it?
Lorenzo has implemented basic PSCI 1.0 support [1,2], and Sudeep has
been working on SYSTEM_SUSPEND [3], though I'm not immediately aware of
the state of the world there.
Do you have any specific questions?
Thanks,
Mark.
[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/355098.html
[2] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-September/369806.html
[3] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-September/369804.html
next prev parent reply other threads:[~2015-09-17 12:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-10 9:36 [PATCH] arm/ls1021a: Add Sleep feature for ls1021 Dongsheng Wang
2015-09-10 9:36 ` Dongsheng Wang
2015-09-10 9:59 ` Mark Rutland
2015-09-10 9:59 ` Mark Rutland
2015-09-11 3:42 ` Wang Dongsheng
2015-09-11 3:53 ` Wang Dongsheng
2015-09-17 12:31 ` Mark Rutland [this message]
2015-09-17 12:31 ` Mark Rutland
2015-09-18 2:37 ` Wang Dongsheng
2015-09-18 7:46 ` Lorenzo Pieralisi
2015-09-18 7:46 ` Lorenzo Pieralisi
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=20150917123155.GC12808@leverpostej \
--to=mark.rutland@arm.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 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.