This patchset enables the kernel panic and disk-activity trigger for LEDs
and then enables the panic trigger for three 96Boards - DB410c, Hikey and
Hikey960.
DB410c and Hikey panic behaviour has been tested by triggering a panic
through /proc/sysrq-trigger, while Hikey960 is only compile-tested.
Amit Kucheria (4):
arm64: defconfig: enable new trigger modes for leds
arm64: dts: qcom: apq8016-sbc: Allow USR4 LED to notify kernel panic
arm64: dts: hisilicon: hi6220-hikey: Allow USR1 LED to notify kernel
panic
arm64: dts: hisilicon: hi3660-hikey960: Allow USR4 LED to notify
kernel panic
arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 1 +
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 +
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 1 +
arch/arm64/configs/defconfig | 2 ++
4 files changed, 5 insertions(+)
--
2.7.4
From 1586949600253868820@xxx Sat Dec 16 14:04:35 +0000 2017
X-GM-THRID: 1586049233545695658
X-Gmail-Labels: Inbox,Category Forums
Most development boards and devices have one or more LEDs. It is useful
during debugging if they can be wired to show different behaviours such as
disk or cpu activity or a load-average dependent heartbeat. Enable panic
and disk activity triggers so they can be tied to LED activity during
debugging as well.
Signed-off-by: Amit Kucheria <[email protected]>
---
arch/arm64/configs/defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 34480e9..4ed357f 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -460,6 +460,8 @@ CONFIG_LEDS_SYSCON=y
CONFIG_LEDS_TRIGGER_HEARTBEAT=y
CONFIG_LEDS_TRIGGER_CPU=y
CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
+CONFIG_LEDS_TRIGGER_PANIC=y
+CONFIG_LEDS_TRIGGER_DISK=y
CONFIG_EDAC=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_DRV_MAX77686=y
--
2.7.4
From 1583322710869145310@xxx Mon Nov 06 13:16:43 +0000 2017
X-GM-THRID: 1583322710869145310
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread
Blink the LED on a kernel panic.
Signed-off-by: Amit Kucheria <[email protected]>
Acked-by: Guodong Xu <[email protected]>
Acked-by: Manivannan Sadhasivam <[email protected]>
---
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
index 3aee612..e94fa1a 100644
--- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
@@ -359,6 +359,7 @@
user_led1 {
label = "user_led1";
gpios = <&gpio4 3 0>; /* <&gpio_user_led_4>; */
+ panic-indicator;
linux,default-trigger = "cpu0";
};
--
2.7.4
From 1583223835848019098@xxx Sun Nov 05 11:05:09 +0000 2017
X-GM-THRID: 1583223835848019098
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread
Blink the LED on a kernel panic.
Signed-off-by: Amit Kucheria <[email protected]>
Acked-by: Guodong Xu <[email protected]>
Tested-by: Manivannan Sadhasivam <[email protected]>
---
arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
index e9f87cb..1cf77ee 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
@@ -109,6 +109,7 @@
label = "user_led4";
/* gpio_190_user_led4 */
gpios = <&gpio23 6 0>;
+ panic-indicator;
linux,default-trigger = "cpu0";
};
--
2.7.4
From 1582940421637370220@xxx Thu Nov 02 08:00:24 +0000 2017
X-GM-THRID: 1582940421637370220
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread
Blink the LED on a kernel panic.
Signed-off-by: Amit Kucheria <[email protected]>
Acked-by: Manivannan Sadhasivam <[email protected]>
---
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
index 1d63e6b..e4a6850 100644
--- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
@@ -174,6 +174,7 @@
label = "apq8016-sbc:green:user4";
gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "none";
+ panic-indicator;
default-state = "off";
};
--
2.7.4
From 1583528711701962155@xxx Wed Nov 08 19:51:01 +0000 2017
X-GM-THRID: 1583528711701962155
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread