Need help in a specific SMC call

hello beckrakesh,

it looks you don’t need SMC calls to register a new NS DRAM range, there’s CBoot will invoke the SMC call and register all the kernel memory space into Trusty.
it passes NS DRAM ranges to TOS so that TOS can use it for validating NS addresses; the mapping is rejected if memory location outside NS DRAM range.

you should have some experiments as below.

  1. get the physical address from NS world (something like dma_alloc)
  2. pass it to Trusty
  3. validate and map the memory in Trusty, you may refer to couple of functions as below.
    for example,
    $L4T_Sources/r32.4.2/Linux_for_Tegra/source/public/trusty/trusty/tegra/public/platform/tegra_common/ioctl.c
static bool valid_address(vaddr_t addr, size_t size){...}
int32_t ioctl_map_eks_to_user(ioctl_map_eks_params p){...}
  1. read the NS memory in Trusty