[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 tekkamanni...@gmail.com --- Documentation/zh_CN/arm/kernel_user_helpers.txt | 284 +++ 1 file changed, 284 insertions(+) create mode 100644 Documentation/zh_CN/arm

[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 tekkamanni...@gmail.com --- Documentation/zh_CN/arm64/memory.txt | 12 ++-- 1 个文件被修改,插入 6 行

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

2014-01-28 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: 2475ff9d, 847264fb, aa4a73a0, e29a074b. Update maintainer's Email address. Signed-off-by: Fu Wei w...@redhat.com --- diff --git

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

2014-01-28 Thread Fu Wei
This is a update of Chinese documentation: Documentation/zh_CN/arm64/booting.txt It is based on the modifications of Documentation/arm64/booting.txt in submission: 4d5e0b15, 4370eec0, 4fcd6e14. Update maintainer's Email address. Signed-off-by: Fu Wei w...@redhat.com --- diff --git

[PATCH]Documentation:Chinese translation of Documentation/arm64/tagged-pointers.txt

2014-01-28 Thread Fu Wei
This is a Chinese translated version of Documentation/arm64/tagged-pointers.txt It is based on the modifications of Documentation/arm64/tagged-pointers.txt in submission: d50240a5, 374ed9d1. Signed-off-by: Fu Wei w...@redhat.com --- diff --git a/Documentation/zh_CN/arm64/tagged-pointers.txt b

Re: [PATCH] Documentation:Chinese translation of Documentation/arm64/legacy_instructions.txt

2015-03-26 Thread Fu Wei
Hi Amos Kong, Great thanks for your review! my feedback is inline below On 03/26/2015 02:26 PM, Amos Kong wrote: On Wed, Mar 25, 2015 at 12:09:03PM +0800, w...@redhat.com wrote: From: Fu Wei w...@redhat.com This is a Chinese translated version of Documentation/arm64/legacy_instructions.txt

Re: [PATCH] Documentation:Chinese translation of Documentation/arm64/legacy_instructions.txt

2015-03-26 Thread Fu Wei
:02 AM, Greg-Kroah-Hartman wrote: On Wed, Mar 25, 2015 at 09:23:54AM -0600, Jonathan Corbet wrote: On Wed, 25 Mar 2015 13:17:15 +0800 harryxiyou harryxi...@gmail.com wrote: 2015-03-25 12:09 GMT+08:00 w...@redhat.com: From: Fu Wei w...@redhat.com This is a Chinese translated version

Re: [PATCH v2] Documentation:Chinese translation of Documentation/arm64/legacy_instructions.txt

2015-03-26 Thread Fu Wei
Hi Harry, Adding current Documentation maintainer: Jonathan Corbet cor...@lwn.net into cc list. On 03/26/2015 08:37 PM, harryxiyou wrote: 2015-03-26 17:02 GMT+08:00 w...@redhat.com: From: Fu Wei w...@redhat.com This is a Chinese translated version of Documentation/arm64

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

2015-05-16 Thread Fu Wei
Hi Arnd, Great thanks for your review, The feedback is inline below: On 05/15/2015 09:57 PM, Arnd Bergmann wrote: On Friday 15 May 2015 19:24:49 fu@linaro.org wrote: From: Fu Wei fu@linaro.org (1)Use linux kernel watchdog framework (2)Work with FDT on ARM64 (3)Use

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

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

[PATCH 5/6] Watchdog: introdouce ARM SBSA watchdog driver

2015-05-15 Thread fu . wei
From: Fu Wei fu@linaro.org (1)Use linux kernel watchdog framework (2)Work with FDT on ARM64 (3)Use pretimeout in watchdog framework (4)In first timeout(WS0), do panic to save system context (5)support geting timeout and pretimeout from parameter and FDT

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

2015-05-15 Thread fu . wei
From: Fu Wei fu@linaro.org Parse SBSA Generic Watchdog Structure in GTDT table of ACPI, and create a platform device with that information This platform device can be used by the ARM SBSA Generic Watchdog driver Signed-off-by: Fu Wei fu@linaro.org --- arch/arm64/kernel/acpi.c | 136

[PATCH 0/6] Watchdog: introdouce ARM SBSA watchdog driver

2015-05-15 Thread fu . wei
From: Fu Wei fu@linaro.org This patchset: (1)Introdouces 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

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

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

[PATCH 4/6] Watchdog: introdouce pretimeout into framework

2015-05-15 Thread fu . wei
From: Fu Wei fu@linaro.org Reasons: (1)kernel already has two watchdog drivers are using pretimeout: drivers/char/ipmi/ipmi_watchdog.c drivers/watchdog/kempld_wdt.c(but the definition is different) (2)some other dirvers are going to use this: ARM SBSA Generic Watchdog Signed

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

2015-05-15 Thread fu . wei
From: Fu Wei fu@linaro.org This can be a example of adding SBSA Generic Watchdog device node into some dts files for the Soc which contains SBSA Generic Watchdog Signed-off-by: Fu Wei fu@linaro.org --- arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi | 11 +++ 1 file changed, 11

Re: [PATCH 4/6] Watchdog: introdouce pretimeout into framework

2015-05-15 Thread Fu Wei
Hi Guenter, Great thanks for your review, feedback inline below :-) On 15 May 2015 at 21:33, Guenter Roeck li...@roeck-us.net wrote: On 05/15/2015 04:24 AM, fu@linaro.org wrote: From: Fu Wei fu@linaro.org Reasons: (1)kernel already has two watchdog drivers are using pretimeout

Re: [PATCH 1/6] Documentation: add sbsa-gwdt.txt documentation

2015-05-15 Thread Fu Wei
Hi Arnd, Great thanks, np, will do so On 15 May 2015 at 22:06, Arnd Bergmann a...@arndb.de wrote: On Friday 15 May 2015 19:08:05 fu@linaro.org wrote: From: Fu Wei fu@linaro.org The sbsa-gwdt.txt documentation in devicetree/bindings/watchdog is for introducing SBSA(Server Base System

Re: [PATCH 1/6] Documentation: add sbsa-gwdt.txt documentation

2015-05-16 Thread Fu Wei
Hi Arnd, Great thanks for reminding, I should do it earlier. You will see it in next patchset. On 05/15/2015 10:06 PM, Arnd Bergmann wrote: On Friday 15 May 2015 19:08:05 fu@linaro.org wrote: From: Fu Wei fu@linaro.org The sbsa-gwdt.txt documentation in devicetree/bindings/watchdog

Re: [Linaro-acpi] [PATCH 0/6] Watchdog: introdouce ARM SBSA watchdog driver

2015-05-16 Thread Fu Wei
Hi Arnd, OK, Thanks, Will reply those comments soon. On 05/15/2015 10:07 PM, Arnd Bergmann wrote: On Friday 15 May 2015 19:08:04 fu@linaro.org wrote: From: Fu Wei fu@linaro.org This patchset: (1)Introdouces Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt for FDT

Re: [PATCH 4/6] Watchdog: introdouce pretimeout into framework

2015-05-18 Thread Fu Wei
Hi Guenter, yes, I think it is OK for me, Once this patchset is merged, I will try to make a new patchset just for this integration. On 16 May 2015 at 02:01, Guenter Roeck li...@roeck-us.net wrote: On Fri, May 15, 2015 at 09:49:07PM +0800, Fu Wei wrote: Hi Guenter, Great thanks for your

Re: [PATCH 4/6] Watchdog: introdouce pretimeout into framework

2015-05-18 Thread Fu Wei
pretimeout_parm, struct device *dev) then we need to update all the watchdog drivers which use this API, maybe we can do this in a individual patchset, after this pretimeout patch is merged. Is that OK ? :-) any thought? Arnd -- Best regards, Fu Wei Software Engineer Red Hat

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

