[PATCH v13 1/8] clocksource/drivers/arm_arch_timer: Move enums and defines to header file

2016-09-14 Thread fu . wei
From: Fu Wei To support the arm_arch_timer via ACPI we need to share defines and enums between the driver and the ACPI parser code. Split out the relevant defines and enums into arm_arch_timer.h. No functional change. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 11

[PATCH v13 2/8] clocksource/drivers/arm_arch_timer: Add a new enum for spi type

2016-09-14 Thread fu . wei
From: Fu Wei This patch add a new enum "spi_nr" and use it in the driver. Just for code's readability, no functional change. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 4 ++-- include/clocksource/arm_arch_timer.h | 6 ++ 2 files changed, 8 insertions(+), 2

[PATCH v13 0/8] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-09-14 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset: (1)Preparation for adding GTDT support in arm_arch_timer: 1. Move some enums and marcos to header file; 2. Add a new enum for spi type; 3. Improve printk relevant code. (2)Introduce ACPI GTDT parser: driver

[PATCH v13 0/8] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-09-14 Thread fu . wei
From: Fu Wei This patchset: (1)Preparation for adding GTDT support in arm_arch_timer: 1. Move some enums and marcos to header file; 2. Add a new enum for spi type; 3. Improve printk relevant code. (2)Introduce ACPI GTDT parser: drivers/acpi/arm64/acpi_gtdt.c

[PATCH v13 3/8] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-09-14 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch defines pr_fmt(fmt) for all pr_* functions, then the pr_* doesn't need to add "arch_timer:" everytime. Also delete some Blank Spaces in arch_timer_banner, according to the suggestion from checkpatch.pl. No functional change. Signed-of

