Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread Guenter Roeck
On 02/03/2016 03:00 PM, Fu Wei wrote: On 4 February 2016 at 02:45, Timur Tabi wrote: Fu Wei wrote: As you know I have made the pre-timeout support patch, If people like it, i am happy to go on upstream it separately. If we want to use pre-timeout here, user only can use get_pretimeout and di

Re: module: s390: keep mod_arch_specific for livepatch modules

2016-02-03 Thread Jessica Yu
+++ Jessica Yu [03/02/16 20:11 -0500]: Livepatch needs to utilize the symbol information contained in the mod_arch_specific struct in order to be able to call the s390 apply_relocate_add() function to apply relocations. Keep a reference to syminfo if the module is a livepatch module. Remove the r

[RFC PATCH v4 2/6] module: preserve Elf information for livepatch modules

2016-02-03 Thread Jessica Yu
For livepatch modules, copy Elf section, symbol, and string information from the load_info struct in the module loader. Persist copies of the original symbol table and string table. Livepatch manages its own relocation sections in order to reuse module loader code to write relocations. Livepatch m

[RFC PATCH v4 1/6] Elf: add livepatch-specific Elf constants

2016-02-03 Thread Jessica Yu
Livepatch manages its own relocation sections and symbols in order to be able to reuse module loader code to write relocations. This removes livepatch's dependence on separate "dynrela" sections to write relocations and also allows livepatch to patch modules that are not yet loaded. The livepatch

[RFC PATCH v4 5/6] samples: livepatch: mark as livepatch module

2016-02-03 Thread Jessica Yu
Mark the module as a livepatch module so that the module loader can appropriately identify and initialize it. Signed-off-by: Jessica Yu --- samples/livepatch/livepatch-sample.c | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/livepatch/livepatch-sample.c b/samples/livepatch/livepatch

[RFC PATCH v4 3/6] module: s390: keep mod_arch_specific for livepatch modules

2016-02-03 Thread Jessica Yu
Livepatch needs to utilize the symbol information contained in the mod_arch_specific struct in order to be able to call the s390 apply_relocate_add() function to apply relocations. Keep a reference to syminfo if the module is a livepatch module. Remove the redundant vfree() in module_finalize() sin

[RFC PATCH v4 6/6] Documentation: livepatch: outline Elf format and requirements for patch modules

2016-02-03 Thread Jessica Yu
Document livepatch module requirements and the special Elf constants patch modules use. Signed-off-by: Jessica Yu --- Documentation/livepatch/module-elf-format.txt | 311 ++ 1 file changed, 311 insertions(+) create mode 100644 Documentation/livepatch/module-elf-format.tx

[RFC PATCH v4 4/6] livepatch: reuse module loader code to write relocations

2016-02-03 Thread Jessica Yu
Reuse module loader code to write relocations, thereby eliminating the need for architecture specific relocation code in livepatch. Specifically, reuse the apply_relocate_add() function in the module loader to write relocations instead of duplicating functionality in livepatch's arch-dependent klp_

[RFC PATCH v4 0/6] (mostly) Arch-independent livepatch

2016-02-03 Thread Jessica Yu
This patchset removes livepatch's need for architecture-specific relocation code by leveraging existing code in the module loader to perform arch-dependent work. Specifically, instead of duplicating code and re-implementing what the apply_relocate_add() function in the module loader already does in

[PATCH v5 00/23] powerpc/8xx: Use large pages for RAM and IMMR and other improvments

2016-02-03 Thread Christophe Leroy
The main purpose of this patchset is to dramatically reduce the time spent in DTLB miss handler. This is achieved by: 1/ Mapping RAM with 8M pages 2/ Mapping IMMR with a fixed 512K page On a live running system (VoIP gateway for Air Trafic Control), over a 10 minutes period (with 277s idle), we ge

[PATCH v5 03/23] powerpc: Update documentation for noltlbs kernel parameter

