video: tegra: host: use read only flag for firmwares
- make use of read only flag from smmu while loading firmwares
- to enable this first add extra parameter 'rw_flag' to function
nvhost_memmgr_pin() and nvhost_nvmap_pin() to pass read-write flag
- nvhost_nvmap_pin() will then set appropriate attributes based on
the flag passed
- below are the available flags which can be passed
mem_flag_none : do not mark anything
mem_flag_read_only : mark read only
mem_flag_write_only : mark write only
- make use of 'mem_flag_read_only' for MSENC, TSEC and VIC firmwares
by passing this parameter from below :
msenc_read_ucode()
vic03_read_ucode()
tsec_read_ucode()
- add 'mem_flag_none' in all other calls to nvhost_memmgr_pin()
Bug
1309863
Change-Id: I7c3d3525e403fd46921a30502f70e79ecf74fca8
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/274282
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>