2015-05-18 Thread Fu Wei
Hi Grenter, Great thanks for your review, On 16 May 2015 at 06:57, Guenter Roeck li...@roeck-us.net wrote: On 05/15/2015 04:24 AM, fu@linaro.org wrote: From: Fu Wei fu@linaro.org (1)Use linux kernel watchdog framework (2)Work with FDT on ARM64 (3)Use pretimeout

Re: [PATCH 4/6] Watchdog: introdouce pretimeout into framework

2015-05-18 Thread Fu Wei
Hi Guenter, np, will do so :-) On 19 May 2015 at 01:23, Guenter Roeck li...@roeck-us.net wrote: On Tue, May 19, 2015 at 01:19:22AM +0800, Fu Wei wrote: Hi Arnd, Great thanks for your suggestion :-) feedback inline below On 15 May 2015 at 22:04, Arnd Bergmann a...@arndb.de wrote

Re: [PATCH 4/6] Watchdog: introdouce pretimeout into framework

2015-05-18 Thread Fu Wei
watchdog_init_timeouts(wdd, timeout_parm, ~0ul, dev); } Then you can update the drivers that actually use the pretimeout to use the new function at some point, and leave all other drivers calling the wrapper function. Excellent idea. Guenter -- Best regards, Fu Wei Software Engineer

[PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-21 Thread fu . wei
From: Fu Wei fu@linaro.org 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(WS0), the interrupt routine run panic to save system context

[PATCH v2 2/7] Documentation: add sbsa-gwdt.txt documentation

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

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

2015-05-21 Thread fu . wei
From: Fu Wei fu@linaro.org This can be a example of adding SBSA Generic Watchdog device node into some dts files for the Soc which contains SBSA Generic Watchdog. Signed-off-by: Fu Wei fu@linaro.org --- arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi | 11 +++ 1 file changed, 11

[PATCH v2 5/7] Watchdog: introduce pretimeout into framework

2015-05-21 Thread fu . wei
From: Fu Wei fu@linaro.org 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 v2 3/7] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

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

[PATCH v2 1/7] clocksource: export arch_timer_get_rate for the other drivers

2015-05-21 Thread fu . wei
From: Fu Wei fu@linaro.org Some devices get clock from system counter, like SBSA watchdog driver. They may need to get system counter rate. Signed-off-by: Fu Wei fu@linaro.org --- drivers/clocksource/arm_arch_timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers

[PATCH v2 7/7] ACPI: import watchdog info of GTDT into platform device

2015-05-21 Thread fu . wei
From: Fu Wei fu@linaro.org Parse SBSA Generic Watchdog Structure in GTDT table of ACPI, and create a platform device with that information. This platform device can be used by the ARM SBSA Generic Watchdog driver. Signed-off-by: Fu Wei fu@linaro.org --- arch/arm64/kernel/acpi.c | 136

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

2015-05-21 Thread fu . wei
From: Fu Wei fu@linaro.org This patchset: (1)Export arch_timer_get_rate in arm_arch_timer.c for the other drivers, like SBSA watchdog driver (2)Introduce Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt for FDT info of SBSA Generic Watchdog, and give two examples

Re: [PATCH v2 3/7] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

2015-05-21 Thread Fu Wei
the 'watchdog0:' label here, there is normally no reason to assign a label to a watchdog device, especially if it's in a .dts file rather than a .dtsi. The same is true for the example in the binding documentation. Arnd -- Best regards, Fu Wei Software Engineer Red Hat Software

Re: [Linaro-acpi] [PATCH v2 0/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-21 Thread Fu Wei
to be reviewed by someone who understands ACPI. yes, maybe Hanjun and Al can help :-) Arnd -- 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, Regus One Corporate Avenue,Level 15

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 li...@roeck-us.net 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, but not a normal one

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 li...@roeck-us.net wrote: On 06/08/2015 09:05 AM, Fu Wei wrote: Hi Gurnter On 3 June 2015 at 01:07, Guenter Roeck li...@roeck-us.net wrote: On 06/02/2015 09:55 AM, Fu Wei wrote: Hi Timur, Thanks , feedback inline On 2 June 2015

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

