Re: [PATCH 0/4] Introduce the aural error reporting framework

2019-04-02 Thread Matteo Croce
On Tue, Apr 2, 2019 at 11:33 AM Thomas Gleixner wrote: > > On Mon, 1 Apr 2019, Peter Zijlstra wrote: > > On Mon, Apr 01, 2019 at 12:24:51PM +0200, Matteo Croce wrote: > > > The buzzer driver is simple, requires just a few register writes to work, > > > t

[PATCH 5/4] procfs: utility handler to trigger different errors

2019-04-01 Thread Matteo Croce
non root users to crash the system. Signed-off-by: Matteo Croce --- fs/proc/Makefile| 1 + fs/proc/crashtest.c | 43 +++ 2 files changed, 44 insertions(+) create mode 100644 fs/proc/crashtest.c diff --git a/fs/proc/Makefile b/fs/proc/Makefile index

[PATCH 3/4] bug: use the aural error reporting framework to report warnings

2019-04-01 Thread Matteo Croce
Use the new aural error reporting framework to signal kernel bugs. Emit the sound at the end of the __warn(), so the WARN_* are all covered. If panic_on_warn is set, panic() will play its sound and never return, so there is no risk to emit two sounds or the wrong one. Signed-off-by: Matteo Croce

[PATCH 1/4] aural error reporting framework

2019-04-01 Thread Matteo Croce
driver is simple, requires just a few register writes to work, the hardware is extremely cheap and is already present on most machines. Signed-off-by: Matteo Croce --- arch/x86/lib/Makefile | 1 + arch/x86/lib/play.c | 75 +++ include/linux/play.h | 34

[PATCH 4/4] oops: use the aural error reporting framework to report oopses

2019-04-01 Thread Matteo Croce
Use the new aural error reporting framework when reporting an oops. The sound is emitted at the end of oops_exit(), to avoid interfering with other oops actions, like stack dump. Signed-off-by: Matteo Croce --- kernel/panic.c| 18 ++ lib/Kconfig.debug | 10 ++ 2

[PATCH 0/4] Introduce the aural error reporting framework

2019-04-01 Thread Matteo Croce
, creates a procfs handler useful to test the error reporting. Matteo Croce (4): aural error reporting framework panic: use the aural error reporting framework to report panics bug: use the aural error reporting framework to report warnings oops: use the aural error reporting framework

[PATCH 2/4] panic: use the aural error reporting framework to report panics

2019-04-01 Thread Matteo Croce
Use the new aural error reporting framework to signal kernel panic. The error sound is emitted between the stack dump and the kexec jump. Signed-off-by: Matteo Croce --- kernel/panic.c| 25 + lib/Kconfig.debug | 10 ++ 2 files changed, 35 insertions(+) diff