From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753233AbdK0Tfo (ORCPT ); Mon, 27 Nov 2017 14:35:44 -0500 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:48894 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753136AbdK0Tfl (ORCPT ); Mon, 27 Nov 2017 14:35:41 -0500 X-IronPort-AV: E=Sophos;i="5.44,465,1505750400"; d="scan'208";a="166196294" From: Bart Van Assche To: "beanhuo@micron.com" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: "gregkh@linuxfoundation.org" , "vinholikatti@gmail.com" Subject: Re: UFS utilities Thread-Topic: UFS utilities Thread-Index: AdNncYPG0gyd+whNRcGnlm6+vqOoMgARVo6A Date: Mon, 27 Nov 2017 19:35:25 +0000 Message-ID: <1511811323.2993.13.camel@wdc.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Bart.VanAssche@wdc.com; x-originating-ip: [199.255.44.171] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY1PR0401MB1534;20:zo562l+x4t4nlDR+wW7WgRgLL9KTpco1RUXKiexZDDOtw8hKx4i04Mrn20szbumMD1Ds5E2JUqloff4TaiiBw8sIRM0R0xs4cdj+/DwhWBti8hWRAiEynWGk3Bc40P/vnfkkUndlgyZuo+ZsxTki2cBPV6tx3A0Z/13s/4W5zu4= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 474c9048-096b-4d3f-7215-08d535ce0270 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199);SRVR:CY1PR0401MB1534; x-ms-traffictypediagnostic: CY1PR0401MB1534: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(20161123555025)(20161123560025)(20161123562025)(6072148)(201708071742011);SRVR:CY1PR0401MB1534;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY1PR0401MB1534; x-forefront-prvs: 0504F29D72 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(346002)(376002)(39860400002)(366004)(199003)(52314003)(24454002)(189002)(377424004)(6486002)(101416001)(6506006)(77096006)(3280700002)(6436002)(3660700001)(50986999)(76176999)(54356999)(2501003)(8676002)(6246003)(97736004)(4001150100001)(102836003)(3846002)(2906002)(103116003)(81166006)(6116002)(229853002)(105586002)(7116003)(189998001)(478600001)(305945005)(5660300001)(81156014)(106356001)(6512007)(7736002)(2950100002)(53936002)(25786009)(68736007)(36756003)(2900100001)(316002)(2201001)(14454004)(39060400002)(86362001)(54906003)(110136005)(72206003)(33646002)(4326008)(221733001)(99286004)(3480700004)(8936002)(66066001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0401MB1534;H:CY1PR0401MB1536.namprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 474c9048-096b-4d3f-7215-08d535ce0270 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Nov 2017 19:35:25.5439 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0401MB1534 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id vARJZouF032296 On Mon, 2017-11-27 at 11:25 +0000, Bean Huo (beanhuo) wrote: > Is there someone knows if exists one utilis dedicated to UFS device, > rather than SCSI utils? I have tried sg3-utils, but it is not convenient > for the embedded ARM-based system. Hello Bean, Please be more specific. What is inconvenient about sg3_utils on embedded ARM systems? > And also it doesn't support several UFS special command. Are you referring to SCSI commands or rather to UFS commands that fall outside the SCSI spec? Anyway, an approach that is used by many SCSI drivers to export information to user space that falls outside the SCSI spec is to create additional sysfs attributes. See also the sdev_attrs and shost_attrs members of struct scsi_host_template. Bart.