[PATCH v3]Documentation: Chinese translation of Documentation/arm/kernel_user_helpers.txt

2012-11-15 Thread Fu Wei
This is a Chinese translated version of Documentation/arm/kernel_user_helpers.txt Signed-off-by: Fu Wei --- Documentation/zh_CN/arm/kernel_user_helpers.txt | 284 +++ 1 file changed, 284 insertions(+) create mode 100644 Documentation/zh_CN/arm/kernel_user_helpers.txt

[PATCH]Documentation:Update Documentation/zh_CN/arm64/memory.txt

2012-11-18 Thread Fu Wei
This is a update of Chinese documentation:Documentation/zh_CN/arm64/memory.txt It is based on the modifications of Documentation/arm64/memory.txt in submission :"e3978cde". Signed-off-by: Fu Wei --- Documentation/zh_CN/arm64/memory.txt | 12 ++-- 1 个文件被修改,插入 6 行(+),删除 6

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

2016-07-19 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; 4. use readq to get 64-bit CNTVCT. (2)Introduce ACPI GTDT

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

2016-07-19 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 v8 1/9] clocksource/drivers/arm_arch_timer: Move enums and defines to header file

2016-07-19 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 v8 2/9] clocksource/drivers/arm_arch_timer: Add a new enum for spi type

2016-07-19 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(

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

2016-07-19 Thread fu . wei
From: Fu Wei This patch simplify arch_counter_get_cntvct_mem function by using readq to get 64-bit CNTVCT value instead of readl_relaxed. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers

[PATCH v8 6/9] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-07-19 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 v8 8/9] clocksource/drivers/arm_arch_timer: Add GTDT support for memory-mapped timer

2016-07-19 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 v8 9/9] acpi/arm64: Add SBSA Generic Watchdog support in GTDT driver

2016-07-19 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 v8 3/9] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-07-19 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 We

[PATCH v8 7/9] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-07-19 Thread fu . wei
From: Fu Wei This driver adds support for parsing memory-mapped timer in GTDT: provide a kernel APIs to parse GT Block Structure in GTDT, export all the info by filling the struct which provided by parameter(pointer of the struct). By this driver, we can add ACPI support for memory-mapped timer

Re: [PATCH v7 4/9] acpi/arm64: Add GTDT table parse driver

2016-07-19 Thread Fu Wei
Hi Rafael, On 16 July 2016 at 20:35, Rafael J. Wysocki wrote: > On Saturday, July 16, 2016 10:24:35 AM Fu Wei wrote: >> Hi Rafeal, >> >> On 16 July 2016 at 05:22, Rafael J. Wysocki wrote: >> > On Saturday, July 16, 2016 12:32:14 AM Fu Wei wrote: >> >>

Re: [PATCH v7 7/9] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-07-19 Thread Fu Wei
ote: >> From: Fu Wei >> >> This driver adds support for parsing memory-mapped timer in GTDT: >> provide a kernel APIs to parse GT Block Structure in GTDT, >> export all the info by filling the struct which provided >> by parameter(pointer of the struct). >> &

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

2016-07-22 Thread Fu Wei
Hi Rafael, On 21 July 2016 at 21:28, Rafael J. Wysocki wrote: > On Wednesday, July 20, 2016 02:18:00 AM 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 &g

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

2016-07-27 Thread fu . wei
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-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 >>

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

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

2016-07-29 Thread fu . wei
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 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-09-07 Thread Fu Wei
s ), 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-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-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

