Message ID | 20180110211310.23876-1-RaghavaAditya.Renukunta@microsemi.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> 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 9D77B605BA for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 10 Jan 2018 21:13:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9071D1FF29 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 10 Jan 2018 21:13:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 853B8285BE; Wed, 10 Jan 2018 21:13:36 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI 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 2887628565 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 10 Jan 2018 21:13:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752906AbeAJVNf (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 10 Jan 2018 16:13:35 -0500 Received: from mail-dm3nam03on0060.outbound.protection.outlook.com ([104.47.41.60]:31664 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752551AbeAJVN1 (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 10 Jan 2018 16:13:27 -0500 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=KQSVZjZP3/fU52ltX3uW4SmnDdI/MO01Xh+FP6UA3DA=; b=c47HcssW76ZPnGjeMVhhBj9PA5tpifssT74Fg0z7eURmtFnCLuPFixBT/wNTkBIDC0wjowQjSRqIvaVUyg/k8mipK2SjC3Cw8kbKJ84/zvj33M5jyEZ4si33gjvzCDz55SnZc+K+IIki3vTE93zq0eSVLWdFerEuQjtzH+Flqdc= Received: from BN6PR02CA0031.namprd02.prod.outlook.com (2603:10b6:404:5f::17) by CO1PR02MB144.namprd02.prod.outlook.com (2a01:111:e400:101e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Wed, 10 Jan 2018 21:13:23 +0000 Received: from BY2FFO11FD004.protection.gbl (2a01:111:f400:7c0c::114) by BN6PR02CA0031.outlook.office365.com (2603:10b6:404:5f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Wed, 10 Jan 2018 21:13:23 +0000 Authentication-Results: spf=pass (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; 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 BY2FFO11FD004.mail.protection.outlook.com (10.1.14.158) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.345.12 via Frontend Transport; Wed, 10 Jan 2018 21:12:51 +0000 Received: from localhost (10.181.72.13) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server id 14.3.361.1; Wed, 10 Jan 2018 13:13:10 -0800 From: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com> To: <jejb@linux.vnet.ibm.com>, <martin.petersen@oracle.com>, <linux-scsi@vger.kernel.org> CC: <Scott.Benesh@microsemi.com>, <tom.white@microsemi.com>, <aacraid@microsemi.com>, <esc-teamarcdriversvl@microsemi.com> Subject: [PATCH 1/2] scsi: aacraid: Get correct lun count Date: Wed, 10 Jan 2018 13:13:09 -0800 Message-ID: <20180110211310.23876-1-RaghavaAditya.Renukunta@microsemi.com> X-Mailer: git-send-email 2.9.4 MIME-Version: 1.0 Content-Type: text/plain 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:NSPM; SFS:(10009020)(396003)(39860400002)(346002)(376002)(39380400002)(2980300002)(438002)(199004)(189003)(36756003)(68736007)(47776003)(356003)(86362001)(305945005)(76506005)(2906002)(2201001)(110136005)(51416003)(72206003)(50466002)(97736004)(57986006)(478600001)(69596002)(48376002)(8936002)(81166006)(77096006)(1076002)(4326008)(316002)(54906003)(59450400001)(53936002)(104016004)(106002)(81156014)(8676002)(106466001)(5660300001)(107886003)(50226002)(16586007); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR02MB144; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD004; 1:0oNHrqyaeBCYEOUvGtInWjTzyuLq2LWiGiO4jELpkUfZDNp91GQlxM6DxV9L6ps3zjgohCYiIhwJ7hdADUPH5hX4Znt0WrMxiWNFeHJMXbaV/gVAiGoGjMks18ZcTwpZ X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d427060d-aa83-4ad1-9b33-08d5586ee893 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4608076)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:CO1PR02MB144; X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB144; 3:Vg4JEZ+ekzhYFeEtyOjgHX8p+FaddhQeZiGZAru1yIBb/RZkAV8pHsbhs57FLaIlpDhyw/LuveeP+Mbm4/buc1il4l3aj2GZw1ZqlEC9F6/vWuRUr8xsUeV8iv8c2Redtc2TcoPL8He/T7dTVBOlxHmN/C3GnPTKSVQVHOtLaoR7oPkxgW9qjQsmZ9hWYyuhf840VtDEYrdWWkd1F5sxxPPWlQKLAtW+IgFkECvbnEesXOvfXuQQVFCgQDJ53P7moREG3gsgc3KQpa+/FXzQuvmdvmfx0z5WpKk1wa2o4zXneJKOivZtBeXNFSXdJp5/pGVrFOndupHDRMzp5GEs6nJjZN8qlKeIwSdkBT1V4Kw=; 25:cWsd+rY1V688hPmumfy0VqKadz3vyC1LyTE13TaqYaG+6/kzkqnqCw5waNteMBGJnRwtS3XlgeRB4lnyEJfSV3wPC2DYDqKJx1G2eMOch3DHmizZhq2Us0fUn9YIayyCz1UXx3pEN699lIM0GK3gEHHbiXSZJzZZ1LkUYHBG3qqKekLi0nehk1RfpA8v699UeJyCMALnrfKSEXtExeMQIRv5awPvCHMh4mgXeHi9IyTqnItr6kniGTSAOY31Gvj4vKlvsjYVav8hP/vycFIZoGQ6MiAlHXIj1VRm7wxWwaSB7itnru5UZrkNGq6mXzEthRKP/qsPwaGjevZCoq9wXQ== X-MS-TrafficTypeDiagnostic: CO1PR02MB144: X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB144; 31:tfbzOlziavuH86ZAaOSDm07K/23Icv7F7m5QaGsFz9I7hNvCB8zH18tyZ+7ThMxb1uFN/KYtNxqT71mPlLvSy7HaYFMp1/3km51TeDZWqLaD3BPDuD8RXJSZxSqdl6rIpztu7906xgaAl5iE/+5vRlfTnWEqW7QEupIIb0kzu4oKOo/0Z3pVuuVB/9On1h9xLBPmAxsbC7S45yn5sTolk6rOEFY/7W+zsWvurQMShEQ=; 20:Q3naY/UkRaBpKM9cNKMQOX2L+UUDfrlTOgrpW+LB4yqIMYhrKYBB8TB1AjiIQlyPV5ikn1xbNy4r88Zc1IXPmqHrXTuocIOWpR/tdtX3OPt/1hHYO7PmhA1q47vnTjSgP18ZjDX8nlykI5tABrQbWshiPLPAcYxPDohjrkGeW4Asp76zapVgJ6/9zVr8daGuNlJ+LsmLkHcOJr5N/SUSosIbbBSBO3BTo2HWCwAjqSm3OX3iJP279jmFXw2NNYOQK6HMvV7XxSJi/kyN+QyXxVrH+1HSq2SCdyD6ESUi1HucGEonsdzJJnRFJD5boCU7f2lkjFyBTgbgE+H5NhUCwHA7p8+hhYGgsbzxbkNSaygMBrgCUIL++8d8dTShuJjDlAMl5TkgHjWhAyPSqppZptQB7ux/+ClcmxJlAwJ34XQLwBTaQ5QywCY8PBdq6fIpP8+ibQdXoh2XMBKpCGpDPs0geTIB/1l8Qpb1VBkJS0oTm6IRPyz2Mk0EJLOIacxkl+yTa366i7ihGws73YQntu92ge0YljcBSqkFlhN0Mr9UF5oaTNR5Gq8051LqwIWi/aRgynUb9KDdlf6pdTo9kl6IcrZvUcw03D78QGW5n2M= X-Microsoft-Antispam-PRVS: <CO1PR02MB14410262CB6B8BBDF583EAAF0110@CO1PR02MB144.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(93004095)(3002001)(3231023)(944501123)(10201501046)(6055026)(6041268)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CO1PR02MB144; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CO1PR02MB144; X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB144; 4:zOVSZCwt1pq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EEqEYqUzM723wKWSeDCobcAJN1X2tAuZRtG5rnKdmAGG29iVywJJ2xFb1Tor8j2Bb0rkPQnh0Z8FyrMPOoxr8rD+vUWBtqBVPs09/FocdxCCvNz3gyprOvZVsVKge5k4WmQRxpNaVvyfX5NQa0yRjPCW5anuLleWY=; 24:LqoFUu5KfXdIuaXt3v/eoJZcvvYLwFMJWYBclBjS9rK1mjMSrbmXg2fG/ldYu1Xdkraou+D770Dcq8EPw35OqgqSNxOEMGLtgpuGE/hlYPg=; 7:QQw5nPXiL3i/NvX+C2F5FSJaZKo0S9t0KpeKBw3KPE+lo3POKoiIddpu6GcrKevfFScw4A8P/DMd9auUjeX73Efvj7ReMHM/Gyk51Tg5frvXG0eyz5Ayky1in4lp0haUJCPu43ePWL4WOqpc2RM5wNDDtybnkK54np8Cft1XUMeOFCNK/hiTpa5aRZvqsXnXmqZvdi+CW0zWnPp8d3cW7T8uZMxCqC97nQKwVfEFhMTDozuJlMDUPD5Y2/qYQp1S SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2018 21:12:51.2087 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d427060d-aa83-4ad1-9b33-08d5586ee893 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: CO1PR02MB144 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Raghava, > The correct lun count needs to be divided by 24, missed it in the previous > patch set. Peculiar number. Applied to 4.16/scsi-queue.
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c index a2bdd79..4c65991 100644 --- a/drivers/scsi/aacraid/aachba.c +++ b/drivers/scsi/aacraid/aachba.c @@ -1868,7 +1868,7 @@ static int aac_get_safw_ciss_luns(struct aac_dev *dev) static inline u32 aac_get_safw_phys_lun_count(struct aac_dev *dev) { - return get_unaligned_be32(&dev->safw_phys_luns->list_length[0]); + return get_unaligned_be32(&dev->safw_phys_luns->list_length[0])/24; } static inline u32 aac_get_safw_phys_bus(struct aac_dev *dev, int lun)
The correct lun count needs to be divided by 24, missed it in the previous patch set. Fixes: 4b00022753550055 (scsi: aacraid: Create helper functions to get lun info) Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com> --- drivers/scsi/aacraid/aachba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)