Tegra: allow SiP smc calls from Secure World
authorWayne Lin <wlin@nvidia.com>
Thu, 31 Mar 2016 20:49:09 +0000 (13:49 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Tue, 28 Feb 2017 16:50:01 +0000 (08:50 -0800)
This patch removes the restriction of allowing SiP calls only from the
non-secure world. The secure world can issue SiP calls as a result of
this patch now.

Change-Id: Idd64e893ae8e114bba0196872d3ec544cac150bf
Signed-off-by: Wayne Lin <wlin@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/common/tegra_sip_calls.c

index 3bcd4418f0750d791c429f030bbf2db9e068c1e9..77f039a42291e252f20898c3cc3b689ecbb9112b 100644 (file)
@@ -60,7 +60,7 @@ int plat_sip_handler(uint32_t smc_fid,
 }
 
 /*******************************************************************************
- * This function is responsible for handling all SiP calls from the NS world
+ * This function is responsible for handling all SiP calls
  ******************************************************************************/
 uint64_t tegra_sip_handler(uint32_t smc_fid,
                           uint64_t x1,
@@ -71,14 +71,8 @@ uint64_t tegra_sip_handler(uint32_t smc_fid,
                           void *handle,
                           uint64_t flags)
 {
-       uint32_t ns;
        int err;
 
-       /* Determine which security state this SMC originated from */
-       ns = is_caller_non_secure(flags);
-       if (!ns)
-               SMC_RET1(handle, SMC_UNK);
-
        /* Check if this is a SoC specific SiP */
        err = plat_sip_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags);
        if (err == 0)