[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(

[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

[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 We

[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 d

[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

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

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 t

[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 We

[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

[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 4/8] acpi/arm64: Add GTDT table parse driver

2016-09-14 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 v13 6/8] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-09-14 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 d

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

2016-09-14 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. Also refactor original memory-mapped timer dt support for reusing some common code. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 238

[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(

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

2016-09-14 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

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

2016-09-15 Thread Fu Wei
HI On 15 September 2016 at 04:09, wrote: > From: Fu Wei > > The patch add memory-mapped timer register support by using the information > provided by the new GTDT driver of ACPI. > Also refactor original memory-mapped timer dt support for reusing some common > code. > &g

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

2016-09-02 Thread Fu Wei
--- /dev/null > +++ b/include/linux/iort.h > @@ -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 v7 5/8] Watchdog: introduce ARM SBSA watchdog driver

2015-10-13 Thread Fu Wei
> +++ b/drivers/watchdog/sbsa_gwdt.c >> >> @@ -0,0 +1,459 @@ >> >> +/* >> >> + * SBSA(Server Base System Architecture) Generic Watchdog driver >> >> + * >> >> + * Copyright (c) 2015, Linaro Ltd. >> >> + * Author: Fu Wei >> >> + *

Re: [PATCH v3 5/6] Watchdog: introduce ARM SBSA watchdog driver

2015-05-29 Thread Fu Wei
Hi Guenter, Great thanks, feedback inline On 26 May 2015 at 03:39, Guenter Roeck wrote: > On 05/25/2015 03:03 AM, fu@linaro.org wrote: >> >> From: Fu Wei >> >> This driver bases on linux kernel watchdog framework, and >> use "pretimeout" in the

Re: [PATCH v3 5/6] Watchdog: introduce ARM SBSA watchdog driver

2015-05-29 Thread Fu Wei
int irq; >> + u32 clk, status; >> + int ret = 0; >> + u64 first_period_max = U64_MAX; >> + >> + /* >> +* Get the frequency of system counter from >> +* the cp15 interface of ARM Generic timer >> +

Re: [PATCH v3 6/6] ACPI: import watchdog info of GTDT into platform device

2015-05-29 Thread Fu Wei
Great thanks for your suggestion! On 27 May 2015 at 18:44, Will Deacon wrote: > On Tue, May 26, 2015 at 05:27:33PM +0100, Fu Wei wrote: >> On 26 May 2015 at 23:36, Guenter Roeck wrote: >> > On Tue, May 26, 2015 at 04:18:42PM +0100, Will Deacon wrote: >> >> Sure, th

Re: [PATCH non-pretimeout 3/7] ARM64: add SBSA Generic Watchdog device node in amd-seattle-soc.dtsi

2015-06-14 Thread Fu Wei
c. > The Qualcomm Innovation Center, Inc. is a member of the > Code Aurora Forum, a Linux Foundation Collaborative Project. -- Best regards, Fu Wei Software Engineer Red Hat Software (Beijing) Co.,Ltd.Shanghai Branch Ph: +86 21 61221326(direct) Ph: +86 186 2020 4684 (mobile) Room 1512,

Re: [PATCH non-pretimeout 4/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-14 Thread Fu Wei
Qualcomm Innovation Center, Inc. > The Qualcomm Innovation Center, Inc. is a member of the > Code Aurora Forum, hosted by The Linux Foundation. -- Best regards, Fu Wei Software Engineer Red Hat Software (Beijing) Co.,Ltd.Shanghai Branch Ph: +86 21 61221326(direct) Ph: +86 186 2020 4684 (mob

Re: [PATCH non-pretimeout 3/7] ARM64: add SBSA Generic Watchdog device node in amd-seattle-soc.dtsi

2015-06-15 Thread Fu Wei
Hi Guenter, On 14 June 2015 at 21:57, Guenter Roeck wrote: > On 06/14/2015 03:05 AM, Fu Wei wrote: >> >> On 13 June 2015 at 04:54, Timur Tabi wrote: >>> >>> On 06/10/2015 12:47 PM, fu@linaro.org wrote: >>>> >>>> >

Re: [non-pretimeout,4/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-23 Thread Fu Wei
Hi Guenter, On 12 June 2015 at 00:28, Guenter Roeck wrote: > On Thu, Jun 11, 2015 at 01:47:29AM +0800, fu@linaro.org wrote: >> From: Fu Wei >> >> This driver bases on linux kernel watchdog framework. >> It supports getting timeout from parameter and FDT >>

[PATCH v6 0/8] Watchdog: introduce ARM SBSA watchdog driver

2015-06-23 Thread fu . wei
From: Fu Wei This patchset: (1)Introduce Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt for FDT info of SBSA Generic Watchdog, and give two examples of adding SBSA Generic Watchdog device node into the dts files: foundation-v8.dts and amd-seattle-soc.dtsi. (2

[PATCH v6 2/8] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

2015-06-23 Thread fu . wei
From: Fu Wei This can be a example of adding SBSA Generic Watchdog device node into some dts files for the Soc which contains SBSA Generic Watchdog. Acked-by: Arnd Bergmann Signed-off-by: Fu Wei --- arch/arm64/boot/dts/arm/foundation-v8.dts | 10 ++ 1 file changed, 10 insertions

[PATCH v6 4/8] Watchdog: introdouce "pretimeout" into framework

2015-06-23 Thread fu . wei
From: Fu Wei Also update Documentation/watchdog/watchdog-kernel-api.txt to introduce: (1)the new elements in the watchdog_device and watchdog_ops struct; (2)the new API "watchdog_init_timeouts" Reasons: (1)kernel already has two watchdog drivers are using "pretimeout":

[PATCH v6 3/8] ARM64: add SBSA Generic Watchdog device node in amd-seattle-soc.dtsi

2015-06-23 Thread fu . wei
From: Fu Wei This can be a example of adding SBSA Generic Watchdog device node into some dts files for the Soc which contains SBSA Generic Watchdog. Acked-by: Arnd Bergmann Acked-by: Suravee Suthikulpanit Tested-by: Suravee Suthikulpanit Signed-off-by: Fu Wei --- arch/arm64/boot/dts/amd

[PATCH v6 1/8] Documentation: add sbsa-gwdt.txt documentation

2015-06-23 Thread fu . wei
From: Fu Wei The sbsa-gwdt.txt documentation in devicetree/bindings/watchdog is for introducing SBSA(Server Base System Architecture) Generic Watchdog device node info into FDT. Acked-by: Arnd Bergmann Signed-off-by: Fu Wei --- .../devicetree/bindings/watchdog/sbsa-gwdt.txt | 36

[PATCH v6 5/8] Watchdog: introduce ARM SBSA watchdog driver

2015-06-23 Thread fu . wei
From: Fu Wei This driver bases on linux kernel watchdog framework, and use "pretimeout" in the framework. It supports getting timeout and pretimeout from parameter and FDT at the driver init stage. In first timeout, the interrupt routine run panic to save system context. Signed-off-

[PATCH v6 6/8] ACPI: add GTDT table parse driver into ACPI driver

2015-06-23 Thread fu . wei
From: Fu Wei This driver adds support for parsing 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. The platform device named "sbsa-gwdt" can be u

[PATCH v6 7/8] Watchdog: enable ACPI GTDT support for ARM SBSA watchdog driver

2015-06-23 Thread fu . wei
From: Fu Wei This patch enables ACPI GTDT support for ARM SBSA watchdog driver automatically, if ACPI support is enabled. Signed-off-by: Fu Wei --- drivers/watchdog/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index e059850

[PATCH v6 8/8] clocksource: simplify ACPI code in arm_arch_timer.c

2015-06-23 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 --- arch/arm64

Re: [non-pretimeout,4/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-23 Thread Fu Wei
Hi Guenter, you always can provide help very quickly, thank you very much :-) On 23 June 2015 at 23:21, Guenter Roeck wrote: > On Tue, Jun 23, 2015 at 09:26:35PM +0800, Fu Wei wrote: >> Hi Guenter, > [ ...] > >> > >> >> + * When the first timeout

Re: [non-pretimeout,4/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-23 Thread Fu Wei
Hi Guenter On 24 June 2015 at 00:43, Guenter Roeck wrote: > On Wed, Jun 24, 2015 at 12:17:19AM +0800, Fu Wei wrote: >> Hi Guenter, >> >> you always can provide help very quickly, thank you very much :-) >> >> On 23 June 2015 at 23:21, Guenter Roeck wrote: >&g

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-08 Thread Fu Wei
Hi Gurnter On 3 June 2015 at 01:07, Guenter Roeck wrote: > On 06/02/2015 09:55 AM, Fu Wei wrote: >> >> Hi Timur, >> >> Thanks , feedback inline >> >> On 2 June 2015 at 23:32, Timur Tabi wrote: >>> >>> On 06/01/2015 11:05 PM, fu@l

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-08 Thread Fu Wei
the backtrace somewhere (eg in nvram using pstore if that is > supported via acpi or efi). yes, you are right , thanks for explaining this. > > Is there reason to believe that this all won't work on arm64 ? I don't think there is a reason. > > Thanks, > Guenter -- Be

Re: [PATCH v4 4/7] Watchdog: introdouce "pretimeout" into framework

2015-06-08 Thread Fu Wei
Hi Guenter, Great thanks for your review, On 3 June 2015 at 00:12, Guenter Roeck wrote: > On 06/01/2015 09:05 PM, fu@linaro.org wrote: >> >> From: Fu Wei >> >> Also update Documentation/watchdog/watchdog-kernel-api.txt to >> introduce: >> (1)the

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-08 Thread Fu Wei
Hi Guenter, On 9 June 2015 at 02:26, Guenter Roeck wrote: > On 06/08/2015 09:05 AM, Fu Wei wrote: >> >> Hi Gurnter >> >> On 3 June 2015 at 01:07, Guenter Roeck wrote: >>> >>> On 06/02/2015 09:55 AM, Fu Wei wrote: >>>> >>>>

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-08 Thread Fu Wei
Hi Guenter, Thanks for reply so quickly. On 9 June 2015 at 12:37, Guenter Roeck wrote: > On 06/08/2015 08:59 PM, Fu Wei wrote: >> >> Hi Guenter, >> >> >> On 9 June 2015 at 02:26, Guenter Roeck wrote: >>> >>> On 06/08/2015 09:05 AM, Fu Wei w

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-02 Thread Fu Wei
d); >> + } >> + >> + /* update pretimeout to WOR */ >> + sbsa_gwdt_set_pretimeout(wdd, wdd->pretimeout); >> + >> + ret = devm_request_irq(dev, irq, sbsa_gwdt_interrupt, 0, >> + pdev->name, gwdt); >&

Re: [PATCH v3 5/6] Watchdog: introduce ARM SBSA watchdog driver

2015-05-29 Thread Fu Wei
Hi Timur On 29 May 2015 at 21:28, Timur Tabi wrote: > Fu Wei wrote: >>> >>> This should always be true. Instead of reading WCS, I think you should >>> just >>> >panic(). > > >> I thinks I need to confirm it , in case this has been cleaned.

Re: [PATCH v3 5/6] Watchdog: introduce ARM SBSA watchdog driver

2015-05-29 Thread Fu Wei
Hi Guenter, On 29 May 2015 at 22:54, Guenter Roeck wrote: > On 05/29/2015 02:11 AM, Fu Wei wrote: > [ ... ] > >>>> + >>>> + status = sbsa_gwdt_cf_read(SBSA_GWDT_WCS, wdd); >>>> + if (status & SBSA_GWDT_WCS_WS1) { >>>> +

Re: [PATCH v3 5/6] Watchdog: introduce ARM SBSA watchdog driver

2015-05-29 Thread Fu Wei
Hi Timur On 29 May 2015 at 23:46, Timur Tabi wrote: > On 05/29/2015 09:32 AM, Fu Wei wrote: >> >> It is a SPI, every CPU can get it, >> But maybe I miss something, but please let me know if other CPU can >> not get the interrupt. > > > There's only

Re: [PATCH v3 5/6] Watchdog: introduce ARM SBSA watchdog driver

2015-06-01 Thread Fu Wei
Hi Guenter , Timur On 30 May 2015 at 06:10, Guenter Roeck wrote: > On 05/29/2015 08:46 AM, Timur Tabi wrote: >> >> On 05/29/2015 09:32 AM, Fu Wei wrote: >>> >>> It is a SPI, every CPU can get it, >>> But maybe I miss something, but please let me know

[PATCH v4 0/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-01 Thread fu . wei
From: Fu Wei This patchset: (1)Introduce Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt for FDT info of SBSA Generic Watchdog, and give two examples of adding SBSA Generic Watchdog device node into the dts files: foundation-v8.dts and amd-seattle-soc.dtsi. (2

[PATCH v4 4/7] Watchdog: introdouce "pretimeout" into framework

2015-06-01 Thread fu . wei
From: Fu Wei Also update Documentation/watchdog/watchdog-kernel-api.txt to introduce: (1)the new elements in the watchdog_device and watchdog_ops struct; (2)the new API "watchdog_init_timeouts" Reasons: (1)kernel already has two watchdog drivers are using "pretimeout":

[PATCH v4 2/7] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

2015-06-01 Thread fu . wei
From: Fu Wei This can be a example of adding SBSA Generic Watchdog device node into some dts files for the Soc which contains SBSA Generic Watchdog. Acked-by: Arnd Bergmann Signed-off-by: Fu Wei --- arch/arm64/boot/dts/arm/foundation-v8.dts | 10 ++ 1 file changed, 10 insertions

[PATCH v4 1/7] Documentation: add sbsa-gwdt.txt documentation

2015-06-01 Thread fu . wei
From: Fu Wei The sbsa-gwdt.txt documentation in devicetree/bindings/watchdog is for introducing SBSA(Server Base System Architecture) Generic Watchdog device node info into FDT. Acked-by: Arnd Bergmann Signed-off-by: Fu Wei --- .../devicetree/bindings/watchdog/sbsa-gwdt.txt | 36

[PATCH v4 7/7] clocksource: simplify ACPI code in arm_arch_timer.c

2015-06-01 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 --- arch/arm64

[PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-01 Thread fu . wei
From: Fu Wei This driver bases on linux kernel watchdog framework, and use "pretimeout" in the framework. It supports getting timeout and pretimeout from parameter and FDT at the driver init stage. In first timeout, the interrupt routine run panic to save system context. Signed-off-

[PATCH v4 6/7] ACPI: add GTDT table parse driver into ACPI driver

2015-06-01 Thread fu . wei
From: Fu Wei This driver adds support for parsing 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. The platform device named "sbsa-gwdt" can be u

[PATCH v4 3/7] ARM64: add SBSA Generic Watchdog device node in amd-seattle-soc.dtsi

2015-06-01 Thread fu . wei
From: Fu Wei This can be a example of adding SBSA Generic Watchdog device node into some dts files for the Soc which contains SBSA Generic Watchdog. Acked-by: Arnd Bergmann Acked-by: Suravee Suthikulpanit Tested-by: Suravee Suthikulpanit Signed-off-by: Fu Wei --- arch/arm64/boot/dts/amd

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-09 Thread Fu Wei
Hi Guenter, Thanks for your feedback On 9 June 2015 at 16:04, Guenter Roeck wrote: > On 06/08/2015 11:37 PM, Fu Wei wrote: > >> >> I would like to stress that pretimeout == 0 should not happen in a >> real server system, that is why we defined a SBSA watchdog,

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-09 Thread Fu Wei
g the two stage timeouts? Any suggestion ? If we make the first stage timeout is timeout/2, this violates the definition of timeout. I don't think users expect interrupt, panic or reboot at timeout/2. And WS1 definitely isn't a backup of WS0. > > Guenter > -- Best regard

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-09 Thread Fu Wei
Hi Guenter, On 10 June 2015 at 11:41, Fu Wei wrote: > Hi Guenter, > > On 10 June 2015 at 00:45, Guenter Roeck wrote: >> On 06/09/2015 09:29 AM, Timur Tabi wrote: >>> >>> On 06/09/2015 11:22 AM, Guenter Roeck wrote: >>>> >>>> >>

[PATCH v5 0/8] Watchdog: introduce ARM SBSA watchdog driver

2015-06-10 Thread fu . wei
From: Fu Wei This patchset: (1)Introduce Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt for FDT info of SBSA Generic Watchdog, and give two examples of adding SBSA Generic Watchdog device node into the dts files: foundation-v8.dts and amd-seattle-soc.dtsi. (2

[PATCH v5 1/8] Documentation: add sbsa-gwdt.txt documentation

2015-06-10 Thread fu . wei
From: Fu Wei The sbsa-gwdt.txt documentation in devicetree/bindings/watchdog is for introducing SBSA(Server Base System Architecture) Generic Watchdog device node info into FDT. Acked-by: Arnd Bergmann Signed-off-by: Fu Wei --- .../devicetree/bindings/watchdog/sbsa-gwdt.txt | 36

[PATCH v5 2/8] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

2015-06-10 Thread fu . wei
From: Fu Wei This can be a example of adding SBSA Generic Watchdog device node into some dts files for the Soc which contains SBSA Generic Watchdog. Acked-by: Arnd Bergmann Signed-off-by: Fu Wei --- arch/arm64/boot/dts/arm/foundation-v8.dts | 10 ++ 1 file changed, 10 insertions

[PATCH v5 5/8] Watchdog: introduce ARM SBSA watchdog driver

2015-06-10 Thread fu . wei
From: Fu Wei This driver bases on linux kernel watchdog framework, and use "pretimeout" in the framework. It supports getting timeout and pretimeout from parameter and FDT at the driver init stage. In first timeout, the interrupt routine run panic to save system context. Signed-off-

[PATCH v5 3/8] ARM64: add SBSA Generic Watchdog device node in amd-seattle-soc.dtsi

2015-06-10 Thread fu . wei
From: Fu Wei This can be a example of adding SBSA Generic Watchdog device node into some dts files for the Soc which contains SBSA Generic Watchdog. Acked-by: Arnd Bergmann Acked-by: Suravee Suthikulpanit Tested-by: Suravee Suthikulpanit Signed-off-by: Fu Wei --- arch/arm64/boot/dts/amd

[PATCH v5 8/8] clocksource: simplify ACPI code in arm_arch_timer.c

2015-06-10 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 --- arch/arm64

[PATCH v5 4/8] Watchdog: introdouce "pretimeout" into framework

2015-06-10 Thread fu . wei
From: Fu Wei Also update Documentation/watchdog/watchdog-kernel-api.txt to introduce: (1)the new elements in the watchdog_device and watchdog_ops struct; (2)the new API "watchdog_init_timeouts" Reasons: (1)kernel already has two watchdog drivers are using "pretimeout":

[PATCH v5 7/8] Watchdog: enable ACPI GTDT support for ARM SBSA watchdog driver

2015-06-10 Thread fu . wei
From: Fu Wei This patch enables ACPI GTDT support for ARM SBSA watchdog driver automatically, if ACPI support is enabled. Signed-off-by: Fu Wei --- drivers/watchdog/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 554f18a

[PATCH v5 6/8] ACPI: add GTDT table parse driver into ACPI driver

2015-06-10 Thread fu . wei
From: Fu Wei This driver adds support for parsing 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. The platform device named "sbsa-gwdt" can be u

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-10 Thread Fu Wei
On 10 June 2015 at 22:22, Timur Tabi wrote: > Fu Wei wrote: >> >> Another weakness of only using WOR is the timeout limited by this >> 32bit register. >> 10s @400MHz generic Timer >> >> I don't think this limit is good for a server, once the server

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-10 Thread Fu Wei
On 10 June 2015 at 22:36, Fu Wei wrote: > On 10 June 2015 at 22:22, Timur Tabi wrote: >> Fu Wei wrote: >>> >>> Another weakness of only using WOR is the timeout limited by this >>> 32bit register. >>> 10s @400MHz generic Timer >>> >&

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-10 Thread Fu Wei
Hi Guenter, On 10 June 2015 at 11:41, Fu Wei wrote: > Hi Guenter, > > On 10 June 2015 at 00:45, Guenter Roeck wrote: >> On 06/09/2015 09:29 AM, Timur Tabi wrote: >>> >>> On 06/09/2015 11:22 AM, Guenter Roeck wrote: >>>> >>>> >>

[PATCH non-pretimeout 0/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-10 Thread fu . wei
From: Fu Wei This patchset: (1)Introduce Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt for FDT info of SBSA Generic Watchdog, and give two examples of adding SBSA Generic Watchdog device node into the dts files: foundation-v8.dts and amd-seattle-soc.dtsi. (2

[PATCH non-pretimeout 1/7] Documentation: add sbsa-gwdt.txt documentation

2015-06-10 Thread fu . wei
From: Fu Wei The sbsa-gwdt.txt documentation in devicetree/bindings/watchdog is for introducing SBSA(Server Base System Architecture) Generic Watchdog device node info into FDT. Acked-by: Arnd Bergmann Signed-off-by: Fu Wei --- .../devicetree/bindings/watchdog/sbsa-gwdt.txt | 35

[PATCH non-pretimeout 3/7] ARM64: add SBSA Generic Watchdog device node in amd-seattle-soc.dtsi

2015-06-10 Thread fu . wei
From: Fu Wei This can be a example of adding SBSA Generic Watchdog device node into some dts files for the Soc which contains SBSA Generic Watchdog. Acked-by: Arnd Bergmann Acked-by: Suravee Suthikulpanit Tested-by: Suravee Suthikulpanit Signed-off-by: Fu Wei --- arch/arm64/boot/dts/amd

[PATCH non-pretimeout 5/7] ACPI: add GTDT table parse driver into ACPI driver

2015-06-10 Thread fu . wei
From: Fu Wei This driver adds support for parsing 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. The platform device named "sbsa-gwdt" can be u

  1   2   3   4   5   6   7   >