From patchwork Fri Jan 30 06:06:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viswas G X-Patchwork-Id: 9922533 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 06733600C5 for ; Fri, 25 Aug 2017 17:12:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E307728414 for ; Fri, 25 Aug 2017 17:12:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7CF128417; Fri, 25 Aug 2017 17:12:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00, DATE_IN_PAST_96_XX, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CDC32841C for ; Fri, 25 Aug 2017 17:12:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755840AbdHYRMH (ORCPT ); Fri, 25 Aug 2017 13:12:07 -0400 Received: from mail-sn1nam01hn0212.outbound.protection.outlook.com ([104.47.32.212]:2396 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755814AbdHYRMG (ORCPT ); Fri, 25 Aug 2017 13:12:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mscc365.onmicrosoft.com; s=selector1-microsemi-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qdhFScwGBpHY2pdCr3ZLuumYbB4Hnw2Rj2LxmeXoWFQ=; b=AWfO9KSuSRAnR/gA0affqFIfczFR7Lw96LwoIKA/MS6DRvNo1rs32t3GUovM1fhgtawywocD6ffMEI0B0iEfkq7QIXJ1debBXWvA7zUBz9MptdgQyyo8PFNNykWfCyRRpL/IQT7tXzoOEQ03H7M/AuFVbWpaUf4gemCrgrKFCuU= Received: from BLUPR0201CA0017.namprd02.prod.outlook.com (10.163.116.27) by CY4PR02MB2198.namprd02.prod.outlook.com (10.169.180.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9; Fri, 25 Aug 2017 17:12:05 +0000 Received: from BY2FFO11OLC014.protection.gbl (2a01:111:f400:7c0c::103) by BLUPR0201CA0017.outlook.office365.com (2a01:111:e400:52e7::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9 via Frontend Transport; Fri, 25 Aug 2017 17:12:05 +0000 Authentication-Results: spf=pass (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=bestguesspass action=none header.from=microsemi.com; Received-SPF: Pass (protection.outlook.com: domain of microsemi.com designates 208.19.100.21 as permitted sender) receiver=protection.outlook.com; client-ip=208.19.100.21; helo=avsrvexchhts1.microsemi.net; Received: from avsrvexchhts1.microsemi.net (208.19.100.21) by BY2FFO11OLC014.mail.protection.outlook.com (10.1.15.48) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1341.15 via Frontend Transport; Fri, 25 Aug 2017 17:12:04 +0000 Received: from localhost (10.187.72.81) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server id 14.3.361.1; Fri, 25 Aug 2017 10:11:49 -0700 From: Viswas G To: CC: , , Subject: [PATCH 2/6] pm80xx: ILA and inactive firmware version through sysfs Date: Fri, 30 Jan 2015 11:36:41 +0530 Message-ID: <20150130060645.23653-3-Viswas.G@microsemi.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20150130060645.23653-1-Viswas.G@microsemi.com> References: <20150130060645.23653-1-Viswas.G@microsemi.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.100.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:SPM; SFS:(10009020)(6009001)(39860400002)(2980300002)(438002)(199003)(189002)(86362001)(68736007)(48376002)(104016004)(54906002)(69596002)(50466002)(53936002)(76506005)(2351001)(8936002)(81156014)(626005)(57986006)(8676002)(2906002)(305945005)(106466001)(110136004)(97736004)(81166006)(5003940100001)(107886003)(356003)(478600001)(47776003)(189998001)(5660300001)(39060400002)(6666003)(6916009)(2950100002)(77096006)(50226002)(1076002)(76176999)(50986999)(4326008)(36756003)(5530500006); DIR:OUT; SFP:1501; SCL:5; SRVR:CY4PR02MB2198; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC014; 1:nBZAR9dsBs4xsQG9Ruv8yth5IZ3bRtwx4a8epHdpKYc0Uv+BNpc5+Z3pp0rk8FMVxpPWM0yUZbA4nqBYWc3vMoeSoant3sGIaMt7xAQ71shWVBkEScydCZR3vAsdETK2 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c9a62499-9343-4fab-c730-08d4ebdc68d5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(8251501002)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR02MB2198; X-Microso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KQZeWgNB8FIYMGN6OWOryqeQaqebBy4dBwHZ5jmkRJjsjf00StKdkOZOgQpH1MuGx/Sn0/PDC9860rJbAdN2mTCZXhaQ42drVEz/dvmg6ENHoL3GFwpP8LqcfkP3Xh8d0GD7dOWwvuO8y1mngIA2qtFNbcUGj8YHSVQVoA4xhLcR9IRDpWgDyRMGcJKGgi279JXCND/LnSoBWU7cO50ykuHJV1U6uDm9+7M+0XxAVUVpFVvhIhvcK/vKQ7yABAd32LkSFZIpOP3jeiFII6bOUaKQSy6jEVjH02zL4AVEPpxRCQk1kXOZ1JhIEmEzodFEewUUi79zbX16tFZnUJ4VxU9/NwqwgEiLvrRCBgOtBhiLd4IEESnLW79sGedNWDclsACp6pgYXFQec4a0je1P3rP92DIJXrdxYIuK3VsvSjlqopugrbdGi0rUBRE+HmlWaqUDbr3NtjsSzRaPZiENUXzG4gZum1npuC+NXks X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(3002001)(93006095)(93004095)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR02MB2198; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR02MB2198; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB2198; 4:p+Irxhs6wxE/6ndCUDU4HSe1nM1WecYUzNyjHqCTOxyteUmPaCtv9qL3i3CJGcPfB3ZGKF7Lh+qQGE9dqYI4MVfbz3I6n+Yvp31xIa7JZ5H94SosO+4LOFxX7FkRv6WW9ROfFlZt44jEPSFY71hd7V8itKNl8LWyyzIvBYQAZfAGlx74/4kszLAjqpwmIkjwnz0qJyClH9cDFcBVldExe4a4+XfrtXXwN4WpMkv7+JU9NmPE5gKN6JHe0uWcL7/2eTozeKuK5aCEMVTydmG4xbldDU2lkGasYWW7X4Eyo8I= X-Forefront-PRVS: 041032FF37 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR02MB2198; 23:+D13VcDGY6orOINyXScxY+7V+hzgN6OgxGYbAq0rh?= =?us-ascii?Q?bYkjdQBg3oWOj7hBtplZFcjEZA9aeYN2Mep7gfTTIcBPBIAPQA8xrTbbBEGJ?= =?us-ascii?Q?24OcdSqE0NlIHP5wV+gx4eV91trG9ymp+II9eSIET31galWglTU4AI/84mVv?= =?us-ascii?Q?eKiE82+5CWXy53Gv/OwoAAu5Ax82O8PJB/SeYVvJjnnVIKHmaK7SwSxuMzCg?= =?us-ascii?Q?nYM5smkIPeKH7TCKolgW5qVDZRX/ioEQd1zPrtG2ZAF0Og9pzxq6qPxxOUqw?= =?us-ascii?Q?jtBw/V9fgMn4eG479W5b5kmlETvoc9Lw+UkLU2xEfQWtsmJsyCuxqmdoKNCc?= =?us-ascii?Q?y0tpGH4N5+fJypWtYQ4wzEM/B63vgu5JA+UuLJS0iqZwklQwOb0uHE2XptTB?= =?us-ascii?Q?arHgmaIF9fC06D7m11u+Vf8TZl23neRCmqT8+a7KPwg7+UbOSUa3qSWtxZ2P?= =?us-ascii?Q?+idlGQJdzuGqSbVe+LmHvCYcYcyENj+ERRdxcNs72ajDm6sdvgRh4xu+f5B2?= =?us-ascii?Q?lXcHkUVti2M5IyeC3Hf8TwGm87OoT0Wz0u4PvlI3v8eIyTMGj00GVtFrQNUT?= =?us-ascii?Q?c1VbqJ8rerQmJMBAj0kPCiBWCOFV0B3M37b7jLOTBK5cej9j1hd6gqjn8gk8?= =?us-ascii?Q?RjfWbiRUzO3Kll5QIY5lfDh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VSg92C5mQvwrKiC7VIh9uNllGuIWJD0HjAjrcMzEiSoJ76Su76qByTHTptMxjJITalYdOzQ4lg==; 24:PROJvQlzF5zynPO0INNRjNmrFCG/qp1Ch2uSaduuCY1QzS5nMWpZKl5Ok8M3xErigGt+CCyslivIrbccFlTbqg==; 7:/fuTazqMDnnaSv+5rzSTvwJxiIK2whA16To6BdtFkQBDrrqrAg8thJExhHj14AfUrcsyGfpERtdnu+1Lssws3860oIAjVlNi6zQhPgNH7wqZTtNy7zqf2wXPUUh5wSO5sdOoKNrMGvcQzhPYbl8gsjmT6CRD3E3Tpws8LYLj/wzgZrNvZgcHtNNRKSVAHeOLeoC9CxBX966jPkpWWNAYDj3g3IzCLZITntxfP1xuhEk= SpamDiagnosticOutput: 1:22 X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 17:12:04.7915 (UTC) X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad; Ip=[208.19.100.21]; Helo=[avsrvexchhts1.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR02MB2198 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Added support to read ILA version and inactive firmware version from MPI configuration table and export through sysfs. Signed-off-by: Deepak Ukey Signed-off-by: Viswas G Acked-by: Jack Wang --- drivers/scsi/pm8001/pm8001_ctl.c | 55 ++++++++++++++++++++++++++++++++++++++++ drivers/scsi/pm8001/pm8001_sas.h | 2 ++ drivers/scsi/pm8001/pm80xx_hwi.c | 5 ++++ drivers/scsi/pm8001/pm80xx_hwi.h | 2 ++ 4 files changed, 64 insertions(+) diff --git a/drivers/scsi/pm8001/pm8001_ctl.c b/drivers/scsi/pm8001/pm8001_ctl.c index be8269c8d127..d278c807112f 100644 --- a/drivers/scsi/pm8001/pm8001_ctl.c +++ b/drivers/scsi/pm8001/pm8001_ctl.c @@ -98,6 +98,59 @@ static ssize_t pm8001_ctl_fw_version_show(struct device *cdev, } } static DEVICE_ATTR(fw_version, S_IRUGO, pm8001_ctl_fw_version_show, NULL); + +/** + * pm8001_ctl_ila_version_show - ila version + * @cdev: pointer to embedded class device + * @buf: the buffer returned + * + * A sysfs 'read-only' shost attribute. + */ +static ssize_t pm8001_ctl_ila_version_show(struct device *cdev, + struct device_attribute *attr, char *buf) +{ + struct Scsi_Host *shost = class_to_shost(cdev); + struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); + struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; + + if (pm8001_ha->chip_id != chip_8001) { + return snprintf(buf, PAGE_SIZE, "%02x.%02x.%02x.%02x\n", + (u8)(pm8001_ha->main_cfg_tbl.pm80xx_tbl.ila_version >> 24), + (u8)(pm8001_ha->main_cfg_tbl.pm80xx_tbl.ila_version >> 16), + (u8)(pm8001_ha->main_cfg_tbl.pm80xx_tbl.ila_version >> 8), + (u8)(pm8001_ha->main_cfg_tbl.pm80xx_tbl.ila_version)); + } + return 0; +} +static DEVICE_ATTR(ila_version, 0444, pm8001_ctl_ila_version_show, NULL); + +/** + * pm8001_ctl_inactive_fw_version_show - Inacative firmware version number + * @cdev: pointer to embedded class device + * @buf: the buffer returned + * + * A sysfs 'read-only' shost attribute. + */ +static ssize_t pm8001_ctl_inactive_fw_version_show(struct device *cdev, + struct device_attribute *attr, char *buf) +{ + struct Scsi_Host *shost = class_to_shost(cdev); + struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); + struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; + + if (pm8001_ha->chip_id != chip_8001) { + return snprintf(buf, PAGE_SIZE, "%02x.%02x.%02x.%02x\n", + (u8)(pm8001_ha->main_cfg_tbl.pm80xx_tbl.inc_fw_version >> 24), + (u8)(pm8001_ha->main_cfg_tbl.pm80xx_tbl.inc_fw_version >> 16), + (u8)(pm8001_ha->main_cfg_tbl.pm80xx_tbl.inc_fw_version >> 8), + (u8)(pm8001_ha->main_cfg_tbl.pm80xx_tbl.inc_fw_version)); + } + return 0; +} +static +DEVICE_ATTR(inc_fw_ver, 0444, pm8001_ctl_inactive_fw_version_show, NULL); + + /** * pm8001_ctl_max_out_io_show - max outstanding io supported * @cdev: pointer to embedded class device @@ -748,6 +801,8 @@ struct device_attribute *pm8001_host_attrs[] = { &dev_attr_bios_version, &dev_attr_ib_log, &dev_attr_ob_log, + &dev_attr_ila_version, + &dev_attr_inc_fw_ver, NULL, }; diff --git a/drivers/scsi/pm8001/pm8001_sas.h b/drivers/scsi/pm8001/pm8001_sas.h index 2e17505ed5b8..2eb3b670bf45 100644 --- a/drivers/scsi/pm8001/pm8001_sas.h +++ b/drivers/scsi/pm8001/pm8001_sas.h @@ -499,6 +499,8 @@ union main_cfg_table { u32 port_recovery_timer; u32 interrupt_reassertion_delay; u32 fatal_n_non_fatal_dump; /* 0x28 */ + u32 ila_version; + u32 inc_fw_version; } pm80xx_tbl; }; diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c index eb4fee61df72..8fb5ddf08cc4 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c @@ -312,6 +312,11 @@ static void read_main_config_table(struct pm8001_hba_info *pm8001_ha) /* read port recover and reset timeout */ pm8001_ha->main_cfg_tbl.pm80xx_tbl.port_recovery_timer = pm8001_mr32(address, MAIN_PORT_RECOVERY_TIMER); + /* read ILA and inactive firmware version */ + pm8001_ha->main_cfg_tbl.pm80xx_tbl.ila_version = + pm8001_mr32(address, MAIN_MPI_ILA_RELEASE_TYPE); + pm8001_ha->main_cfg_tbl.pm80xx_tbl.inc_fw_version = + pm8001_mr32(address, MAIN_MPI_INACTIVE_FW_VERSION); } /** diff --git a/drivers/scsi/pm8001/pm80xx_hwi.h b/drivers/scsi/pm8001/pm80xx_hwi.h index 1ee2ec210065..d8e5d81e83f1 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.h +++ b/drivers/scsi/pm8001/pm80xx_hwi.h @@ -1349,6 +1349,8 @@ typedef struct SASProtocolTimerConfig SASProtocolTimerConfig_t; #define MAIN_SAS_PHY_ATTR_TABLE_OFFSET 0x90 /* DWORD 0x24 */ #define MAIN_PORT_RECOVERY_TIMER 0x94 /* DWORD 0x25 */ #define MAIN_INT_REASSERTION_DELAY 0x98 /* DWORD 0x26 */ +#define MAIN_MPI_ILA_RELEASE_TYPE 0xA4 /* DWORD 0x29 */ +#define MAIN_MPI_INACTIVE_FW_VERSION 0XB0 /* DWORD 0x2C */ /* Gereral Status Table offset - byte offset */ #define GST_GSTLEN_MPIS_OFFSET 0x00