drivers: dcvs: llcc_miss: Remove Secure Device Check

Remove the secure device check for the LLCC miss
profiling driver as it is not needed.

Change-Id: Ie758b32d163d7a72197620f3b061acafc51cbd1f
Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com>
This commit is contained in:
Shivnandan Kumar 2024-11-01 09:48:24 +05:30
parent 7d54a3d07e
commit 74b04c2d6c
4 changed files with 0 additions and 29 deletions

View File

@ -803,26 +803,6 @@ int qcom_scm_get_sec_dump_state(u32 *dump_state)
}
EXPORT_SYMBOL(qcom_scm_get_sec_dump_state);
int qcom_scm_get_secure_status(u64 *secure_status)
{
int ret;
struct qcom_scm_desc desc = {
.svc = QCOM_SCM_SVC_INFO,
.cmd = QCOM_SCM_UTIL_GET_SECURE_STATUS,
.owner = ARM_SMCCC_OWNER_SIP
};
struct qcom_scm_res res;
if (!secure_status)
return -EINVAL;
ret = qcom_scm_call(__scm ? __scm->dev : NULL, &desc, &res);
*secure_status = res.result[0];
return ret;
}
EXPORT_SYMBOL_GPL(qcom_scm_get_secure_status);
int __qcom_scm_get_llcc_missrate(struct device *dev, phys_addr_t in_buf,
size_t in_buf_size, phys_addr_t out_buf, size_t out_buf_size)
{

View File

@ -231,7 +231,6 @@ int qcom_scm_handle_wait(struct device *dev, int scm_ret,
#define QCOM_SCM_LMH_LIMIT_PROFILE_CHANGE 0x01
#define QCOM_SCM_LMH_LIMIT_DCVSH 0x10
#define QCOM_SCM_UTIL_GET_SECURE_STATUS 0x04
#define QCOM_SCM_GET_LLCC_MISSRATE_STATS_ID 0x14
#define QCOM_SCM_SVC_MISSRATE 0x06

View File

@ -434,13 +434,6 @@ static int llcc_miss_create_fs_entries(void)
static int __init qcom_llcc_miss_init(void)
{
int ret, i, j;
u64 secure_state = 0;
ret = qcom_scm_get_secure_status(&secure_state);
if (ret < 0)
return ret;
if (!(secure_state & BIT(0)) || (secure_state & BIT(6)))
return -EPERM;
llcc_miss = kzalloc(sizeof(*llcc_miss), GFP_KERNEL);
if (!llcc_miss)

View File

@ -119,7 +119,6 @@ extern int qcom_scm_pas_shutdown_retry(u32 peripheral);
extern bool qcom_scm_pas_supported(u32 peripheral);
extern int qcom_scm_get_sec_dump_state(u32 *dump_state);
extern int qcom_scm_get_secure_status(u64 *secure_status);
extern int qcom_scm_get_llcc_missrate(phys_addr_t in_buf, size_t in_buf_size,
phys_addr_t out_buf, size_t out_buf_size);
extern int qcom_scm_assign_dump_table_region(bool is_assign, phys_addr_t addr, size_t size);