2016-02-03 Thread Christophe Leroy
Now the noltlbs kernel parameter is also applicable to PPC8xx Signed-off-by: Christophe Leroy --- v2: no change v3: no change v4: no change v5: no change Documentation/kernel-parameters.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/kernel-parameters.txt

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread Fu Wei
On 4 February 2016 at 02:45, Timur Tabi wrote: > Fu Wei wrote: >> >> As you know I have made the pre-timeout support patch, If people like >> it, i am happy to go on upstream it separately. >> >> If we want to use pre-timeout here, user only can use get_pretimeout >> and disable panic by setting p

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread Timur Tabi
Fu Wei wrote: As you know I have made the pre-timeout support patch, If people like it, i am happy to go on upstream it separately. If we want to use pre-timeout here, user only can use get_pretimeout and disable panic by setting pretimeout to 0 but user can not really set pretimeout, because "p

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread Fu Wei
On 4 February 2016 at 02:26, Timur Tabi wrote: > Fu Wei wrote: >> >> Actually, >> the SBSA watchdog driver should support only half-timeout for panic >> the user cannot configure the length of "panic time", He can only >> enable it, and it is automatically set to 1/2 timeout. >> >> we don't need

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread Timur Tabi
Fu Wei wrote: Actually, the SBSA watchdog driver should support only half-timeout for panic the user cannot configure the length of "panic time", He can only enable it, and it is automatically set to 1/2 timeout. we don't need pre-timeout here. Hope I understand you correctly:-) sorry for yo

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread Fu Wei
On 4 February 2016 at 02:08, Timur Tabi wrote: > Fu Wei wrote: >> >> Actually I am taking your suggestion to avoid touching WCV in >> interrupt routine. >> So even we have pre-timeout support , it is useless for this >> panic-on-half-timeout feature, >> because pre-timeout == timeout / 2 (always)

Re: [PATCH v10 4/5] Watchdog: introduce ARM SBSA watchdog driver

2016-02-03 Thread Timur Tabi
Fu Wei wrote: static const struct platform_device_id sbsa_gwdt_pdev_match[] = { { .name = "sbsa-gwdt", }, {}, }; MODULE_DEVICE_TABLE(platform, sbsa_gwdt_pdev_match); Ok, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majord...@vge

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread Timur Tabi
Fu Wei wrote: Actually I am taking your suggestion to avoid touching WCV in interrupt routine. So even we have pre-timeout support , it is useless for this panic-on-half-timeout feature, because pre-timeout == timeout / 2 (always). So maybe I misunderstand your suggestion, could you let me know

Re: [PATCH v10 4/5] Watchdog: introduce ARM SBSA watchdog driver

2016-02-03 Thread Fu Wei
On 4 February 2016 at 01:58, Timur Tabi wrote: > Fu Wei wrote: >> >> I have posted GTDT support separately :https://lkml.org/lkml/2016/2/1/660 >> >> devicetree driver and GTDT driver both export sbsa gwdt info to >> "platform resource". >> >> this driver get hardware info from platform resource.

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread Fu Wei
Hi Timur On 4 February 2016 at 01:53, Timur Tabi wrote: > Fu Wei wrote: >> >> sorry, are you saying : using pre-timeout instead of this half timeout? >> >> But even we have pre-timeout support, pre-timeout == timeout / 2, it >> can not be configured without touch timeout. >> >> if you want pre-t

Re: [PATCH v10 4/5] Watchdog: introduce ARM SBSA watchdog driver

2016-02-03 Thread Timur Tabi
Fu Wei wrote: I have posted GTDT support separately :https://lkml.org/lkml/2016/2/1/660 devicetree driver and GTDT driver both export sbsa gwdt info to "platform resource". this driver get hardware info from platform resource. I must be missing something. How does the driver probe? It only

Re: [PATCH v10 4/5] Watchdog: introduce ARM SBSA watchdog driver

