From patchwork Thu May 16 15:20:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 797438 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.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 A76D71E491 for ; Thu, 16 May 2024 15:23:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715872991; cv=none; b=idjz0uAelDfWD8AwtJsVOr0VM67+1n1LFTsH88pWWPD2fW0HiVkG/dohu/7LfW/SUZP5/mLquoPzBC/VoG5qQobb5kbNizibuEmMFQRaiiMDZGHaOmZ0qw8RlP0WzQXCo26iMQ4B8nenRoh2WBnW5d0l5WA96juczhi6pG30A3A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715872991; c=relaxed/simple; bh=9T9rVEs+TgmIkv8uga/9TI2JdE3VpJZ2N1Le4p2vM4o=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=cd01JVqNmpMVv+xSiF/5RPfEjx3fT3tvVvmdEEYKM3qm+CHyC5r+zj2QHZ3nRRrUTFs3WRwhIVHys7oAQ86O++egCRXdrNLp4tGQvY2/KTzdAddqu0IxBPBfWgO7GrmAbUq8nTQ05N2P8QcSQmdeoV0AQed0IYxdhkuGNFhEdTE= 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=FlBQD6Ot; arc=none smtp.client-ip=209.85.210.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="FlBQD6Ot" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6f666caf9abso359479b3a.1 for ; Thu, 16 May 2024 08:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1715872988; x=1716477788; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=zU97gQ6srJUvncUT71Q5KtP0jtVG0ozX5GhL1BHOub4=; b=FlBQD6OtD2XlBy1YESloh3+a1BBnxfGgQERB7belUulOvv4//BjnMiFlpE368rYDr5 f+mrlU6M3veiTJZQKZE3tYejwj5S1+/DqHXexkvd05ZWI9WXiY0aiUxfVZ009JYfJOjO ap8EZwHdcer03ri7V+noTW+xkURcooMglBqzY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715872988; x=1716477788; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zU97gQ6srJUvncUT71Q5KtP0jtVG0ozX5GhL1BHOub4=; b=QBMTbbxPIYWauwhpzg6S+EdOhpl5S6p0QHVoqHTQv0/NdWqysbtrkYljxtNMh61oo2 ecpg30wuyjQ/dkUuAHGfmmcwWKLkStL1VZwulf3fKeHEcwWfDmPrjxXPg3O4v5lkDmtv aw7zDW3YT35VqLhuLmKJKzDndKux5tB6VpGszqivPpWyZK6mLkUhWoQIhXlTXha/R35o mXd8EXLryF+sLmBlm/iikq2nv0ra2kOY2JIK3KOiPRADOUdLb5KgK3TJqEwVvq/EbPBy sGbHN9WMogxIJXsgPB2U/kpBSsENqvFdAUIZI8s3LPEglWl+Fl7XmjjiaO0Je/SYpWJf zzhg== X-Gm-Message-State: AOJu0Yynj0n/1HMutcDGQBrEdA6vFoshLXoxer4faVx06FWDkqO06E82 xYFObAjrHsAVlrbajA+jM8rgFImuAt9ya0RfVfD3nDYlSMixB38lsm5RIixNvS3g7Q+tqxvIaH7 YevNzemSyZD/D+LHrI+kC7CJV7pH29leB+Zb4AH0/3ETjCd06+IwmQkysx+d3lowowXuI3Y0oN7 jIbpXzlYkoqQgr5XWBk3VNn0L9BMV39PvhxClI8VDOBpv+Ti0A X-Google-Smtp-Source: AGHT+IHx6Oe//0w/mcOWrUiSvQbfpI4723XstlrzuDBSJ3OA1PEWw5bhcWIvHOh0Wv0yv+VEuDPsiQ== X-Received: by 2002:a05:6a20:d80b:b0:1ac:4fca:23c2 with SMTP id adf61e73a8af0-1afde07cc3amr19649899637.8.1715872987984; Thu, 16 May 2024 08:23:07 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f4d2a83d3dsm13241749b3a.65.2024.05.16.08.23.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 08:23:06 -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 v3 0/6] mpi3mr: Host diag buffer support Date: Thu, 16 May 2024 20:50:04 +0530 Message-Id: <20240516152010.88227-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 Ranjan Kumar (6): mpi3mr: HDB allocation and posting for hardware and Firmware buffers mpi3mr: Driver buffer allocation and posting mpi3mr: Dump driver and dmesg logs into driver diag buffer 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 | 59 ++ drivers/scsi/mpi3mr/mpi3mr.h | 162 +++- drivers/scsi/mpi3mr/mpi3mr_app.c | 1080 ++++++++++++++++++++++++++ drivers/scsi/mpi3mr/mpi3mr_fw.c | 550 ++++++++++++- drivers/scsi/mpi3mr/mpi3mr_os.c | 113 +++ include/uapi/scsi/scsi_bsg_mpi3mr.h | 3 +- 6 files changed, 1956 insertions(+), 11 deletions(-) create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_tool.h