[PATCH v3 3/6] clocksource: add memory-mapped timer support in arm_arch_timer.c

2016-02-01 Thread fu . wei
From: Fu Wei The patch add memory-mapped timer register support for arm_arch_timer driver by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 136 +++ 1 file changed, 136 insertions

[PATCH v3 4/6] clocksource: move some enums to arm_arch_timer.h

2016-02-01 Thread fu . wei
From: Fu Wei The patch move enum ppi_nr from arm_arch_timer.c to arm_arch_timer.h, and add enum spi_nr. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 13 ++--- include/clocksource/arm_arch_timer.h | 14 ++ 2 files changed, 16 insertions(+), 11 deletions

[PATCH v3 2/6] clocksource: simplify ACPI code in arm_arch_timer.c

2016-02-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 --- drivers

[PATCH v3 1/6] ACPI: add GTDT table parse driver into ACPI driver

2016-02-01 Thread fu . wei
From: Fu Wei This driver adds support for parsing all kinds of timer in GTDT: (1)arch timer: provide a kernel API to parse all the PPIs and always-on info in GTDT and export them by arch_timer_data struct. (2)memory-mapped timer: provide several kernel APIs to parse GT Block Structure in GTDT

[PATCH v3 0/6] acpi, clocksource, kvm: add GTDT and ARM memory-mapped timer support

2016-02-01 Thread fu . wei
From: Fu Wei This patchset: (1)Introduce ACPI GTDT parser: drivers/acpi/gtdt.c Parse all kinds of timer in GTDT table of ACPI:arch timer, memory-mapped timer and SBSA Generic Watchdog timer. This driver can help to simplify all the relevant timer drivers, and separate all

[PATCH v3 0/6] acpi, clocksource, kvm: add GTDT and ARM memory-mapped timer support

2016-02-01 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset: (1)Introduce ACPI GTDT parser: drivers/acpi/gtdt.c Parse all kinds of timer in GTDT table of ACPI:arch timer, memory-mapped timer and SBSA Generic Watchdog timer. This driver can help to simplify all the relevant timer d

[PATCH v3 5/6] kvm: arm64: wrapping DT support for virt arch timer

2016-02-01 Thread fu . wei
From: Wei Huang <w...@redhat.com> This patches wrapping DT support for virt arch timer into a function. [Fu Wei: improve the DT support, and separate ACPI support] Signed-off-by: Alexander Spyridaki <a.spyrida...@virtualopensystems.com> Signed-off-by: Wei Huang <w...@redhat.

[PATCH v3 6/6] kvm: arm64: Add ACPI support for virt arch timer

2016-02-01 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds ACPI/GTDT support for virt arch timer using the API in GTDT driver. Signed-off-by: Fu Wei <fu@linaro.org> --- virt/kvm/arm/arch_timer.c | 8 1 file changed, 8 insertions(+) diff --git a/virt/kvm/arm/arch_timer.c b/

[PATCH v3 3/6] clocksource: add memory-mapped timer support in arm_arch_timer.c

2016-02-01 Thread fu . wei
From: Fu Wei <fu@linaro.org> The patch add memory-mapped timer register support for arm_arch_timer driver by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei <fu@linaro.org> --- drivers/clocksource/arm_arch_t

[PATCH v3 4/6] clocksource: move some enums to arm_arch_timer.h

2016-02-01 Thread fu . wei
From: Fu Wei <fu@linaro.org> The patch move enum ppi_nr from arm_arch_timer.c to arm_arch_timer.h, and add enum spi_nr. Signed-off-by: Fu Wei <fu@linaro.org> --- drivers/clocksource/arm_arch_timer.c | 13 ++--- include/clocksource/arm_arch_timer.h | 14 +++

[PATCH v3 1/6] ACPI: add GTDT table parse driver into ACPI driver

