All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC v2 0/3] nvme: add passthrough error logging opt-in
@ 2023-03-23 23:03 Alan Adamson
  2023-03-23 23:03 ` [RFC v2 1/3] nvme: move fault injector to nvme-debugfs.c Alan Adamson
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Alan Adamson @ 2023-03-23 23:03 UTC (permalink / raw)
  To: linux-nvme; +Cc: alan.adamson, p.raghav, kbusch, hch, sagi

v2:
- Included Pankaj Raghav's patch 'nvme: ignore starting sector while error logging for passthrough requests'
  with a couple changes.
- Moved error_logging flag to nvme_ctrl structure
- The entire nvme-debugfs.c does not need to be guarded by #ifdef CONFIG_FAULT_INJECTION_DEBUG_FS.
- Use IS_ENABLED((CONFIG_NVME_ERROR_LOGGING_DEBUG_FS)) to determine if error logging should be
  initialized.
- Various other nits.

  
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 1 > /sys/kernel/debug/nvme0/error-logging

To disable passthrough error logging:
	echo 0 > /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] 17+ messages in thread

end of thread, other threads:[~2023-03-30 16:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 23:03 [RFC v2 0/3] nvme: add passthrough error logging opt-in Alan Adamson
2023-03-23 23:03 ` [RFC v2 1/3] nvme: move fault injector to nvme-debugfs.c Alan Adamson
2023-03-27 11:08   ` Pankaj Raghav
2023-03-28  0:56   ` Christoph Hellwig
2023-03-28  8:53     ` Sagi Grimberg
2023-03-23 23:03 ` [RFC v2 2/3] nvme: add error logging opt-in Alan Adamson
2023-03-28  0:57   ` Christoph Hellwig
2023-03-28  8:56     ` Sagi Grimberg
2023-03-28 20:45     ` alan.adamson
2023-03-29  6:37       ` Sagi Grimberg
2023-03-29 16:08         ` alan.adamson
2023-03-30 13:38           ` Sagi Grimberg
2023-03-30 16:24             ` alan.adamson
2023-03-23 23:03 ` [RFC v2 3/3] nvme: ignore starting sector while error logging for passthrough requests Alan Adamson
2023-03-28  0:55   ` Christoph Hellwig
2023-03-28  8:56     ` Sagi Grimberg
2023-03-28 20:39       ` alan.adamson

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.