nvidia: support HSI error injection

Using this patch we are adding HSI error
injection support for SDMMC controller.

JIRA ESLC-7042
Bug 3413214

Change-Id: Ib1300bd133eb48c30439337c8205365dfd30395d
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2849755
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Manish Bhardwaj
2023-01-27 17:16:01 +00:00
committed by mobile promotions
parent 04d3fe046f
commit 4d73511481
3 changed files with 148 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
#ifndef _TEGRA_VIRT_STORAGE_SPEC_H_
@@ -13,6 +13,7 @@
enum vs_req_type {
VS_DATA_REQ = 1,
VS_CONFIGINFO_REQ = 2,
VS_ERR_INJECT = 3,
VS_UNKNOWN_CMD = 0xffffffff,
};
@@ -61,6 +62,16 @@ enum blk_cmd_op {
#pragma pack(push)
#pragma pack(1)
struct vs_error_inject_request {
union {
uint32_t error_id;
};
};
struct vs_error_inject_response {
int32_t status;
};
struct vs_blk_request {
uint64_t blk_offset; /* Offset into storage device in terms
of blocks for block device */
@@ -203,11 +214,13 @@ struct vs_request {
union {
struct vs_blkdev_request blkdev_req;
struct vs_mtddev_request mtddev_req;
struct vs_error_inject_request error_inject_req;
};
int32_t status;
union {
struct vs_blkdev_response blkdev_resp;
struct vs_mtddev_response mtddev_resp;
struct vs_error_inject_response error_inject_resp;
struct vs_config_info config_info;
};
};