All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/1] soc: fujitsu: Add A64FX diagnostic interrupt driver
@ 2022-03-31  9:22 ` Hitomi Hasegawa
  0 siblings, 0 replies; 31+ messages in thread
From: Hitomi Hasegawa @ 2022-03-31  9:22 UTC (permalink / raw)
  To: linux-arm-kernel, soc, linux-serial, sumit.garg
  Cc: arnd, olof, catalin.marinas, will, gregkh, jirislaby,
	jason.wessel, daniel.thompson, dianders, linux-kernel,
	kgdb-bugreport, peterz, hasegawa-hitomi

The interrupt is set using pseudo-NMI if it is available. Arm has a
diagnostic interrupt feature called "Arm Generic Diagnostic Dump and
Reset device", but the A64FX does not support this feature and instead
has its own device definition.

This patch series assumes that Sumit's patch has been patched.[1]

I tested on FX700:
$ echo 1 > /proc/sys/kernel/sysrq
$ echo HARDLOCKUP > /sys/kernel/debug/provoke-crash/DIRECT
[  124.712351] lkdtm: Performing direct entry HARDLOCKUP
[  147.232096] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
:
:

Send the "chassis power diag" command from the management server
using ipmitool, the following message is shown:
[  206.061770] sysrq: Trigger a crash
[  206.061779] Kernel panic - not syncing: sysrq triggered crash
:
:

Changes in V3:
 - Exclude Sumit's patch.
 - Retest in v5.17.

Changes in V2:
 - Include Sumit's patch.
 - The handler calls handle_sysrq() to use the sysrq feature to cause
   a panic.
 - request_nmi() and request_irq() now use the same handler, and
   the function name of the handler has also changed.
 - Use readl()/writel() instead of readl_relaxed()/writel_relaxed().

[1] https://lore.kernel.org/all/20220307110328.2557655-1-sumit.garg@linaro.org/
V2: https://lore.kernel.org/linux-arm-kernel/20220304064324.331217-3-hasegawa-hitomi@fujitsu.com/
V1: https://lore.kernel.org/linux-arm-kernel/20220218092010.1327309-1-hasegawa-hitomi@fujitsu.com/


Hitomi Hasegawa (1):
  soc: fujitsu: Add A64FX diagnostic interrupt driver

 MAINTAINERS                      |   5 +
 drivers/soc/Kconfig              |   1 +
 drivers/soc/Makefile             |   1 +
 drivers/soc/fujitsu/Kconfig      |  13 +++
 drivers/soc/fujitsu/Makefile     |   3 +
 drivers/soc/fujitsu/a64fx-diag.c | 151 +++++++++++++++++++++++++++++++
 6 files changed, 174 insertions(+)
 create mode 100644 drivers/soc/fujitsu/Kconfig
 create mode 100644 drivers/soc/fujitsu/Makefile
 create mode 100644 drivers/soc/fujitsu/a64fx-diag.c

-- 
2.27.0


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

end of thread, other threads:[~2022-04-28  7:06 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-31  9:22 [PATCH v3 0/1] soc: fujitsu: Add A64FX diagnostic interrupt driver Hitomi Hasegawa
2022-03-31  9:22 ` Hitomi Hasegawa
2022-03-31  9:22 ` [PATCH v3 1/1] " Hitomi Hasegawa
2022-03-31  9:22   ` Hitomi Hasegawa
2022-03-31 11:49   ` Greg KH
2022-03-31 11:49     ` Greg KH
2022-03-31 15:44     ` Arnd Bergmann
2022-03-31 15:44       ` Arnd Bergmann
2022-04-08 13:32       ` Daniel Thompson
2022-04-08 13:32         ` Daniel Thompson
2022-04-08 14:17         ` Arnd Bergmann
2022-04-08 14:17           ` Arnd Bergmann
2022-04-08 14:21           ` Greg KH
2022-04-08 14:21             ` Greg KH
2022-04-08 14:49             ` Arnd Bergmann
2022-04-08 14:49               ` Arnd Bergmann
2022-04-08 14:59               ` Greg KH
2022-04-08 14:59                 ` Greg KH
2022-04-08 15:02               ` Daniel Thompson
2022-04-08 15:02                 ` Daniel Thompson
2022-04-19  8:36                 ` hasegawa-hitomi
2022-04-19  8:36                   ` hasegawa-hitomi
2022-04-28  2:15                   ` hasegawa-hitomi
2022-04-28  2:15                     ` hasegawa-hitomi
2022-04-28  5:45                     ` gregkh
2022-04-28  5:45                       ` gregkh
2022-04-28  7:04                     ` Arnd Bergmann
2022-04-28  7:04                       ` Arnd Bergmann
2022-04-08 10:32     ` hasegawa-hitomi
2022-04-08 10:32       ` hasegawa-hitomi
2022-04-08 10:44       ` Itaru Kitayama

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.