MODS Online IST SMC support

Summary: This change adds support in mods kernel
driver to send messages to ATF using SMC interface in
order to fetch the Online IST test results.

JIRA TM-206

Change-Id: Iafa397287d7af63d77c51308345a9dc93d3a922f
Signed-off-by: Anshul Goel <ansgoel@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2630148
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Anshul Goel
2021-11-22 22:27:11 +00:00
committed by Laxman Dewangan
parent c9052a874f
commit aa915e1412
5 changed files with 65 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
/*
* mods.h - This file is part of NVIDIA MODS kernel driver.
*
* Copyright (c) 2008-2021, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2008-2022, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA MODS kernel driver is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License,
@@ -1795,6 +1795,21 @@ struct MODS_TZ_PARAMS {
int status;
};
/* Used by MODS_ESC_OIST_STATUS ioctl.
*
* Available only on Tegra.
*/
struct MODS_TEGRA_OIST_STATUS {
/* IN */
__u64 smc_func_id;
/* IN */
__u64 a1;
/* IN */
__u64 a2;
/* OUT */
__u64 smc_status;
};
#define MODS_IOMMU_MAP_CONTIGUOUS 1
#pragma pack(pop)
@@ -1995,5 +2010,6 @@ struct MODS_TZ_PARAMS {
#define MODS_ESC_BPMP_SET_PCIE_STATE MODSIO(W, 136, MODS_SET_PCIE_STATE)
#define MODS_ESC_BPMP_INIT_PCIE_EP_PLL MODSIO(W, 137, MODS_INIT_PCIE_EP_PLL)
#define MODS_ESC_SEND_TZ_MSG MODSIO(WR, 139, MODS_TZ_PARAMS)
#define MODS_ESC_OIST_STATUS MODSIO(WR, 140, MODS_TEGRA_OIST_STATUS)
#endif /* _UAPI_MODS_H_ */