From patchwork Wed Oct 17 06:37:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shivasharan Srikanteshwara X-Patchwork-Id: 10644673 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 25EAD157A for ; Wed, 17 Oct 2018 06:39:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 160112A790 for ; Wed, 17 Oct 2018 06:39:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A2032A7E6; Wed, 17 Oct 2018 06:39:02 +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 AB3B82A790 for ; Wed, 17 Oct 2018 06:39:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727366AbeJQOdJ (ORCPT ); Wed, 17 Oct 2018 10:33:09 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46873 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727359AbeJQOdJ (ORCPT ); Wed, 17 Oct 2018 10:33:09 -0400 Received: by mail-pf1-f196.google.com with SMTP id r64-v6so12673870pfb.13 for ; Tue, 16 Oct 2018 23:39:00 -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=AdqV1FwoeAlZ5xfVyzSiE0d+XrH2PqeWjddQQBKHfWc=; b=cEY4V9U81ghvJm42mtpKnjl0nyHUKJKjceodp/82TJNJ+TlUYn+Z08JXcnXFxQsyIN xB9VlKXuCT8cqS9UlgJiAcKmrOeSuMN5DbpSMu/pHRtfb0KPK15aLquGHkF4BfKOHhB0 exL4ZZwTFd1paOyMgJu/xLb8rjhHef1cETN04= 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=AdqV1FwoeAlZ5xfVyzSiE0d+XrH2PqeWjddQQBKHfWc=; b=Urqli83j0tqIffeONjf3elfpr7pxvHtdEaOQONKTX2CkJ2o4xdtyl+aDo9vBRLB2eW 7wNOlwtHQdwUOmFnKGGKSnmltQCTM6oV9tp06o7vPrru8NOi/yZPdIIsr3I0fC6SRLDS 0Yjaiko7t/V3cMtQrP9VflxW2m9WRoZUQBeRWPccjgpPpWkrs9/c4+1jTLih5/1jf6nS c0pzryxxqcfI3qwvZcD8BdJp6UJYH77iwhrDXpyl1TLw9sZidXirhrkHdjVq8JT3lvyG AAdkTSpEtceKZxsoK7/OpKltqu1ysWpEFJNVoN1GwIg/mUURhZFz/448zlUjmRx+Kd+d r3mg== X-Gm-Message-State: ABuFfogNEoKkH8ig3ONBZj3aXXLAsmNRMAxM3qkmSfAP3sVxlp2vaKeD aaGmMZpsbdYJBlvZ1ny7cXFUzIc/tkTrcw== X-Google-Smtp-Source: ACcGV6172xetspZyL90WrXy2KuIXS03v1VWEYMtU+W4gd9e8MHb9PAFLHgqXx2Rx13pvT1TAcaUQLQ== X-Received: by 2002:a62:1e83:: with SMTP id e125-v6mr25039539pfe.231.1539758339945; Tue, 16 Oct 2018 23:38:59 -0700 (PDT) Received: from dhcp-135-24-192-142.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id y131-v6sm19375425pfg.164.2018.10.16.23.38.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 23:38:58 -0700 (PDT) From: Shivasharan S To: linux-scsi@vger.kernel.org Cc: kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, Shivasharan S Subject: [PATCH V2 18/19] megaraid_sas: modify max supported lds related print Date: Tue, 16 Oct 2018 23:37:56 -0700 Message-Id: <1539758277-1882-19-git-send-email-shivasharan.srikanteshwara@broadcom.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1539758277-1882-1-git-send-email-shivasharan.srikanteshwara@broadcom.com> References: <1539758277-1882-1-git-send-email-shivasharan.srikanteshwara@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 The print related to number of VDs that a particular firmware supports is misleading in some cases. Even though supportMaxExtLDs is set, certain firmware profiles only supports upto 64VDs. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_base.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index 9a6c2597055f..2993a9766b0f 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c @@ -4633,9 +4633,9 @@ static void megasas_update_ext_vd_details(struct megasas_instance *instance) } dev_info(&instance->pdev->dev, - "firmware type\t: %s\n", - instance->supportmax256vd ? "Extended VD(240 VD)firmware" : - "Legacy(64 VD) firmware"); + "FW provided supportMaxExtLDs: %d\tmax_lds: %d\n", + instance->ctrl_info_buf->adapterOperations3.supportMaxExtLDs ? 1 : 0, + instance->ctrl_info_buf->max_lds); if (instance->max_raid_mapsize) { ventura_map_sz = instance->max_raid_mapsize *