From: "sayali" <sayalil@codeaurora.org>
To: 'Greg Kroah-Hartman' <gregkh@linuxfoundation.org>
Cc: subhashj@codeaurora.org, cang@codeaurora.org,
vivek.gautam@codeaurora.org, rnayak@codeaurora.org,
vinholikatti@gmail.com, jejb@linux.vnet.ibm.com,
martin.petersen@oracle.com, asutoshd@codeaurora.org,
evgreen@chromium.org, linux-scsi@vger.kernel.org,
'Stanislav Nijnikov' <stanislav.nijnikov@wdc.com>,
'Adrian Hunter' <adrian.hunter@intel.com>,
'open list' <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH V2 3/3] scsi: ufs: Add sysfs support for ufs provision
Date: Thu, 14 Jun 2018 17:22:01 +0530 [thread overview]
Message-ID: <000301d403d6$1ed2e790$5c78b6b0$@codeaurora.org> (raw)
In-Reply-To: <20180609072454.GH24148@kroah.com>
-----Original Message-----
From: Greg Kroah-Hartman [mailto:gregkh@linuxfoundation.org]
Sent: Saturday, June 09, 2018 12:55 PM
To: Sayali Lokhande <sayalil@codeaurora.org>
Cc: subhashj@codeaurora.org; cang@codeaurora.org;
vivek.gautam@codeaurora.org; rnayak@codeaurora.org; vinholikatti@gmail.com;
jejb@linux.vnet.ibm.com; martin.petersen@oracle.com;
asutoshd@codeaurora.org; evgreen@chromium.org; linux-scsi@vger.kernel.org;
Stanislav Nijnikov <stanislav.nijnikov@wdc.com>; Adrian Hunter
<adrian.hunter@intel.com>; open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH V2 3/3] scsi: ufs: Add sysfs support for ufs provision
On Fri, Jun 08, 2018 at 04:36:30PM +0530, Sayali Lokhande wrote:
> Add sysfs support to trigger ufs provisioning at runtime.
> Usage : echo <desc_buf> > /sys/bus/platform/drivers/*/
> config_descriptor/ufs_provision
> To check provisioning status:
> cat /sys/bus/platform/drivers/*/config_descriptor/ufs_provision
> 1- > Success (Reboot device to check updated provisioning)
>
> Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
> ---
> Documentation/ABI/testing/sysfs-driver-ufs | 16 ++++
> drivers/scsi/ufs/ufs-sysfs.c | 25 ++++++
> drivers/scsi/ufs/ufs.h | 2 +
> drivers/scsi/ufs/ufshcd.c | 128
+++++++++++++++++++++++++++++
> drivers/scsi/ufs/ufshcd.h | 5 ++
> 5 files changed, 176 insertions(+)
>
> diff --git a/Documentation/ABI/testing/sysfs-driver-ufs
> b/Documentation/ABI/testing/sysfs-driver-ufs
> index 016724e..43419b5 100644
> --- a/Documentation/ABI/testing/sysfs-driver-ufs
> +++ b/Documentation/ABI/testing/sysfs-driver-ufs
> @@ -883,3 +883,19 @@ Contact: Subhash Jadavani <subhashj@codeaurora.org>
> Description: This entry shows the target state of an UFS UIC link
> for the chosen system power management level.
> The file is read only.
> +
> +What:
/sys/bus/platform/drivers/ufshcd/*/config_descriptor/ufs_provision
> +Date: February 2018
> +Contact: Sayali Lokhande <sayalil@codeaurora.org>
> +Description: This file shows the status of runtime ufs provisioning.
> + This can be used to provision ufs device if bConfigDescrLock
is 0.
> + Configuration buffer needs to be written in space separated
format
> + specificied as:
> + echo <bNumberLU> <bBootEnable> <bDescrAccessEn>
<bInitPowerMode>
> + <bHighPriorityLUN> <bSecureRemovalType>
<bInitActiveICCLevel>
> + <wPeriodicRTCUpdate> <bConfigDescrLock> <LUNum> <bLUEnable>
> + <bBootLunID> <size_in_kb> <bDataReliability>
<bLUWriteProtect>
> + <bMemoryType> <bLogicalBlockSize> <bProvisioningType>
> + <wContextCapabilities> > ufs_provision
That's crazy big, please use configfs for this if you really want to
"provision" hardware with a new api. That is what configfs was created for,
do not abuse sysfs like this, it is not a "single" value.
[Sayali] Sure. I will check and update my next patchset accordingly to use
configfs for provisioning at runtime.
thanks,
greg k-h
WARNING: multiple messages have this Message-ID (diff)
From: "sayali" <sayalil@codeaurora.org>
To: "'Greg Kroah-Hartman'" <gregkh@linuxfoundation.org>
Cc: <subhashj@codeaurora.org>, <cang@codeaurora.org>,
<vivek.gautam@codeaurora.org>, <rnayak@codeaurora.org>,
<vinholikatti@gmail.com>, <jejb@linux.vnet.ibm.com>,
<martin.petersen@oracle.com>, <asutoshd@codeaurora.org>,
<evgreen@chromium.org>, <linux-scsi@vger.kernel.org>,
"'Stanislav Nijnikov'" <stanislav.nijnikov@wdc.com>,
"'Adrian Hunter'" <adrian.hunter@intel.com>,
"'open list'" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH V2 3/3] scsi: ufs: Add sysfs support for ufs provision
Date: Thu, 14 Jun 2018 17:22:01 +0530 [thread overview]
Message-ID: <000301d403d6$1ed2e790$5c78b6b0$@codeaurora.org> (raw)
In-Reply-To: <20180609072454.GH24148@kroah.com>
-----Original Message-----
From: Greg Kroah-Hartman [mailto:gregkh@linuxfoundation.org]
Sent: Saturday, June 09, 2018 12:55 PM
To: Sayali Lokhande <sayalil@codeaurora.org>
Cc: subhashj@codeaurora.org; cang@codeaurora.org;
vivek.gautam@codeaurora.org; rnayak@codeaurora.org; vinholikatti@gmail.com;
jejb@linux.vnet.ibm.com; martin.petersen@oracle.com;
asutoshd@codeaurora.org; evgreen@chromium.org; linux-scsi@vger.kernel.org;
Stanislav Nijnikov <stanislav.nijnikov@wdc.com>; Adrian Hunter
<adrian.hunter@intel.com>; open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH V2 3/3] scsi: ufs: Add sysfs support for ufs provision
On Fri, Jun 08, 2018 at 04:36:30PM +0530, Sayali Lokhande wrote:
> Add sysfs support to trigger ufs provisioning at runtime.
> Usage : echo <desc_buf> > /sys/bus/platform/drivers/*/
> config_descriptor/ufs_provision
> To check provisioning status:
> cat /sys/bus/platform/drivers/*/config_descriptor/ufs_provision
> 1- > Success (Reboot device to check updated provisioning)
>
> Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
> ---
> Documentation/ABI/testing/sysfs-driver-ufs | 16 ++++
> drivers/scsi/ufs/ufs-sysfs.c | 25 ++++++
> drivers/scsi/ufs/ufs.h | 2 +
> drivers/scsi/ufs/ufshcd.c | 128
+++++++++++++++++++++++++++++
> drivers/scsi/ufs/ufshcd.h | 5 ++
> 5 files changed, 176 insertions(+)
>
> diff --git a/Documentation/ABI/testing/sysfs-driver-ufs
> b/Documentation/ABI/testing/sysfs-driver-ufs
> index 016724e..43419b5 100644
> --- a/Documentation/ABI/testing/sysfs-driver-ufs
> +++ b/Documentation/ABI/testing/sysfs-driver-ufs
> @@ -883,3 +883,19 @@ Contact: Subhash Jadavani <subhashj@codeaurora.org>
> Description: This entry shows the target state of an UFS UIC link
> for the chosen system power management level.
> The file is read only.
> +
> +What:
/sys/bus/platform/drivers/ufshcd/*/config_descriptor/ufs_provision
> +Date: February 2018
> +Contact: Sayali Lokhande <sayalil@codeaurora.org>
> +Description: This file shows the status of runtime ufs provisioning.
> + This can be used to provision ufs device if bConfigDescrLock
is 0.
> + Configuration buffer needs to be written in space separated
format
> + specificied as:
> + echo <bNumberLU> <bBootEnable> <bDescrAccessEn>
<bInitPowerMode>
> + <bHighPriorityLUN> <bSecureRemovalType>
<bInitActiveICCLevel>
> + <wPeriodicRTCUpdate> <bConfigDescrLock> <LUNum> <bLUEnable>
> + <bBootLunID> <size_in_kb> <bDataReliability>
<bLUWriteProtect>
> + <bMemoryType> <bLogicalBlockSize> <bProvisioningType>
> + <wContextCapabilities> > ufs_provision
That's crazy big, please use configfs for this if you really want to
"provision" hardware with a new api. That is what configfs was created for,
do not abuse sysfs like this, it is not a "single" value.
[Sayali] Sure. I will check and update my next patchset accordingly to use
configfs for provisioning at runtime.
thanks,
greg k-h
next prev parent reply other threads:[~2018-06-14 11:52 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1528455990-24572-1-git-send-email-sayalil@codeaurora.org>
2018-06-08 11:06 ` [PATCH V2 1/3] scsi: ufs: set the device reference clock setting Sayali Lokhande
2018-06-08 11:06 ` Sayali Lokhande
2018-06-08 12:01 ` Adrian Hunter
2018-06-12 19:26 ` Rob Herring
2018-06-14 11:33 ` sayali
2018-06-14 11:33 ` sayali
2018-06-14 13:35 ` Bart Van Assche
2018-06-15 20:37 ` valdis.kletnieks
2018-06-15 20:37 ` valdis.kletnieks
2018-06-15 20:42 ` Bart Van Assche
2018-06-15 20:42 ` Bart Van Assche
2018-06-15 20:53 ` valdis.kletnieks
2018-06-15 20:53 ` valdis.kletnieks
2018-06-15 20:58 ` Bart Van Assche
2018-06-15 20:58 ` Bart Van Assche
2018-06-14 14:29 ` Rob Herring
2018-06-21 8:52 ` sayali
2018-06-21 8:52 ` sayali
2018-07-03 18:04 ` Rob Herring
2018-07-04 13:36 ` Sayali Lokhande
2018-06-08 11:06 ` [PATCH V2 2/3] scsi: ufs: Add ufs provisioning support Sayali Lokhande
2018-06-08 11:06 ` Sayali Lokhande
2018-06-08 11:06 ` [PATCH V2 3/3] scsi: ufs: Add sysfs support for ufs provision Sayali Lokhande
2018-06-08 11:06 ` Sayali Lokhande
2018-06-09 7:24 ` Greg Kroah-Hartman
2018-06-14 11:52 ` sayali [this message]
2018-06-14 11:52 ` sayali
2018-06-09 11:50 ` [RFC PATCH] scsi: ufs: dev_attr_ufs_provision can be static kbuild test robot
2018-06-09 11:50 ` kbuild test robot
2018-06-09 11:50 ` [PATCH V2 3/3] scsi: ufs: Add sysfs support for ufs provision kbuild test robot
2018-06-09 11:50 ` kbuild test robot
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='000301d403d6$1ed2e790$5c78b6b0$@codeaurora.org' \
--to=sayalil@codeaurora.org \
--cc=adrian.hunter@intel.com \
--cc=asutoshd@codeaurora.org \
--cc=cang@codeaurora.org \
--cc=evgreen@chromium.org \
--cc=gregkh@linuxfoundation.org \
--cc=jejb@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=rnayak@codeaurora.org \
--cc=stanislav.nijnikov@wdc.com \
--cc=subhashj@codeaurora.org \
--cc=vinholikatti@gmail.com \
--cc=vivek.gautam@codeaurora.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 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.