[PATCH v13 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-14 Thread fu . wei
From: Fu Wei <fu@linaro.org> The patch update arm_arch_timer driver to use the function provided by the new GTDT driver of ACPI. By this way, arm_arch_timer.c can be simplified, and separate all the ACPI GTDT knowledge from this timer driver. Signed-off-by: Fu Wei <fu@linaro.or

[PATCH v13 3/8] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-09-14 Thread fu . wei
From: Fu Wei This patch defines pr_fmt(fmt) for all pr_* functions, then the pr_* doesn't need to add "arch_timer:" everytime. Also delete some Blank Spaces in arch_timer_banner, according to the suggestion from checkpatch.pl. No functional change. Signed-off-by: Fu Wei --

[PATCH v13 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-14 Thread fu . wei
From: Fu Wei The patch update arm_arch_timer driver to use the function provided by the new GTDT driver of ACPI. By this way, arm_arch_timer.c can be simplified, and separate all the ACPI GTDT knowledge from this timer driver. Signed-off-by: Fu Wei Signed-off-by: Hanjun Guo --- drivers

Re: [PATCH v11 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-13 Thread Fu Wei
Hi Timur On 09/13/2016 07:38 PM, Timur Tabi wrote: > Fu Wei wrote: >> I have prepared v12 (rebase to rc6 and on the top of IORT v11), >> should I send it now > > Yes. > > Please don't wait to release new versions of your patches. Time is running > out to

Re: [PATCH v11 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-13 Thread Fu Wei
Hi Timur On 09/13/2016 07:38 PM, Timur Tabi wrote: > Fu Wei wrote: >> I have prepared v12 (rebase to rc6 and on the top of IORT v11), >> should I send it now > > Yes. > > Please don't wait to release new versions of your patches. Time is running > out to

Re: [PATCH v12 7/8] clocksource/drivers/arm_arch_timer: Add GTDT support for memory-mapped timer

2016-09-13 Thread Fu Wei
Hi Marc, On 09/13/2016 07:00 PM, Marc Zyngier wrote: > Argh, new version... > > On 13/09/16 11:39, fu@linaro.org wrote: >> From: Fu Wei <fu@linaro.org> >> >> The patch add memory-mapped timer register support by using the information >>

Re: [PATCH v12 7/8] clocksource/drivers/arm_arch_timer: Add GTDT support for memory-mapped timer

2016-09-13 Thread Fu Wei
Hi Marc, On 09/13/2016 07:00 PM, Marc Zyngier wrote: > Argh, new version... > > On 13/09/16 11:39, fu@linaro.org wrote: >> From: Fu Wei >> >> The patch add memory-mapped timer register support by using the information >> provided by the new GTDT driver of

[PATCH v12 6/8] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-09-13 Thread fu . wei
From: Fu Wei <fu@linaro.org> On platforms booting with ACPI, architected memory-mapped timers' configuration data is provided by firmware through the ACPI GTDT static table. The clocksource architected timer kernel driver requires a firmware interface to collect timer configu

[PATCH v12 4/8] acpi/arm64: Add GTDT table parse driver

2016-09-13 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds support for parsing arch timer in GTDT, provides some kernel APIs to parse all the PPIs and always-on info in GTDT and export them. By this driver, we can simplify arm_arch_timer drivers, and separate the ACPI GTDT knowledge from it. Sign

[PATCH v12 8/8] acpi/arm64: Add SBSA Generic Watchdog support in GTDT driver

2016-09-13 Thread fu . wei
From: Fu Wei <fu@linaro.org> This driver adds support for parsing SBSA Generic Watchdog timer in GTDT, parse all info in SBSA Generic Watchdog Structure in GTDT, and creating a platform device with that information. This allows the operating system to obtain device data from the re

[PATCH v12 7/8] clocksource/drivers/arm_arch_timer: Add GTDT support for memory-mapped timer

2016-09-13 Thread fu . wei
From: Fu Wei <fu@linaro.org> The patch add memory-mapped timer register support by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei <fu@linaro.org> --- drivers/clocksource/arm_arch_timer.c | 127 ++- 1 file

[PATCH v12 6/8] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-09-13 Thread fu . wei
From: Fu Wei On platforms booting with ACPI, architected memory-mapped timers' configuration data is provided by firmware through the ACPI GTDT static table. The clocksource architected timer kernel driver requires a firmware interface to collect timer configuration and configure its driver

[PATCH v12 4/8] acpi/arm64: Add GTDT table parse driver

2016-09-13 Thread fu . wei
From: Fu Wei This patch adds support for parsing arch timer in GTDT, provides some kernel APIs to parse all the PPIs and always-on info in GTDT and export them. By this driver, we can simplify arm_arch_timer drivers, and separate the ACPI GTDT knowledge from it. Signed-off-by: Fu Wei Signed

[PATCH v12 8/8] acpi/arm64: Add SBSA Generic Watchdog support in GTDT driver

2016-09-13 Thread fu . wei
From: Fu Wei This driver adds support for parsing SBSA Generic Watchdog timer in GTDT, parse all info in SBSA Generic Watchdog Structure in GTDT, and creating a platform device with that information. This allows the operating system to obtain device data from the resource of platform device

[PATCH v12 7/8] clocksource/drivers/arm_arch_timer: Add GTDT support for memory-mapped timer

2016-09-13 Thread fu . wei
From: Fu Wei The patch add memory-mapped timer register support by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 127 ++- 1 file changed, 124 insertions(+), 3 deletions(-) diff

[PATCH v12 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-13 Thread fu . wei
From: Fu Wei <fu@linaro.org> The patch update arm_arch_timer driver to use the function provided by the new GTDT driver of ACPI. By this way, arm_arch_timer.c can be simplified, and separate all the ACPI GTDT knowledge from this timer driver. Signed-off-by: Fu Wei <fu@linaro.or

[PATCH v12 3/8] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-09-13 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch defines pr_fmt(fmt) for all pr_* functions, then the pr_* doesn't need to add "arch_timer:" everytime. Also delete some Blank Spaces in arch_timer_banner, according to the suggestion from checkpatch.pl. No functional change. Signed-of

[PATCH v12 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-13 Thread fu . wei
From: Fu Wei The patch update arm_arch_timer driver to use the function provided by the new GTDT driver of ACPI. By this way, arm_arch_timer.c can be simplified, and separate all the ACPI GTDT knowledge from this timer driver. Signed-off-by: Fu Wei Signed-off-by: Hanjun Guo --- drivers

[PATCH v12 3/8] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-09-13 Thread fu . wei
From: Fu Wei This patch defines pr_fmt(fmt) for all pr_* functions, then the pr_* doesn't need to add "arch_timer:" everytime. Also delete some Blank Spaces in arch_timer_banner, according to the suggestion from checkpatch.pl. No functional change. Signed-off-by: Fu Wei --

[PATCH v12 2/8] clocksource/drivers/arm_arch_timer: Add a new enum for spi type

2016-09-13 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch add a new enum "spi_nr" and use it in the driver. Just for code's readability, no functional change. Signed-off-by: Fu Wei <fu@linaro.org> --- drivers/clocksource/arm_arch_timer.c | 4 ++-- include/clocksource/arm_arch_timer

[PATCH v12 0/8] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-09-13 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset: (1)Preparation for adding GTDT support in arm_arch_timer: 1. Move some enums and marcos to header file; 2. Add a new enum for spi type; 3. Improve printk relevant code. (2)Introduce ACPI GTDT parser: driver

[PATCH v12 1/8] clocksource/drivers/arm_arch_timer: Move enums and defines to header file

2016-09-13 Thread fu . wei
From: Fu Wei <fu@linaro.org> To support the arm_arch_timer via ACPI we need to share defines and enums between the driver and the ACPI parser code. Split out the relevant defines and enums into arm_arch_timer.h. No functional change. Signed-off-by: Fu Wei <fu@linaro.org>

[PATCH v12 2/8] clocksource/drivers/arm_arch_timer: Add a new enum for spi type

2016-09-13 Thread fu . wei
From: Fu Wei This patch add a new enum "spi_nr" and use it in the driver. Just for code's readability, no functional change. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 4 ++-- include/clocksource/arm_arch_timer.h | 6 ++ 2 files changed, 8 insertions(+), 2

[PATCH v12 0/8] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-09-13 Thread fu . wei
From: Fu Wei This patchset: (1)Preparation for adding GTDT support in arm_arch_timer: 1. Move some enums and marcos to header file; 2. Add a new enum for spi type; 3. Improve printk relevant code. (2)Introduce ACPI GTDT parser: drivers/acpi/arm64/acpi_gtdt.c

[PATCH v12 1/8] clocksource/drivers/arm_arch_timer: Move enums and defines to header file

2016-09-13 Thread fu . wei
From: Fu Wei To support the arm_arch_timer via ACPI we need to share defines and enums between the driver and the ACPI parser code. Split out the relevant defines and enums into arm_arch_timer.h. No functional change. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 11

Re: [PATCH v11 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-13 Thread Fu Wei
Hi Mark, Marc, Sorry for missing you in the cc list Do you have any suggestion for the arm_arch_timer patches? Could you help me to review these patches ? Great thanks ! On 13 September 2016 at 17:22, Fu Wei <fu@linaro.org> wrote: > Hi Thomas, Daniel, > > For these arm_arc

Re: [PATCH v11 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-13 Thread Fu Wei
Hi Mark, Marc, Sorry for missing you in the cc list Do you have any suggestion for the arm_arch_timer patches? Could you help me to review these patches ? Great thanks ! On 13 September 2016 at 17:22, Fu Wei wrote: > Hi Thomas, Daniel, > > For these arm_arch_timer patches, do you

Re: [PATCH v11 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-13 Thread Fu Wei
anything I can do to improve this patchset ? Thanks. On 7 September 2016 at 17:23, Fu Wei <fu@linaro.org> wrote: > Hi Thomas > > On 6 September 2016 at 22:36, Thomas Gleixner <t...@linutronix.de> wrote: >> On Tue, 6 Sep 2016, fu@linaro.org wrote: >>> +

Re: [PATCH v11 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-13 Thread Fu Wei
anything I can do to improve this patchset ? Thanks. On 7 September 2016 at 17:23, Fu Wei wrote: > Hi Thomas > > On 6 September 2016 at 22:36, Thomas Gleixner wrote: >> On Tue, 6 Sep 2016, fu@linaro.org wrote: >>> + if (timer_count < 0) >>> +

Re: [PATCH v11 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-07 Thread Fu Wei
orm timers ), system still can work. So I thing we just need to print a error. > >> - arch_timer_init(); >> - return 0; >> + return arch_timer_init(); > > Thanks, > > tglx -- Best regards, Fu Wei Software Engineer Red Hat

Re: [PATCH v11 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-07 Thread Fu Wei
system still can work. So I thing we just need to print a error. > >> - arch_timer_init(); >> - return 0; >> + return arch_timer_init(); > > Thanks, > > tglx -- Best regards, Fu Wei Software Engineer Red Hat

[PATCH v11 7/8] clocksource/drivers/arm_arch_timer: Add GTDT support for memory-mapped timer

2016-09-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> The patch add memory-mapped timer register support by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei <fu@linaro.org> --- drivers/clocksource/arm_arch_timer.c | 127 ++- 1 file

[PATCH v11 7/8] clocksource/drivers/arm_arch_timer: Add GTDT support for memory-mapped timer

2016-09-06 Thread fu . wei
From: Fu Wei The patch add memory-mapped timer register support by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 127 ++- 1 file changed, 124 insertions(+), 3 deletions(-) diff

[PATCH v11 2/8] clocksource/drivers/arm_arch_timer: Add a new enum for spi type

2016-09-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch add a new enum "spi_nr" and use it in the driver. Just for code's readability, no functional change. Signed-off-by: Fu Wei <fu@linaro.org> --- drivers/clocksource/arm_arch_timer.c | 4 ++-- include/clocksource/arm_arch_timer

[PATCH v11 2/8] clocksource/drivers/arm_arch_timer: Add a new enum for spi type

2016-09-06 Thread fu . wei
From: Fu Wei This patch add a new enum "spi_nr" and use it in the driver. Just for code's readability, no functional change. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 4 ++-- include/clocksource/arm_arch_timer.h | 6 ++ 2 files changed, 8 insertions(+), 2

[PATCH v11 3/8] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-09-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch defines pr_fmt(fmt) for all pr_* functions, then the pr_* doesn't need to add "arch_timer:" everytime. Also delete some Blank Spaces in arch_timer_banner, according to the suggestion from checkpatch.pl. No functional change. Signed-of

[PATCH v11 1/8] clocksource/drivers/arm_arch_timer: Move enums and defines to header file

2016-09-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> To support the arm_arch_timer via ACPI we need to share defines and enums between the driver and the ACPI parser code. Split out the relevant defines and enums into arm_arch_timer.h. No functional change. Signed-off-by: Fu Wei <fu@linaro.org>

[PATCH v11 3/8] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-09-06 Thread fu . wei
From: Fu Wei This patch defines pr_fmt(fmt) for all pr_* functions, then the pr_* doesn't need to add "arch_timer:" everytime. Also delete some Blank Spaces in arch_timer_banner, according to the suggestion from checkpatch.pl. No functional change. Signed-off-by: Fu Wei --

[PATCH v11 1/8] clocksource/drivers/arm_arch_timer: Move enums and defines to header file

2016-09-06 Thread fu . wei
From: Fu Wei To support the arm_arch_timer via ACPI we need to share defines and enums between the driver and the ACPI parser code. Split out the relevant defines and enums into arm_arch_timer.h. No functional change. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 11

[PATCH v11 8/8] acpi/arm64: Add SBSA Generic Watchdog support in GTDT driver

2016-09-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> This driver adds support for parsing SBSA Generic Watchdog timer in GTDT, parse all info in SBSA Generic Watchdog Structure in GTDT, and creating a platform device with that information. This allows the operating system to obtain device data from the re

[PATCH v11 8/8] acpi/arm64: Add SBSA Generic Watchdog support in GTDT driver

2016-09-06 Thread fu . wei
From: Fu Wei This driver adds support for parsing SBSA Generic Watchdog timer in GTDT, parse all info in SBSA Generic Watchdog Structure in GTDT, and creating a platform device with that information. This allows the operating system to obtain device data from the resource of platform device

[PATCH v11 0/8] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-09-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset: (1)Preparation for adding GTDT support in arm_arch_timer: 1. Move some enums and marcos to header file; 2. Add a new enum for spi type; 3. Improve printk relevant code. (2)Introduce ACPI GTDT parser: driver

[PATCH v11 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> The patch update arm_arch_timer driver to use the function provided by the new GTDT driver of ACPI. By this way, arm_arch_timer.c can be simplified, and separate all the ACPI GTDT knowledge from this timer driver. Signed-off-by: Fu Wei <fu@linaro.or

[PATCH v11 6/8] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-09-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> On platforms booting with ACPI, architected memory-mapped timers' configuration data is provided by firmware through the ACPI GTDT static table. The clocksource architected timer kernel driver requires a firmware interface to collect timer configu

[PATCH v11 0/8] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-09-06 Thread fu . wei
From: Fu Wei This patchset: (1)Preparation for adding GTDT support in arm_arch_timer: 1. Move some enums and marcos to header file; 2. Add a new enum for spi type; 3. Improve printk relevant code. (2)Introduce ACPI GTDT parser: drivers/acpi/arm64/acpi_gtdt.c

[PATCH v11 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-06 Thread fu . wei
From: Fu Wei The patch update arm_arch_timer driver to use the function provided by the new GTDT driver of ACPI. By this way, arm_arch_timer.c can be simplified, and separate all the ACPI GTDT knowledge from this timer driver. Signed-off-by: Fu Wei Signed-off-by: Hanjun Guo --- drivers

[PATCH v11 6/8] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-09-06 Thread fu . wei
From: Fu Wei On platforms booting with ACPI, architected memory-mapped timers' configuration data is provided by firmware through the ACPI GTDT static table. The clocksource architected timer kernel driver requires a firmware interface to collect timer configuration and configure its driver

[PATCH v11 4/8] acpi/arm64: Add GTDT table parse driver

2016-09-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds support for parsing arch timer in GTDT, provides some kernel APIs to parse all the PPIs and always-on info in GTDT and export them. By this driver, we can simplify arm_arch_timer drivers, and separate the ACPI GTDT knowledge from it. Sign

[PATCH v11 4/8] acpi/arm64: Add GTDT table parse driver

2016-09-06 Thread fu . wei
From: Fu Wei This patch adds support for parsing arch timer in GTDT, provides some kernel APIs to parse all the PPIs and always-on info in GTDT and export them. By this driver, we can simplify arm_arch_timer drivers, and separate the ACPI GTDT knowledge from it. Signed-off-by: Fu Wei Signed

Re: [Linaro-acpi] [PATCH V8 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-09-05 Thread Fu Wei
Hi Tomasz, On 5 September 2016 at 14:12, Tomasz Nowicki <t...@semihalf.com> wrote: > On 02.09.2016 13:52, Fu Wei wrote: >> >> Hi Tomasz, >> >> On 11 August 2016 at 18:06, Tomasz Nowicki <t...@semihalf.com> wrote: >>> >>> IORT

Re: [Linaro-acpi] [PATCH V8 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-09-05 Thread Fu Wei
Hi Tomasz, On 5 September 2016 at 14:12, Tomasz Nowicki wrote: > On 02.09.2016 13:52, Fu Wei wrote: >> >> Hi Tomasz, >> >> On 11 August 2016 at 18:06, Tomasz Nowicki wrote: >>> >>> IORT shows representation of IO topology for ARM based sys

Re: [Linaro-acpi] [PATCH V8 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-09-02 Thread Fu Wei
new file mode 100644 > index 000..cde6809 > --- /dev/null > +++ b/include/linux/iort.h > @@ -0,0 +1,30 @@ > +/* > + * Copyright (C) 2016, Semihalf > + * Author: Tomasz Nowicki <t...@semihalf.com> > + * > + * This program is free software; you can redistribute it and/or modify it > + * under the terms and conditions of the GNU General Public License, > + * version 2, as published by the Free Software Foundation. > + * > + * This program is distributed in the hope it will be useful, but WITHOUT > + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or > + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for > + * more details. > + * > + * You should have received a copy of the GNU General Public License along > with > + * this program; if not, write to the Free Software Foundation, Inc., 59 > Temple > + * Place - Suite 330, Boston, MA 02111-1307 USA. > + */ > + > +#ifndef __IORT_H__ > +#define __IORT_H__ > + > +#include > + > +#ifdef CONFIG_IORT_TABLE > +void iort_table_detect(void); > +#else > +static inline void iort_table_detect(void) { } > +#endif > + > +#endif /* __IORT_H__ */ > -- > 1.9.1 > > ___ > Linaro-acpi mailing list > linaro-a...@lists.linaro.org > https://lists.linaro.org/mailman/listinfo/linaro-acpi -- Best regards, Fu Wei Software Engineer Red Hat

Re: [Linaro-acpi] [PATCH V8 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-09-02 Thread Fu Wei
> @@ -0,0 +1,30 @@ > +/* > + * Copyright (C) 2016, Semihalf > + * Author: Tomasz Nowicki > + * > + * This program is free software; you can redistribute it and/or modify it > + * under the terms and conditions of the GNU General Public License, > + * version 2, as published by the Free Software Foundation. > + * > + * This program is distributed in the hope it will be useful, but WITHOUT > + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or > + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for > + * more details. > + * > + * You should have received a copy of the GNU General Public License along > with > + * this program; if not, write to the Free Software Foundation, Inc., 59 > Temple > + * Place - Suite 330, Boston, MA 02111-1307 USA. > + */ > + > +#ifndef __IORT_H__ > +#define __IORT_H__ > + > +#include > + > +#ifdef CONFIG_IORT_TABLE > +void iort_table_detect(void); > +#else > +static inline void iort_table_detect(void) { } > +#endif > + > +#endif /* __IORT_H__ */ > -- > 1.9.1 > > ___ > Linaro-acpi mailing list > linaro-a...@lists.linaro.org > https://lists.linaro.org/mailman/listinfo/linaro-acpi -- Best regards, Fu Wei Software Engineer Red Hat

Re: [PATCH v10 0/8] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-08-18 Thread Fu Wei
e clocksource maintainer will take care of it, and GTDT patch has got Rafael's ACK. > > -- > Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm > Technologies, Inc. Qualcomm Technologies, Inc. is a member of the > Code Aurora Forum, a Linux Foundation Collaborative Project. -- Best regards, Fu Wei Software Engineer Red Hat

Re: [PATCH v10 0/8] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-08-18 Thread Fu Wei
take care of it, and GTDT patch has got Rafael's ACK. > > -- > Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm > Technologies, Inc. Qualcomm Technologies, Inc. is a member of the > Code Aurora Forum, a Linux Foundation Collaborative Project. -- Best regards, Fu Wei Software Engineer Red Hat

Re: [PATCH v10 0/8] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-08-11 Thread Fu Wei
Tomasz's v8 patchset on the master branch of upstream kernel (2)rebase my v10 on the top of Tomasz's v8 (3)git format-patch as v11, repost it Is that OK for everyone? :-) > > But both the GTDT patchset and IORT are in good shape now, can we > targeting both of them for 4.9 kernel (since all go

Re: [PATCH v10 0/8] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-08-11 Thread Fu Wei
ter branch of upstream kernel (2)rebase my v10 on the top of Tomasz's v8 (3)git format-patch as v11, repost it Is that OK for everyone? :-) > > But both the GTDT patchset and IORT are in good shape now, can we > targeting both of them for 4.9 kernel (since all go via tip tree)? > > Thanks > Hanjun -- Best regards, Fu Wei Software Engineer Red Hat

Re: [PATCH v12] acpi, apei, arm64: APEI initial support for aarch64.

2016-08-10 Thread Fu Wei
Hi Borislav, On 10 August 2016 at 18:45, Borislav Petkov <b...@suse.de> wrote: > On Wed, Aug 10, 2016 at 06:40:53PM +0800, Fu Wei wrote: >> But the reason for a separate hest_ia32_init() is: >> For now(ACPI 6.1), we have three IA-32 Architecture-specific error >>

Re: [PATCH v12] acpi, apei, arm64: APEI initial support for aarch64.

2016-08-10 Thread Fu Wei
Hi Borislav, On 10 August 2016 at 18:45, Borislav Petkov wrote: > On Wed, Aug 10, 2016 at 06:40:53PM +0800, Fu Wei wrote: >> But the reason for a separate hest_ia32_init() is: >> For now(ACPI 6.1), we have three IA-32 Architecture-specific error >> source structures, may

[PATCH v13] acpi, apei, arm64: APEI initial support for aarch64.

2016-08-10 Thread fu . wei
k (CMC). (2)move HEST type (ACPI_HEST_TYPE_IA32_CORRECTED_CHECK) checking to a generic place. (3)select HAVE_ACPI_APEI when EFI and ACPI is set on ARM64, because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. [Fu Wei: improve && upstream] Signed-off-by: Tomasz Nowicki <tomasz.nowi...@linaro.org&

[PATCH v13] acpi, apei, arm64: APEI initial support for aarch64.

2016-08-10 Thread fu . wei
CTED_CHECK) checking to a generic place. (3)select HAVE_ACPI_APEI when EFI and ACPI is set on ARM64, because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. [Fu Wei: improve && upstream] Signed-off-by: Tomasz Nowicki Tested-by: Jonathan (Zhixiong) Zhang Signed-off-by: Fu Wei

Re: [PATCH v12] acpi, apei, arm64: APEI initial support for aarch64.

2016-08-10 Thread Fu Wei
Hi Borislav, On 10 August 2016 at 19:10, Borislav Petkov <b...@suse.de> wrote: > On Wed, Aug 10, 2016 at 07:01:05PM +0800, Fu Wei wrote: >> - if (!acpi_disable_cmcff) >> - apei_hest_parse(hest_parse_cmc, NULL); >> + rc =apei_hest_parse(hest_parse_cmc, NULL);

Re: [PATCH v12] acpi, apei, arm64: APEI initial support for aarch64.

2016-08-10 Thread Fu Wei
Hi Borislav, On 10 August 2016 at 19:10, Borislav Petkov wrote: > On Wed, Aug 10, 2016 at 07:01:05PM +0800, Fu Wei wrote: >> - if (!acpi_disable_cmcff) >> - apei_hest_parse(hest_parse_cmc, NULL); >> + rc =apei_hest_parse(hest_parse_cmc, NULL); >&

Re: [PATCH v12] acpi, apei, arm64: APEI initial support for aarch64.

2016-08-10 Thread Fu Wei
gt; > Corrected Machine Check (CMC). >> > (2)move HEST type (ACPI_HEST_TYPE_IA32_CORRECTED_CHECK) checking to >> > a generic place. >> > (3)select HAVE_ACPI_APEI when EFI and ACPI is set on ARM64, >> > because arch_apei_get_mem_attribute is using efi_me

Re: [PATCH v12] acpi, apei, arm64: APEI initial support for aarch64.

2016-08-10 Thread Fu Wei
; (2)move HEST type (ACPI_HEST_TYPE_IA32_CORRECTED_CHECK) checking to >> > a generic place. >> > (3)select HAVE_ACPI_APEI when EFI and ACPI is set on ARM64, >> > because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. >> > >> > [Fu We

[PATCH v14] acpi, apei, arm64: APEI initial support for aarch64.

2016-08-10 Thread fu . wei
ribute is using efi_mem_attributes on ARM64. [Fu Wei: improve && upstream] Signed-off-by: Tomasz Nowicki <tomasz.nowi...@linaro.org> Tested-by: Jonathan (Zhixiong) Zhang <zjzh...@codeaurora.org> Signed-off-by: Fu Wei <fu@linaro.org> Acked-by: Hanjun Guo <hanj

[PATCH v14] acpi, apei, arm64: APEI initial support for aarch64.

2016-08-10 Thread fu . wei
efi_mem_attributes on ARM64. [Fu Wei: improve && upstream] Signed-off-by: Tomasz Nowicki Tested-by: Jonathan (Zhixiong) Zhang Signed-off-by: Fu Wei Acked-by: Hanjun Guo Tested-by: Tyler Baicar Acked-by: Will Deacon --- This patchset has been tested on the following platforms: (1)ARM Foundation

Re: [PATCH v12] acpi, apei, arm64: APEI initial support for aarch64.

2016-08-10 Thread Fu Wei
> a generic place. >> (3)select HAVE_ACPI_APEI when EFI and ACPI is set on ARM64, >> because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. >> >> [Fu Wei: improve && upstream] >> >> Signed-off-by: Tomasz Nowicki <tomasz.nowi...@linaro.org&

Re: [PATCH v12] acpi, apei, arm64: APEI initial support for aarch64.

2016-08-10 Thread Fu Wei
I_APEI when EFI and ACPI is set on ARM64, >> because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. >> >> [Fu Wei: improve && upstream] >> >> Signed-off-by: Tomasz Nowicki >> Tested-by: Jonathan (Zhixiong) Zhang >> Signed-off-by: Fu Wei >&

Re: [PATCH v9 0/9] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-08-09 Thread Fu Wei
in good shape so we need to enquire who is going to pull > it in ? the latest v10 patchset can apply on v4.8-rc1: https://lkml.org/lkml/2016/7/26/215 > > Thanks, > Tomasz > > > On 25.07.2016 17:26, fu@linaro.org wrote: >> >> From: Fu Wei <fu@linaro.org

Re: [PATCH v9 0/9] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-08-09 Thread Fu Wei
quire who is going to pull > it in ? the latest v10 patchset can apply on v4.8-rc1: https://lkml.org/lkml/2016/7/26/215 > > Thanks, > Tomasz > > > On 25.07.2016 17:26, fu....@linaro.org wrote: >> >> From: Fu Wei >> >> This patchset: >> (

[PATCH v12] acpi, apei, arm64: APEI initial support for aarch64.

2016-07-29 Thread fu . wei
k (CMC). (2)move HEST type (ACPI_HEST_TYPE_IA32_CORRECTED_CHECK) checking to a generic place. (3)select HAVE_ACPI_APEI when EFI and ACPI is set on ARM64, because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. [Fu Wei: improve && upstream] Signed-off-by: Tomasz Nowicki <tomasz.nowi...@linaro.org&

[PATCH v12] acpi, apei, arm64: APEI initial support for aarch64.

2016-07-29 Thread fu . wei
CTED_CHECK) checking to a generic place. (3)select HAVE_ACPI_APEI when EFI and ACPI is set on ARM64, because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. [Fu Wei: improve && upstream] Signed-off-by: Tomasz Nowicki Tested-by: Jonathan (Zhixiong) Zhang Signed-off-by: Fu Wei

Re: [PATCH v11] acpi, apei, arm64: APEI initial support for aarch64.

2016-07-28 Thread Fu Wei
o >> a generic place. >> (3)select HAVE_ACPI_APEI when EFI and ACPI is set on ARM64, >> because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. >> >> [Fu Wei: improve && upstream] >> > > >> diff --git a/arch/arm64/include/asm/acpi.h b/arch/ar

Re: [PATCH v11] acpi, apei, arm64: APEI initial support for aarch64.

2016-07-28 Thread Fu Wei
PI is set on ARM64, >> because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. >> >> [Fu Wei: improve && upstream] >> > > >> diff --git a/arch/arm64/include/asm/acpi.h b/arch/arm64/include/asm/acpi.h >> index 5420cb0..d3d02dc 1006

Re: [PATCH v11] acpi, apei, arm64: APEI initial support for aarch64.

2016-07-27 Thread Fu Wei
> a generic place. >> (3)select HAVE_ACPI_APEI when EFI and ACPI is set on ARM64, >> because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. >> >> [Fu Wei: improve && upstream] >> >> Signed-off-by: Tomasz Nowicki <tomasz.nowi...@linaro.org&

Re: [PATCH v11] acpi, apei, arm64: APEI initial support for aarch64.

2016-07-27 Thread Fu Wei
ACPI is set on ARM64, >> because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. >> >> [Fu Wei: improve && upstream] >> >> Signed-off-by: Tomasz Nowicki >> Tested-by: Jonathan (Zhixiong) Zhang >> Signed-off-by: Fu Wei >>

[PATCH v11] acpi, apei, arm64: APEI initial support for aarch64.

2016-07-27 Thread fu . wei
k (CMC). (2)move HEST type (ACPI_HEST_TYPE_IA32_CORRECTED_CHECK) checking to a generic place. (3)select HAVE_ACPI_APEI when EFI and ACPI is set on ARM64, because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. [Fu Wei: improve && upstream] Signed-off-by: Tomasz Nowicki <tomasz.nowi...@linaro.org&

[PATCH v11] acpi, apei, arm64: APEI initial support for aarch64.

2016-07-27 Thread fu . wei
CTED_CHECK) checking to a generic place. (3)select HAVE_ACPI_APEI when EFI and ACPI is set on ARM64, because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. [Fu Wei: improve && upstream] Signed-off-by: Tomasz Nowicki Tested-by: Jonathan (Zhixiong) Zhang Signed-off-by: Fu Wei

Re: [PATCH v9 4/9] clocksource/drivers/arm_arch_timer: use readq to get 64-bit CNTVCT

2016-07-26 Thread Fu Wei
ly, because this GTDT patchset can work without it, this readq support is a optimizing. I also can see another arm-related driver are using readq in this way( #ifdef readq): bus/arm-ccn.c And some other drivers are also doing this. > > I measured the performance on berlin arm64 platforms: > > compared with original version, using readq_relaxed could reduce > time of arch_counter_get_cntvct_mem() by about 42%! Great thanks for your data, :-) > > Thanks, > Jisheng -- Best regards, Fu Wei Software Engineer Red Hat

Re: [PATCH v9 4/9] clocksource/drivers/arm_arch_timer: use readq to get 64-bit CNTVCT

2016-07-26 Thread Fu Wei
set can work without it, this readq support is a optimizing. I also can see another arm-related driver are using readq in this way( #ifdef readq): bus/arm-ccn.c And some other drivers are also doing this. > > I measured the performance on berlin arm64 platforms: > > compared with original version, using readq_relaxed could reduce > time of arch_counter_get_cntvct_mem() by about 42%! Great thanks for your data, :-) > > Thanks, > Jisheng -- Best regards, Fu Wei Software Engineer Red Hat

Re: [PATCH v9 5/9] acpi/arm64: Add GTDT table parse driver

2016-07-26 Thread Fu Wei
Hi Rafael, On 26 July 2016 at 19:50, Rafael J. Wysocki <r...@rjwysocki.net> wrote: > On Monday, July 25, 2016 11:27:03 PM fu@linaro.org wrote: >> From: Fu Wei <fu@linaro.org> >> >> This patch adds support for parsing arch timer in GTDT, >> provides

Re: [PATCH v9 5/9] acpi/arm64: Add GTDT table parse driver

2016-07-26 Thread Fu Wei
Hi Rafael, On 26 July 2016 at 19:50, Rafael J. Wysocki wrote: > On Monday, July 25, 2016 11:27:03 PM fu@linaro.org wrote: >> From: Fu Wei >> >> This patch adds support for parsing arch timer in GTDT, >> provides some kernel APIs to parse all the PPIs and >>

[PATCH v10 8/8] acpi/arm64: Add SBSA Generic Watchdog support in GTDT driver

2016-07-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> This driver adds support for parsing SBSA Generic Watchdog timer in GTDT, parse all info in SBSA Generic Watchdog Structure in GTDT, and creating a platform device with that information. This allows the operating system to obtain device data from the re

[PATCH v10 8/8] acpi/arm64: Add SBSA Generic Watchdog support in GTDT driver

2016-07-26 Thread fu . wei
From: Fu Wei This driver adds support for parsing SBSA Generic Watchdog timer in GTDT, parse all info in SBSA Generic Watchdog Structure in GTDT, and creating a platform device with that information. This allows the operating system to obtain device data from the resource of platform device

[PATCH v10 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-07-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> The patch update arm_arch_timer driver to use the function provided by the new GTDT driver of ACPI. By this way, arm_arch_timer.c can be simplified, and separate all the ACPI GTDT knowledge from this timer driver. Signed-off-by: Fu Wei <fu@linaro.or

[PATCH v10 2/8] clocksource/drivers/arm_arch_timer: Add a new enum for spi type

2016-07-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch add a new enum "spi_nr" and use it in the driver. Just for code's readability, no functional change. Signed-off-by: Fu Wei <fu@linaro.org> --- drivers/clocksource/arm_arch_timer.c | 4 ++-- include/clocksource/arm_arch_timer

[PATCH v10 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-07-26 Thread fu . wei
From: Fu Wei The patch update arm_arch_timer driver to use the function provided by the new GTDT driver of ACPI. By this way, arm_arch_timer.c can be simplified, and separate all the ACPI GTDT knowledge from this timer driver. Signed-off-by: Fu Wei Signed-off-by: Hanjun Guo --- drivers

[PATCH v10 2/8] clocksource/drivers/arm_arch_timer: Add a new enum for spi type

2016-07-26 Thread fu . wei
From: Fu Wei This patch add a new enum "spi_nr" and use it in the driver. Just for code's readability, no functional change. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 4 ++-- include/clocksource/arm_arch_timer.h | 6 ++ 2 files changed, 8 insertions(+), 2

[PATCH v10 6/8] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-07-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> On platforms booting with ACPI, architected memory-mapped timers' configuration data is provided by firmware through the ACPI GTDT static table. The clocksource architected timer kernel driver requires a firmware interface to collect timer configu

[PATCH v10 3/8] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-07-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch defines pr_fmt(fmt) for all pr_* functions, then the pr_* doesn't need to add "arch_timer:" everytime. Also delete some Blank Spaces in arch_timer_banner, according to the suggestion from checkpatch.pl. No functional change. Signed-of

[PATCH v10 4/8] acpi/arm64: Add GTDT table parse driver

2016-07-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds support for parsing arch timer in GTDT, provides some kernel APIs to parse all the PPIs and always-on info in GTDT and export them. By this driver, we can simplify arm_arch_timer drivers, and separate the ACPI GTDT knowledge from it. Sign

[PATCH v10 3/8] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-07-26 Thread fu . wei
From: Fu Wei This patch defines pr_fmt(fmt) for all pr_* functions, then the pr_* doesn't need to add "arch_timer:" everytime. Also delete some Blank Spaces in arch_timer_banner, according to the suggestion from checkpatch.pl. No functional change. Signed-off-by: Fu Wei --

[PATCH v10 4/8] acpi/arm64: Add GTDT table parse driver

2016-07-26 Thread fu . wei
From: Fu Wei This patch adds support for parsing arch timer in GTDT, provides some kernel APIs to parse all the PPIs and always-on info in GTDT and export them. By this driver, we can simplify arm_arch_timer drivers, and separate the ACPI GTDT knowledge from it. Signed-off-by: Fu Wei Signed

[PATCH v10 6/8] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-07-26 Thread fu . wei
From: Fu Wei On platforms booting with ACPI, architected memory-mapped timers' configuration data is provided by firmware through the ACPI GTDT static table. The clocksource architected timer kernel driver requires a firmware interface to collect timer configuration and configure its driver

<    1   2   3   4   5   6   7   8   9   10   >