mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 13:41:48 -04:00
drm/amd/ras: Add convert retired address structure
Add convert retired address command and structure for uniras. Signed-off-by: Jinzhou Su <jinzhou.su@amd.com> Reviewed-by: YiPeng Chai <YiPeng.Chai@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -78,6 +78,7 @@ enum ras_cmd_id {
|
||||
RAS_CMD__GET_ALL_BLOCK_ECC_STATUS,
|
||||
RAS_CMD__SET_CMD_AUTO_UPDATE,
|
||||
RAS_CMD__CHECK_ADDRESS_VALIDITY,
|
||||
RAS_CMD__CONVERT_RETIRED_ADDRESS,
|
||||
RAS_CMD__SUPPORTED_MAX = RAS_CMD_ID_COMMON_END,
|
||||
};
|
||||
|
||||
@@ -442,6 +443,19 @@ struct ras_cmd_address_check_rsp {
|
||||
uint32_t reserved[6];
|
||||
};
|
||||
|
||||
struct ras_cmd_convert_retired_address_req {
|
||||
struct ras_cmd_dev_handle dev;
|
||||
uint64_t address;
|
||||
uint32_t reserved[6];
|
||||
};
|
||||
|
||||
#define RAS_CMD_MAX_RETIRED_ADDR_COUNT 32
|
||||
struct ras_cmd_convert_retired_address_rsp {
|
||||
uint32_t version;
|
||||
uint32_t retired_count;
|
||||
uint64_t retired_addr[RAS_CMD_MAX_RETIRED_ADDR_COUNT];
|
||||
};
|
||||
|
||||
struct ras_cmd_blocks_ecc_req {
|
||||
struct ras_cmd_dev_handle dev;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user