Chris Dragan
003f79282f
misc: mods: update MODS kernel driver to 3.93
...
Change-Id: I6bc81407edbd448867c0b6d979d2eb3920c0e95c
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/2156158
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Nicolin Chen
9ca6957981
misc: mods: Fix segment_size overflow bug
...
The sg->length may happen to be a large size, and this
will overflow the local segment_size when accumulating
sg->length to it at line "segment_size += sg->length".
Since segment_size of MODS_DMABUF_GET_PHYSICAL_ADDRESS
structure is defined in u64 type, this patch fixes the
bug by changing the local varible to u64 as well.
Bug 2521255
Change-Id: Id1fb6d149f55f4fd9238a399393ed2efae77c84a
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/2105445
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashish Mhetre <amhetre@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Ashish Mhetre
6f325d969e
drivers: mods: Add a dummy device driver
...
Add a dummy device driver for retrieving physical address through dma_buf.
Set dma_mask bit to 39 during probe of this driver to add large mapping
support upto 512GB.
Bug 2482094
Change-Id: I4e6204bb2b5196b7362d547ee393abf6e291a043
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/2002758
Reviewed-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Ashish Mhetre
01afe170c6
drivers: mods: Assign dma_ops to the device
...
dummy_device created in mods test does not have dma_ops set to it.
So explicitly set the dma_ops of device to swiotlb_dma_ops.
Bug 200460613
Change-Id: Ie9902f1c0b07948ea04355aa754b023f10f7581d
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1975103
Reviewed-by: Chris Dragan <kdragan@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
63bb979778
misc: mods: fix handling regions >4GB
...
The API for retrieving PAs needs to correctly handle offsets which
exceed 4GB.
Bug 1860962
Change-Id: I877c370d97c35fde565c70cd86a95093be083ebb
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1958611
Reviewed-by: Sami Kiminki <skiminki@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
4ba7812b29
misc: mods: add release function
...
Add dummy release function to prevent an error printed during module
unload.
Bug 200344064
Change-Id: Ifa92600e88c4152327079c37ec9ed581179c0860
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1551847
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com >
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
324b7be6e5
mods: remove direct references to SMMU driver
...
Change-Id: I31d82ee0d9154b21f7531f4ed1e8b6cd45ded64c
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: http://git-master/r/1498461
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com >
2023-04-03 13:27:52 +00:00
Chris Dragan
1f6ca0cb27
misc: add mods driver
...
* copy driver sources from kernel-4.4 repository
* sync with copy in Perforce
* fix several formatting errors
* fix issues reported by Coverity
Bug 200295104
Change-Id: I0a37cd12041d8fdcafb72b2e67d1a9234320e11b
Signed-off-by: Chris Dragan <kdragan@nvidia.com >
Reviewed-on: http://git-master/r/1487057
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com >
Reviewed-by: Vivek Aseeja <vaseeja@nvidia.com >
Reviewed-by: Kiran Kasamsetty <kkasamsetty@nvidia.com >
2023-04-03 13:27:52 +00:00