Age | Commit message (Collapse) | Author |
|
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>
|
|
The non-std charger could also be a self-powered
hub(which is not yet connected to any host).
If we stop controller here, tegra can't detect
the host through this self-powered hub.
Bug 1458990
Change-Id: Ifd4aeae65304acf724098b452899dd5c5a8aac62
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/395217
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
|
|
bug 1455100
Change-Id: I9567172bfdb138749ad5a7daa61094a6b6b9e5a6
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/395421
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Result of top_fs_status_r() is always constant. Do not dump it
anymore.
Change-Id: Ie1cfe872d70b2c3c8a7cef4df3870dacae8f8793
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/395208
|
|
Bug 1490586
Change-Id: Ida6a77b5d33c2a20f7de6acdc6f55f47efd48281
Signed-off-by: Q-Ha Park <qpark@nvidia.com>
Reviewed-on: http://git-master/r/390034
(cherry picked from commit ad764746c38d00facb3537b14f3a5fa5b396fa31)
Reviewed-on: http://git-master/r/393103
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
Add proper delay after power on front ov5693
sensor. This will ensure power is stable
before we start accessing i2c registers.
Bug 1484675
Change-Id: Ic90f8a6689e75347d015ec84edaf26e52fcecb1e
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/394910
Reviewed-by: Hu He <hhe@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@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>
|
|
Battery current is measured through INA32221 channel 0. Provide required
information to the fuel gauge so that fuel gauge can read battery current
through IIO interface.
bug 1413219
Change-Id: I22cb241694cad95752448b31349773db79292a67
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/395553
|
|
Add support for measuring battery current now if the device
node has required properties to read the battery current.
bug 1413219
Change-Id: Ie0e1cf61306ce0f5fdd7611a54781fc003c8156e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/395552
|
|
The lc709203f driver provided the property to measure battery current now.
The battery current can be read from the IIO interface with monitor.
This patch explain about the properties on nodes to measure the current.
bug 1413219
Change-Id: Ib1346f445f90d3a40cbf7ab7338c382ae8b3d120
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/395551
|
|
Add API for reading battery current throuch IIO channels.
IIO channel information is read from battery gauge device node.
bug 1413219
Change-Id: I87094acbd15796a16acb520ba52c2351439e4bbb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/395550
|
|
Update the INA3221x DT binding documents and add dt-binding header to use
the macro from DTS file.
The updates details how it can be instantiated as iio channels and client
driver use this from DT node for measuring different parameters of different
channels. It also details the index for different signal monitor which
is require for iio channel consumer interface.
bug 1413219
Change-Id: I1c31322d4d905983e16ef132c0bd75af29fd0583
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/395549
|
|
Add dts file name property on all top level DTS file for Loki. This
will reflect correct files used as DTB on kernel log.
Change-Id: Ib9b1a3abdb1a0754f5e88d2f0f3499cbbb0800c6
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
There is two iomap header one at mach-tegra and other at
mach-tegra/include/mach. Most of the macros are same across
these headers.
Move all macro to the mach-tegra/iomap.h and remove the
include/mach/iomap.h.
bug 1496891
Change-Id: I6c72343097cf174e72512df8e22db56b57efd7b8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Read the SOC and voltage level from fuel gauge before registering
power supply so that framework can get the required information
even before workqueue get scheduled.
This will avoid incorrect value to be pass to the client if there
is any race occur.
Change-Id: Id8696607bf5ec7d434aaf2af3f9e662f677759b5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Add support to emulate the charger disconnected through sysfs
interface although charger connected physically. This will
make the system to load from battery instead of input source.
This helps on stress test to drain battery even if charger cable
connected and enable/disable charging without physically doing this.
cd /sys/bus/i2c/devices/1-006b
For emulating it as disconnect say
echo D > input_cable_state
For disabling emulation of cable state say
echo C > input_cable_state
bug 1491052
Change-Id: I0f6edd0ce17a906447c0e455da15a388a4958215
Signed-off-by: Laxman Dewangan <ldewangan@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>
|
|
Fixed loop condition so OC stats are not skipped.
Bug 1497662
Change-Id: I59aa0dee4151faed07ef78c8cf4f1878dca09b83
Signed-off-by: Diwakar Tundlam <dtundlam@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>
|
|
Adds DT support to the Tegra MC driver. This also removes the ability
to boot without a DT with a proper MC node. This may need to change.
Change-Id: I6d7fd7b333ae4a87e0d90b4c5f0d842837e4c638
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/325823
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
|
|
To support an eDP panel or an external DP monitor for the VCM3.0-T124
platform
- target platform is P1859 + VCM3.0-T124 + E1860 stacked.
- use miniDP connector J9 on E1860 B00 board.
- to support an external DP monitor, a HW rework is required for the
E1860 B00 board, so the monitor can recognize the cable connection.
The kernel config option TEGRA_DP controls the tegra dp driver
required to support an internal eDP panel or an external DP monitor.
It can be selected by "Device Drivers" -> "Graphics support" ->
"Enable eDP panel" in the make menuconfig.
Notes:
The eDP panel shows vertical strips on booting. May need to put the
eDP panel to an inactive mode at boot.
bug 1409738
Change-Id: I4da2db0614f6bea8cf0ea714913a8b806b485e7a
Signed-off-by: Sungwook Kim <sungwookk@nvidia.com>
Reviewed-on: http://git-master/r/386806
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
|
|
dma_request_slave_channel_reason would only work in case
the device nodes are registered from DT. Added support
for DMA channel request for non-DT instances as well.
Bug 1497862
Change-Id: I1f8c1a1902cf3615a85061901348840213251fe3
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
|
|
Add abstraction for triggering fake MMU fault, and a gk20a
implementation. Also adds recovery to FE hardware warning
exception to make testing easier.
Bug 1495967
Change-Id: I6703cff37900a4c4592023423f9c0b31a8928db2
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
|
|
Some drivers that are compiled as modules may need to access
always-on governor structure, however, this structure is not
yet exported. This patch adds necessary exports.
Bug 1476801
Change-Id: I22adfb672ce79f364b203def782e088ebbbb3e19
Signed-off-by: Arto Merilainen <amerilainen@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>
|
|
Backing store sgt needs to be mapped to gpuva to enable CDE swizzling.
This patch adds necessary code to create sgt during initialisation so
that the sgt is available when needed.
Bug 1409151
Change-Id: I9d4671386fe9204d780c2e286b5f9b2dd87af35a
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
|
|
CBC frontdoor access works incorrectly in the simulator if CBC
is allocated from IOVA. This patch makes CBC allocation to happen
from physical memory if are running in simulator.
Bug 1409151
Change-Id: Ia1d1ca35b5a0375f4707824df3ef06ad1b9117d4
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
|
|
Ensure CBC is invalidated at GPU initialization.
Bug 1409151
Change-Id: I054be20a3252e40c96baec75958918c85a5a7801
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
|
|
Bug 1409151
Change-Id: I232af159d402f818cf972498d721c3b57846ce74
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
|
|
This patch modifies the code to fall-back to 4k pages if the current
VA does not support 128k pages.
Bug 1409151
Change-Id: I94e9ca5953740388db689bc9306b0392191e29d2
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
|
|
This patch adds necessary code to store the gpu configuration into
gr structure.
Bug 1409151
Change-Id: I045b21ebdc849833380a3d953d951f8352842ac7
Signed-off-by: Arto Merilainen <amerilainen@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>
|
|
VPR device is required by the GPU driver. As the GPU driver can
be built as a module, the VPR device should be exported.
Bug 1476801
Change-Id: I6f8b59be4f6a9892d0d4b39836172fb64c5d8e78
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/388151
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
|
|
Tegra chip ip may be used from modules. This patch adds the
necessary exports to allow this
Bug 1476801
Change-Id: Ifaaf8839178b36169ec7ec271336454ef3d27ede
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/387611
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@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>
|
|
The GPU driver needs to register itself to the cfboost framework
despite it can be compiled as a module. This patch adds necessary
exports to the cfboost driver.
Bug 1476801
Change-Id: Ia0be866eeb13aa3d561bcc88dc24bcda76c48b51
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/387608
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
|
|
Drivers compiled as modules may need to access some genpd functions
directly. This patch adds few new bindings that have been found
useful.
Bug 1476801
Change-Id: I19807977147d334f88be6b582e1cd0eb06854f12
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/387607
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
|
|
debug print "Waiting on syncpt" for gpu channel prints that
channel is waiting for the syncpt without checking the state
of the channel
hence modify this print as follows :
if channel is in "pending acquire" or "on_eng_pending_acquire"
state we print "Waiting on syncpt"
otherwise we print "Waited on syncpt"
Bug 1305024
Change-Id: Ie22db689d6e8016c63158e8961d2233042069bec
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/394715
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>
|
|
Bug 1476459
Change-Id: Id96161878095ed927c7be3c69d1fbae245e36702
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/391780
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@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
|
|
fix build error when tegra watchdog is enabled
Bug 1485770
Change-Id: Idea7e779b7b06e329751c1a1f0b8185969df020b
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/391678
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
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>
|
|
Unwinding: add additional validations for stack pointer
and instruction pointer.
Bug 1495325
Change-Id: Idc8b88be51925b67b8cfc5416ae2204f82f24b41
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/392927
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
Tegra Profiler: device sometimes hangs up when hrtimer_start wakeup
flag is enabled (especially on high frequency - more than 10 kHz).
Use __hrtimer_start_range_ns function with disabled wakeup flag
instead of hrtimer_start.
Bug 1495033
Change-Id: I2437df2ee1cd25ab7a76384ba124328d2158b44e
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/392698
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
Tegra Profiler: fix backtraces from the kernel context.
There should be at least one user space address for such chains.
Bug 1487562
Change-Id: Ibf1f6d78b5f744f397fbcbab54e45f70b6548fbd
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/394493
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
Since more ardbeg and tn8 variants were added, their camera DT
need to be updated.
bug 1455100
Change-Id: I51a59ee829a2046f983ca8839bcbadc0dd04828b
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/394418
Reviewed-by: Frank Chen <frankc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
1. Add a bool to determine what all resources to
be cleaned up at a particular exit point
2. Add calls to this api from required exit points
for better cleanup
Bug 1489959
Change-Id: I2cae4a41ec9978f0bd52d28fd2288ca090d2d57c
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/391381
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
|