All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] nvme: allow to handle AER events by kernel drivers
@ 2018-04-13 11:42 Javier González
  2018-04-13 11:43 ` [PATCH] nvme: allow lightnvm to have visibility over AER events Javier González
  0 siblings, 1 reply; 10+ messages in thread
From: Javier González @ 2018-04-13 11:42 UTC (permalink / raw)


In the current AER path, the kernel just picks up the event and re-sends
the async event command to allow the device to report a new event.
Sending the get log page to manage the event itself and clear the device
flag is left to user space for what I can see.

In OCSSD we require some of these events to be handled by LightNVM
targets, thus we need to pull the AER event up the stack in a meaningful
way. The main challenge as I see it is moving the event in a clean way
to the right driver.

This patch is a sketch on how to do this, very much work in progress. If
we could add a bit to the result carried into nvme_result to signal
which events are handled by the kernel, this would be much cleaner. From
here on, drivers could register for specific events and then handled
them accordingly.

Feedback at this early stage is very much appreciated.

Thanks!
Javier

Javier Gonz?lez (1):
  nvme: allow lightnvm to have visibility over AER events

 drivers/nvme/host/core.c     | 37 +++++++++++++++++++++----
 drivers/nvme/host/lightnvm.c | 65 ++++++++++++++++++++++++++++++++++++++++++++
 drivers/nvme/host/nvme.h     |  3 ++
 include/linux/lightnvm.h     | 24 ++++++++++++++++
 include/linux/nvme.h         |  1 +
 5 files changed, 125 insertions(+), 5 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2018-04-16  9:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-13 11:42 [RFC PATCH] nvme: allow to handle AER events by kernel drivers Javier González
2018-04-13 11:43 ` [PATCH] nvme: allow lightnvm to have visibility over AER events Javier González
2018-04-13 15:27   ` Scott Bauer
2018-04-13 18:01     ` Javier Gonzalez
2018-04-13 16:58   ` Keith Busch
2018-04-13 17:55     ` Javier González
2018-04-16  9:16       ` Sagi Grimberg
2018-04-16  9:21         ` Javier González
2018-04-13 17:11   ` Christoph Hellwig
2018-04-13 17:20     ` Javier Gonzalez

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.