mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH V3 0/3] sysfs: allow user-space request for devcoredump
@ 2018-01-11  8:36 Arend van Spriel
  2018-01-11  8:36 ` [PATCH V3 1/3] sysfs: add attribute specification for /sysfs/devices/.../coredump Arend van Spriel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Arend van Spriel @ 2018-01-11  8:36 UTC (permalink / raw)
  To: Greg Koah Hartmann; +Cc: LKML, Arend van Spriel

Since commit 833c95456a70 ("device coredump: add new device coredump class")
device drivers have a unified way to provide binary data obtained from a
failing_device to user-space. However, there may be use-cases in which the
driver has no reason to obtain the data, but user-space wants to initiate
it. This adds a coredump device attribute in sysfs when the driver bound to
the device supports the newly added coredump driver callback. As the
devcoredump API offers more than one option, eg. single buffer vs. scatter
list, it is left up to the driver how to invoke the devcoredump API. As an
example this series includes a driver implementation as RFC. There are other
drivers having some form of device firmware coredump that could benefit
from this, but decided to tackle that in another cycle.

These patches apply to the driver-core-next branch of the driver-core
repository.

Arend van Spriel (3):
  sysfs: add attribute specification for /sysfs/devices/.../coredump
  drivers: base: add coredump driver ops
  brcmfmac: pcie: implement .coredump() driver callback

 Documentation/ABI/testing/sysfs-devices-coredump   | 10 ++++++
 drivers/base/dd.c                                  | 40 ++++++++++++++++++----
 .../wireless/broadcom/brcm80211/brcmfmac/pcie.c    | 22 ++++++++++++
 include/linux/device.h                             |  2 +-
 4 files changed, 66 insertions(+), 8 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-coredump

-- 
1.9.1

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

end of thread, other threads:[~2018-01-11  8:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-11  8:36 [PATCH V3 0/3] sysfs: allow user-space request for devcoredump Arend van Spriel
2018-01-11  8:36 ` [PATCH V3 1/3] sysfs: add attribute specification for /sysfs/devices/.../coredump Arend van Spriel
2018-01-11  8:36 ` [PATCH V3 2/3] drivers: base: add coredump driver ops Arend van Spriel
2018-01-11  8:36 ` [RFC V2 3/3] brcmfmac: pcie: implement .coredump() driver callback Arend van Spriel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®