2016-02-03 Thread Fu Wei
Hi Timur, On 4 February 2016 at 01:48, Timur Tabi wrote: > fu@linaro.org wrote: >> >> +static struct platform_driver sbsa_gwdt_driver = { >> + .driver = { >> + .name = "sbsa-gwdt", >> + .pm = &sbsa_gwdt_pm_ops, >> + .of_match_table = sbsa_gwdt_o

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread Timur Tabi
Fu Wei wrote: sorry, are you saying : using pre-timeout instead of this half timeout? But even we have pre-timeout support, pre-timeout == timeout / 2, it can not be configured without touch timeout. if you want pre-timeout != timeout / 2, we have to modify WCV in the interrupt routine. (be

Re: [PATCH v10 4/5] Watchdog: introduce ARM SBSA watchdog driver

2016-02-03 Thread Timur Tabi
fu@linaro.org wrote: +static struct platform_driver sbsa_gwdt_driver = { + .driver = { + .name = "sbsa-gwdt", + .pm = &sbsa_gwdt_pm_ops, + .of_match_table = sbsa_gwdt_of_match, + }, + .probe = sbsa_gwdt_probe, + .remove = sbsa_

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread Fu Wei
Hi Timur, Thanks for your rapid feedback :-) On 4 February 2016 at 01:27, Timur Tabi wrote: > fu@linaro.org wrote: >> >> +#ifdef CONFIG_ARM_SBSA_WATCHDOG_PANIC >> +static bool panic_enabled = true; > > > I think this should default to 'false', because IMHO, this seems like an odd yes, It ma

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread Timur Tabi
fu@linaro.org wrote: +#ifdef CONFIG_ARM_SBSA_WATCHDOG_PANIC +static bool panic_enabled = true; I think this should default to 'false', because IMHO, this seems like an odd feature. I'm not crazy about the fact that there's a Kconfig option for it either, but I'm not going to NACK this pa

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

2016-02-03 Thread fu . wei
From: Fu Wei According to Server Base System Architecture (SBSA) specification, the SBSA Generic Watchdog has two stage timeouts: the first signal (WS0) is for alerting the system by interrupt, the second one (WS1) is a real hardware reset. This patch initially implements a simple single stage w

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

2016-02-03 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: Suravee Suthikulpanit Signed-off-by: Fu Wei --- arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi | 9 +++

[PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread fu . wei
From: Fu Wei This patch registers the WS0 interrupt routine to trigger panic, when the watchdog reachs the first stage (the half timeout). This function can help administrator to backup the system context info by panic console output or kdump (if supported), once system goes wrong (doesn't feed t

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

2016-02-03 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 Acked-by: Rob Herring Signed-off

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

2016-02-03 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)Introd

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

2016-02-03 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 | 8 1 file changed, 8 insertions(+) diff

Re: [PATCH] mm: vmpressure: make vmpressure_window a tunable.

2016-02-03 Thread Johannes Weiner
On Wed, Feb 03, 2016 at 11:06:20AM +0100, Martijn Coenen wrote: > The window size used for calculating vm pressure > events was previously fixed at 512 pages. The > window size has a big impact on the rate of notifications > sent off to userspace, in particular when using the > "low" level. On mach

Re: [PATCH] hpet: drop stale link

2016-02-03 Thread Michael S. Tsirkin
On Wed, Feb 03, 2016 at 11:53:07AM +0100, Ingo Molnar wrote: > > * Michael S. Tsirkin wrote: > > > Looks like the HPET spec at intel.com got moved. > > It isn't hard to find so drop the link, just mention > > the revision assumed. > > > > Suggested-by: Thomas Gleixner > > Signed-off-by: Michae

[PATCH] mm: vmpressure: make vmpressure_window a tunable.

2016-02-03 Thread Martijn Coenen
The window size used for calculating vm pressure events was previously fixed at 512 pages. The window size has a big impact on the rate of notifications sent off to userspace, in particular when using the "low" level. On machines with a lot of memory, the current value may be excessive. On the ot

Re: [PATCH] hpet: drop stale link

2016-02-03 Thread Ingo Molnar
* Michael S. Tsirkin wrote: > Looks like the HPET spec at intel.com got moved. > It isn't hard to find so drop the link, just mention > the revision assumed. > > Suggested-by: Thomas Gleixner > Signed-off-by: Michael S. Tsirkin > --- > drivers/char/hpet.c | 2 +- > Documentation/ti

Re: [PATCH V2 2/6] stm class: adds a loop to extract the first valid STM device name

2016-02-03 Thread kbuild test robot
Hi Chunyan, [auto build test WARNING on robh/for-next] [also build test WARNING on v4.5-rc2 next-20160203] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Chunyan-Zhang/Introduce-CoreSight-STM

[PATCH] stm class: fix semicolon.cocci warnings

2016-02-03 Thread kbuild test robot
drivers/hwtracing/stm/policy.c:341:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Chunyan Zhang Signed-off-by: Fengguang Wu --- policy.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hwtracing/stm/polic

Re: [GIT PULL 00/16] perf/core improvements and fixes

2016-02-03 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > This is on top of the previously submitted perf-core-for-mingo tag, > please consider applying, > > - Arnaldo > > The following changes since commit 5ac76283b32b116c58e362e99542182ddcfc8262: > > perf cpumap: Auto initialize cpu__max_{n

Re: [PATCH v3 01/10] drm/hisilicon: Add device tree binding for hi6220 display subsystem

2016-02-03 Thread Xinliang Liu
On 1 February 2016 at 23:10, Rob Herring wrote: > On Sat, Jan 30, 2016 at 04:54:26PM +0800, Xinliang Liu wrote: >> Add ADE display controller binding doc. >> Add DesignWare DSI Host Controller v1.20a binding doc. >> >> Signed-off-by: Xinliang Liu >> >> v3: >> - Make ade as the drm master node. >>

[PATCH V2 4/6] Documentations: Add explanations of the case for non-configurable masters

2016-02-03 Thread Chunyan Zhang
For some STM hardware (e.g. ARM CoreSight STM), the masterID associated to a source is set at the hardware level and not user configurable. Since the masterID information isn't available to SW, introducing a new value of -1 to reflect this reality. Signed-off-by: Chunyan Zhang --- Documentation/

[PATCH V2 5/6] coresight-stm: Bindings for System Trace Macrocell

2016-02-03 Thread Chunyan Zhang
From: Mathieu Poirier The System Trace Macrocell (STM) is an IP block falling under the CoreSight umbrella. It's main purpose it so expose stimulus channels to any system component for the purpose of information logging. Bindings for this IP block adds a couple of items to the current mandatory

[PATCH V2 6/6] coresight-stm: adding driver for CoreSight STM component

2016-02-03 Thread Chunyan Zhang
From: Pratik Patel This driver adds support for the STM CoreSight IP block, allowing any system compoment (HW or SW) to log and aggregate messages via a single entity. The CoreSight STM exposes an application defined number of channels called stimulus port. Configuration is done using entries in

[PATCH V2 3/6] stm class: provision for statically assigned masterIDs

2016-02-03 Thread Chunyan Zhang
From: Mathieu Poirier Some architecture like ARM assign masterIDs statically at the HW design phase, making masterID manipulation in the generic STM core irrelevant. This patch adds a new 'mstatic' flag to struct stm_data that tells the core that this specific STM device doesn't need explicit ma

[PATCH V2 1/6] stm class: Add ioctl get_options interface

2016-02-03 Thread Chunyan Zhang
There is already an interface of set_options, but no get_options yet. Before setting any options, one would may want to see the current status of that option by means of get_options interface. This interface has been used in CoreSight STM driver. Signed-off-by: Chunyan Zhang --- drivers/hwtracin

[PATCH V2 2/6] stm class: adds a loop to extract the first valid STM device name

2016-02-03 Thread Chunyan Zhang
The node name of STM master management policy is a concatenation of an STM device name to which this policy applies and following an arbitrary string, these two strings are concatenated with a dot. This patch adds a loop for extracting the STM device name when an arbitrary number of dot(s) are fou

[PATCH V2 0/6] Introduce CoreSight STM support

2016-02-03 Thread Chunyan Zhang
This patchset adds support for CoreSight STM IP block. It also makes a little modification to the generic STM framework to cover the CoreSight STM requirements. Full description follows the changelog. Changes from v1: - Added a definition of coresight_simple_func() in CS-STM driver to avoid th

[PATCH V2 0/6] Introduce CoreSight STM support

2016-02-03 Thread Chunyan Zhang
This patchset adds support for CoreSight STM IP block. It also makes a little modification to the generic STM framework to cover the CoreSight STM requirements. Full description follows the changelog. Changes from v1: - Added a definition of coresight_simple_func() in CS-STM driver to avoid th