-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge patch series "mpi3mr: Host diag buffer support"
Ranjan Kumar <ranjan.kumar@broadcom.com> says: 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. Link: https://lore.kernel.org/r/20240626102646.14298-1-ranjan.kumar@broadcom.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
- Loading branch information
Showing
6 changed files
with
1,634 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
/* | ||
* Copyright 2016-2024 Broadcom Inc. All rights reserved. | ||
*/ | ||
#ifndef MPI30_TOOL_H | ||
#define MPI30_TOOL_H 1 | ||
|
||
#define MPI3_DIAG_BUFFER_TYPE_TRACE (0x01) | ||
#define MPI3_DIAG_BUFFER_TYPE_FW (0x02) | ||
#define MPI3_DIAG_BUFFER_ACTION_RELEASE (0x01) | ||
|
||
struct mpi3_diag_buffer_post_request { | ||
__le16 host_tag; | ||
u8 ioc_use_only02; | ||
u8 function; | ||
__le16 ioc_use_only04; | ||
u8 ioc_use_only06; | ||
u8 msg_flags; | ||
__le16 change_count; | ||
__le16 reserved0a; | ||
u8 type; | ||
u8 reserved0d; | ||
__le16 reserved0e; | ||
__le64 address; | ||
__le32 length; | ||
__le32 reserved1c; | ||
}; | ||
|
||
struct mpi3_diag_buffer_manage_request { | ||
__le16 host_tag; | ||
u8 ioc_use_only02; | ||
u8 function; | ||
__le16 ioc_use_only04; | ||
u8 ioc_use_only06; | ||
u8 msg_flags; | ||
__le16 change_count; | ||
__le16 reserved0a; | ||
u8 type; | ||
u8 action; | ||
__le16 reserved0e; | ||
}; | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.