2016-02-01 Thread fu . wei
From: Fu Wei <fu@linaro.org> This driver adds support for parsing all kinds of timer in GTDT: (1)arch timer: provide a kernel API to parse all the PPIs and always-on info in GTDT and export them by arch_timer_data struct. (2)memory-mapped timer: provide several kernel APIs to parse GT

[PATCH v3 2/6] clocksource: simplify ACPI code in arm_arch_timer.c

2016-02-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.or

[PATCH v3] acpi, apei: add Boot Error Record Table (BERT) support

2016-01-07 Thread fu . wei
Error]: physical_address_mask: 0x0fff [Hardware Error]: card: 0 module: 1 bank: 0 device: 1 row: 1 column: 1 bit_pos [Tomasz Nowicki: Clear error status at the end of error handling] [Tony: Applied some cleanups suggested by Fu Wei] [Fu Wei: delete EXPORT_SYMBOL_GPL(bert_disable), improve th

[PATCH v3] acpi, apei: add Boot Error Record Table (BERT) support

2016-01-07 Thread fu . wei
fe80 [Hardware Error]: physical_address_mask: 0x0fff [Hardware Error]: card: 0 module: 1 bank: 0 device: 1 row: 1 column: 1 bit_pos [Tomasz Nowicki: Clear error status at the end of error handling] [Tony: Applied some cleanups suggested by Fu Wei] [Fu Wei: delete EXPOR

Re: [Linaro-acpi] [PATCH v2 0/2] acpi, apei: add BERT support

2016-01-06 Thread Fu Wei
Hi Tyler, Great thanks for your testing, But I just made a new one according to Borislav's suggestion. Please help us again, if you get some time. :-) Thanks On 16 December 2015 at 00:39, Timur Tabi wrote: > On Tue, Aug 18, 2015 at 11:44 AM, wrote: >> From: Fu Wei >&g

Re: [PATCH v2 1/2] acpi, apei: add Boot Error Record Table (BERT) support

2016-01-06 Thread Fu Wei
> >> For more information about BERT, please refer to ACPI Specification >> version 6.0, section 18.3.1: >> http://www.uefi.org/sites/default/files/resources/ACPI_6.0.pdf >> >> [Tony: Applied some cleanups suggested by Fu Wei] >> [Fu Wei: delete EXPORT_SY

Re: [PATCH v2 1/2] acpi, apei: add Boot Error Record Table (BERT) support

2016-01-06 Thread Fu Wei
h, the error information is reported via printk. >> >> For more information about BERT, please refer to ACPI Specification >> version 6.0, section 18.3.1: >> http://www.uefi.org/sites/default/files/resources/ACPI_6.0.pdf >> >> [Tony: Applied some cleanups suggested

Re: [Linaro-acpi] [PATCH v2 0/2] acpi, apei: add BERT support

2016-01-06 Thread Fu Wei
o.org> wrote: >> From: Fu Wei <fu@linaro.org> >> >> ACPI/APEI is designed to verifiy/report H/W errors, like Corrected >> Error(CE) and Uncorrected Error(UC). It contains four tables: HEST, >> ERST, EINJ and BERT. The first three tables have been merged for

Re: [PATCH v2 0/3] ACPI, clocksource: add GTDT and ARM memory-mapped timer support

2015-12-16 Thread Fu Wei
p. I'll look at it. > > M. > -- > Jazz is not dead. It just smells funny... -- 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 Cor

Re: [PATCH v2 0/3] ACPI, clocksource: add GTDT and ARM memory-mapped timer support

2015-12-16 Thread Fu Wei
s for putting me in the loop. I'll look at it. > > M. > -- > Jazz is not dead. It just smells funny... -- 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 Corpor

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

2015-12-10 Thread fu . wei
ure only x86 use "hest_ia_init". Signed-off-by: Tomasz Nowicki Tested-by: Jonathan (Zhixiong) Zhang Signed-off-by: Fu Wei Acked-by: Hanjun Guo --- Changelog: v5: Add "HAVE_ACPI_APEI_HEST_IA32" instead of "#if defined(__i386__) || defined(__x86_64__)&qu

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

2015-12-10 Thread fu . wei
PI_APEI_HEST_IA32" to make sure only x86 use "hest_ia_init". 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 <hanjun@li

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

2015-12-09 Thread Fu Wei
Hi Lorenzo, On 9 December 2015 at 11:25, Fu Wei wrote: > Hi Lorenzo, > > On 8 December 2015 at 22:07, Lorenzo Pieralisi > wrote: >> On Tue, Dec 08, 2015 at 09:08:24PM +0800, Fu Wei wrote: >>> Hi Lorenzo, >>> >>> >>> >>> O

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

2015-12-09 Thread Fu Wei
Hi Lorenzo, On 9 December 2015 at 11:25, Fu Wei <fu@linaro.org> wrote: > Hi Lorenzo, > > On 8 December 2015 at 22:07, Lorenzo Pieralisi > <lorenzo.pieral...@arm.com> wrote: >> On Tue, Dec 08, 2015 at 09:08:24PM +0800, Fu Wei wrote: >>> Hi Lorenzo, >

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

2015-12-08 Thread Fu Wei
Hi Lorenzo, On 8 December 2015 at 22:07, Lorenzo Pieralisi wrote: > On Tue, Dec 08, 2015 at 09:08:24PM +0800, Fu Wei wrote: >> Hi Lorenzo, >> >> >> >> On 8 December 2015 at 20:52, Hanjun Guo wrote: >> > Hi Lorenzo, >> > >> > On 12/0

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

2015-12-08 Thread Fu Wei
t_ia_init" for >> "acpi_disable_cmcff" which is used by IA-32 Architecture >> Corrected Machine Check (CMC). >> >> Signed-off-by: Tomasz Nowicki >> Tested-by: Jonathan (Zhixiong) Zhang >> Signed-off-by: Fu Wei >> --- >> Changelog: >>

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

2015-12-08 Thread Fu Wei
ry to use "#if defined(__i386__) || defined(__x86_64__)" instead of moving acpi_disable_cmcff out of x86 code to here. And I thinks we also can do "arch_apei_enable_cmcff" --> "apei_enable_ia_cmcff" because that is IA32 only. Please correct me if I misunderstand

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

2015-12-08 Thread Fu Wei
Hi Hanjun, On 8 December 2015 at 19:26, Hanjun Guo wrote: > Hi Fu Wei, > > > On 12/08/2015 03:03 PM, fu@linaro.org wrote: >> >> From: Tomasz Nowicki >> >> This commit provides APEI arch-specific bits for aarch64 >> >>

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

2015-12-08 Thread Fu Wei
Hi Hanjun, On 8 December 2015 at 19:26, Hanjun Guo <hanjun@linaro.org> wrote: > Hi Fu Wei, > > > On 12/08/2015 03:03 PM, fu@linaro.org wrote: >> >> From: Tomasz Nowicki <tomasz.nowi...@linaro.org> >> >> This commit provides APEI arch-spec

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

2015-12-08 Thread Fu Wei
are Error Source, did > I miss something? yes, that is why I try to use "#if defined(__i386__) || defined(__x86_64__)" instead of moving acpi_disable_cmcff out of x86 code to here. And I thinks we also can do "arch_apei_enable_cmcff" --> "apei_enable_ia_cmcff" bec

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

2015-12-08 Thread Fu Wei
>> >> Meanwhile, add a new subfunction "hest_ia_init" for >> "acpi_disable_cmcff" which is used by IA-32 Architecture >> Corrected Machine Check (CMC). >> >> Signed-off-by: Tomasz Nowicki <tomasz.nowi...@linaro.org> >>

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

2015-12-08 Thread Fu Wei
Hi Lorenzo, On 8 December 2015 at 22:07, Lorenzo Pieralisi <lorenzo.pieral...@arm.com> wrote: > On Tue, Dec 08, 2015 at 09:08:24PM +0800, Fu Wei wrote: >> Hi Lorenzo, >> >> >> >> On 8 December 2015 at 20:52, Hanjun Guo <hanjun@linaro.org> wrote: &

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

2015-12-07 Thread fu . wei
xiong) Zhang Signed-off-by: Fu Wei --- Changelog: v4: Rebase to latest kernel version(4.4-rc4). Move arch_apei_flush_tlb_one into header file as a inline function Add a new subfunction "hest_ia_init" for "acpi_disable_cmcff". v3: https://lkml.org/lkml/2015/12/3/521

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

2015-12-07 Thread Fu Wei
Hi Hanjun, On 7 December 2015 at 17:36, Hanjun Guo wrote: > Hi Fu Wei, > > On 12/04/2015 01:15 AM, fu@linaro.org wrote: >> >> From: Tomasz Nowicki >> >> This commit provides APEI arch-specific bits for aarch64 >> >> The reason for wrapping &qu

[PATCH] acpi, apei, hest: Move HEST table initialization where it belongs.

2015-12-07 Thread fu . wei
From: Tomasz Nowicki Since HEST (hardware error sources table) can describe more than PCI specific errors, it needs to be moved out of acpi_pci_root_init. Changelog: v1: This patch - the first upstream patch to linux mailing lists. Fu Wei: (1)Rebase to v4.4-rc4; (2)Remove "#in

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

2015-12-07 Thread fu . wei
omasz Nowicki <tomasz.nowi...@linaro.org> Tested-by: Jonathan (Zhixiong) Zhang <zjzh...@codeaurora.org> Signed-off-by: Fu Wei <fu@linaro.org> --- Changelog: v4: Rebase to latest kernel version(4.4-rc4). Move arch_apei_flush_tlb_one into header file as a inline func

[PATCH] acpi, apei, hest: Move HEST table initialization where it belongs.

2015-12-07 Thread fu . wei
From: Tomasz Nowicki <tomasz.nowi...@linaro.org> Since HEST (hardware error sources table) can describe more than PCI specific errors, it needs to be moved out of acpi_pci_root_init. Changelog: v1: This patch - the first upstream patch to linux mailing lists. Fu Wei: (1)Rebase t

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

2015-12-07 Thread Fu Wei
Hi Hanjun, On 7 December 2015 at 17:36, Hanjun Guo <hanjun@linaro.org> wrote: > Hi Fu Wei, > > On 12/04/2015 01:15 AM, fu@linaro.org wrote: >> >> From: Tomasz Nowicki <tomasz.nowi...@linaro.org> >> >> This commit provides APEI arch-specific b

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

2015-12-06 Thread Fu Wei
Add "#ifdef CONFIG_ACPI_APEI" for "acpi_disable_cmcff". > > Signed-off-by: Tomasz Nowicki > Tested-by: Jonathan (Zhixiong) Zhang > Signed-off-by: Fu Wei > --- > arch/arm64/Kconfig| 1 + > arch/arm64/include/asm/acpi.h | 1 + > arch/arm

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

2015-12-06 Thread Fu Wei
sm/apci.h. > Delete arch/arm64/kernel/apei.c. > Add "#ifdef CONFIG_ACPI_APEI" for "acpi_disable_cmcff". > > Signed-off-by: Tomasz Nowicki <tomasz.nowi...@linaro.org> > Tested-by: Jonathan (Zhixiong) Zhang <zjzh...@codeaurora.org> > Sig

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

2015-12-03 Thread fu . wei
i.c v1: https://lkml.org/lkml/2015/8/14/199 Move arch_apei_flush_tlb_one() to arch/arm64/include/asm/apci.h. Delete arch/arm64/kernel/apei.c. Add "#ifdef CONFIG_ACPI_APEI" for "acpi_disable_cmcff". Signed-off-by: Tomasz Nowicki Tested-by: Jonathan (Zhi

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

2015-12-03 Thread fu . wei
tomasz.nowi...@linaro.org> Tested-by: Jonathan (Zhixiong) Zhang <zjzh...@codeaurora.org> Signed-off-by: Fu Wei <fu@linaro.org> --- arch/arm64/Kconfig| 1 + arch/arm64/include/asm/acpi.h | 1 + arch/arm64/kernel/acpi.c | 6 ++ drivers/acpi/apei/hest.c | 2

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

2015-12-02 Thread Fu Wei
ry to fix it in next patch :-) > > Lorenzo > >> + >> static bool param_acpi_off __initdata; >> static bool param_acpi_force __initdata; >> >> @@ -233,4 +238,9 @@ pgprot_t arch_apei_get_mem_attribute(phys_addr_t addr) >> return __pgprot(PROT_NORMAL_NC)

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

