From patchwork Tue Jun 18 11:56:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 13702148 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 D9CB6152530 for ; Tue, 18 Jun 2024 12:00:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718712005; cv=none; b=Fa2V7LwqPBvKGUQO1hR3D0JRUBT5vYdlkctR5CVv1SGuJ7rAENCWvBJOK3dvVxBbqzqzD4RGG+yCBw+S6aASOYtUMhDrM+gGibokS9d/EX0gWPU8L2nRQtBn8RA0koJcn9g0j757gFxB0ayZyvf+zzLtQlfOjoXN3CoN54UTrsU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718712005; c=relaxed/simple; bh=rGoR6CRSwhyFIWpp+HJGYxhxDZ/wsjEP4VBwz1g1Fvc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=LvLb2X0IXsbpKILq+KB3Pw/NnY2NcI5U86lwvO05B1Hm9cDlyytV8q5Qn9OBvjzzPrlzHuD5m6FHvUQ/xN3j+XW3qRMtytV7gx4N7nGazdaGZrrEhUmZUlf4ZRmVrVq48WRpqSlB7UnoVzY864oybazeGx+fe0K1MoAPROhsCMY= 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=XQnSsqdp; arc=none smtp.client-ip=209.85.210.181 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="XQnSsqdp" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-7046211e455so3852993b3a.3 for ; Tue, 18 Jun 2024 05:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1718712003; x=1719316803; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=VXehBiV531W9BTdGLXllviiJ7XIdOO2n1EVxxaay/S8=; b=XQnSsqdpazZ4faCgxYP6XeA/EtTbfuLITfKfzTdLJcY5+DwRjwD6BZOf94rCVWNute PmNBq09PGwcAxzmomz8xAVMsY5jDnWQ/ebHOrROj36x5XvwBZRePCmX04NEk6QDAEUA6 k6ZKsubyRvNswgPP5mJDGn6d/LRV0p4XlPGBI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718712003; x=1719316803; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VXehBiV531W9BTdGLXllviiJ7XIdOO2n1EVxxaay/S8=; b=xD4Zn/vn9K8uzp3V0Eosc+RLPlbSiGHBC6VamoNvHB+JULkn+VPqVk7+flIQbz5cak pA1Oy54WqM1IBx01RB3h4kSB89GD/9PCqPsvR9HTCRioBOBo9wUFObaBpg20dR/sHObf OiGO2zNzZqEfo23VeTnUQDOfXZNcEzQq7C8LarJ54Y6q+uMJVTksNei7MqEm8TxtxWWW zN0Hmm1zURCXpLCHLgKgfrlxFNy0Q2Yg7z1s9n8+0pwgJelZMIPiii+eeUgYyFvaeia2 fd50DjZFVnxxl8ZozPNsw+dNQjIu/L2Yb3kMFQ000r1KIxj4qwmDUqWqc9DgCL3vQJv4 ELeQ== X-Gm-Message-State: AOJu0YzF+jtPpDEJgBQGn5CmH8FmObitFikWhxmBD5SkupWDdAMk56nG uP8QEYF5QUZhVdi6KaUvUlIWy4eV29cqO5wZ5I/Lfyt9/prBSjKaj8JuK48PbVpfCPX+wR+p5ch lhHvlJLTWtbdgUx1MsLCav3ziRdZahx5MmhCynwXlCPKOvPuZfbJoWmNQyEa5l/iVpwcnzbditr WrH96+bX9n8tMtWDDwNUiudDc32dgBXm72KEprCMMybhy6Zw== X-Google-Smtp-Source: AGHT+IHdqyKodEXGHbHxgYL5wOhxnafmZm8DUZcYJ4q4QgGBZlAi1isEqJBJKiKtDP5GP6W28UYsZQ== X-Received: by 2002:a05:6a20:d50a:b0:1b7:1ede:ce57 with SMTP id adf61e73a8af0-1bae8345355mr11213855637.59.1718712002444; Tue, 18 Jun 2024 05:00:02 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c4a76037a4sm12925963a91.29.2024.06.18.04.59.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jun 2024 05:00:00 -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 v5 0/4] mpi3mr: Host diag buffer support Date: Tue, 18 Jun 2024 17:26:51 +0530 Message-Id: <20240618115655.15066-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 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