msm: eva: Snapshot of eva driver compiled in LKP

Port EVA driver to LKP.

Change-Id: If258891dd5adef096c28eaded36b4529750b9359
Signed-off-by: George Shen <sqiao@codeaurora.org>
这个提交包含在:
George Shen
2020-09-10 11:36:58 -07:00
父节点 16527cad45
当前提交 10b7267132
修改 9 个文件,包含 58 行新增80 行删除

查看文件

@@ -21,6 +21,7 @@ int msm_cvp_fw_debug = 0x18;
int msm_cvp_fw_debug_mode = 1;
int msm_cvp_fw_low_power_mode = 1;
bool msm_cvp_fw_coverage = !true;
bool msm_cvp_cacheop_enabled = true;
bool msm_cvp_thermal_mitigation_disabled = !true;
bool msm_cvp_cacheop_disabled = !true;
int msm_cvp_clock_voting = !1;
@@ -229,8 +230,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(cvp_pwr_fops, cvp_power_get, cvp_power_set, "%llu\n");
struct dentry *msm_cvp_debugfs_init_drv(void)
{
bool ok = false;
struct dentry *dir = NULL;
struct dentry *dir = NULL, *f;
dir = debugfs_create_dir("msm_cvp", NULL);
if (IS_ERR_OR_NULL(dir)) {
@@ -238,35 +238,26 @@ struct dentry *msm_cvp_debugfs_init_drv(void)
goto failed_create_dir;
}
#define __debugfs_create(__type, __name, __value) ({ \
struct dentry *f = debugfs_create_##__type(__name, 0644, \
dir, __value); \
if (IS_ERR_OR_NULL(f)) { \
dprintk(CVP_ERR, "Failed creating debugfs file '%pd/%s'\n", \
dir, __name); \
f = NULL; \
} \
f; \
})
ok =
__debugfs_create(x32, "debug_level", &msm_cvp_debug) &&
__debugfs_create(x32, "fw_level", &msm_cvp_fw_debug) &&
__debugfs_create(u32, "fw_debug_mode", &msm_cvp_fw_debug_mode) &&
__debugfs_create(bool, "fw_coverage", &msm_cvp_fw_coverage) &&
__debugfs_create(u32, "fw_low_power_mode",
&msm_cvp_fw_low_power_mode) &&
__debugfs_create(u32, "debug_output", &msm_cvp_debug_out) &&
__debugfs_create(bool, "disable_thermal_mitigation",
&msm_cvp_thermal_mitigation_disabled) &&
__debugfs_create(bool, "disable_cacheop",
&msm_cvp_cacheop_disabled) &&
__debugfs_create(bool, "disable_cvp_syscache",
debugfs_create_x32("debug_level", 0644, dir, &msm_cvp_debug);
debugfs_create_x32("fw_level", 0644, dir, &msm_cvp_fw_debug);
debugfs_create_u32("fw_debug_mode", 0644, dir, &msm_cvp_fw_debug_mode);
debugfs_create_u32("fw_low_power_mode", 0644, dir,
&msm_cvp_fw_low_power_mode);
debugfs_create_u32("debug_output", 0644, dir, &msm_cvp_debug_out);
f = debugfs_create_bool("fw_coverage", 0644, dir, &msm_cvp_fw_coverage);
if (IS_ERR_OR_NULL(f))
goto failed_create_dir;
f = debugfs_create_bool("disable_thermal_mitigation", 0644, dir,
&msm_cvp_thermal_mitigation_disabled);
if (IS_ERR_OR_NULL(f))
goto failed_create_dir;
f = debugfs_create_bool("enable_cacheop", 0644, dir,
&msm_cvp_cacheop_enabled);
if (IS_ERR_OR_NULL(f))
goto failed_create_dir;
f = debugfs_create_bool("disable_cvp_syscache", 0644, dir,
&msm_cvp_syscache_disable);
#undef __debugfs_create
if (!ok)
if (IS_ERR_OR_NULL(f))
goto failed_create_dir;
debugfs_create_file("cvp_power", 0644, dir, NULL, &cvp_pwr_fops);
@@ -277,6 +268,7 @@ failed_create_dir:
if (dir)
debugfs_remove_recursive(cvp_driver->debugfs_root);
dprintk(CVP_WARN, "Failed to create debugfs\n");
return NULL;
}