2015-12-02 Thread fu . wei
/asm/apci.h. Delete arch/arm64/kernel/apei.c. Add "#ifdef CONFIG_ACPI_APEI" for "acpi_disable_cmcff". Signed-off-by: Tomasz Nowicki Tested-by: Jonathan (Zhixiong) Zhang Signed-off-by: Fu Wei --- arch/arm64/Kconfig| 1 + arch/arm64/include/asm/acpi.h |

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

2015-12-02 Thread fu . wei
Move arch_apei_flush_tlb_one() to arch/arm64/include/asm/apci.h. Delete arch/arm64/kernel/apei.c. Add "#ifdef CONFIG_ACPI_APEI" for "acpi_disable_cmcff". Signed-off-by: Tomasz Nowicki <tomasz.nowi...@linaro.org> Tested-by: Jonathan (Zhixiong) Zhang <zjzh...@codeaurora.org> Si

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

2015-12-02 Thread Fu Wei
very good point, will try to fix it in next patch :-) > > Lorenzo > >> + >> static bool param_acpi_off __initdata; >> static bool param_acpi_force __initdata; >> >> @@ -233,4 +238,9 @@ pgprot_t arch_apei_get_mem_attribute(phys_addr_t addr) >>

[PATCH v2 2/3] clocksource: simplify ACPI code in arm_arch_timer.c

