From patchwork Wed Oct 31 13:23:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suganath Prabu S X-Patchwork-Id: 10662655 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A3AC014DE for ; Wed, 31 Oct 2018 13:25:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 924E825F31 for ; Wed, 31 Oct 2018 13:25:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8426928935; Wed, 31 Oct 2018 13:25:07 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 848A725F31 for ; Wed, 31 Oct 2018 13:25:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729309AbeJaWXF (ORCPT ); Wed, 31 Oct 2018 18:23:05 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51997 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729405AbeJaWWr (ORCPT ); Wed, 31 Oct 2018 18:22:47 -0400 Received: by mail-wm1-f66.google.com with SMTP id w7-v6so4080421wmc.1 for ; Wed, 31 Oct 2018 06:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=K8bdmzdCD6/FVEJbWcsk91/Cm0CMVZCwrsR7PwgulYk=; b=aCd519UPQ3hny7OwIL0tPOJ9jQrRpRaN99lvq6dcoDQGJ2YQDXLDMUjPriUVDyGs/V bMNgMT7xS+u9BtcUKpztOcRi8qG0YSNihqLJsrk1ounANOiGMZR37301tkrCqiFo42+T mYXP7aTmQxFatF95xDDybbdfd+m9iGLJWCyJI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=K8bdmzdCD6/FVEJbWcsk91/Cm0CMVZCwrsR7PwgulYk=; b=kSS8f24pvT8CcHhbDu7OAqDrLwYaDAd5X28FysZygGgd6Yb9s08JH3wM4tXDLwW2XN kDM2gM2pKcKSBmeDgu/PbZhSxiwY1FotbDK4p/c9iALB0y0DrBwoW9Ks81mC5QWB9gWJ iJY2X7cl7hj3rXCZmQIJMLu9ao2SYTzbcIl6DJx8x7s+Vojj5gdFM03v1Z1CqxCgcy6v dx3PIOgyiwb3MQbV6TvXaYpUSOtShZwQNmYvou7DBFIu6ruBBmuWrkPrPJv8A0PAsHDD 8QirL7EMc32mMrtwwuNN/UZk7TPEjQvHHu0VP+DOcr8NFRql1Kv3nzgqYaT4H1OaYS6d ZYZA== X-Gm-Message-State: AGRZ1gK+DLoG2cszRXFFXFE4+EvyxC6MNGn8bVcIwY9ZPoNFU/7F0pe9 AcZZk0YdN0n9hN/Mx7FuHpkeoyskrf0= X-Google-Smtp-Source: AJdET5e8/gm7++C/MyadgRZds0fXtouCUjkFHm/N1wSx6Sx1yccS7ErsyciEiHetzpMv4OVsTE5EAQ== X-Received: by 2002:a1c:b645:: with SMTP id g66-v6mr2468155wmf.25.1540992285107; Wed, 31 Oct 2018 06:24:45 -0700 (PDT) Received: from dhcp-10-123-74-106.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id r16-v6sm25202614wrv.21.2018.10.31.06.24.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 06:24:44 -0700 (PDT) From: Suganath Prabu To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sathya.Prakash@broadcom.com, sreekanth.reddy@broadcom.com, Suganath Prabu Subject: [PATCH v7 6/8] mpt3sas: Don't modify EEDPTagMode field setting on SAS3.5 HBA devices Date: Wed, 31 Oct 2018 18:53:37 +0530 Message-Id: <1540992219-20291-7-git-send-email-suganath-prabu.subramani@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1540992219-20291-1-git-send-email-suganath-prabu.subramani@broadcom.com> References: <1540992219-20291-1-git-send-email-suganath-prabu.subramani@broadcom.com> 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 If EEDPTagMode field in manufacturing page11 is set then unset it. This is needed to fix a hardware bug only in SAS3/SAS2 cards. So, skipping EEDPTagMode changes in Manufacturing page11 for SAS 3.5 controllers. Signed-off-by: Suganath Prabu --- drivers/scsi/mpt3sas/mpt3sas_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c index f25bc3c..9254b52 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.c +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c @@ -4060,7 +4060,7 @@ _base_static_config_pages(struct MPT3SAS_ADAPTER *ioc) * flag unset in NVDATA. */ mpt3sas_config_get_manufacturing_pg11(ioc, &mpi_reply, &ioc->manu_pg11); - if (ioc->manu_pg11.EEDPTagMode == 0) { + if (!ioc->is_gen35_ioc && ioc->manu_pg11.EEDPTagMode == 0) { pr_err("%s: overriding NVDATA EEDPTagMode setting\n", ioc->name); ioc->manu_pg11.EEDPTagMode &= ~0x3;