Re: [PATCH] hibernation: on 32-bit x86, disabled in favor of KASLR

2017-03-25 Thread Evgenii Shatokhin
On 23.03.2017 18:30, Rafael J. Wysocki wrote: On Thu, Mar 23, 2017 at 2:23 PM, Evgenii Shatokhin wrote: On 23.03.2017 03:27, Kees Cook wrote: This is a modified revert of commit 65fe935dd238 ("x86/KASLR, x86/power: Remove x86 hibernation restrictions"), since it appears that 32-bit hibernatio

Re: [PATCH] hibernation: on 32-bit x86, disabled in favor of KASLR

2017-03-25 Thread Kees Cook
On Sat, Mar 25, 2017 at 7:54 AM, Evgenii Shatokhin wrote: > On 23.03.2017 18:30, Rafael J. Wysocki wrote: >> >> On Thu, Mar 23, 2017 at 2:23 PM, Evgenii Shatokhin >> wrote: >>> >>> On 23.03.2017 03:27, Kees Cook wrote: This is a modified revert of commit 65fe935dd238 ("x86/KASLR, x

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

2017-03-25 Thread Leo Yan
Update kernel-parameters.txt to add two new parameters: - coresight_cpu_debug.enable is a knob to enable debugging at boot time. - coresight_cpu_debug.idle_constraint is used to constrain idle states to ensure Coresight CPU debug component can be accessible. Signed-off-by: Leo Yan --- Documen

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

2017-03-25 Thread Leo Yan
Add debug unit on Qualcomm msm8916 based platforms, including the DragonBoard 410c board. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boo

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

2017-03-25 Thread Leo Yan
Bind debug module driver for Hi6220. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 64 +++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 470461d..467

[PATCH v5 7/9] clk: hi6220: add debug APB clock

2017-03-25 Thread Leo Yan
The debug APB clock is absent in hi6220 driver, so this patch is to add support for it. Signed-off-by: Leo Yan --- drivers/clk/hisilicon/clk-hi6220.c | 1 + include/dt-bindings/clock/hi6220-clock.h | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/hisilic

[PATCH v5 5/9] coresight: use const for device_node structures

2017-03-25 Thread Leo Yan
Almost low level functions from open firmware have used const to qualify device_node structures, so add const for device_node parameters in of_coresight related functions. Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/of_coresight.c | 6 +++--- include/linux/coresight.h

[PATCH v5 3/9] coresight: of_get_coresight_platform_data: Add missing of_node_put

2017-03-25 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 fix is to use of_cpu_dev

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

2017-03-25 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 bugs,

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

2017-03-25 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 v5 4/9] coresight: refactor with function of_coresight_get_cpu

2017-03-25 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 Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/of_coresight.c | 43 +++

[PATCH v5 6/9] coresight: add support for CPU debug module

2017-03-25 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. we