summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDamian Halas <dhalas@nvidia.com>2018-08-15 12:57:43 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-22 20:32:28 -0400
commit54b44020e7ead4dc58541ce7ddc305c761901cfe (patch)
treedf3ed15c444aab20ce0e0f693dec817e94a127fb /include/linux
parent4e6de65c4b2c6ecce077e1b1f56a985855c89e39 (diff)
video: tegra: host: WAR nvcsi MMIO accesses in virt
Nvcsi requires some MMIO actions to be done at runtime. This scannot be provided directly by the guest driver so this patch redirects the ioctl requests to RMServer. This is a WAR as this feature is going to be implemented by RCE. JIRA EVLR-3115 Change-Id: I38856b612a58e5f899e79959ede7e541fdbf0604 Signed-off-by: Damian Halas <dhalas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1800407 Reviewed-by: Pekka Pessi <ppessi@nvidia.com> Reviewed-by: David Bang <dbang@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Nirav Patel <nipatel@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tegra_vhost.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/tegra_vhost.h b/include/linux/tegra_vhost.h
index d78592951..78f9674f1 100644
--- a/include/linux/tegra_vhost.h
+++ b/include/linux/tegra_vhost.h
@@ -62,6 +62,8 @@ enum {
62 TEGRA_VHOST_CMD_HOST1X_REGRDWR, 62 TEGRA_VHOST_CMD_HOST1X_REGRDWR,
63 TEGRA_VHOST_CMD_SUSPEND, 63 TEGRA_VHOST_CMD_SUSPEND,
64 TEGRA_VHOST_CMD_RESUME, 64 TEGRA_VHOST_CMD_RESUME,
65 TEGRA_VHOST_CMD_PROD_APPLY, /* WAR */
66 TEGRA_VHOST_CMD_CIL_SW_RESET, /* WAR */
65}; 67};
66 68
67struct tegra_vhost_connect_params { 69struct tegra_vhost_connect_params {
@@ -116,6 +118,15 @@ struct tegra_vhost_channel_regrdwr_params {
116 u32 regs[REGRDWR_ARRAY_SIZE]; 118 u32 regs[REGRDWR_ARRAY_SIZE];
117}; 119};
118 120
121struct tegra_vhost_prod_apply_params {
122 u32 phy_mode;
123};
124
125struct tegra_vhost_cil_sw_reset_params {
126 u32 lanes;
127 u32 enable;
128};
129
119struct tegra_vhost_cmd_msg { 130struct tegra_vhost_cmd_msg {
120 u32 cmd; 131 u32 cmd;
121 int ret; 132 int ret;
@@ -130,6 +141,8 @@ struct tegra_vhost_cmd_msg {
130 struct tegra_vhost_channel_clientid_params clientid; 141 struct tegra_vhost_channel_clientid_params clientid;
131 struct tegra_vhost_channel_submit_params cdma_submit; 142 struct tegra_vhost_channel_submit_params cdma_submit;
132 struct tegra_vhost_channel_regrdwr_params regrdwr; 143 struct tegra_vhost_channel_regrdwr_params regrdwr;
144 struct tegra_vhost_prod_apply_params prod_apply;
145 struct tegra_vhost_cil_sw_reset_params cil_sw_reset;
133 } params; 146 } params;
134}; 147};
135 148