Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753292AbcD0Rei (ORCPT ); Wed, 27 Apr 2016 13:34:38 -0400 Received: from mail-by2on0080.outbound.protection.outlook.com ([207.46.100.80]:60719 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752041AbcD0Reh (ORCPT ); Wed, 27 Apr 2016 13:34:37 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=cnexlabs.com; From: "Simon A. F. Lund" To: , , CC: , "Simon A. F. Lund" Subject: [RFC PATCH] lightnvm: expose configuration through sysfs Date: Wed, 27 Apr 2016 10:18:56 -0700 Message-ID: <1461777537-8145-1-git-send-email-slund@cnexlabs.com> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [50.207.153.190] X-ClientProxiedBy: BLUPR14CA0041.namprd14.prod.outlook.com (10.163.77.179) To DM2PR0601MB0985.namprd06.prod.outlook.com (10.160.26.15) X-MS-Office365-Filtering-Correlation-Id: 08979068-fde1-4ccc-0ba2-08d36ec01cf9 X-Microsoft-Exchange-Diagnostics: 1;DM2PR0601MB0985;2:AyhwYJsf1gGdUJwGxT1IBh8GYb9fB7D8g7MsjS3jJp4evQSInmDPc0LHkzVDzN0HZNLjlAnCXZ5KFiyr+avFeLmh7xqH7yx9SxeRRtL3n8pCOv0DSobuGjO8J5Dy69SuqxxNDvAZ02CqrUsW9jpVo7shcv3sWlwnKwn8wPLYCXvZYCyPKKmJa1MNeoptsMzG;3:UIABD1qlDRIH7iN4XeyXGkW1l6PuLMB+xuVG/kWG0zfv0V1MY63nfBXIesLtkPqGYhksevhD8/+hxcBtqWjxw+NBVYNAYYIWYQLUwu3WSdPArGVjCF0EIi20egOLHAdk X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0601MB0985; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0601MB0985;25:TocBnB1j5hqeB/ni84N7M6kq10ACr9GatlKbWCxYc77n0QeuvgrM+sYtT7R0uxzrr8qPx3fLRm39htg5mXATFOt/DfEA+3niFrUhnhdLQlIe1se+ZsekjNofm1FR2e/mE3YDoer4Opr+CzquaopKunH/ok287eIAbn3oJ0faXcqmKNfM1vzTEgUVuwrZN7tTT4JA5Mx50SM0Q4K8a3WMLv0W5W5S0SF7OUsEFoFJC+wfkYmw2SYOoOJXP99T6qQ9wCSGNED6aK/NqeRwxsoZosUawp3EOZODAs5CeNHAQLz3in6Yq5BkpLBCLiZDHgxLTAdrxgty5eMhkW6Zz4iyLHsjpw0OpoxAvCdmLViXMSK67qeJQIR+GDX+CV+qt9wQDhYdulGawy2zG2DgDNGHINqZ70PUVw/mYCT/bTF8d9K2cXtixBu75vCJ/fZzaZiZ23KSStHSmJTOg79+ov1F5fWk5AOlBuz5Z3HBltDSZ7z06/DFTNnCX5T4INWsmqCr+bQItiSWKJKW8iTBRcH5CdrOMjT5YS5L1mVVN4jyvU5z7j006oA+/Jum0kqb2a5W1anfQ1XW+/4YEJrupME3wWHPsOMDB+WHc9B2Lth2+KdFsdL5zILVXQLz5sGumNne1syzaG58lxOIxSN8oW4/ug==;20:QLQC7gO2PYKyGLx1YCZu76HSUf3BdwLnsL0rSeROPUlQFr5lxvm2iqH2SKpBT+E/HM9rlCGhF9VwzHzBUCjidPYbQ1PaVcJ2lMJho51afpzJOG/G9qRvAuE3yE+mzzvVwNMJKXdyweoIeCEa9qgTECOrEQBHwuLKSsgl7PJ2/7U= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(9101521072)(6040130)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041072)(6043046);SRVR:DM2PR0601MB0985;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0601MB0985; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0601MB0985;4:cAtjFOvUxXeIb56QMLv9pTr3AnHHirFfexbcJqYbPJzUwIaXKDGbKSNcMy8IA78b+p0nqiWe6jHprP58kj+A+wE6sgNEZCom+gJmnk+evueQDEMt29wq0ltpZdaMWwQZR5ugmr8ceSRSlsIwFNl1ybuyesBxdLTTyf6DUAql4dbBX1Dq43ntgsUPD/EZjXP1w5DAFPQ8wf2eazGDCe3t/E+CewwNu0jpVIE0grevzGuLsoH2vb6CZBCdVnHJ4QBWqJ0RnVLU/GDsO3Xuk5DAXpJEY7+h1cXJ50HA8nBiBocz6PBJGti1cEzrYFWlB5WMWZQr+qqERzBmT1S940Kccl0rK+GIj+2sG+iLzN2lwO1l6tTWQgDPrBe1m6HD6c9s9mjXFZO1QGH9FRecE3WaGTVecNCm0W050j/7/pisC/xnQWqQL8AqPSSCTU4HdLyt X-Forefront-PRVS: 0925081676 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(36756003)(586003)(1096002)(50986999)(77096005)(92566002)(5001770100001)(107886002)(5004730100002)(5820100001)(50466002)(33646002)(6116002)(4326007)(189998001)(5008740100001)(2870700001)(66066001)(47776003)(229853001)(3846002)(53416004)(4001430100002)(81166005)(2201001)(23676002)(2906002)(42186005)(50226002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR0601MB0985;H:tiger.cnexlabs.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0601MB0985;23:TPWLNQooWEIwcc3QnB6qEqCF6WVI0KNJgdP9I6hQd45PZfkGzAjEeWBbrIruQcvKkii8nSil2bC7gpXWi366rpblyq5PrJ7LR9AG7nqLRif190mcxYqqFEhcqE4meTZ1CQsObHx7xGamXuzbjH23UDQNHiIppyZNa1Vrwan53iWjHrnlm39DNOJY6xphedvsIjsldRaCU8YBnn+muFsFkG5NH01ikNzDgftVXX8iiKWYe985zaKBjTLR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ETGKO4vhIS8SdwEIQtWzgQQRRo1SEYdMzW2oV/cQ+e+wkTeD SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cnexlabs.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2016 17:19:38.0887 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0601MB0985 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 809 Lines: 24 Hi, Follow up on preparation patches, here is a patch exporting hardware attributes of open-channel SSDs and LightNVM configuration to user-space through sysfs. Thanks, Simon A. F. Lund (1): lightnvm: expose configuration through sysfs Documentation/ABI/testing/sysfs-lightnvm | 244 ++++++++++++++++++ drivers/lightnvm/Makefile | 2 +- drivers/lightnvm/core.c | 33 ++- drivers/lightnvm/sysfs.c | 418 +++++++++++++++++++++++++++++++ drivers/lightnvm/sysfs.h | 18 ++ include/linux/lightnvm.h | 4 + 6 files changed, 712 insertions(+), 7 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-lightnvm create mode 100644 drivers/lightnvm/sysfs.c create mode 100644 drivers/lightnvm/sysfs.h -- 2.5.0