2015-06-09 Thread Fu Wei
Hi Guenter, Thanks for reply so quickly. On 9 June 2015 at 12:37, Guenter Roeck li...@roeck-us.net wrote: On 06/08/2015 08:59 PM, Fu Wei wrote: Hi Guenter, On 9 June 2015 at 02:26, Guenter Roeck li...@roeck-us.net wrote: On 06/08/2015 09:05 AM, Fu Wei wrote: Hi Gurnter On 3 June

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 li...@roeck-us.net 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 ti...@codeaurora.org wrote: On 06/01/2015 11:05 PM, fu@linaro.org wrote: +/* + * help functions

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 li...@roeck-us.net wrote: On 06/01/2015 09:05 PM, fu@linaro.org wrote: From: Fu Wei fu@linaro.org Also update Documentation/watchdog/watchdog-kernel-api.txt to introduce: (1)the new elements

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

2015-06-08 Thread Fu Wei
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 -- 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

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

2015-06-10 Thread fu . wei
From: Fu Wei fu@linaro.org 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

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

2015-06-10 Thread fu . wei
From: Fu Wei fu@linaro.org 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 a...@arndb.de Signed-off-by: Fu Wei fu@linaro.org --- .../devicetree

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

2015-06-10 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.org Signed-off

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

2015-06-10 Thread fu . wei
From: Fu Wei fu@linaro.org 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 fu@linaro.org This patch enables ACPI GTDT support for ARM SBSA watchdog driver automatically, if ACPI support is enabled. Signed-off-by: Fu Wei fu@linaro.org --- drivers/watchdog/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/Kconfig b/drivers

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

2015-06-10 Thread fu . wei
From: Fu Wei fu@linaro.org 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 a...@arndb.de Signed-off-by: Fu Wei fu@linaro.org --- arch/arm64/boot/dts/arm/foundation-v8.dts | 10

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

2015-06-10 Thread fu . wei
From: Fu Wei fu@linaro.org 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

[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 fu@linaro.org 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 a...@arndb.de Acked-by: Suravee Suthikulpanit suravee.suthikulpa...@amd.com Tested-by: Suravee

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

2015-06-10 Thread fu . wei
From: Fu Wei fu@linaro.org 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

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 fu@linaro.org wrote: On 10 June 2015 at 22:22, Timur Tabi ti...@codeaurora.org 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

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 ti...@codeaurora.org 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 is in a heavy load Perhaps

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 fu@linaro.org wrote: Hi Guenter, On 10 June 2015 at 00:45, Guenter Roeck li...@roeck-us.net wrote: On 06/09/2015 09:29 AM, Timur Tabi wrote: On 06/09/2015 11:22 AM, Guenter Roeck wrote: but I see your point. Essentially, the specification

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

2015-06-09 Thread Fu Wei
-- 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, Regus One Corporate Avenue,Level 15, One Corporate Avenue,222 Hubin Road,Huangpu District, Shanghai,China 200021 -- To unsubscribe

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

2015-06-23 Thread fu . wei
From: Fu Wei fu@linaro.org 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

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

2015-06-23 Thread fu . wei
From: Fu Wei fu@linaro.org 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 a...@arndb.de Signed-off-by: Fu Wei fu@linaro.org --- arch/arm64/boot/dts/arm/foundation-v8.dts | 10

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

2015-06-23 Thread fu . wei
From: Fu Wei fu@linaro.org 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 fu@linaro.org 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 a...@arndb.de Acked-by: Suravee Suthikulpanit suravee.suthikulpa...@amd.com Tested-by: Suravee

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

2015-06-23 Thread fu . wei
From: Fu Wei fu@linaro.org 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 a...@arndb.de Signed-off-by: Fu Wei fu@linaro.org --- .../devicetree

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 li...@roeck-us.net wrote: On Thu, Jun 11, 2015 at 01:47:29AM +0800, fu@linaro.org wrote: From: Fu Wei fu@linaro.org This driver bases on linux kernel watchdog framework. It supports getting timeout from parameter and FDT

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

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

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

2015-06-23 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.org Signed-off

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

2015-06-23 Thread fu . wei
From: Fu Wei fu@linaro.org 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

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 li...@roeck-us.net wrote: On Tue, Jun 23, 2015 at 09:26:35PM +0800, Fu Wei wrote: Hi Guenter, [ ...] + * When the first timeout occurs, WS0(SPI or LPI) is triggered

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 li...@roeck-us.net 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 li...@roeck-us.net wrote: On Tue, Jun

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

2015-06-23 Thread fu . wei
From: Fu Wei fu@linaro.org 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

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

2015-06-11 Thread Fu Wei
Hi Guenter, Great thanks for your time. On 11 June 2015 at 00:21, Guenter Roeck li...@roeck-us.net wrote: On 06/10/2015 06:41 AM, fu@linaro.org wrote: From: Fu Wei fu@linaro.org Also update Documentation/watchdog/watchdog-kernel-api.txt to introduce: (1)the new elements

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 fu@linaro.org wrote: Hi Guenter, On 10 June 2015 at 00:45, Guenter Roeck li...@roeck-us.net wrote: On 06/09/2015 09:29 AM, Timur Tabi wrote: On 06/09/2015 11:22 AM, Guenter Roeck wrote: but I see your point. Essentially

[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 fu@linaro.org 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 a...@arndb.de Acked-by: Suravee Suthikulpanit suravee.suthikulpa...@amd.com Tested-by: Suravee

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

2015-06-10 Thread fu . wei
From: Fu Wei fu@linaro.org 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

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

2015-06-10 Thread fu . wei
From: Fu Wei fu@linaro.org 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 a...@arndb.de Signed-off-by: Fu Wei fu@linaro.org --- arch/arm64/boot/dts/arm/foundation-v8.dts | 10

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

2015-06-10 Thread fu . wei
From: Fu Wei fu@linaro.org 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 a...@arndb.de Signed-off-by: Fu Wei fu@linaro.org --- .../devicetree

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

2015-06-10 Thread fu . wei
From: Fu Wei fu@linaro.org 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

[PATCH non-pretimeout 7/7] clocksource: simplify ACPI code in arm_arch_timer.c

2015-06-10 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.org Signed-off

[PATCH non-pretimeout 6/7] Watchdog: enable ACPI GTDT support for ARM SBSA watchdog driver

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

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

2015-06-10 Thread fu . wei
From: Fu Wei fu@linaro.org This driver bases on linux kernel watchdog framework. It supports getting timeout from parameter and FDT at the driver init stage. The first timeout period expires, the interrupt routine got another timeout period to run panic for saving system context. Signed-off

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

2015-06-10 Thread Fu Wei
Hi Guenter, On 10 June 2015 at 23:38, Fu Wei fu@linaro.org wrote: Hi Guenter, On 10 June 2015 at 11:41, Fu Wei fu@linaro.org wrote: Hi Guenter, On 10 June 2015 at 00:45, Guenter Roeck li...@roeck-us.net wrote: On 06/09/2015 09:29 AM, Timur Tabi wrote: On 06/09/2015 11:22 AM

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 li...@roeck-us.net wrote: On 06/14/2015 03:05 AM, Fu Wei wrote: On 13 June 2015 at 04:54, Timur Tabi ti...@codeaurora.org wrote: On 06/10/2015 12:47 PM, fu@linaro.org wrote: + reg = 0x0 0xe0bb 0 0x1

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

2015-06-14 Thread Fu Wei
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, Regus One Corporate Avenue,Level 15, One Corporate Avenue,222

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

2015-06-14 Thread Fu Wei
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 (mobile) Room 1512, Regus One Corporate Avenue,Level 15, One Corporate Avenue,222 Hubin Road,Huangpu District, Shanghai,China 200021

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

2015-06-10 Thread Fu Wei
Hi Guenter, On 11 June 2015 at 13:33, Guenter Roeck li...@roeck-us.net wrote: On 06/10/2015 10:47 AM, fu@linaro.org wrote: From: Fu Wei fu@linaro.org This driver bases on linux kernel watchdog framework. It supports getting timeout from parameter and FDT at the driver init stage

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

2015-06-10 Thread Fu Wei
Hi Guenter On 11 June 2015 at 13:13, Guenter Roeck li...@roeck-us.net wrote: On 06/10/2015 08:45 PM, Timur Tabi wrote: Fu Wei wrote: Could you suggest a good way to use WS0, so we can follow SBSA spec? To avoid the timeout/2 problem, WS0 calls panic, which is the real timeout/reset. WS1

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

2015-06-10 Thread Fu Wei
On 11 June 2015 at 11:45, Timur Tabi ti...@codeaurora.org wrote: Fu Wei wrote: Could you suggest a good way to use WS0, so we can follow SBSA spec? To avoid the timeout/2 problem, WS0 calls panic, which is the real timeout/reset. WS1 is then a backup that is ignored by the driver

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

2015-06-11 Thread Fu Wei
Hi Guenter, On 11 June 2015 at 13:49, Guenter Roeck li...@roeck-us.net wrote: On 06/10/2015 10:44 PM, Fu Wei wrote: Hi Guenter, On 11 June 2015 at 13:33, Guenter Roeck li...@roeck-us.net wrote: On 06/10/2015 10:47 AM, fu@linaro.org wrote: From: Fu Wei fu@linaro.org

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

2015-06-10 Thread Fu Wei
On 11 June 2015 at 08:22, Timur Tabi ti...@codeaurora.org wrote: Fu Wei wrote: If we make the first stage timeout is timeout/2, this violates the definition of timeout. The documentation says that the hardware needs to reset after the timeout expires. yes , you are absolutely

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 li...@roeck-us.net wrote: On 05/25/2015 03:03 AM, fu@linaro.org wrote: From: Fu Wei fu@linaro.org This driver bases on linux kernel watchdog framework, and use pretimeout in the framework. It supports

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

2015-05-29 Thread Fu Wei
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, Regus One Corporate Avenue,Level 15, One Corporate Avenue,222 Hubin Road,Huangpu District, Shanghai

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 will.dea...@arm.com wrote: On Tue, May 26, 2015 at 05:27:33PM +0100, Fu Wei wrote: On 26 May 2015 at 23:36, Guenter Roeck li...@roeck-us.net wrote: On Tue, May 26, 2015 at 04:18:42PM +0100, Will Deacon wrote: Sure

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 li...@roeck-us.net 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) { + dev_warn(dev, System reset by WDT(WCS: %x, WCV

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 li...@roeck-us.net 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 if other CPU can not get the interrupt

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 ti...@codeaurora.org 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 one watchdog device, so there's only

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

2015-06-02 Thread Fu Wei
of pretimeout to a server. -- Qualcomm Innovation Center, Inc. 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

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 ti...@codeaurora.org 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. I don't see how it's possible for you to receive

[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 fu@linaro.org 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 a...@arndb.de Acked-by: Suravee Suthikulpanit suravee.suthikulpa...@amd.com Tested-by: Suravee

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

2015-06-01 Thread fu . wei
From: Fu Wei fu@linaro.org 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

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

2015-06-01 Thread fu . wei
From: Fu Wei fu@linaro.org 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 fu@linaro.org 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 a...@arndb.de Signed-off-by: Fu Wei fu@linaro.org --- arch/arm64/boot/dts/arm/foundation-v8.dts | 10

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

2015-06-01 Thread fu . wei
From: Fu Wei fu@linaro.org 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 a...@arndb.de Signed-off-by: Fu Wei fu@linaro.org --- .../devicetree

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

2015-06-01 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.org Signed-off

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

2015-06-01 Thread fu . wei
From: Fu Wei fu@linaro.org 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

  1   2   3   4   5   6   7   8   9   10   >