fsicom: updated memory unmap

- add support to unmap the previously mapped memory
- updated the data structure to store the dma pointer in
  user space
- taking dma buf pointer from user space while unmapping

JIRA SS-4006
JIRA SS-4628
Bug 3855033

Change-Id: I8ca71d11076b64af33c32e6e30c7c056828fbf75
Signed-off-by: Rahul Bedarkar <rabedarkar@nvidia.com>
Signed-off-by: Prashant Kumar Shaw <pshaw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2819744
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Prashant Kumar Shaw
2022-12-01 08:05:57 +00:00
committed by mobile promotions
parent f6d27d0561
commit d3d5025a1c
2 changed files with 21 additions and 3 deletions

View File

@@ -12,6 +12,9 @@ struct rw_data {
uint32_t handle;
uint64_t pa;
uint64_t iova;
uint64_t dmabuf;
uint64_t attach;
uint64_t sgt;
};
/*Data type for sending the offset,IOVA and channel Id details to FSI */