devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] arm64: defconfig: enable additional led triggers
@ 2017-11-06  7:08 Amit Kucheria
  2017-11-06  7:08 ` [PATCH v2 1/4] arm64: defconfig: enable new trigger modes for leds Amit Kucheria
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Amit Kucheria @ 2017-11-06  7:08 UTC (permalink / raw)
  To: amit.kucheria-QSEj5FYQhm4dnm+yROfE0A,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-arm-msm-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	xuwei5-C8/M+/jPZTeaMJb+Lgu22Q, andy.gross-QSEj5FYQhm4dnm+yROfE0A,
	manivannan.sadhasivam-QSEj5FYQhm4dnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA, timur-sgV2jX0FEOL9JmXXK+q4OQ

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

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v2 1/4] arm64: defconfig: enable new trigger modes for leds
  2017-11-06  7:08 [PATCH v2 0/4] arm64: defconfig: enable additional led triggers Amit Kucheria
@ 2017-11-06  7:08 ` Amit Kucheria
  2017-11-06  7:08 ` [PATCH v2 2/4] arm64: dts: qcom: apq8016-sbc: Allow USR4 LED to notify kernel panic Amit Kucheria
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Amit Kucheria @ 2017-11-06  7:08 UTC (permalink / raw)
  To: amit.kucheria, linux-kernel
  Cc: linux-arm-msm, linux-arm-kernel, xuwei5, andy.gross,
	manivannan.sadhasivam, devicetree, timur, Catalin Marinas,
	Will Deacon, Arnd Bergmann, Olof Johansson, Gregory CLEMENT,
	Neil Armstrong, Rob Herring, Heiko Stuebner, Krzysztof Kozlowski

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 <amit.kucheria@linaro.org>
---
 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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2 2/4] arm64: dts: qcom: apq8016-sbc: Allow USR4 LED to notify kernel panic
  2017-11-06  7:08 [PATCH v2 0/4] arm64: defconfig: enable additional led triggers Amit Kucheria
  2017-11-06  7:08 ` [PATCH v2 1/4] arm64: defconfig: enable new trigger modes for leds Amit Kucheria
@ 2017-11-06  7:08 ` Amit Kucheria
  2017-11-06  7:08 ` [PATCH v2 3/4] arm64: dts: hisilicon: hi6220-hikey: Allow USR1 " Amit Kucheria
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Amit Kucheria @ 2017-11-06  7:08 UTC (permalink / raw)
  To: amit.kucheria, linux-kernel
  Cc: linux-arm-msm, linux-arm-kernel, xuwei5, andy.gross,
	manivannan.sadhasivam, devicetree, timur, David Brown,
	Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
	linux-soc

Blink the LED on a kernel panic.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2 3/4] arm64: dts: hisilicon: hi6220-hikey: Allow USR1 LED to notify kernel panic
  2017-11-06  7:08 [PATCH v2 0/4] arm64: defconfig: enable additional led triggers Amit Kucheria
  2017-11-06  7:08 ` [PATCH v2 1/4] arm64: defconfig: enable new trigger modes for leds Amit Kucheria
  2017-11-06  7:08 ` [PATCH v2 2/4] arm64: dts: qcom: apq8016-sbc: Allow USR4 LED to notify kernel panic Amit Kucheria
