From: Hanjun Guo <hanjun.guo@linaro.org>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Catalin Marinas <catalin.marinas@arm.com>,
Graeme Gregory <graeme.gregory@linaro.org>,
Tony Luck <tony.luck@intel.com>,
Thomas Gleixner <tglx@linutronix.de>,
linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org
Subject: Re: [PATCH 3/4] ACPI / processor: Introduce ARCH_HAS_ACPI_PDC
Date: Tue, 08 Jul 2014 17:58:46 +0800 [thread overview]
Message-ID: <53BBC0D6.2090606@linaro.org> (raw)
In-Reply-To: <2064691.ZpxCs0gfL8@vostro.rjw.lan>
On 2014年07月08日 05:13, Rafael J. Wysocki wrote:
> On Wednesday, July 02, 2014 04:47:25 PM Hanjun Guo wrote:
>> The use of _PDC is deprecated in ACPI 3.0 in favor of _OSC,
>> as ARM platform is supported only in ACPI 5.0 or higher version,
>> _PDC will not be used in ARM platform, so make Make _PDC only for
>> platforms with Intel CPUs.
>>
>> Introduce ARCH_HAS_ACPI_PDC and move _PDC related code in ACPI
>> processor driver into a single file processor_pdc.c, make x86
>> and ia64 select ARCH_HAS_ACPI_PDC when ACPI is enabled.
>>
>> This patch also use pr_* to replace printk to fix the checkpatch
>> warning and factor acpi_processor_alloc_pdc() a little bit to
>> avoid duplicate pr_err() code.
>>
>> Suggested-by: Robert Richter <rric@kernel.org>
>> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
>> ---
>> arch/ia64/Kconfig | 1 +
>> arch/x86/Kconfig | 1 +
>> drivers/acpi/Kconfig | 10 ++
>> drivers/acpi/Makefile | 1 +
>> drivers/acpi/internal.h | 5 +
>> drivers/acpi/processor_core.c | 198 ---------------------------------------
>> drivers/acpi/processor_pdc.c | 206 +++++++++++++++++++++++++++++++++++++++++
>> 7 files changed, 224 insertions(+), 198 deletions(-)
>> create mode 100644 drivers/acpi/processor_pdc.c
>>
>> diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig
>> index f82b352..cde2626 100644
>> --- a/arch/ia64/Kconfig
>> +++ b/arch/ia64/Kconfig
>> @@ -10,6 +10,7 @@ config IA64
>> select ARCH_MIGHT_HAVE_PC_SERIO
>> select PCI if (!IA64_HP_SIM)
>> select ACPI if (!IA64_HP_SIM)
>> + select ARCH_HAS_ACPI_PDC if ACPI
> The ARCH_HAS part doesn't seem to be particularly consistent with
> the existing naming. ARCH_MIGHT_HAVE_ACPI_PDC would be better IMO.
OK, I will update the patch.
>
>> select PM if (!IA64_HP_SIM)
>> select HAVE_UNSTABLE_SCHED_CLOCK
>> select HAVE_IDE
>> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
>> index 4865d44..d60cec7 100644
>> --- a/arch/x86/Kconfig
>> +++ b/arch/x86/Kconfig
>> @@ -21,6 +21,7 @@ config X86_64
>> ### Arch settings
>> config X86
>> def_bool y
>> + select ARCH_HAS_ACPI_PDC if ACPI
>> select ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS
>> select ARCH_MIGHT_HAVE_PC_PARPORT
>> select ARCH_MIGHT_HAVE_PC_SERIO
>> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
>> index 70eaf7a..0e6f72d 100644
>> --- a/drivers/acpi/Kconfig
>> +++ b/drivers/acpi/Kconfig
>> @@ -367,6 +367,16 @@ config ACPI_REDUCED_HARDWARE_ONLY
>>
>> If you are unsure what to do, do not enable this option.
>>
>> +config ARCH_HAS_ACPI_PDC
>> + bool
>> + help
>> + The _PDC object provides OSPM a mechanism to convey to the platform
>> + the capabilities supported by OSPM for processor power management.
>> + This allows the platform to modify the ACPI namespace objects returning
>> + configuration information for processor power management based on the
>> + level of support provided by OSPM.The use of _PDC is deprecated in
>> + ACPI 3.0 in favor of _OSC.
> Is the help actually useful? This doesn't seem to be user-selectable, does it?
Yes, my bad, I will remove the help in next version.
Thanks
Hanjun
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: hanjun.guo@linaro.org (Hanjun Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] ACPI / processor: Introduce ARCH_HAS_ACPI_PDC
Date: Tue, 08 Jul 2014 17:58:46 +0800 [thread overview]
Message-ID: <53BBC0D6.2090606@linaro.org> (raw)
In-Reply-To: <2064691.ZpxCs0gfL8@vostro.rjw.lan>
On 2014?07?08? 05:13, Rafael J. Wysocki wrote:
> On Wednesday, July 02, 2014 04:47:25 PM Hanjun Guo wrote:
>> The use of _PDC is deprecated in ACPI 3.0 in favor of _OSC,
>> as ARM platform is supported only in ACPI 5.0 or higher version,
>> _PDC will not be used in ARM platform, so make Make _PDC only for
>> platforms with Intel CPUs.
>>
>> Introduce ARCH_HAS_ACPI_PDC and move _PDC related code in ACPI
>> processor driver into a single file processor_pdc.c, make x86
>> and ia64 select ARCH_HAS_ACPI_PDC when ACPI is enabled.
>>
>> This patch also use pr_* to replace printk to fix the checkpatch
>> warning and factor acpi_processor_alloc_pdc() a little bit to
>> avoid duplicate pr_err() code.
>>
>> Suggested-by: Robert Richter <rric@kernel.org>
>> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
>> ---
>> arch/ia64/Kconfig | 1 +
>> arch/x86/Kconfig | 1 +
>> drivers/acpi/Kconfig | 10 ++
>> drivers/acpi/Makefile | 1 +
>> drivers/acpi/internal.h | 5 +
>> drivers/acpi/processor_core.c | 198 ---------------------------------------
>> drivers/acpi/processor_pdc.c | 206 +++++++++++++++++++++++++++++++++++++++++
>> 7 files changed, 224 insertions(+), 198 deletions(-)
>> create mode 100644 drivers/acpi/processor_pdc.c
>>
>> diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig
>> index f82b352..cde2626 100644
>> --- a/arch/ia64/Kconfig
>> +++ b/arch/ia64/Kconfig
>> @@ -10,6 +10,7 @@ config IA64
>> select ARCH_MIGHT_HAVE_PC_SERIO
>> select PCI if (!IA64_HP_SIM)
>> select ACPI if (!IA64_HP_SIM)
>> + select ARCH_HAS_ACPI_PDC if ACPI
> The ARCH_HAS part doesn't seem to be particularly consistent with
> the existing naming. ARCH_MIGHT_HAVE_ACPI_PDC would be better IMO.
OK, I will update the patch.
>
>> select PM if (!IA64_HP_SIM)
>> select HAVE_UNSTABLE_SCHED_CLOCK
>> select HAVE_IDE
>> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
>> index 4865d44..d60cec7 100644
>> --- a/arch/x86/Kconfig
>> +++ b/arch/x86/Kconfig
>> @@ -21,6 +21,7 @@ config X86_64
>> ### Arch settings
>> config X86
>> def_bool y
>> + select ARCH_HAS_ACPI_PDC if ACPI
>> select ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS
>> select ARCH_MIGHT_HAVE_PC_PARPORT
>> select ARCH_MIGHT_HAVE_PC_SERIO
>> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
>> index 70eaf7a..0e6f72d 100644
>> --- a/drivers/acpi/Kconfig
>> +++ b/drivers/acpi/Kconfig
>> @@ -367,6 +367,16 @@ config ACPI_REDUCED_HARDWARE_ONLY
>>
>> If you are unsure what to do, do not enable this option.
>>
>> +config ARCH_HAS_ACPI_PDC
>> + bool
>> + help
>> + The _PDC object provides OSPM a mechanism to convey to the platform
>> + the capabilities supported by OSPM for processor power management.
>> + This allows the platform to modify the ACPI namespace objects returning
>> + configuration information for processor power management based on the
>> + level of support provided by OSPM.The use of _PDC is deprecated in
>> + ACPI 3.0 in favor of _OSC.
> Is the help actually useful? This doesn't seem to be user-selectable, does it?
Yes, my bad, I will remove the help in next version.
Thanks
Hanjun
WARNING: multiple messages have this Message-ID (diff)
From: Hanjun Guo <hanjun.guo@linaro.org>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Catalin Marinas <catalin.marinas@arm.com>,
Graeme Gregory <graeme.gregory@linaro.org>,
Tony Luck <tony.luck@intel.com>,
Thomas Gleixner <tglx@linutronix.de>,
linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org
Subject: Re: [PATCH 3/4] ACPI / processor: Introduce ARCH_HAS_ACPI_PDC
Date: Tue, 08 Jul 2014 17:58:46 +0800 [thread overview]
Message-ID: <53BBC0D6.2090606@linaro.org> (raw)
In-Reply-To: <2064691.ZpxCs0gfL8@vostro.rjw.lan>
On 2014年07月08日 05:13, Rafael J. Wysocki wrote:
> On Wednesday, July 02, 2014 04:47:25 PM Hanjun Guo wrote:
>> The use of _PDC is deprecated in ACPI 3.0 in favor of _OSC,
>> as ARM platform is supported only in ACPI 5.0 or higher version,
>> _PDC will not be used in ARM platform, so make Make _PDC only for
>> platforms with Intel CPUs.
>>
>> Introduce ARCH_HAS_ACPI_PDC and move _PDC related code in ACPI
>> processor driver into a single file processor_pdc.c, make x86
>> and ia64 select ARCH_HAS_ACPI_PDC when ACPI is enabled.
>>
>> This patch also use pr_* to replace printk to fix the checkpatch
>> warning and factor acpi_processor_alloc_pdc() a little bit to
>> avoid duplicate pr_err() code.
>>
>> Suggested-by: Robert Richter <rric@kernel.org>
>> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
>> ---
>> arch/ia64/Kconfig | 1 +
>> arch/x86/Kconfig | 1 +
>> drivers/acpi/Kconfig | 10 ++
>> drivers/acpi/Makefile | 1 +
>> drivers/acpi/internal.h | 5 +
>> drivers/acpi/processor_core.c | 198 ---------------------------------------
>> drivers/acpi/processor_pdc.c | 206 +++++++++++++++++++++++++++++++++++++++++
>> 7 files changed, 224 insertions(+), 198 deletions(-)
>> create mode 100644 drivers/acpi/processor_pdc.c
>>
>> diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig
>> index f82b352..cde2626 100644
>> --- a/arch/ia64/Kconfig
>> +++ b/arch/ia64/Kconfig
>> @@ -10,6 +10,7 @@ config IA64
>> select ARCH_MIGHT_HAVE_PC_SERIO
>> select PCI if (!IA64_HP_SIM)
>> select ACPI if (!IA64_HP_SIM)
>> + select ARCH_HAS_ACPI_PDC if ACPI
> The ARCH_HAS part doesn't seem to be particularly consistent with
> the existing naming. ARCH_MIGHT_HAVE_ACPI_PDC would be better IMO.
OK, I will update the patch.
>
>> select PM if (!IA64_HP_SIM)
>> select HAVE_UNSTABLE_SCHED_CLOCK
>> select HAVE_IDE
>> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
>> index 4865d44..d60cec7 100644
>> --- a/arch/x86/Kconfig
>> +++ b/arch/x86/Kconfig
>> @@ -21,6 +21,7 @@ config X86_64
>> ### Arch settings
>> config X86
>> def_bool y
>> + select ARCH_HAS_ACPI_PDC if ACPI
>> select ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS
>> select ARCH_MIGHT_HAVE_PC_PARPORT
>> select ARCH_MIGHT_HAVE_PC_SERIO
>> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
>> index 70eaf7a..0e6f72d 100644
>> --- a/drivers/acpi/Kconfig
>> +++ b/drivers/acpi/Kconfig
>> @@ -367,6 +367,16 @@ config ACPI_REDUCED_HARDWARE_ONLY
>>
>> If you are unsure what to do, do not enable this option.
>>
>> +config ARCH_HAS_ACPI_PDC
>> + bool
>> + help
>> + The _PDC object provides OSPM a mechanism to convey to the platform
>> + the capabilities supported by OSPM for processor power management.
>> + This allows the platform to modify the ACPI namespace objects returning
>> + configuration information for processor power management based on the
>> + level of support provided by OSPM.The use of _PDC is deprecated in
>> + ACPI 3.0 in favor of _OSC.
> Is the help actually useful? This doesn't seem to be user-selectable, does it?
Yes, my bad, I will remove the help in next version.
Thanks
Hanjun
next prev parent reply other threads:[~2014-07-08 9:58 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-02 8:47 [PATCH 0/4] Clean up ACPI core to prepare for running ACPI on ARM64 Hanjun Guo
2014-07-02 8:47 ` Hanjun Guo
2014-07-02 8:47 ` [PATCH 1/4] ACPI: ARM64 does not have a BIOS add config for BIOS table scan Hanjun Guo
2014-07-02 8:47 ` Hanjun Guo
2014-07-07 21:06 ` Rafael J. Wysocki
2014-07-07 21:06 ` Rafael J. Wysocki
2014-07-08 9:55 ` Hanjun Guo
2014-07-08 9:55 ` Hanjun Guo
2014-07-08 9:55 ` Hanjun Guo
2014-07-02 8:47 ` [PATCH 2/4] ACPI: Don't use acpi_lapic in ACPI core code Hanjun Guo
2014-07-02 8:47 ` Hanjun Guo
2014-07-07 21:08 ` Rafael J. Wysocki
2014-07-07 21:08 ` Rafael J. Wysocki
2014-07-08 10:07 ` Hanjun Guo
2014-07-08 10:07 ` Hanjun Guo
2014-07-08 10:07 ` Hanjun Guo
2014-07-02 8:47 ` [PATCH 3/4] ACPI / processor: Introduce ARCH_HAS_ACPI_PDC Hanjun Guo
2014-07-02 8:47 ` Hanjun Guo
2014-07-07 21:13 ` Rafael J. Wysocki
2014-07-07 21:13 ` Rafael J. Wysocki
2014-07-08 9:58 ` Hanjun Guo [this message]
2014-07-08 9:58 ` Hanjun Guo
2014-07-08 9:58 ` Hanjun Guo
2014-07-02 8:47 ` [PATCH 4/4] ACPI: Make EC debugfs depend on X86 || IA64 in Kconfig Hanjun Guo
2014-07-02 8:47 ` Hanjun Guo
2014-07-07 21:16 ` Rafael J. Wysocki
2014-07-07 21:16 ` Rafael J. Wysocki
2014-07-08 9:23 ` Hanjun Guo
2014-07-08 9:23 ` Hanjun Guo
2014-07-08 9:23 ` Hanjun Guo
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=53BBC0D6.2090606@linaro.org \
--to=hanjun.guo@linaro.org \
--cc=catalin.marinas@arm.com \
--cc=graeme.gregory@linaro.org \
--cc=linaro-acpi@lists.linaro.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
/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.