2015-12-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 --- drivers

[PATCH v2 1/3] ACPI: add GTDT table parse driver into ACPI driver

2015-12-01 Thread fu . wei
From: Fu Wei This driver adds support for parsing all kinds of timer in GTDT: (1)arch timer: provide a kernel API to parse all the PPIs and always-on info in GTDT and export them by arch_timer_data struct. (2)memory-mapped timer: provide several kernel APIs to parse GT Block Structure in GTDT

[PATCH v2 3/3] clocksource: add memory-mapped timer support in arm_arch_timer.c

2015-12-01 Thread fu . wei
From: Fu Wei The patch add memory-mapped timer register support for arm_arch_timer driver by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 136 +++ 1 file changed, 136 insertions

[PATCH v2 0/3] ACPI, clocksource: add GTDT and ARM memory-mapped timer support

2015-12-01 Thread fu . wei
From: Fu Wei This patchset: (1)Introduce ACPI GTDT parser: drivers/acpi/gtdt.c Parse all kinds of timer in GTDT table of ACPI:arch timer, memory-mapped timer and SBSA Generic Watchdog timer. This driver can help to simplify all the relevant timer drivers, and separate all

[PATCH v2 2/3] clocksource: simplify ACPI code in arm_arch_timer.c

2015-12-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.or

