From mboxrd@z Thu Jan 1 00:00:00 1970 From: kenneth.heitke@intel.com (Heitke, Kenneth) Date: Tue, 7 May 2019 11:44:58 -0600 Subject: [PATCH v2 6/7] nvme-pci: add device coredump support In-Reply-To: <1557248314-4238-7-git-send-email-akinobu.mita@gmail.com> References: <1557248314-4238-1-git-send-email-akinobu.mita@gmail.com> <1557248314-4238-7-git-send-email-akinobu.mita@gmail.com> Message-ID: On 5/7/2019 10:58 AM, Akinobu Mita wrote: > This enables to capture snapshot of controller information via device > coredump machanism. s/machanism/mechanism/ > > The nvme device coredump creates the following coredump files. > > - regs: NVMe controller registers (00h to 4Fh) > - sq: Submission queue > - cq: Completion queue > - telemetry-ctrl-log: Telemetry controller-initiated log (if available) > - data: Empty > > The reason for an empty 'data' file is to provide a uniform way to notify > the device coredump is no longer needed by writing the 'data' file. > > Since all existing drivers using the device coredump provide a 'data' file > if the nvme device coredump doesn't provide it, the userspace programs need > to know which driver provides what coredump file. > > Cc: Johannes Berg > Cc: Keith Busch > Cc: Jens Axboe > Cc: Christoph Hellwig > Cc: Sagi Grimberg > Cc: Minwoo Im > Signed-off-by: Akinobu Mita