From patchwork Fri Oct 12 10:57:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shivasharan Srikanteshwara X-Patchwork-Id: 10638515 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 5AA73933 for ; Fri, 12 Oct 2018 10:59:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B94F2B5BE for ; Fri, 12 Oct 2018 10:59:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FD422B938; Fri, 12 Oct 2018 10:59:00 +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 E84592B482 for ; Fri, 12 Oct 2018 10:58:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728325AbeJLSav (ORCPT ); Fri, 12 Oct 2018 14:30:51 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:42722 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727652AbeJLSav (ORCPT ); Fri, 12 Oct 2018 14:30:51 -0400 Received: by mail-ed1-f67.google.com with SMTP id b7-v6so11080885edd.9 for ; Fri, 12 Oct 2018 03:58:58 -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=s483qfrD/zASFJW/qahGq4Ubnu1CVkPm1pquMJs4K+g=; b=DwO6vAh71gc60zw4p9pptDyizqsUMAxoJkJAbsUhsUkUC5bDTJPs5ZSPZidLvff7L/ jxeuUP/Dd6h7PUIT7iba1lWmICWEZTsVnChQVSbW93v3C1pRyacLlvkknaT8WfnQafmg geJkvLXq7MBUdngXgBvX7uXVaWipDFL+4WtXY= 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=s483qfrD/zASFJW/qahGq4Ubnu1CVkPm1pquMJs4K+g=; b=f9UpA994vz/rpHwLkQCD/3F2aKbbLI1subwKVJ1rAXikYVdNJT9bAY/T8Ufjp+pmaW KWlkuF5GQIWKt0Dr1z5OYDfjEfatPt3g8UHQslNzIYcnK9QaqTEYx9vbJ0BIR8J7f17x y6D8p7vcDKM8i1fdU9+EObpP1Zeb04gawcnb6CeY6Xa+DSAE0Fjzy3BJs2fdgbk32Dg1 saqFmbLXyTUNPJNR7k495h4WHiRjL8FkcGZ4ntrDemAVi0fbaAtdJDZnFG00+zCMVAWD rsGLVrggK4vb5gt5F0IdndIgVZKe91dE8LxgL5y0/Nw0pxub/BxO63r9GOwAsntRPqE4 CImg== X-Gm-Message-State: ABuFfojkmFAmjr0G7PLbYgrMwDGH4e5CIPTpcu2LB5fzG6wMcs+N7V9J CDVLwcW1su/EYCkXIDsDtUvnD9+h/ZSa2g== X-Google-Smtp-Source: ACcGV62XsrxQzwJaKw6qKCztvqUpJuV9y8x2ha5gi5Kdw/IgeiAa77ZffQtMdaOGRAeWvtuijGwblg== X-Received: by 2002:a05:6402:382:: with SMTP id o2mr8283014edv.42.1539341937610; Fri, 12 Oct 2018 03:58:57 -0700 (PDT) Received: from dhcp-135-24-192-142.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id m25-v6sm451198edc.86.2018.10.12.03.58.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 03:58:56 -0700 (PDT) From: Shivasharan S To: linux-scsi@vger.kernel.org Cc: kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, Shivasharan S Subject: [PATCH 18/19] megaraid_sas: modify max supported lds related print Date: Fri, 12 Oct 2018 03:57:32 -0700 Message-Id: <1539341853-26814-19-git-send-email-shivasharan.srikanteshwara@broadcom.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1539341853-26814-1-git-send-email-shivasharan.srikanteshwara@broadcom.com> References: <1539341853-26814-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 847f501ae4e3..544edfa2b50c 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 *