[PATCH v2 1/3] ACPI: add GTDT table parse driver into ACPI driver

2015-12-01 Thread fu . wei
From: Fu Wei <fu@linaro.org> This driver adds support for parsing all kinds of timer in GTDT: (1)arch timer: provide a kernel API to parse all the PPIs and always-on info in GTDT and export them by arch_timer_data struct. (2)memory-mapped timer: provide several kernel APIs to parse GT

[PATCH v2 3/3] clocksource: add memory-mapped timer support in arm_arch_timer.c

2015-12-01 Thread fu . wei
From: Fu Wei <fu@linaro.org> The patch add memory-mapped timer register support for arm_arch_timer driver by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei <fu@linaro.org> --- drivers/clocksource/arm_arch_t

[PATCH v2 0/3] ACPI, clocksource: add GTDT and ARM memory-mapped timer support

2015-12-01 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset: (1)Introduce ACPI GTDT parser: drivers/acpi/gtdt.c Parse all kinds of timer in GTDT table of ACPI:arch timer, memory-mapped timer and SBSA Generic Watchdog timer. This driver can help to simplify all the relevant timer d

Re: [PATCH RFC 0/3] ACPI, clocksource: add GTDT and ARM memory-mapped timer support

2015-11-09 Thread Fu Wei
Hi all On 28 October 2015 at 22:32, wrote: > From: Fu Wei > > This patchset: > (1)Introduce ACPI GTDT parser: drivers/acpi/gtdt.c > Parse all kinds of timer in GTDT table of ACPI:arch timer, > memory-mapped timer and SBSA Generic Watchdog timer. >

