linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] nvme: add passthrough error logging opt-in
@ 2023-03-16 23:49 Alan Adamson
  2023-03-16 23:49 ` [RFC 1/2] nvme: move fault injector to nvme-debugfs.c Alan Adamson
  2023-03-16 23:49 ` [RFC 2/2] nvme: add error logging opt-in Alan Adamson
  0 siblings, 2 replies; 6+ messages in thread
From: Alan Adamson @ 2023-03-16 23:49 UTC (permalink / raw)
  To: linux-nvme; +Cc: alan.adamson, kbusch, hch, sagi

Commit d7ac8dca938c ("nvme: quiet user passthrough command errors") disabled error
logging for user passthrough commands.  This commit adds the ability to opt in
to passthrough error logging via debugfs.

Currently nvme uses debugfs for nvme fault injection. A change is needed to extend
the nvme debugfs implementation to go beyond error injection.

Move Fault Injection to nvme-debugfs.c.  Add new config parameter (CONFIG_NVME_FAULT_INJECTION_DEBUG_FS)
which enables the compilation of Fault Injection functionality.  Other consumers 
of nvme-debugfs can be added without requiring Fault Injection.

Add new consumer of nvme-debugfs (CONFIG_NVME_ERROR_LOGGING_DEBUG_FS) that provides the
ability of passthrough error logging.

To enable passthrough error logging:
	echo Y > /sys/kernel/debug/nvme0/error-logging

To disable passthrough error logging:
	echo N > /sys/kernel/debug/nvme0/error-logging

By default, passthrough error logging will remain disabled.

Signed-off-by: Alan Adamson <alan.adamson@oracle.com>


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

end of thread, other threads:[~2023-03-22 23:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-16 23:49 [RFC 0/2] nvme: add passthrough error logging opt-in Alan Adamson
2023-03-16 23:49 ` [RFC 1/2] nvme: move fault injector to nvme-debugfs.c Alan Adamson
2023-03-16 23:49 ` [RFC 2/2] nvme: add error logging opt-in Alan Adamson
2023-03-17  8:44   ` Chaitanya Kulkarni
     [not found]   ` <CGME20230317090114eucas1p11073fbdbca45d20600789ec121d4470e@eucas1p1.samsung.com>
2023-03-17  8:52     ` Pankaj Raghav
2023-03-22 23:06       ` alan.adamson

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).