platform: tegra: dce: Add debugfs for external tests

External clients such as MODS require the ability to run tests. Add
support for this feature. Currently only the following 2 external client
tests are supported:
  - MODS ALU test
  - MODS DMA test

Bug 3198239
JIRA TDS-6362

Change-Id: I18c20a9fa5d2606056d65b76fbaae9b0c81746d4
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2606595
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Adeel Raza
2021-05-28 20:08:31 -07:00
committed by Laxman Dewangan
parent d05457f954
commit c032aa992e
4 changed files with 209 additions and 5 deletions

View File

@@ -237,6 +237,11 @@ struct dce_device {
* @debugfs : Debugfs node for DCE Linux device.
*/
struct dentry *debugfs;
/**
* @ext_test_status : Return code for external client tests run via
* debugfs
*/
s32 ext_test_status;
#endif
};
@@ -395,6 +400,8 @@ int dce_admin_get_ipc_channel_info(struct tegra_dce *d,
struct dce_ipc_queue_info *q_info);
int dce_admin_send_cmd_echo(struct tegra_dce *d,
struct dce_ipc_message *msg);
int dce_admin_send_cmd_ext_test(struct tegra_dce *d,
struct dce_ipc_message *msg);
int dce_admin_handle_ipc_requested_event(struct tegra_dce *d, void *params);
int dce_admin_handle_ipc_received_event(struct tegra_dce *d, void *params);
int dce_admin_ipc_wait(struct tegra_dce *d, u32 w_type);