From 54b44020e7ead4dc58541ce7ddc305c761901cfe Mon Sep 17 00:00:00 2001 From: Damian Halas Date: Wed, 15 Aug 2018 09:57:43 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1800407 Reviewed-by: Pekka Pessi Reviewed-by: David Bang GVS: Gerrit_Virtual_Submit Reviewed-by: Nirav Patel Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/tegra_vhost.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/linux') 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 { TEGRA_VHOST_CMD_HOST1X_REGRDWR, TEGRA_VHOST_CMD_SUSPEND, TEGRA_VHOST_CMD_RESUME, + TEGRA_VHOST_CMD_PROD_APPLY, /* WAR */ + TEGRA_VHOST_CMD_CIL_SW_RESET, /* WAR */ }; struct tegra_vhost_connect_params { @@ -116,6 +118,15 @@ struct tegra_vhost_channel_regrdwr_params { u32 regs[REGRDWR_ARRAY_SIZE]; }; +struct tegra_vhost_prod_apply_params { + u32 phy_mode; +}; + +struct tegra_vhost_cil_sw_reset_params { + u32 lanes; + u32 enable; +}; + struct tegra_vhost_cmd_msg { u32 cmd; int ret; @@ -130,6 +141,8 @@ struct tegra_vhost_cmd_msg { struct tegra_vhost_channel_clientid_params clientid; struct tegra_vhost_channel_submit_params cdma_submit; struct tegra_vhost_channel_regrdwr_params regrdwr; + struct tegra_vhost_prod_apply_params prod_apply; + struct tegra_vhost_cil_sw_reset_params cil_sw_reset; } params; }; -- cgit v1.2.2