@ 2017-11-06  7:08 ` Amit Kucheria
  2017-11-06  7:08 ` [PATCH v2 4/4] arm64: dts: hisilicon: hi3660-hikey960: Allow USR4 " Amit Kucheria
  2017-12-06  8:57 ` [PATCH v2 0/4] arm64: defconfig: enable additional led triggers Amit Kucheria
  4 siblings, 0 replies; 9+ messages in thread
From: Amit Kucheria @ 2017-11-06  7:08 UTC (permalink / raw)
  To: amit.kucheria, linux-kernel
  Cc: linux-arm-msm, linux-arm-kernel, xuwei5, andy.gross,
	manivannan.sadhasivam, devicetree, timur, Rob Herring,
	Mark Rutland, Catalin Marinas, Will Deacon

Blink the LED on a kernel panic.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Acked-by: Guodong Xu <guodong.xu@linaro.org>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2 4/4] arm64: dts: hisilicon: hi3660-hikey960: Allow USR4 LED to notify kernel panic
  2017-11-06  7:08 [PATCH v2 0/4] arm64: defconfig: enable additional led triggers Amit Kucheria
                   ` (2 preceding siblings ...)
  2017-11-06  7:08 ` [PATCH v2 3/4] arm64: dts: hisilicon: hi6220-hikey: Allow USR1 " Amit Kucheria
@ 2017-11-06  7:08 ` Amit Kucheria
  2017-12-06  8:57 ` [PATCH v2 0/4] arm64: defconfig: enable additional led triggers Amit Kucheria
  4 siblings, 0 replies; 9+ messages in thread
From: Amit Kucheria @ 2017-11-06  7:08 UTC (permalink / raw)
  To: amit.kucheria, linux-kernel
  Cc: linux-arm-msm, linux-arm-kernel, xuwei5, andy.gross,
	manivannan.sadhasivam, devicetree, timur, Rob Herring,
	Mark Rutland, Catalin Marinas, Will Deacon

Blink the LED on a kernel panic.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Acked-by: Guodong Xu <guodong.xu@linaro.org>
Tested-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 0/4] arm64: defconfig: enable additional led triggers
  2017-11-06  7:08 [PATCH v2 0/4] arm64: defconfig: enable additional led triggers Amit Kucheria
                   ` (3 preceding siblings ...)
  2017-11-06  7:08 ` [PATCH v2 4/4] arm64: dts: hisilicon: hi3660-hikey960: Allow USR4 " Amit Kucheria
@ 2017-12-06  8:57 ` Amit Kucheria
       [not found]   ` <CAHLCerN4sYpU7PJG7JLhAy644s3jz9KD_myKWfOoOkEResPu-Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  4 siblings, 1 reply; 9+ messages in thread
From: Amit Kucheria @ 2017-12-06  8:57 UTC (permalink / raw)
  To: Amit Kucheria, LKML, Arnd Bergmann, Andy Gross
  Cc: linux-arm-msm, lakml, Wei Xu, manivannan.sadhasivam, devicetree, timur

(Adding Arnd)

Now that the merge window rush has abated, can you please apply this
trivial series?

On Mon, Nov 6, 2017 at 12:38 PM, Amit Kucheria <amit.kucheria@linaro.org> wrote:
> 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
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 0/4] arm64: defconfig: enable additional led triggers
       [not found]   ` <CAHLCerN4sYpU7PJG7JLhAy644s3jz9KD_myKWfOoOkEResPu-Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-12-21 15:16     ` Arnd Bergmann
       [not found]       ` <CAK8P3a0+4ACDucmNQ3OL_0UjJnK6d3JXOb6_z5jtMQ986uZkLQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Arnd Bergmann @ 2017-12-21 15:16 UTC (permalink / raw)
  To: Amit Kucheria
  Cc: LKML, Andy Gross, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA, lakml,
	Wei Xu, Manivannan Sadhasivam, DTML, Timur Tabi

On Wed, Dec 6, 2017 at 9:57 AM, Amit Kucheria <amit.kucheria-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> (Adding Arnd)
>
> Now that the merge window rush has abated, can you please apply this
> trivial series?
>
> On Mon, Nov 6, 2017 at 12:38 PM, Amit Kucheria <amit.kucheria-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
>> 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.