Re: [PATCH RFC 0/3] ACPI, clocksource: add GTDT and ARM memory-mapped timer support

2015-11-09 Thread Fu Wei
Hi all On 28 October 2015 at 22:32, <fu@linaro.org> wrote: > From: Fu Wei <fu@linaro.org> > > This patchset: > (1)Introduce ACPI GTDT parser: drivers/acpi/gtdt.c > Parse all kinds of timer in GTDT table of ACPI:arch timer, > memory-mapped timer a

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

2015-11-08 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 v9 2/5] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

2015-11-08 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 | 7 +++ 1 file changed, 7 insertions(+) diff

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

2015-11-08 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 v9 4/5] Watchdog: introdouce "pretimeout" into framework

2015-11-08 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 v9 1/5] Documentation: add sbsa-gwdt driver documentation

2015-11-08 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. Also add sbsa-gwdt introduction in watchdog-parameters.txt Acked-by: Arnd Bergmann Signed-off-by: Fu Wei

[PATCH v9 0/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-08 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 v9 2/5] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

2015-11-08 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

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

2015-11-08 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>

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

2015-11-08 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 sav

[PATCH v9 4/5] Watchdog: introdouce "pretimeout" into framework

2015-11-08 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 u

[PATCH v9 0/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-08 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-s

[PATCH v9 1/5] Documentation: add sbsa-gwdt driver documentation

2015-11-08 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. Also add sbsa-gwdt introduction in watchdog-parameters.txt Acked-by: Arnd Bergmann <a...

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
gt; 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 Hubin R

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
Hi Guenter, Great thanks for that you are still reviewing this patchset, thanks for your patient. On 6 November 2015 at 00:41, Guenter Roeck wrote: > On 11/05/2015 07:00 AM, Fu Wei wrote: >> >> Hi Timur, >> >> On 5 November 2015 at 22:40, Timur Tabi

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
Hi Timur, On 5 November 2015 at 22:40, Timur Tabi wrote: > Fu Wei wrote: >> >> Did you really read the "Note" above OK, let me paste it again >> and again: >> >> SBSA 2.3 Page 23 : >> If a larger watch period is required the

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
Hi Timur, On 5 November 2015 at 22:08, Timur Tabi wrote: > Fu Wei wrote: >> >> SBSA 2.3 Page 23 : >> Note: the watchdog offset register is 32 bits wide. This gives a >> maximum watch period of around 10s at a system >> counter frequency of 400MHz. If

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
ic Timer) shall run at a minimum frequency of 10MHz and maximum of 400MHz. > > -- > Sent by an employee of the Qualcomm Innovation Center, Inc. > The Qualcomm Innovation Center, Inc. is a member of the > Code Aurora Forum, hosted by The Linux Foundation. -- Best regards

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
d argue that the unless WOR become 64 bit (or more then 32bit), this limitation will be there. > system designers asked for it if they really select the highest possible > clock rate. > even we can make clk to be 100MHz or lower, it is not very helpful for a really server which has big me

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
Hi Timur, On 5 November 2015 at 22:08, Timur Tabi <ti...@codeaurora.org> wrote: > Fu Wei wrote: >> >> SBSA 2.3 Page 23 : >> Note: the watchdog offset register is 32 bits wide. This gives a >> maximum watch period of around 10s at a system >> counter freque

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
ch short timeouts in the watchdog core. Until then, I would argue that the unless WOR become 64 bit (or more then 32bit), this limitation will be there. > system designers asked for it if they really select the highest possible > clock rate. > even we can make clk to be 100MHz or lower, it is n

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
Hi Guenter, Great thanks for that you are still reviewing this patchset, thanks for your patient. On 6 November 2015 at 00:41, Guenter Roeck <li...@roeck-us.net> wrote: > On 11/05/2015 07:00 AM, Fu Wei wrote: >> >> Hi Timur, >> >> On 5 November 2015 at 22:40,

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
, 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, Regus One Corporate Avenue,Lev

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
Hi Timur, On 5 November 2015 at 22:40, Timur Tabi <ti...@codeaurora.org> wrote: > Fu Wei wrote: >> >> Did you really read the "Note" above OK, let me paste it again >> and again: >> >> SBSA 2.3 Page 23 : >> If a larger watch period

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-05 Thread Fu Wei
System Counter (of the Generic Timer) shall run at a minimum frequency of 10MHz and maximum of 400MHz. > > -- > Sent by an employee of the Qualcomm Innovation Center, Inc. > The Qualcomm Innovation Center, Inc. is a member of the > Code Aurora Forum, hosted by The Linux Foundation.

Re: [PATCH v8 1/5] Documentation: add sbsa-gwdt driver documentation

2015-11-01 Thread Fu Wei
a hardware with WS1 interrupt we need to handle. > > > -- > 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 (Be

Re: [PATCH v8 1/5] Documentation: add sbsa-gwdt driver documentation

2015-11-01 Thread Fu Wei
Hi Mark, Great thanks for your feedback. On 31 October 2015 at 03:05, Mark Rutland wrote: > On Fri, Oct 30, 2015 at 01:53:24PM -0500, Timur Tabi wrote: >> On 10/30/2015 01:35 PM, Fu Wei wrote: >> >>I think maybe Mark was asking why WS1 is optional, not the WS1 >>

Re: [PATCH v8 1/5] Documentation: add sbsa-gwdt driver documentation

2015-11-01 Thread Fu Wei
Hi Mark, Great thanks for your feedback. On 31 October 2015 at 03:05, Mark Rutland <mark.rutl...@arm.com> wrote: > On Fri, Oct 30, 2015 at 01:53:24PM -0500, Timur Tabi wrote: >> On 10/30/2015 01:35 PM, Fu Wei wrote: >> >>I think maybe Mark was asking why WS1 is o

Re: [PATCH v8 1/5] Documentation: add sbsa-gwdt driver documentation

2015-11-01 Thread Fu Wei
WS1, but I am not sure if there is a hardware with WS1 interrupt we need to handle. > > > -- > 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 Softwar

Re: [PATCH v8 1/5] Documentation: add sbsa-gwdt driver documentation

2015-10-30 Thread Fu Wei
Hi Timur On 31 October 2015 at 01:46, Timur Tabi wrote: > On Tue, Oct 27, 2015 at 11:10 PM, Fu Wei wrote: >> >>> Why is WS1 optional? >> >> According to the description of WS1 in SBSA 2.3 (5.2 Watchdog Operation) >> page 21 >> --

Re: [PATCH v8 1/5] Documentation: add sbsa-gwdt driver documentation

2015-10-30 Thread Fu Wei
Hi Timur On 31 October 2015 at 01:46, Timur Tabi <ti...@codeaurora.org> wrote: > On Tue, Oct 27, 2015 at 11:10 PM, Fu Wei <fu@linaro.org> wrote: >> >>> Why is WS1 optional? >> >> According to the description of WS1 in SBS

[PATCH RFC 1/3] ACPI: add GTDT table parse driver into ACPI driver

2015-10-28 Thread fu . wei
From: Fu Wei This driver adds support for parsing all kinds of timer in GTDT: (1)arch timer: provide a kernel API to parse all the PPIs and always-on info in GTDT and export them by arch_timer_data struct. (2)memory-mapped timer: provide several kernel APIs to parse GT Block Structure in GTDT

[PATCH RFC 2/3] clocksource: simplify ACPI code in arm_arch_timer.c

2015-10-28 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 RFC 0/3] ACPI, clocksource: add GTDT and ARM memory-mapped timer support

