Re: [PATCH v11 7/9] coresight: add support for CPU debug module

2017-05-23 Thread Leo Yan
Hi Mathieu, On Tue, May 23, 2017 at 11:39:16AM -0600, Mathieu Poirier wrote: [...] > > +static bool debug_enable; > > +module_param_named(enable, debug_enable, bool, 0600); > > +MODULE_PARM_DESC(enable, "Knob to enable debug functionality " > > +"(default is 0, which means is

[PATCH v12 1/9] coresight: bindings for CPU debug module

2017-05-23 Thread Leo Yan
According to ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter 'Part H: External debug', the CPU can integrate debug module and it can support self-hosted debug and external debug. Especially for supporting self-hosted debug, this means the program can access the debug module from mmio

[PATCH v12 2/9] doc: Add documentation for Coresight CPU debug

2017-05-23 Thread Leo Yan
Add detailed documentation for Coresight CPU debug driver, which contains the info for driver implementation, Mike Leach excellent summary for "clock and power domain". At the end some examples on how to enable the debugging functionality are provided. Suggested-by: Mike Leach

[PATCH v12 3/9] doc: Add coresight_cpu_debug.enable to kernel-parameters.txt

2017-05-23 Thread Leo Yan
Add coresight_cpu_debug.enable to kernel-parameters.txt, this flag is used to enable/disable the CPU sampling based debugging. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- Documentation/admin-guide/kernel-parameters.txt | 7 +++ 1

[PATCH v12 5/9] coresight: of_get_coresight_platform_data: Add missing of_node_put

2017-05-23 Thread Leo Yan
From: Suzuki K Poulose The of_get_coresight_platform_data iterates over the possible CPU nodes to find a given cpu phandle. However it does not drop the reference to the node pointer returned by the of_get_coresight_platform_data. This patch also introduces another minor

[PATCH v12 9/9] arm64: dts: qcom: msm8916: Add debug unit

2017-05-23 Thread Leo Yan
Add debug unit on Qualcomm msm8916 based platforms, including the DragonBoard 410c board. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 32 1 file changed, 32

[PATCH v12 7/9] coresight: add support for CPU debug module

2017-05-23 Thread Leo Yan
Coresight includes debug module and usually the module connects with CPU debug logic. ARMv8 architecture reference manual (ARM DDI 0487A.k) has description for related info in "Part H: External Debug". Chapter H7 "The Sample-based Profiling Extension" introduces several sampling registers, e.g.

[PATCH v12 8/9] arm64: dts: hi6220: register debug module

2017-05-23 Thread Leo Yan
Bind debug module driver for Hi6220. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 64 +++ 1 file changed, 64 insertions(+) diff --git

[PATCH v12 6/9] coresight: refactor with function of_coresight_get_cpu

2017-05-23 Thread Leo Yan
This is refactor to add function of_coresight_get_cpu(), so it's used to retrieve CPU id for coresight component. Finally can use it as a common function for multiple places. Suggested-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose

[PATCH v12 0/9] coresight: enable debug module

2017-05-23 Thread Leo Yan
ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter H7 "The Sample-based Profiling Extension" has description for sampling registers, we can utilize these registers to check program counter value with combined CPU exception level, secure state, etc. So this is helpful for CPU lockup

Re: [kernel-hardening] [PATCH v4 next 0/3] modules: automatic module loading restrictions

2017-05-23 Thread Andy Lutomirski
On Tue, May 23, 2017 at 11:36 AM, Kees Cook wrote: > On Tue, May 23, 2017 at 12:48 AM, Solar Designer wrote: >> For modules_autoload_mode=2, we already seem to have the equivalent of >> modprobe=/bin/true (or does it differ subtly, maybe in return

Re: [PATCH v4 next 1/3] modules:capabilities: allow __request_module() to take a capability argument

2017-05-23 Thread Kees Cook
On Tue, May 23, 2017 at 3:29 AM, Djalal Harouni wrote: > On Tue, May 23, 2017 at 12:20 AM, Kees Cook wrote: >> On Mon, May 22, 2017 at 4:57 AM, Djalal Harouni wrote: >>> This is a preparation patch for the module auto-load restriction

Re: [kernel-hardening] [PATCH v4 next 0/3] modules: automatic module loading restrictions

2017-05-23 Thread Kees Cook
On Tue, May 23, 2017 at 12:48 AM, Solar Designer wrote: > For modules_autoload_mode=2, we already seem to have the equivalent of > modprobe=/bin/true (or does it differ subtly, maybe in return values?), > which I already use at startup on a GPU box like this (preloading >

Re: [PATCH v11 7/9] coresight: add support for CPU debug module

2017-05-23 Thread Mathieu Poirier
On 23 May 2017 at 08:16, Leo Yan wrote: > Coresight includes debug module and usually the module connects with CPU > debug logic. ARMv8 architecture reference manual (ARM DDI 0487A.k) has > description for related info in "Part H: External Debug". > > Chapter H7 "The

Re: [PATCH v11 9/9] arm64: dts: qcom: msm8916: Add debug unit

2017-05-23 Thread Mathieu Poirier
On 23 May 2017 at 08:16, Leo Yan wrote: > Add debug unit on Qualcomm msm8916 based platforms, including the > DragonBoard 410c board. > > Reviewed-by: Mathieu Poirier > Signed-off-by: Leo Yan Andy and David, Would you mind

Re: [PATCH v11 8/9] arm64: dts: hi6220: register debug module

2017-05-23 Thread Mathieu Poirier
On 23 May 2017 at 08:16, Leo Yan wrote: > Bind debug module driver for Hi6220. > > Reviewed-by: Mathieu Poirier > Signed-off-by: Leo Yan Wei and Mark, I think it makes sense to have this go through the coresight tree along

Re: [PATCH 13/41] mmc: host: omap_hsmmc: Add support to set IODELAY values

2017-05-23 Thread Rob Herring
On Fri, May 19, 2017 at 01:45:13PM +0530, Kishon Vijay Abraham I wrote: > The data manual of J6/J6 Eco recommends to set different IODELAY values > depending on the mode in which the MMC/SD is enumerated in order to > ensure IO timings are met. > > Add support to set the IODELAY values depending

Re: [PATCH 2/6] module: use list_for_each_entry_rcu() on find_module_all()

2017-05-23 Thread Miroslav Benes
On Thu, 18 May 2017, Luis R. Rodriguez wrote: > The module list has been using RCU in a lot of other calls > for a while now, we just overlooked changing this one over to > use RCU. > > Signed-off-by: Luis R. Rodriguez > --- > kernel/module.c | 2 +- > 1 file changed, 1

Re: [PATCH 11/41] mmc: host: omap_hsmmc: Add new compatible string to support dra7

2017-05-23 Thread Rob Herring
On Fri, May 19, 2017 at 01:45:11PM +0530, Kishon Vijay Abraham I wrote: > Add a new compatible string "ti,dra7-hsmmc" to support > dra7 and dra72 controllers. Also create a new controller flag > "OMAP_HSMMC_REQUIRE_IODELAY" to specify all controllers that use > "ti,dra7-hsmmc" require iodealy

[PATCH v11 0/9] coresight: enable debug module

2017-05-23 Thread Leo Yan
ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter H7 "The Sample-based Profiling Extension" has description for sampling registers, we can utilize these registers to check program counter value with combined CPU exception level, secure state, etc. So this is helpful for CPU lockup

[PATCH v11 5/9] coresight: of_get_coresight_platform_data: Add missing of_node_put

2017-05-23 Thread Leo Yan
From: Suzuki K Poulose The of_get_coresight_platform_data iterates over the possible CPU nodes to find a given cpu phandle. However it does not drop the reference to the node pointer returned by the of_get_coresight_platform_data. This patch also introduces another minor

[PATCH v11 6/9] coresight: refactor with function of_coresight_get_cpu

2017-05-23 Thread Leo Yan
This is refactor to add function of_coresight_get_cpu(), so it's used to retrieve CPU id for coresight component. Finally can use it as a common function for multiple places. Suggested-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose

Re: [PATCH v4 next 3/3] modules:capabilities: add a per-task modules auto-load mode

2017-05-23 Thread kbuild test robot
Hi Djalal, [auto build test ERROR on next-20170522] url: https://github.com/0day-ci/linux/commits/Djalal-Harouni/modules-automatic-module-loading-restrictions/20170523-193128 config: sparc64-allnoconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705

[PATCH v11 7/9] coresight: add support for CPU debug module

2017-05-23 Thread Leo Yan
Coresight includes debug module and usually the module connects with CPU debug logic. ARMv8 architecture reference manual (ARM DDI 0487A.k) has description for related info in "Part H: External Debug". Chapter H7 "The Sample-based Profiling Extension" introduces several sampling registers, e.g.

[PATCH v11 8/9] arm64: dts: hi6220: register debug module

2017-05-23 Thread Leo Yan
Bind debug module driver for Hi6220. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 64 +++ 1 file changed, 64 insertions(+) diff --git

[PATCH v11 9/9] arm64: dts: qcom: msm8916: Add debug unit

2017-05-23 Thread Leo Yan
Add debug unit on Qualcomm msm8916 based platforms, including the DragonBoard 410c board. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 32 1 file changed, 32

[PATCH v11 1/9] coresight: bindings for CPU debug module

2017-05-23 Thread Leo Yan
According to ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter 'Part H: External debug', the CPU can integrate debug module and it can support self-hosted debug and external debug. Especially for supporting self-hosted debug, this means the program can access the debug module from mmio

[PATCH v11 2/9] doc: Add documentation for Coresight CPU debug

2017-05-23 Thread Leo Yan
Add detailed documentation for Coresight CPU debug driver, which contains the info for driver implementation, Mike Leach excellent summary for "clock and power domain". At the end some examples on how to enable the debugging functionality are provided. Suggested-by: Mike Leach

[PATCH] docs: driver-api: i2c: remove some outdated information

2017-05-23 Thread Wolfram Sang
a) Linux can be an I2C slave meanwhile b) all drivers except one use the driver model currently Update the documentation. Signed-off-by: Wolfram Sang --- Documentation/driver-api/i2c.rst | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

Re: [RFC PATCH] mm, oom: cgroup-aware OOM-killer

2017-05-23 Thread Johannes Weiner
On Tue, May 23, 2017 at 09:07:47AM +0200, Michal Hocko wrote: > On Mon 22-05-17 18:01:16, Roman Gushchin wrote: > > On Sat, May 20, 2017 at 09:37:29PM +0300, Vladimir Davydov wrote: > > > On Thu, May 18, 2017 at 05:28:04PM +0100, Roman Gushchin wrote: > > > ... > > > > +5-2-4. Cgroup-aware OOM

Re: [kernel-hardening] [PATCH v4 next 0/3] modules: automatic module loading restrictions

2017-05-23 Thread Djalal Harouni
On Tue, May 23, 2017 at 1:38 AM, Andy Lutomirski wrote: > On Mon, May 22, 2017 at 4:07 PM, Kees Cook wrote: >> On Mon, May 22, 2017 at 12:55 PM, Djalal Harouni wrote: >>> On Mon, May 22, 2017 at 6:43 PM, Solar Designer

Re: [PATCH 01/29] pinctrl.txt: standardize document format

2017-05-23 Thread Linus Walleij
On Fri, May 19, 2017 at 3:25 AM, Mauro Carvalho Chehab wrote: > Each text file under Documentation follows a different > format. Some doesn't even have titles! > > Change its representation to follow the adopted standard, > using ReST markups for it to be parseable by

Re: [kernel-hardening] [PATCH v4 next 0/3] modules: automatic module loading restrictions

2017-05-23 Thread Solar Designer
> >>> On Mon, May 22, 2017 at 2:08 PM, Solar Designer > >>> wrote: > >>> > On Mon, May 22, 2017 at 01:57:03PM +0200, Djalal Harouni wrote: > >>> >> *) When modules_autoload_mode is set to (2), automatic module loading > >>> >> is > >>> >> disabled for all. Once set, this

Re: [PATCH v5 0/3] watchdog: allow setting deadline for opening /dev/watchdogN

2017-05-23 Thread Rasmus Villemoes
On 2017-05-22 20:07, Alan Cox wrote: > On Mon, 22 May 2017 16:06:36 +0200 > Rasmus Villemoes wrote: > >> If a watchdog driver tells the framework that the device is running, >> the framework takes care of feeding the watchdog until userspace opens >> the device. If

Re: [RFC PATCH] mm, oom: cgroup-aware OOM-killer

2017-05-23 Thread Michal Hocko
On Mon 22-05-17 18:01:16, Roman Gushchin wrote: > On Sat, May 20, 2017 at 09:37:29PM +0300, Vladimir Davydov wrote: > > Hello Roman, > > Hi Vladimir! > > > > > On Thu, May 18, 2017 at 05:28:04PM +0100, Roman Gushchin wrote: > > ... > > > +5-2-4. Cgroup-aware OOM Killer > > > + > > > +Cgroup v2