I applied all four now, but it would have been easier for me if you had either
sent them to the platform maintainers, or to arm-DgEjT+Ai2yi4UlQgPVntAg@public.gmane.org

      Arnd
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 0/4] arm64: defconfig: enable additional led triggers
       [not found]       ` <CAK8P3a0+4ACDucmNQ3OL_0UjJnK6d3JXOb6_z5jtMQ986uZkLQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2018-01-02  7:19         ` Amit Kucheria
       [not found]           ` <CAP245DUnO6qoXXoAOakQ_HYTTbR+CgO-nQ-Jm5nOaPeySm968g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Amit Kucheria @ 2018-01-02  7:19 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: LKML, Andy Gross, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA, lakml,
	Wei Xu, Manivannan Sadhasivam, DTML, Timur Tabi

On Thu, Dec 21, 2017 at 8:46 PM, Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> wrote:
> On Wed, Dec 6, 2017 at 9:57 AM, Amit Kucheria <amit.kucheria-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
>> (Adding Arnd)
>>
>> Now that the merge window rush has abated, can you please apply this
>> trivial series?
>>
>> On Mon, Nov 6, 2017 at 12:38 PM, Amit Kucheria <amit.kucheria-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
>>> 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.
>
> I applied all four now, but it would have been easier for me if you had either
> sent them to the platform maintainers, or to arm-DgEjT+Ai2yi4UlQgPVntAg@public.gmane.org

The platform maintainers are cc'ed but I guess nobody took them since
the patchset touched 3 different platforms and a common defconfig.

I'll remember to cc arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org in the future but is there any
reason why this email address isn't listed in MAINTAINERS?

Thanks for applying the patches.

Wish you a Happy New Year.

Regards,
Amit
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 0/4] arm64: defconfig: enable additional led triggers
       [not found]           ` <CAP245DUnO6qoXXoAOakQ_HYTTbR+CgO-nQ-Jm5nOaPeySm968g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2018-01-04 16:54             ` Arnd Bergmann
  0 siblings, 0 replies; 9+ messages in thread
From: Arnd Bergmann @ 2018-01-04 16:54 UTC (permalink / raw)
  To: Amit Kucheria
  Cc: LKML, Andy Gross, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA, lakml,
	Wei Xu, Manivannan Sadhasivam, DTML, Timur Tabi

On Tue, Jan 2, 2018 at 8:19 AM, Amit Kucheria <amit.kucheria-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> On Thu, Dec 21, 2017 at 8:46 PM, Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> wrote:
>> On Wed, Dec 6, 2017 at 9:57 AM, Amit Kucheria <amit.kucheria-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
>>> (Adding Arnd)
>>>
>>> Now that the merge window rush has abated, can you please apply this
>>> trivial series?
>>>
>>> On Mon, Nov 6, 2017 at 12:38 PM, Amit Kucheria <amit.kucheria-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
>>>> 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.
>>
>> I applied all four now, but it would have been easier for me if you had either
>> sent them to the platform maintainers, or to arm-DgEjT+Ai2yi4UlQgPVntAg@public.gmane.org
>
> The platform maintainers are cc'ed but I guess nobody took them since
> the patchset touched 3 different platforms and a common defconfig.
>
> I'll remember to cc arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org in the future but is there any
> reason why this email address isn't listed in MAINTAINERS?

We normally want to have all patches merged through the platform
maintainers, and have no ambiguity regarding who picks things up.
More importantly, being listed in the MAINTAINERS file would result
in us getting thousands of patches each merge window mixed in with
the stuff that we actually do need to see, so that would likely be more
lossy and more work for us.

      Arnd
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-01-04 16:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-06  7:08 [PATCH v2 0/4] arm64: defconfig: enable additional led triggers Amit Kucheria
2017-11-06  7:08 ` [PATCH v2 1/4] arm64: defconfig: enable new trigger modes for leds Amit Kucheria
2017-11-06  7:08 ` [PATCH v2 2/4] arm64: dts: qcom: apq8016-sbc: Allow USR4 LED to notify kernel panic Amit Kucheria
2017-11-06  7:08 ` [PATCH v2 3/4] arm64: dts: hisilicon: hi6220-hikey: Allow USR1 " Amit Kucheria
2017-11-06  7:08 ` [PATCH v2 4/4] arm64: dts: hisilicon: hi3660-hikey960: Allow USR4 " Amit Kucheria
2017-12-06  8:57 ` [PATCH v2 0/4] arm64: defconfig: enable additional led triggers Amit Kucheria
     [not found]   ` <CAHLCerN4sYpU7PJG7JLhAy644s3jz9KD_myKWfOoOkEResPu-Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-12-21 15:16     ` Arnd Bergmann
     [not found]       ` <CAK8P3a0+4ACDucmNQ3OL_0UjJnK6d3JXOb6_z5jtMQ986uZkLQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-02  7:19         ` Amit Kucheria
     [not found]           ` <CAP245DUnO6qoXXoAOakQ_HYTTbR+CgO-nQ-Jm5nOaPeySm968g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-04 16:54             ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).