mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: alex.lemberg@wdc.com, Stanislav Nijnikov <stanislav.nijnikov@wdc.com>
Subject: [PATCH v1 0/9] ufs: sysfs: read-only access to device descriptors, attributes and flags
Date: Mon, 25 Dec 2017 10:34:29 +0200	[thread overview]
Message-ID: <1514190878-5571-1-git-send-email-stanislav.nijnikov@wdc.com> (raw)

This patch introduces sysfs entries that will provide read-only access to
device management data that could be received with UFS query requests.
User-space applications will be able to read UFS device descriptors,
flags and attributes. This will allow to get full UFS device configuration
and its status. The descriptors are provided as set of files representing
its parameters. The flags are using "true"/"false" representation of
their value. The attributes are shown as hexadecimal value. The
descriptors, attributes and flags are placed in separate subfolders under
the UFS device sysfs entry (/sys/bus/platform/drivers/ufshcd/*/). The
string descriptor subfolder contains five string descriptors defined by
UFS specification 2.1. The LUN specific descriptor and attribute are 
placed under corresponding SCSI device sysfs entries
(/sys/class/scsi_device/*/device/).
In addition the patch presents an additional field in the
scsi_host_template structure - struct attribute_group **sdev_group.
This field allows to define groups of attributes. It will provide an
ability to use binary attributes in addition to device attributes and
to group them under subfolders if necessary.

Stanislav Nijnikov (9):
  ufs: sysfs: device descriptor
  ufs: sysfs: interconnect descriptor
  ufs: sysfs: geometry descriptor
  ufs: sysfs: health descriptor
  ufs: sysfs: power descriptor
  ufs: sysfs: string descriptors
  ufs: sysfs: unit descriptor
  ufs: sysfs: flags
  ufs: sysfs: attributes

 Documentation/ABI/testing/sysfs-driver-ufs | 804 +++++++++++++++++++++++++++++
 drivers/scsi/scsi_sysfs.c                  |  14 +
 drivers/scsi/ufs/Makefile                  |   2 +-
 drivers/scsi/ufs/ufs-sysfs.c               | 643 +++++++++++++++++++++++
 drivers/scsi/ufs/ufs-sysfs.h               |  14 +
 drivers/scsi/ufs/ufs.h                     | 115 ++++-
 drivers/scsi/ufs/ufshcd.c                  |  52 +-
 drivers/scsi/ufs/ufshcd.h                  |  25 +
 include/scsi/scsi_host.h                   |   6 +
 9 files changed, 1642 insertions(+), 33 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-ufs
 create mode 100644 drivers/scsi/ufs/ufs-sysfs.c
 create mode 100644 drivers/scsi/ufs/ufs-sysfs.h

-- 
2.7.4

             reply	other threads:[~2017-12-25  8:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-25  8:34 Stanislav Nijnikov [this message]
2017-12-25  8:34 ` [PATCH v1 1/9] ufs: sysfs: device descriptor Stanislav Nijnikov
2017-12-26  1:57   ` kbuild test robot
2017-12-26  2:47   ` kbuild test robot
2017-12-25  8:34 ` [PATCH v1 2/9] ufs: sysfs: interconnect descriptor Stanislav Nijnikov
2017-12-25  8:34 ` [PATCH v1 3/9] ufs: sysfs: geometry descriptor Stanislav Nijnikov
2017-12-25  8:34 ` [PATCH v1 4/9] ufs: sysfs: health descriptor Stanislav Nijnikov
2017-12-25  8:34 ` [PATCH v1 5/9] ufs: sysfs: power descriptor Stanislav Nijnikov
2017-12-25  8:34 ` [PATCH v1 6/9] ufs: sysfs: string descriptors Stanislav Nijnikov
2017-12-26  4:45   ` kbuild test robot
2017-12-25  8:34 ` [PATCH v1 7/9] ufs: sysfs: unit descriptor Stanislav Nijnikov
2017-12-26  8:22   ` kbuild test robot
2017-12-25  8:34 ` [PATCH v1 8/9] ufs: sysfs: flags Stanislav Nijnikov
2017-12-26 12:29   ` kbuild test robot
2017-12-25  8:34 ` [PATCH v1 9/9] ufs: sysfs: attributes Stanislav Nijnikov
2017-12-26 16:58   ` kbuild test robot
2017-12-27 13:49 [PATCH v1 0/9] ufs: sysfs: read-only access to device descriptors, attributes and flags Stanislav Nijnikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1514190878-5571-1-git-send-email-stanislav.nijnikov@wdc.com \
    --to=stanislav.nijnikov@wdc.com \
    --cc=alex.lemberg@wdc.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®