From patchwork Wed Jun 26 10:26:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 808076 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 048F717C7B5 for ; Wed, 26 Jun 2024 10:29:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719397800; cv=none; b=tq8Cqgfmgd9sQp9H6MLLFryvi76KignEeI0EjUFIsTAi2kPCNRnoNhMkdq7HA25tnnJfFfy+oK/eUIh82uhZlQcDixsBRbvRasQqeLRQd4LQ6KWOAjC/CvfB3+SaiKyATe45w8rfxtxPoE3moIqsvzCKgpryB1sHbBPcNXPPc2o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719397800; c=relaxed/simple; bh=mgsm7kXRqjRIguRMoCNYZNYpBZLRZAOPFZ7XwFjCElU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=LIZ4g0ztw/Iq25RUWiAKm8uLiENJwlTys0lYKkrkV3d2kB187vjPwI1u28fYD0W6A4dl5Ht4Kmrcp3d+xsLfXSyHvbLH5Le2jDfh6JAoyqZNtkJhlHNEK+ZFxfMxoerudTtI8nMPdwT+XDYFiLQSRV1bIT41OXV+sD9n1PcOjic= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=IGhnkPzY; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="IGhnkPzY" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1fa55dbf2e7so22256915ad.2 for ; Wed, 26 Jun 2024 03:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1719397797; x=1720002597; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=bf0ybjL5v1jrq+gt5llK4hSogqhZSWKr6CL6luZ8US4=; b=IGhnkPzYQT+kATgkIjXNXwgT1dNhgIm2Fa9FETUYv6/3gvni9OhTOZRqH7OA0F294E KrzvQP0KuOuftZeicp/GQtXx5Ke/PeRtEZXaj09XZw3CLOjKhbkk+SnWmPsxYOaLsRL0 IrrCze4xlzbtw5wmsn3dH3r3ptsyLigy3xO9E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719397797; x=1720002597; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bf0ybjL5v1jrq+gt5llK4hSogqhZSWKr6CL6luZ8US4=; b=pAuuC2GK4q8FcOPdknDzmBncT7mnsPDekD6C2q7FkBGhusbUDWu7S4jb2ifyH3lqsp 0n2SUzSIsuHb43N5npKSksaKWtisvYF4J0g88Oqvh5x5bvToFFHLHUw2U3WWypVVsQ9R +hpR5zwEoaESO8KM8f3PIy7l+n6rsGm526D+VUaKAbGUgD64zcbu9xXWHrxBCcnReUZs DaXDDslpi6mV5syt02md4gT/ZI1Ns3xbW6w4AJiU/aIKtGD5qBhMUviDFa7zHACVPIKP 6hpY9myOUW63YixHktMxKiuw345SwFuGDBefiWg7G7aTW5DmDjM+ESncKbd/3junU7sX 9KVQ== X-Gm-Message-State: AOJu0Yw3kEJcKf9j6mr1klExdRFgWsSJIL7fEoFpBySfiauSu6pLWJTV gWBjOBvugu7pkYW3qoClePHHDsdmaUwB6FaFj6k6sE59+rCBeyY1TFZss32jIN4tMA3RJuegDL4 GUCJZQhr8fh+7NYrSxtGDyzl3DIorbq07Bzcr4nqXe/ybZVCg7mhaivxglFraql1JkoVVOCxWHU YV8esZ0+HVz5xgEke17nkVZw4qM6JugEvLQaSt66SHROW2GA== X-Google-Smtp-Source: AGHT+IHIL5I8z3zcHAKNuuTqJ1ZBkzLNJic+OVmQMQRB3pO+jCbMyr51UbnYBYtmrUD5XejFaPTpPQ== X-Received: by 2002:a17:902:ea08:b0:1f9:c52f:d9b5 with SMTP id d9443c01a7336-1fa15944ecbmr127315845ad.66.1719397797128; Wed, 26 Jun 2024 03:29:57 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f9ebbc7ccasm96051055ad.299.2024.06.26.03.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 03:29:55 -0700 (PDT) From: Ranjan Kumar To: linux-scsi@vger.kernel.org, martin.petersen@oracle.com Cc: rajsekhar.chundru@broadcom.com, sathya.prakash@broadcom.com, sumit.saxena@broadcom.com, chandrakanth.patil@broadcom.com, prayas.patel@broadcom.com, Ranjan Kumar Subject: [PATCH v6 0/4] mpi3mr: Host diag buffer support Date: Wed, 26 Jun 2024 15:56:42 +0530 Message-Id: <20240626102646.14298-1-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The controllers managed by mpi3mr driver requires system memory to save hardware and firmware diagnostic information, this patch set enhances the drivers to provide host memory to the controller for diagnostic information. This patch set also provides driver changes to push kernel messages into the diagnostic buffers reserved for the driver, so that the information will be available as part of debug data fetched from the controller. In addition, support for configuring automatic diagnostic information is added in the driver. Change since v1: - Fixed test robot build warnings Change since v2: - Fixed test robot build warnings Change since v3: - Dropped mpi3mr-Dump-driver-and-dmesg-logs-into-driver-dia.patch based on Martin Petersen comment Change since v4: - Dropped mpi3mr-Driver-buffer-allocation-and-posting.patch Change since v5: - Updated Patch description Ranjan Kumar (4): mpi3mr: HDB allocation and posting for hardware and Firmware buffers mpi3mr: Trigger support mpi3mr: Ioctl support for HDB mpi3mr: Update driver version to 8.9.1.0.50 Ranjan Kumar (4): mpi3mr: HDB allocation and posting for hardware and Firmware buffers mpi3mr: Trigger support mpi3mr: ioctl support for HDB mpi3mr: Update driver version to 8.9.1.0.50 drivers/scsi/mpi3mr/mpi/mpi30_tool.h | 44 ++ drivers/scsi/mpi3mr/mpi3mr.h | 133 +++- drivers/scsi/mpi3mr/mpi3mr_app.c | 1080 ++++++++++++++++++++++++++ drivers/scsi/mpi3mr/mpi3mr_fw.c | 272 ++++++- drivers/scsi/mpi3mr/mpi3mr_os.c | 113 +++ include/uapi/scsi/scsi_bsg_mpi3mr.h | 3 +- 6 files changed, 1634 insertions(+), 11 deletions(-) create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_tool.h