Age | Commit message (Collapse) | Author |
|
On reserve request:
- mark the pages within specified range as reserved for device
On release request:
- reset the reserved bits for reserved pages within range specified
in each handle
bug 1444151
Change-Id: Ia565bdb86db9f345004a12861138a26a9b6fc243
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/376602
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
Allocating with this flag allows user space to perform cache
maintenance for the dirty pages alone.
Rename PHYSICALLY_CONTIGUOUS flag to PHYS_CONTIG.
Change-Id: I56d2bce395a46357409048455ab82c2b59f65436
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/398348
|
|
Reserve operation should be independent of cache maintenance.
Remove dependency on cache maintenance for zapping user mappings.
Bug 1444151
Change-Id: Id7282510353bc1ded15e105bbfde50bc3891ca0f
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/398414
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
A page is marked cpu dirty when a user space access faults or
when kernel access happens through dma_buf_kmap.
A page is marked cpu clean when it is written back. This operation is valid
only for write back i.e., when buffer is sync for device.
For kernel accesses through kmap/vmap it is assumed that client calls
begin/end_cpu_access to take care of sync for device/cpu immediately after
access and hence we do not track such dirty pages.
enable tracking cpu dirty pages, if auto_cache_sync is enabled for handle.
Bug 1444151
Change-Id: Ic03478702fad67b6d7682eb20404e3f88114d81c
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/391816
Reviewed-by: Automatic_Commit_Validation_User
|
|
In the case that the zeroed page kernel config is set, the
userspace zeroed memory module param also required being set
otherwise non-zero memory could be placed back into the page
pools.
Change-Id: I983a65bc0ad84eefcc5f4fcad0706c624460bdff
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/396081
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Season Li <seasonl@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>
|
|
Change-Id: Idfe61da2f80ed2c4ba8262480d72c2344081f482
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/398083
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
|
|
nvhost_module_disable_clk() currently first disables the clocks
and then suspends the channels as follows :
clk_disable_unprepare()
nvhost_channel_suspend()
reverse this sequence as below and keep clock disabling after
the channel operations
nvhost_channel_suspend()
clk_disable_unprepare()
Bug 1497798
Change-Id: Ib157606f5dde0495f90d2fa3bd53e5efd9617a49
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/397699
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
|
|
zap_page_range expects start + size to be page aligned.
Bug 1444151
Change-Id: I931fc61bacace271b2de7c00bd528f981e60ccc7
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/397734
|
|
Optimize the resume path to only use the 100ms work around delay for
outputs that support hotplug wake and only when a panels is connected.
Bug 1494970
Change-Id: I0ea449cfd8eff162b7752fbc3f4c4f462f54b915
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/397468
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
|
|
This takes care of the following
1. On page reserve request: set reserved bit to indicate page
is reserved
2. On page unreserve request: reset the reserved bit.
Bug 1444151
Change-Id: I0920af9a8eb538a84c8b3520b383276c7a28d74b
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/377862
|
|
Add helper functions for handle clean, reserved and unreserved.
Bug 1444151
Change-Id: Ie14d60555200b73928c6b829a719783139c36b4f
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/397453
|
|
Bug 1444151
Change-Id: I0d385d36bd62f6e60c6ad1296a60fc997bc13e80
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/397420
|
|
Add missing vma tracking during mmap.
Bug 1444151
Change-Id: Id0485237c96e97a3e1da55f14e5533a48fd2bde7
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/397390
|
|
This reverts commit e8ed9c2bea7317f67a5db371e8a9db7a10037681. Common
driver is missing some TSEC specifics.
Bug 1501989
Change-Id: I9b32f67f5d1e1c016689dbc6bdc4fb319cb51530
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/397527
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
|
|
Return SIGBUS fault on user access to reserved page.
Bug 1444151
Change-Id: Ieaa04c83a4ad5d0f17c8c386acee163ff7ca0c92
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/377863
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
Fix the thresh_lwm_bytes calculation as per guidance from MC ARCH.
Bug 1458335
Change-Id: Ic0351269a7b22d4d3d42644167fec46d8be68f77
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/396729
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
|
|
offset and size can be u32, u64 is not really necessary.
Bug 1444151
Change-Id: Ia07ecee3640649d7218bf8b12e887fcefe08c911
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/396362
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
Fix incorrect checks in nvmap_page_dirty() and nvmap_page_reserved().
Remove redundant braces.
Bug 1444151
Change-Id: I66fa2d77816dca8630c4d0b59931237aae4fe9e7
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/396512
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Tested-by: Sri Krishna Chowdary <schowdary@nvidia.com>
|
|
Bug 1448899
Bug 1407942
Change-Id: I506ffe3895aef566515d5951f247906c99ddce95
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/394402
(cherry picked from commit a06c405d4b40b8b3a55f0209d88bed76c22ec36e)
Reviewed-on: http://git-master/r/395391
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>
|
|
nvidia,dc-connection property will indicate
if target dc device is used for internal lcd
or external display.
For internal lcd, it will get dc output type from
selected panel node among device tree multiple
panel nodes: It can be TEGRA_DC_OUT_DSI or
TEGRA_DC_OUT_DP, etc.
For external display, dc output type will be set
to TEGRA_DC_OUT_HDMI.
Bug 1371533
Change-Id: I94f7f0a2e93c5550aa2ea8f7e2069e52bdc799df
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/395028
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
|
|
- Remove unnecessary aux transactions from fast lt
- Implement hdp_irq
- Remove sequencer enable/disable
Bug 1453390
Change-Id: Ia16ecd71e34023c741b612a2f04aa756c9d2efc2
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/394108
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Solomon <daniels@nvidia.com>
Tested-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
|
|
- adjust to cover video VBLANK command type
- set DSI to LP mode after sending suspend cmd
Bug 1444255
Change-Id: I2659155c0a91dde7c8ebbb6eaba89c26530205a1
Signed-off-by: Allen Chang <allchang@nvidia.com>
Reviewed-on: http://git-master/r/393896
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
|
|
Add below two new ioctls for client managed syncpts:
1) NVHOST_IOCTL_CHANNEL_GET_CLIENT_MANAGED_SYNCPOINT
To provide a client managed syncpt to user space
2) NVHOST_IOCTL_CHANNEL_FREE_CLIENT_MANAGED_SYNCPOINT
To free a client managed syncpt from user space
Bug 1482249
Bug 1305024
Change-Id: Ie9376c761024f2ad6e8a35633017153ca5cc8fe7
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/394158
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
|
|
Implement interface to notify user space when errors.
Bug 1469448
Change-Id: Id59e312ed69dcd11672ca5d1c2b71fde21972b94
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/395164
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
|
|
Change-Id: I5af4122540b925624bd6f64188f7134da28b10f3
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/288782
Reviewed-by: Automatic_Commit_Validation_User
|
|
Use flcn driver for driving MSENC.
Change-Id: Ie9f3d0de4987c95c30eef429bdc04fc0e220118c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/288781
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>
|
|
Extend VIC driver into a common Falcon driver and rename it to flcn.
Change-Id: Ic4d8c39e2ac1e7ac571746d7cf1ff8d8d34621d4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/288780
Reviewed-by: Ken Adams <kadams@nvidia.com>
|
|
Bug 1423574
Bug 1373180
Change-Id: I0fe2bf588a3f33692efa398874bad807e6b045e5
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/392389
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
Selecting the memory region within each handle can help
reduce cache maintenance overhead when performing cache ops on
list of handles especially when a few pages each from a
long list of handles are modified.
Bug 1373180
Change-Id: I2e81eba4703d3b311e7e82798cc23fbd7adf6303
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/392388
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
Add ndirty field in struct nvmap_pages to count of cpu dirty pages
in pgalloc.pages, in particular the user space accessed pages.
Defined as atomic_t to take care of any race conditions.
This can help skip cache maint on handles which do not have any dirty pages.
Bug 1444151
Change-Id: Id12e94b9aac071f2c92da74e2171866362442d57
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/383794
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
Modify cache maintenance operation to specify option whether to
clean only dirty pages or all pages from cache within the
specified range. This can help unnecessary overhead of cleaning
pages which are not dirty as well.
clean only dirty option is preferred for user space accesses since
dirty pages can be tracked only for those.
For kernel, since there is no mechanism to find out the dirty pages,
this option cannot be used.
Bug 1444151
Change-Id: Ib6df78a3fb926d1327f25bf9d1320a743381b2d9
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/395353
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
Fix Coverity issue of comparing unsigned variable to zero
Coverity id : 26235
Bug 1416640
Change-Id: Ie106ae57b665d01e45769a0b772ceeb940dd97f9
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/395184
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
|
|
For keepalive modules,
enable poweroff on channel(s) unmap and
disable poweroff on channel(s) open.
Bug 1259844
Change-Id: I51a9409a8dd997b66019ec727f997448e3781226
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/394976
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
|
|
Change-Id: I30baee4084399b8078232f31296c4d891a903d47
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/395123
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
Limit the scope of variables either to catch unintended usages.
Bug 1498782
Change-Id: I38eb5ed4a71b18432b3dbaa5d1df628a358b72a9
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
drivers/video/tegra/nvmap/nvmap_ioctl.c: In function 'nvmap_ioctl_pinop':
drivers/video/tegra/nvmap/nvmap_ioctl.c:116:24: error: 'output' may be used uninitialized in this function [-Werror=maybe-uninitialized]
unsigned long __user *output;
^
Change-Id: If155e71dd8a163a45e67c11c260fce92cad6a585
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
|
|
The trace events currently hold only the scaling statistics but they
do not tell which device was involved. Origianlly this was ok as
the policy was used only by the gpu, however, we use currently the
policy for scaling also vic.
Change-Id: I032ecb6bb6306f078d3525475284b67c69d6bac2
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
|
|
Register VI as isomgr client when the camera user
driver has requested for memory BW requirements.
Currently it is being done in probe only, which
may be unnecessary for the usecases where VI is
not the memory client.
Bug 1485474
Change-Id: I9ae41e299bf0a8ef21ed94d44a57829cf70d11e2
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
|
|
Fix DSI pad calibration values to address display
artifacts observed on some panels
Bug 1445912
Change-Id: If47a433525799f48b635248db2d4c9d7ee9953bb
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/394505
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
|
|
nvmap stores some buffer specific parameters and it already
allows accessing those parameters. This patch modifies nvmap
so that the parameters can be read also from drivers that are
compiled as modules.
Bug 1476801
Change-Id: Idfd51e25c85f8fe85891cb0df25d53f0695da401
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/387609
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
|
|
- Add support to have multiple channels per device.
- set max number of channels that can be assigned to
device in platform data.
- On channel open request assign new channel to device
till max number of channel count.
- suspend all assigned channels on device disable clk.
- un-map all channels on device release callback.
Bug 1259844
Bug 1436477
Change-Id: Ibc1de8b036cde238b292e1ffa660dc2a796f65e8
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/387096
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
|
|
Mask off page type bits in page pointer during its usage.
bug 1444151
Change-Id: I8ebb6d92f0978d76189a3d366225f43ad5c4fc7e
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/394836
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
Fix incorrect use of pgalloc.contig flag.
Change-Id: Id207053d5a9df43bf44ba96421903ce2ef2256a6
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/394931
|
|
Validate params passed for read/write operations on mem
handle.
bug 1454693
Change-Id: I7bba81f0478d358d92ba461728ea098b1e0ff52b
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/391904
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
|
|
Breaks ardbeg build.
This reverts commit e482cce87e208cdc34ba1842ab8afd84a3672d66.
Change-Id: I57c4340387932dad6112515995e29a5d6a123289
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/394812
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
This is driver side change to work with
reorganized display system device tree
for proper panel detection from among
multiple panel nodes in device tree level.
Bug 1371533
Change-Id: Iad0b1aacfc6633945c6696b524e43a87150e9c90
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/384373
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
|
|
Mask off page type bits in page pointer during its usage.
bug 1444151
Change-Id: I917d89e4b47f71d80dfe03abb4e9ab50cee125e1
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/394129
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
Change-Id: I6b6798268c79be633f93e4b79ba6828c604cb3df
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/393792
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>
|
|
Bug 1259844
Change-Id: I0c3e93b7ce9190d1865af13933531f165c022c7a
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/394205
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
|
|
Add ioctl NVHOST_IOCTL_CTRL_SYNC_FENCE_SET_NAME to set
name for a sync fence
Bug 1473041
Change-Id: Iabc1c472f6fddc87dac75d3a37b75a83a834dc1e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/391271
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
|