From patchwork Wed Jun 5 09:48:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 13686532 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 B0FD9D268 for ; Wed, 5 Jun 2024 09:51:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717581103; cv=none; b=WhnL74ka5tRjsrMY5Up9y9K9KY5l9iOaA4W4N2a8C8HyScmUSDXdcIwKKP50gllCKMBaNY0mCNZ8BoSQwUgMO6T8GHp/e38OLs+A1VhchEoGzsLxYyqneG0+T0O8eGubvh5QCTkt+uWM1XzgRHPUBdheJL+gCgkw+6xP4jELQKw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717581103; c=relaxed/simple; bh=5U85MxkZ+7k0QvMwzq/cHaMAl8wnbvfw4xBPwIvOXxQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=oq7aEOZImwiy6XF4q6xREPCvHrUfo807+X2CHCQP9gK9SUAF2OaLYe2/SwT5OIY1EPAzh8W88V+W9Msxn09Nd2Wz4JSLpwGRHl5u88rLcs3eEZgO5yqf+uUnjVQPBuY45qDBKNiQ/QtPo544qX8GdSU6edNA6mYPDZCuSh/lMx0= 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=PHwRywKV; arc=none smtp.client-ip=209.85.214.172 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="PHwRywKV" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1f48b825d8cso18091115ad.2 for ; Wed, 05 Jun 2024 02:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1717581100; x=1718185900; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=ARHYU8BL7C7Z4iQvHh+w5PwvecYH3NCBSaPAck/S/DA=; b=PHwRywKVqAhCIu7fF3vtGMvk5gnE2eYAilZibhSQ2KvKR9SZ2aHmfraJNygIXdnymY zDhY0xEZrK5ma71rHbF62sPVE5VLEiYzx3J0QCK7MzqE+mDJFxMfl4qUIXqeHglpBIBM j+1ZAXR2iXZiQKp+eHSNMSQTgQyn2nluO1vKA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717581100; x=1718185900; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ARHYU8BL7C7Z4iQvHh+w5PwvecYH3NCBSaPAck/S/DA=; b=aVuRd4uJQ00VlM5lLhLgLN1MN6+T3KJ86MJrFzDIkd1ICd6p57mPbFbHVk8PZw7De3 K1Gdm0E9pB7o8L0OZv00LODw/sJi9Ek0JswDcb11sri5QU8QyhOCICX7HosMIErVCaR3 eMTZD7QZlck4xmCT+oxwGxEpHo2ZSa5XYlaHEbLvM4Dk4OX1Ix9Bt2YTS92SvZVDS3OZ wrBvMn0Mkcm1NAmmlXFrRWsGd/TReSRqYkQtl5UXbpnphBtKgOS2riNuH65a//2Zb/NH IC2bcRS886WGgYMfZ/0IRFKhsL7uRhlCnWia1pALtFx4hv5aKFViJPu1N3jtIZ0SLr4g YvuQ== X-Gm-Message-State: AOJu0Yz9vN/NDXjb0YLoKZ6r3CTxL7/nRiLB7wzWPm4/msZ7Vm8puXZz tHQ2RssKft6zHm59TljXj6+j6Kfuemg69USbGzWW7JTUOfj30TqIkEooyq/dnqXKjs+moMvLT/T X9izLSuFrSrIE9kmPR/kgwSh8cs45RYGX3p4Zx2Rv9DGiczDPN7dMTvI4YFUUM8P/0GSK6CXOfG /mYTrx08n3QMDdNN/rHzgkmlxaBUkT3oUR6sXgDo+s68oKYw== X-Google-Smtp-Source: AGHT+IHJnaKtqLKo7L8nRNPoG1ZdvCZjMOnPz419YOvyNqERxG8fm/3WoTKtrRrmQD4MkEqxijaEcA== X-Received: by 2002:a17:902:e809:b0:1f6:751b:f0d with SMTP id d9443c01a7336-1f6a5a11f20mr23025985ad.22.1717581100306; Wed, 05 Jun 2024 02:51:40 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f673a9ef86sm58002285ad.56.2024.06.05.02.51.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 02:51:38 -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 v4 0/5] mpi3mr: Host diag buffer support Date: Wed, 5 Jun 2024 15:18:35 +0530 Message-Id: <20240605094840.14968-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 Ranjan Kumar (5): mpi3mr: HDB allocation and posting for hardware and Firmware buffers mpi3mr: Driver buffer allocation and posting 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 | 57 ++ drivers/scsi/mpi3mr/mpi3mr.h | 157 +++- drivers/scsi/mpi3mr/mpi3mr_app.c | 1080 ++++++++++++++++++++++++++ drivers/scsi/mpi3mr/mpi3mr_fw.c | 426 +++++++++- drivers/scsi/mpi3mr/mpi3mr_os.c | 113 +++ include/uapi/scsi/scsi_bsg_mpi3mr.h | 3 +- 6 files changed, 1825 insertions(+), 11 deletions(-) create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_tool.h