2015-10-28 Thread fu . wei
From: Fu Wei This patchset: (1)Introduce ACPI GTDT parser: drivers/acpi/gtdt.c Parse all kinds of timer in GTDT table of ACPI:arch timer, memory-mapped timer and SBSA Generic Watchdog timer. This driver can help to simplify all the relevant timer drivers, and separate all

[PATCH RFC 3/3] clocksource: add memory-mapped timer support in arm_arch_timer.c

2015-10-28 Thread fu . wei
From: Fu Wei The patch add memory-mapped timer register support for arm_arch_timer driver by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 136 +++ 1 file changed, 136 insertions

[PATCH RFC 1/3] ACPI: add GTDT table parse driver into ACPI driver

2015-10-28 Thread fu . wei
From: Fu Wei <fu@linaro.org> This driver adds support for parsing all kinds of timer in GTDT: (1)arch timer: provide a kernel API to parse all the PPIs and always-on info in GTDT and export them by arch_timer_data struct. (2)memory-mapped timer: provide several kernel APIs to parse GT

[PATCH RFC 3/3] clocksource: add memory-mapped timer support in arm_arch_timer.c

2015-10-28 Thread fu . wei
From: Fu Wei <fu@linaro.org> The patch add memory-mapped timer register support for arm_arch_timer driver by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei <fu@linaro.org> --- drivers/clocksource/arm_arch_t

[PATCH RFC 2/3] clocksource: simplify ACPI code in arm_arch_timer.c

2015-10-28 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 RFC 0/3] ACPI, clocksource: add GTDT and ARM memory-mapped timer support

2015-10-28 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset: (1)Introduce ACPI GTDT parser: drivers/acpi/gtdt.c Parse all kinds of timer in GTDT table of ACPI:arch timer, memory-mapped timer and SBSA Generic Watchdog timer. This driver can help to simplify all the relevant timer d

Re: [PATCH v8 1/5] Documentation: add sbsa-gwdt driver documentation

2015-10-27 Thread Fu Wei
Hi Mark Thanks for your rapid feedback, I appreciate your help very much. On 28 October 2015 at 00:22, Mark Rutland wrote: > On Wed, Oct 28, 2015 at 12:06:35AM +0800, fu@linaro.org wrote: >> From: Fu Wei >> >> The sbsa-gwdt.txt documentation in devicet

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

2015-10-27 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 v8 4/5] Watchdog: introdouce "pretimeout" into framework

2015-10-27 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 v8 2/5] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

2015-10-27 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 | 7 +++ 1 file changed, 7 insertions(+) diff

[PATCH v8 0/5] Watchdog: introduce ARM SBSA watchdog driver

2015-10-27 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 v8 1/5] Documentation: add sbsa-gwdt driver documentation

2015-10-27 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. Also add sbsa-gwdt introduction in watchdog-parameters.txt Acked-by: Arnd Bergmann Signed-off-by: Fu Wei

<    5   6   7   8   9   10   11   12   13   14   >