From patchwork Tue Jan 29 09:38:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shivasharan Srikanteshwara X-Patchwork-Id: 10785885 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 EE403922 for ; Tue, 29 Jan 2019 09:38:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF7A82A6B3 for ; Tue, 29 Jan 2019 09:38:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D257A2ABB3; Tue, 29 Jan 2019 09:38:27 +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 C20D82A6B3 for ; Tue, 29 Jan 2019 09:38:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbfA2Ji0 (ORCPT ); Tue, 29 Jan 2019 04:38:26 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:45775 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726456AbfA2Ji0 (ORCPT ); Tue, 29 Jan 2019 04:38:26 -0500 Received: by mail-pf1-f193.google.com with SMTP id g62so9389635pfd.12 for ; Tue, 29 Jan 2019 01:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=vKFdkJXYuolx7DxAvdAMhPfRzkJIln3KPIkcQEljLVY=; b=IamJSb4whtj9wShGmUvW91ToMK9BTzI87zHYb8sH58E2Jdttz7GgRkyYT+4XJcftN+ tXnWXQrMudllquuY9xZGIKMPpAyTGFiQOHtPii5txEWmSp6QafB58M/Wt3h7+dgbvw7r Jleuds+/qanhmRvbnyt1W+bSg7ktpNzELPOjg= 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; bh=vKFdkJXYuolx7DxAvdAMhPfRzkJIln3KPIkcQEljLVY=; b=NY2j6KX+ILRl53be7R5Y4xExfses4inRBx8XGYAWUAh8hIV+WS6lSeHRMOuaRtzeC9 YVlH9x6KHPdV706J7WBR4FD2q8cG+t0pidDhD3FPjoWiT2itbAdMagw69zwOctpoCksF +JhEBCa4XIMj4kxVWtoPYFdAzi3KqQaSetaW82phdSRf0RMGjezlKmsFmCuRRyOqDH2g Cia74nJ9pR1+fNUPokkvOXxtRIT2BGDNgyY/zdqs4MIvj25HJnSQ3ze9fCQbRx4D1UaZ ujaTjN3rrxsqfxdYV8NBP12jhuAI92g/WnbdoXghXJ6cAmqTquZUzdlrNk6ywlV3Edhb LgWg== X-Gm-Message-State: AJcUukcnAMd6UTzGAxqSZJ540uZn9gFjKHKEbS5FvO6Z5jw3erV6Htjg l0+K4txxBkzwSiO8tMe4m+O9S7ZC9Q7XCOx+1mYkEgO10pNDs7h0hzWOT5In7fj3sZ05Ma5i/18 iUClJtQCGbKET6YNnF57BudAIwglVvNtB3HsAVjhvegYI/yQRP40OganuwAD4CU5z5BvKhRso14 MPmVVkkQiK40emBfa0Ug/a X-Google-Smtp-Source: ALg8bN6YThlKXmr0ff/KTRjRpcScAn9IXbNuIak5tN8vi8Eq0P+N8bNPG2PgSI3tNr3KMMrYPSzt4g== X-Received: by 2002:a62:4c5:: with SMTP id 188mr25756990pfe.130.1548754704199; Tue, 29 Jan 2019 01:38:24 -0800 (PST) Received: from dhcp-135-24-192-142.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id u126sm87232494pgb.2.2019.01.29.01.38.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 01:38:23 -0800 (PST) From: Shivasharan S To: linux-scsi@vger.kernel.org Cc: kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, kiran-kumar.kasturi@broadcom.com, sankar.patra@broadcom.com, sasikumar.pc@broadcom.com, Shivasharan S Subject: [PATCH V3 0/3] megaraid_sas: Add support for FW device list DCMD Date: Tue, 29 Jan 2019 01:38:11 -0800 Message-Id: <1548754694-5280-1-git-send-email-shivasharan.srikanteshwara@broadcom.com> X-Mailer: git-send-email 2.4.3 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 This patchset adds support for new HOST_DEVICE_LIST DCMD in driver. This DCMD provides a combined list of target IDs of devices which are exposed to host. Driver will check for FW support for this new DCMD and based on the support will either send the new DCMD or will fall back to earlier GET_PD_LIST/GET_LD_LIST_QUERY DCMDs. Changes in V2: - Fixed smatch warnings in Patch 2 as reported by Dan Carpenter - Fixed few checkpatch warnings about unaligned paranthesis in Patches 1 and 3. - Removed one left over debug print in Patch 3 Changes in V3: - Fixed kerneldoc formatting for the new functions added. Shivasharan S (3): megaraid_sas: Rework code to get PD and LD list megaraid_sas: Rework device add code in AEN path megaraid_sas: Add support for DEVICE_LIST DCMD in driver drivers/scsi/megaraid/megaraid_sas.h | 49 +++- drivers/scsi/megaraid/megaraid_sas_base.c | 403 ++++++++++++++++++++++------ drivers/scsi/megaraid/megaraid_sas_fusion.c | 1 + drivers/scsi/megaraid/megaraid_sas_fusion.h | 1 + 4 files changed, 370 insertions(+), 84 deletions(-)