]>
nv-tegra.nvidia Code Review - linux-4.4.git/log
Ninad Malwade [Wed, 22 Nov 2017 03:23:53 +0000 (11:23 +0800)]
arm64: configs: add docker related configs
Adding docker related kernel configs.
Currently dockers are not supported on ARM64 ubuntu version,
but as a requirement we are enabling the required kernel
configs to have out of the box support for the same.
Bug
2001213
Change-Id: I36e74febfb9ff12d503f5925997aa06d1b88d89c
Reviewed-on: https://git-master.nvidia.com/r/
1602889
(cherry picked from commit
5cea84a3f6b3cf021ccb950da0e18f929425509b )
Reviewed-on: https://git-master.nvidia.com/r/
1604135
Reviewed-by: Ninad Malwade <nmalwade@nvidia.com>
Tested-by: Ninad Malwade <nmalwade@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Naveen Kumar S [Tue, 10 Oct 2017 08:34:58 +0000 (14:04 +0530)]
video: tegra: description for fbcon mode property
Add description and an example for "nvidia,fbcon-default-mode"
DT property. This property can be used to specify mode parameters
for fbconsole in "struct tegra_dc_mode" format. If specified,
this mode will be used as the default mode for fbconsole.
bug
200308135
Change-Id: I86051607476bfc89e938369f28350428eec889cf
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1588510
(cherry picked from commit
5a5258e90dbec6b0d4174a4ab9b01b101966a9fb )
Reviewed-on: https://git-master.nvidia.com/r/
1599033
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Shreshtha SAHU [Tue, 17 Oct 2017 13:49:12 +0000 (19:19 +0530)]
watchdog: t21x: disable internal ping on wdt open
Disable internal watchdog ping when userspace opens
the watchdog dev. Watchdog ops no longer support .ref
hence its dependency is removed.
Bug
1976162
Change-Id: Ic02712bc9ac21d3df5cb9c9e0eef1522599e1590
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1598166
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Frank Chen [Thu, 9 Nov 2017 20:04:12 +0000 (12:04 -0800)]
tegra: camera: Update LC898212 control ID names
Update the control ID name to match the recent
sensor driver control ID changes.
Bug
200350907
Change-Id: I3af2ab683e5d4f98f6597d57b82b77a903d7cd63
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1595380
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vincent Chung <vincentc@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Aniruddha TVS Rao [Mon, 20 Mar 2017 05:17:13 +0000 (10:47 +0530)]
drivers: crypto: Avoid resource leak
memory allocated to local variable "req" is not freed before returning
from the function for a possible set of conditions.
Free "req" in such a case to avoid resource leak.
Coverity ID
2011369
Change-Id: I8ede395554b039587fed62738214854b129e6203
Signed-off-by: Aniruddha TVS Rao <anrao@nvidia.com>
Reviewed-on: http://git-master/r/
1324017
(cherry picked from commit
2d88bf1173c14d5db710671f2a3bf7656ebcc227 )
Reviewed-on: https://git-master.nvidia.com/r/
1554399
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Mallikarjun Kasoju [Sun, 21 May 2017 10:57:53 +0000 (16:27 +0530)]
tegra-cryptodev: Avoid untrusted user pointer dereference
In RSA operations use copy_from_user to get key data
into local buffer before using it.
Bug
200305294
Change-Id: Ia647b81664be3de2ac1016e352a6505ff2015d49
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/
1486620
(cherry picked from commit
4235ae6bd23c3547636f21b985ed006cc238775d )
Reviewed-on: https://git-master.nvidia.com/r/
1594355
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Aniruddha TVS Rao [Tue, 28 Mar 2017 11:51:00 +0000 (17:21 +0530)]
drivers: crypto: Avoid use of tainted scalar value
Copy from user may taint the scalar value members in the respective
struct variables.
Add check for verifying the validity of the scalar value members
to avoid undefined behaviour.
Coverity ID 24040
Bug
200192571
Bug
1862381
Change-Id: I75237559409178468a6425ec3ceb4b601b21e2de
Signed-off-by: Aniruddha TVS Rao <anrao@nvidia.com>
Reviewed-on: http://git-master/r/
1329922
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
(cherry picked from commit
3538fb80178bce43a1f3250ac3340f0bda54de63 )
Reviewed-on: https://git-master.nvidia.com/r/
1554425
GVS: Gerrit_Virtual_Submit
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
David Wang [Wed, 12 Apr 2017 01:05:37 +0000 (18:05 -0700)]
tegra: camera: updated control CID define
Move control CID define to tegra-v4l2-camera and switched
CID prefix from V4L2 to TEGRA_CAMERA. Updated users of camera
controls to use new defines.
Bug
200350907
Change-Id: Ifb1d4e9e3ed438bd13dd3af1d0ec16cb885f4474
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/
1460998
GVS: Gerrit_Virtual_Submit
Reviewed-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1590233
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Gigon Bae [Fri, 27 Oct 2017 21:33:57 +0000 (14:33 -0700)]
media: i2c: add delay for i2c failure on ov23850
* Add some delay before i2c write call on ov23850.
This is a workaround patch to avoid i2c failure on ov23850.
Bug
200354166
Change-Id: Id4065915c1ef932bfd9934ebbab0a1fea3404867
Signed-off-by: Gigon Bae <gbae@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1587240
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Nathan Lord <nlord@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Josh Kuo [Fri, 27 Oct 2017 07:37:13 +0000 (15:37 +0800)]
media: i2c: IMX274: fix dotted line corruption
found dotted line corruption in the bottom of image if we do not
set correct value of VWIDCUT.
The Veff is 2174, then VWIDCUT should be (2174-2160)/2 = 7.
Bug
200357770
Change-Id: If969c34329a51ff980030adcca9aa8b3fc945d4e
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1586800
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Esen Chen <esenc@nvidia.com>
Reviewed-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-by: Nathan Lord <nlord@nvidia.com>
Reviewed-by: Shantanu Nath <snath@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Ninad Malwade [Fri, 3 Nov 2017 04:48:05 +0000 (12:48 +0800)]
arm64: configs: add docker related configs
Adding docker related kernel configs.
Currently dockers are not supported on ARM64 ubuntu version,
but as a requirement we are enabling the required kernel
configs to have out of the box support for the same.
Bug
2001213
Change-Id: I4fbace37203ded460db03d1502ef4af9813f126e
Reviewed-on: https://git-master.nvidia.com/r/
1591189
Reviewed-by: Ninad Malwade <nmalwade@nvidia.com>
Tested-by: Ninad Malwade <nmalwade@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Shardar Shariff Md [Wed, 1 Nov 2017 11:54:09 +0000 (17:24 +0530)]
i2c: tegra-vi: bypass the wait for pkt transfer done
Read back the transfer status register right after
the writes to TX FIFO register to bypass the wait for
packet transfer done.
Bug
200343747
Based on commit:
3a71308 i2c: tegra-vi: bypass the wait for pkt transfer done
Change-Id: I6069a25d90ae07cee5d3849f6d84bd32dd350078
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1589995
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shan Neng Chen <snchen@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Peter De Schrijver [Thu, 26 Oct 2017 10:59:42 +0000 (13:59 +0300)]
clk: tegra: add reset ID for VI
The VI clock ID doesn't match its hw clock number because it controls both
VI and VI_SENSOR. Therefor add a special reset ID to reset the VI block.
Bug
200347391
Change-Id: I147ef4e94ee6fa392c6310471df5600c4a802f96
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1588111
(cherry picked from commit
0b5f83ee58e2a0ed4ff57bfddfa013a1a6c6b18b )
Reviewed-on: https://git-master.nvidia.com/r/
1589908
Reviewed-by: Timo Alho <talho@nvidia.com>
Tested-by: Timo Alho <talho@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Mikko Perttunen [Thu, 26 Oct 2017 10:49:30 +0000 (13:49 +0300)]
platform: tegra: powergate: Fix VI reset ID on T210
VI reset id is incorrect for T210 which causes intermittent failures
when powering up VI. This change fixes the reset id.
Bug
200347391
Change-Id: I87d4258dec4bd1b231fab9be6c8890086d6df52d
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1586095
(cherry picked from commit
f026ef3eb29496ab8441e9dc982c5486f297b2a2 )
Reviewed-on: https://git-master.nvidia.com/r/
1589836
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Rakesh Babu Bodla [Wed, 26 Apr 2017 08:30:24 +0000 (14:00 +0530)]
crypto: tegra-cryptodev: Move RNG support using rng framework
Move RNG1 in cryptodev using rng core framework.
Bug
200301238
Change-Id: I161c3a25fca12870136d92884e8609f903634bdf
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/
1470303
(cherry picked from commit
f72979765ae58890bd8ae8d2b11c7cecee02ce17 )
Reviewed-on: https://git-master.nvidia.com/r/
1590058
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Rakesh Babu Bodla [Tue, 25 Apr 2017 11:03:34 +0000 (16:33 +0530)]
crypto: tegra-se-elp: Move RNG support using rng framework
Move RNG1 implementation to generate random numbers
using rng core framework.
Bug
200301238
Change-Id: I06fc7aaaa94825c834eab4e050b62c130a331b28
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/
1469509
(cherry picked from commit
14ee00064fa9145cc17dd6606a88f90225cb9a29 )
Reviewed-on: https://git-master.nvidia.com/r/
1590057
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Vishruth [Thu, 7 Sep 2017 09:52:58 +0000 (15:22 +0530)]
stepper: optimize latency in starting motor
Avoid reading the motor status before sending start motor
command. This saves one read transaction while starting motor.
Bug
1623721
Change-Id: Ibee8025fafa2e19419c1f635f91d508400b829c0
Signed-off-by: Vishruth <vishruthj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1554456
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Vishruth [Thu, 7 Sep 2017 08:32:02 +0000 (14:02 +0530)]
stepper: checkpatch and review fix
Changes to fix issues reported by checkpatch.
Review defects reported after the initial patchset got merged
are also fixed.
Bug
1623721
Change-Id: I96a3ca5714b2c5d7116955f6334ea35ab9ffe4b0
Signed-off-by: Vishruth <vishruthj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1554328
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Frank Chen [Tue, 31 Oct 2017 23:06:57 +0000 (16:06 -0700)]
driver: media: i2c: imx185: Fix control steps
For controls that use 64-bit fixed point values
for min/max/default, the step setting needs to
be adjusted to match the same precision.
Bug
2016103
Change-Id: I71f152f53627ac5ba7fc43575dd6b98e58f4ff18
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1589559
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jerry Chang <jerchang@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Shardar Shariff Md [Thu, 13 Apr 2017 08:41:24 +0000 (14:11 +0530)]
i2c: core: check if setting clock rate is allowed
- In i2c_set_adapter_bus_clk_rate(), check if clock rate changing is
allowed.
- Use function i2c_set_adapter_bus_clk_rate to set the baud rate from
sysfs entry
Bug
1887805
Change-Id: I52be840090526c824e7f0e19f5acb5ab4c46a73d
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/
1462344
(cherry picked from commit
ce43d0c575797d1096f6ccf6229c46ac0c72a36c )
Reviewed-on: https://git-master.nvidia.com/r/
1589798
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Shardar Shariff Md [Thu, 13 Apr 2017 12:34:49 +0000 (18:04 +0530)]
i2c: tegra: add support to restrict changing clk rate
Add support to avoid changing clock rate in runtime as
changing clock in runtime could result in deadlock in
clock driver.
Bug
1887805
Change-Id: I7aef00f78fbafb7658a8ad5e5a8a1a8a4dce4857
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/
1462345
(cherry picked from commit
e34aa67272ab8a2e6b0cf774f18400515f850953 )
Reviewed-on: https://git-master.nvidia.com/r/
1589797
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Shardar Shariff Md [Thu, 30 Mar 2017 08:32:09 +0000 (14:02 +0530)]
i2c: tegra: set the clock rate only during probe
- Set the clock rate only during initialization
and during runtime change in bus frequency.
- Remove redundant clock rate setting in probe.
Bug
1887805
Change-Id: I76680dc3ed8416bd80670eacc9795e77ffd421d5
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/
1331424
(cherry picked from commit
ba8af45db501c2986d85f245bded230eaeee3ef2 )
Reviewed-on: https://git-master.nvidia.com/r/
1589795
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Aditya Tomar [Mon, 30 Oct 2017 13:16:55 +0000 (18:46 +0530)]
media: i2c: Fix pixel rate for imx274
Correct pixel rate for 4k mode
Bug
200357182
Change-Id: Iae1a083eb4c2c5d713f19453fd08721272666b75
Reviewed-on: https://git-master.nvidia.com/r/
1588442
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Esen Chen <esenc@nvidia.com>
Reviewed-by: Josh Kuo <joshk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Aditya Tomar <adtomar@nvidia.com>
Reviewed-by: Shantanu Nath <snath@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Gagan Grover [Thu, 17 Aug 2017 08:20:40 +0000 (13:50 +0530)]
ARM64: config: tegra21: Increase compat mmap rnd bits to 16
This is required for Aslr test to pass with entropy 8.
Bug
200226998
Change-Id: I78aefdacb862c94d2346da572809efaac488bdc1
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/
1247320
(cherry picked from commit
4f47fbc9950fb95edfe93a2ac89946ccdc80ae8f )
Reviewed-on: https://git-master.nvidia.com/r/
1540229
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1587998
Reviewed-by: Bobby Wang (SW-TEGRA) <bobwang@nvidia.com>
Tested-by: Bobby Wang (SW-TEGRA) <bobwang@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Alex Frid [Tue, 14 Feb 2017 22:09:53 +0000 (14:09 -0800)]
soc: tegra: Port DVFS rail-gate stats from K3.10
- Updated rail stats off state when GPU rail is gated/un-gated
- Since off state can now be set, changed set voltage control
loop to use single step to target when rail is off.
Bug
200269751
Change-Id: Iba069ac2412c5b86b87e66e80fafb46a01268310
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/
1304977
(cherry picked from commit
9f7d9ca2f48e31fbc4abb233f5f64de2a4792fdc )
Reviewed-on: https://git-master.nvidia.com/r/
1585840
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
James Huang [Tue, 24 Oct 2017 06:58:29 +0000 (14:58 +0800)]
Missing a comma in the defination of ppm_debugfs_init
The ppm_debugfs_init is in the
kernel/kernel-4.4/drivers/soc/tegra/tegra-ppm.c
This will cause build fail when we choose user build.
Bug
200341041
Change-Id: Ifc9e2721712e212cb1fcdc01a2579e3c302b4c9f
Reviewed-on: https://git-master.nvidia.com/r/
1584345
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Nicolin Chen [Thu, 26 Oct 2017 18:37:22 +0000 (11:37 -0700)]
t21x: cpufreq: Fix default CPU-EMC table
The driver would use the value before the threshold of cpufreq in
the CPU-EMC table, so its logic actually checks if the cpufreq is
higher than a threshold.
Therefore, this patch reverses the logic in the CPU-EMC table to
fix it.
Bug
200353489
APP-30
Change-Id: I16e26e57dcf3dd6edd158e90711312d1e18c71cd
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1586370
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aaron Huang <aaronh@nvidia.com>
Reviewed-by: Terry Wang <terwang@nvidia.com>
Reviewed-by: Somdutta Roy <somduttar@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
James Huang [Wed, 25 Oct 2017 06:57:12 +0000 (14:57 +0800)]
Avoid casting the type to integer in user build.
When choosecombo variant is 'user', the complier
will throw a Werror: assignment makes integer from
pointer without a cast.
Bug
200341041
Change-Id: Ie81536c099cbed83b7b3fcabe659226e54fec209
Reviewed-on: https://git-master.nvidia.com/r/
1585164
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Jeetesh Burman [Tue, 3 Oct 2017 12:04:37 +0000 (17:34 +0530)]
drivers: platform: add thermal-throttling support
Add cooling-handler as thermal-throttling in case of thermal-alert
and FAN-NOT-WORKING critical-condition case.
cooling-handler will be called when temperature raises to PASSIVE
trip point and will send uevent to user-space to take further
action, following tasks will take-care by cooling-handler:
1. Save data from 'GameData RAM' to FRAM.
2. Throttle CPU/GPU/EMC Frequency.
3. Send uevent to user-space.
Bug
1846039
Change-Id: I6086bc2847a30fc23d467142c0d933adc3a9fdbe
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1573064
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Sameer Pujar [Wed, 25 Oct 2017 12:07:54 +0000 (17:37 +0530)]
ASoC: tegra-alt: include header files from t18x
Include t18x header file directory to avoid the need for
absolute paths.
Bug
200351957
Change-Id: I2f8c5bfadcb0fe0ba8431df19a42063a36fe6072
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1576898
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Nicolin Chen [Tue, 24 Oct 2017 23:54:26 +0000 (16:54 -0700)]
t21x: cpufreq: Add default CPU-EMC ratio
This patch adds a default table for CPU-EMC freq ratio and apply
it to the situation when the table from Device Tree is missing.
This patch also creates a sysfs node for user space HAL to change
the source of the ratio table between default built-in one and
Device Tree one.
Sysfs Node
/sys/kernel/tegra_cpu_emc/table_src
Use DT values
echo 1 > /sys/kernel/tegra_cpu_emc/table_src
Use default values
echo 0 > /sys/kernel/tegra_cpu_emc/table_src
Bug
200353489
APP-30
Change-Id: I9bafddf2b401567d8f7976f9a8a8be21d8c08ad8
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1585522
Reviewed-by: Somdutta Roy <somduttar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Bibek Basu [Mon, 16 Oct 2017 06:43:56 +0000 (12:13 +0530)]
Revert "config: arm64: enable iso bw quirk temporarily"
This revert the quirk introduced for display isobw
Bandiwdth issue is fixed in display driver
Bug
200337255
This reverts commit
7102a045adfa2fccfe67a451f50205bce183800c .
Change-Id: I34506cdcfe05da7a5c7ef60751645cb818550bcf
Reviewed-on: https://git-master.nvidia.com/r/
1582602
Tested-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vishruth Jain <vishruthj@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Mats Randgaard [Thu, 12 Nov 2015 12:34:55 +0000 (10:34 -0200)]
v4l2-dv-timings: Compare horizontal blanking
hsync and hbackporch must also be compared
bug
2004769
Change-Id: Iab1ad48dbc8306d98637b848205c555b0168e736
Signed-off-by: Mats Randgaard <matrandg@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Reviewed-on: https://git-master.nvidia.com/r/
1581131
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ahung Cheng <ahcheng@nvidia.com>
Tested-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Josh Kuo [Wed, 11 Oct 2017 07:05:28 +0000 (15:05 +0800)]
drivers:media:i2c:imx274: fix wrong max exposure
The max of integration start horizontal period should be decided
by the value read from vmax register. Otherwise, we'll see overexposed
in outdoor or in low fps environment.
Bug
1996112
Change-Id: Ic509cb21c0d16311fd366fb41108009bdebd579b
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1576790
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
David Gilhooley [Wed, 11 Oct 2017 20:39:48 +0000 (13:39 -0700)]
fs: proc: meminfo: add nvmap stats to meminfo
Bug
200338669
Change-Id: I67b964c8c72e7808055b0290a611f8c35695008c
Signed-off-by: David Gilhooley <dgilhooley@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1577256
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
GVS: Gerrit_Virtual_Submit
Jeffery Yu [Mon, 16 Oct 2017 10:09:27 +0000 (18:09 +0800)]
vi: rm calling deprecated API
tegra_clk_cfg_ex() is deprecated, move it out.
Bug
200346461
Change-Id: Ie52c77a187e750bdd7dc66730767366d56602881
Reviewed-on: https://git-master.nvidia.com/r/
1579638
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Wenjia Zhou [Mon, 16 Oct 2017 10:15:43 +0000 (18:15 +0800)]
media:platform:tegra: Update csi source change API
For T210, remove legacy API and get clk in vi driver.
Bug
1920957
Change-Id: I3f923b2192e08f639cb69dd002b7dc29c52318b4
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-on: http://git-master/r/
1476076
Reviewed-on: https://git-master.nvidia.com/r/
1579640
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Hans Yang [Tue, 22 Aug 2017 12:19:09 +0000 (20:19 +0800)]
media: uvc: zero seq number when disabling stream
For bulk-based devices, when disabling the video stream,
in addition to issue CLEAR_FEATURE(HALT), it is better to set
alternate setting 0 as well or the sequnce number in host
side will probably not reset to zero.
Then in next time video stream start, the device will expect
host starts packet from 0 sequence number but host actually
continue the sequence number from last transaction and this
causes transaction errors.
This commit fixes this by adding set alternate setting 0 back
as what isoch-based devices do.
Below error message will also be eliminated for some devices:
uvcvideo: Non-zero status (-71) in video completion handler.
Bug
200328129
Change-Id: Ic1dc30679ef8c5e3a92bf12a06a47f0ac75c09b7
Signed-off-by: Hans Yang <hansy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1543436
(cherry picked from commit
be83518944196af149fa28736a62999aeb5c77bb )
Reviewed-on: https://git-master.nvidia.com/r/
1570063
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jim Lin <jilin@nvidia.com>
Reviewed-by: Sing-Han Chen <singhanc@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Viswanath L [Tue, 17 Oct 2017 08:38:46 +0000 (14:08 +0530)]
tegra-alt: rt565x: Fix bit-format override
Override using "codec-x format" is fixed so that default "formats"
parameter is picked when "None" is selected
Bug
2004753
Change-Id: I68ecd187c90217bb455ef1ddc2bb4e1120e999f3
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1580342
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Tested-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Jon Hunter [Fri, 13 Oct 2017 14:03:01 +0000 (15:03 +0100)]
soc/tegra: gpu-edp: Fix GPU V/F table
The GPU EDP driver specifies what function should be used to calculate
the GPU rail voltage for a specific GPU frequency. Currently, the GPU
EDP driver specifies the 'tegra_dvfs_predict_millivolts()' function
and by using this function the voltage returned is dependent on a
thermal scaling index defined by the DVFS driver and the voltage
calculation varies with temperature. The problem with this is that the
GPU EDP driver caches the V/F table and when the temperature changes
it is not updated. This may allow the GPU to operate at a frequency
which is too high for a given power threshold.
The GPU EDP driver should use the function,
'tegra_dvfs_predict_mv_at_hz_max_tfloor()', to calculate the voltage
to provide the worst case voltage based upon the maximum thermal floor
and hence, does not vary with temperature.
Bug
2003470
Change-Id: Iedad9cd93c87ed605b6df72f8badd62ccc3822bf
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1578681
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Timo Alho <talho@nvidia.com>
Bhanu Murthy V [Tue, 10 Oct 2017 22:01:19 +0000 (15:01 -0700)]
drivers: camera: Fix mode properties access
Add new index to read mode properties for sensors.
Mode table index in sensor drivers usually differ
from the listed mode properties in device tree.
Fix issue where the index is used beyond the listed
entires in device tree.
Bug
200349606
Bug
1981695
Change-Id: Ic8e58d3c54154746cded15fddb6762dfdf422876
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
(cherry picked from commit
33b09057c2991233b6c51e8316308ec6d3654e0b )
Reviewed-on: https://git-master.nvidia.com/r/
1578192
Reviewed-by: Josh Kergan <jkergan@nvidia.com>
Tested-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
GVS: Gerrit_Virtual_Submit
Bhanu Murthy V [Mon, 25 Sep 2017 20:03:59 +0000 (13:03 -0700)]
drivers: camera: Fix init for mode properties
Fix the default value for missing properties
in device tree for sensors to ensure no garbage
values will be in use.
Bug
200349606
Bug
1981695
Change-Id: I91264fe5b8e86db5bc620dbb7bdb7ffc1aa8b050
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
(cherry picked from commit
25f204c2508263d03eaf0ae5b4ef4dc30f47d5de )
Reviewed-on: https://git-master.nvidia.com/r/
1571116
Reviewed-by: Josh Kergan <jkergan@nvidia.com>
Tested-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
GVS: Gerrit_Virtual_Submit
Bhanu Murthy V [Tue, 10 Oct 2017 22:04:58 +0000 (15:04 -0700)]
include: media: Add mode properties index
Add mode properties index to access device
tree properties.
Bug
200349606
Bug
1981695
Change-Id: I32298bd63d3c3fd7e978e5108fcf0e872b0f0edf
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
(cherry picked from commit
d39cd67d2fce76868d18d0f8fb8f0b70648329d0 )
Reviewed-on: https://git-master.nvidia.com/r/
1578191
Reviewed-by: Josh Kergan <jkergan@nvidia.com>
Tested-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
GVS: Gerrit_Virtual_Submit
Josh Kergan [Tue, 10 Oct 2017 20:51:27 +0000 (13:51 -0700)]
media:platform:tegra: Use cil_settletime from DT
At the V4L2 level, we were ignoring the sensor device tree node's
cil_settletime property, and using some default (DEFAULT_THS_SETTLE) which
does not work for all sensors.
The cil_settletime sensor property is parsed from the sensor's device tree
node and stored in a struct camera_common_data.
Weirdly, struct tegra_csi_channel has a pointer to struct
camera_common_data (s_data) that's completely unused. This patch assumes
that the intent of this pointer is for the tegra_csi_channel to be able to
get at the sensor properties. After parsing the sensor properties, we
traverse the device tree to get at the csi node on which this sensor is
attached, and connect the two via tegra_csi_channel's s_data pointer.
Also, if cil_settletime is 0, autocalculate the value rather than using a
hardcoded default.
Bug
1982959
Bug
1885366
Bug
1981695
Change-Id: I824f42995862512d3fea7d7aeeb42816fe33cd73
Signed-off-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1565592
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
(cherry picked from commit
e34aa2bb41a47c82266feefed207f317c63cf32e )
Reviewed-on: https://git-master.nvidia.com/r/
1576562
Reviewed-by: Automatic_Commit_Validation_User
Frank Chen [Thu, 25 May 2017 21:56:23 +0000 (14:56 -0700)]
drivers: camera: update camera drivers
Updating all camera drivers to pass generic
device structure to common camera functions.
This is needed to support SPI sensors.
Jira CHWI-1191
Bug
1981695
Change-Id: I798336c432aac61a623297eff4b10bb3c162252b
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1490036
GVS: Gerrit_Virtual_Submit
(cherry picked from commit
37ab34d419f106cb859b5d8fc74196da7422d46a )
Reviewed-on: https://git-master.nvidia.com/r/
1576561
Reviewed-by: Josh Kergan <jkergan@nvidia.com>
Tested-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Frank Chen [Thu, 25 May 2017 17:50:21 +0000 (10:50 -0700)]
drivers: camera: Remove i2c_client references
Removing all i2c_client references in common camera
functions and replace them with generic device structure.
This will make common camera functions be generic and
not tied to i2c interface. This is needed in order
to support newer SPI camera sensors.
Jira CHWI-1191
Bug
1981695
Change-Id: Icfd5532d1067b904bf50eba7a6c51ece5ca9d9e0
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1490035
GVS: Gerrit_Virtual_Submit
(cherry picked from commit
019edbbeb72c7330f902d5f0ed4db3b703b02d05 )
Reviewed-on: https://git-master.nvidia.com/r/
1576560
Reviewed-by: Josh Kergan <jkergan@nvidia.com>
Tested-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Sachin Nikam [Mon, 17 Apr 2017 05:16:45 +0000 (10:46 +0530)]
media: tegra: fix build errors in camera
Fix build errors in camera when making
the drivers Loadable Kernel Modules.
Undefined symbols got resolved by exporting.
EXPORT_SYMBOL_GPL (function_name);
Bug
200289382
Bug
1981695
Change-Id: Ia115649cf4dddf62197d638c1e76f4da05e80d03
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/
1463599
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
GVS: Gerrit_Virtual_Submit
(cherry picked from commit
a7ce1398dd7277a79f3b9de11c9c8c203b2bb679 )
Reviewed-on: https://git-master.nvidia.com/r/
1576559
Reviewed-by: Josh Kergan <jkergan@nvidia.com>
Tested-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
David Wang [Fri, 14 Apr 2017 01:59:46 +0000 (18:59 -0700)]
tegra: camera: sensor props controls
Updated channel driver with sensor props control to
access sensor properties read from DT.
CRTC-1082
Bug
1981695
Change-Id: I5e83ad5ca87f6a03d6420714b84fe29fdef913e9
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/
1462742
GVS: Gerrit_Virtual_Submit
Reviewed-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
(cherry picked from commit
1205cc4b666844a46eff59ccce5402fcf2ecfa87 )
Reviewed-on: https://git-master.nvidia.com/r/
1576558
Reviewed-by: Josh Kergan <jkergan@nvidia.com>
Tested-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Bhanu Murthy V [Fri, 7 Apr 2017 22:41:43 +0000 (15:41 -0700)]
drivers: media: Support camera drivers for K4.9
Fixes to resolve compatibity across kernel versions.
WARs have been added at couple of code blocks to
resolve race conditions and if the code is only needed
for T210 bringup. There is corresponding TODO to follow
up and clean this code.
This is a partial port of the patchset to support
changes needed for rel-28.
Bug
1856401
Bug
1981695
Change-Id: I3a3f07b3b159851936f3542afb61c4f2e90c24df
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/
1460979
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
(cherry picked from commit
b74c66c3483e1241a67974f1557ba8c757b81217 )
Reviewed-on: https://git-master.nvidia.com/r/
1576557
Reviewed-by: Josh Kergan <jkergan@nvidia.com>
Tested-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
GVS: Gerrit_Virtual_Submit
Ken Chang [Wed, 11 Oct 2017 06:03:44 +0000 (14:03 +0800)]
tegra: fuse: add mutex for thread safe
Add mutex locking in fuse relevant calls from sysfs node to ensure
fuse accesses are thread safe.
Bug
2002199
Change-Id: I68e5cd60e9447739f5558edd437ba25ab8c32f57
Signed-off-by: Ken Chang <kenc@nvidia.com>
(cherry picked from commit
8be5e46cf2336f8c35a6f19185a90b952c67d39b )
Reviewed-on: https://git-master.nvidia.com/r/
1576747
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Bibek Basu [Thu, 12 Oct 2017 04:45:14 +0000 (10:15 +0530)]
regulator: pwm: Restore selector after suspend
Added PWM regulator driver resume call-back to restore current PWM
selector after suspend.
Bug
200068955
Change-Id: Id923748f316f49960992bcf9a84b3dd78f2ed3df
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/670429
(cherry picked from commit
06ebc3cb2aeecbc898f292b8cad576306afe1d9f )
Reviewed-on: https://git-master.nvidia.com/r/
1577682
GVS: Gerrit_Virtual_Submit
Pritesh Raithatha [Wed, 4 Oct 2017 06:18:24 +0000 (11:48 +0530)]
arm64: mm: dma-mapping: fix free of atomic allocation
Memory allocated from atomic pool is not getting freed and causing
memory leak. The change is fixing it.
Bug
200352333
Change-Id: Id61e283cdae9f2fdd0269d15f399f2dcaff63ebb
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1572923
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Vidya Sagar <vidyas@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Jon Hunter [Fri, 22 Sep 2017 15:07:19 +0000 (16:07 +0100)]
sound: soc: tegra: Fix Tegra210 I2S Fsync Polarity
The 'normal' polarity of the fsync is dependent on the audio format.
For example, for I2S the 'normal' polarity for the fsync is
falling-edge/low, where as for r/l-justified or dsp modes A/B it is
rising-edge/high. This is detailed in the Tegra210 TRM in the table
titled "Programming I2S to Operate in Various Modes" and also in
the Linux kernel header file for include/sound/soc-dai.h.
The Tegra210 i2s driver always assumes that the fsync is low for
'normal' polarity and high for 'inverted' polarity and does not
account for the audio format. Correct the Tegra210 I2S driver to
set the polarity according the the audio format.
Bug
1788838
Bug
1993738
Change-Id: I5c7395f225ff8c25e2bb277c35e3ecb7a86f36cb
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
(cherry picked from commit
c368229ee949c53dd4fc09eaee40e4441edb5e70 )
Reviewed-on: https://git-master.nvidia.com/r/
1576272
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Bhanu Murthy V [Wed, 3 May 2017 23:44:49 +0000 (16:44 -0700)]
drivers: tpg: Fix TPG frame rate settings
Adjust hblank and vblank intervals to match
the expected frame rate for TPG.
Keep the vblank interval minimum of 100 cycles
to provide room for memory write ack to come
ahead of next frame start. Earlier frame start
always comes ahead of memory write ack event for
TPG.
Bug
1918259
Change-Id: I448ee3fdb27ed4be8fd89bc4557fae95f2ce42dc
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: https://git-master/r/
1474974
(cherry picked from commit
8df7fe500ad08dd255a3ab82916ff7f29a9a3c45 )
Reviewed-on: https://git-master.nvidia.com/r/
1564884
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
GVS: Gerrit_Virtual_Submit
Wenjia Zhou [Sat, 15 Jul 2017 02:35:59 +0000 (19:35 -0700)]
media:i2c:ov5693: add flip and mirror setting
mode table enable mirror; unmirrored it.
Bug
200292212
Change-Id: I17ab87946c17d45813f9b76cf5ebb2918d00da03
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1520873
(cherry picked from commit
af6c53b9060c2b4a4bda8215ea3cba0d94b5610f )
Signed-off-by: Anshay <anshaya@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1569313
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hien Goi <hgoi@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Pritesh Raithatha [Fri, 15 Sep 2017 10:48:04 +0000 (16:18 +0530)]
dma-buf: provide explicit function to release all mappings of dev
With lazy unmap enabled, there will be list of pending unmaps and
others can see it. To overcome the issue providing explicit function
to release all the mappings.
Bug
1950747
Change-Id: I8b11b8cc132e5a8266b5e4dedf6974037734e3a6
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1560791
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Pranami Bhattacharya [Fri, 6 Oct 2017 20:28:43 +0000 (13:28 -0700)]
tegra: arm64: enable TLK in the defconfig
We are now using some APIs specific to TLK in the HDCP driver. Hence
the TLK config needs to be enabled inside the defconfig.
Also HDMIVRR is no longer needed in the defconfig.
This is removed.
Bug
200346933
Change-Id: Id6ac183c02803bc6791234e05000697dcac4126d
Signed-off-by: Pranami Bhattacharya <pranamib@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1574542
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sujeet Baranwal <sbaranwal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Krishna Reddy [Tue, 22 Aug 2017 18:47:59 +0000 (11:47 -0700)]
platform: tegra: powergate: use tegra_mc_flush API
powergate code shouldn't access hotreset registers directly.
It should use tegra_mc_flush API.
Bug
200327368
Change-Id: Ibd35744a8e2b68dfd74c677b95912b7b2a3743d9
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1543570
(cherry picked from commit
520110ba847614e32369773932e1259eee6015ea )
Reviewed-on: https://git-master.nvidia.com/r/
1572874
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Hans-Christian Noren Egtvedt [Tue, 26 Sep 2017 13:45:35 +0000 (15:45 +0200)]
usb: gadget: tegra_xudc: remove double const declarations
Discovered using GCC 7.2.0, typing const twice does not makes sense for
C source code. Fixes compiler error.
Bug
1996535
Change-Id: Id88de8924de4dbaced054546203263ed07963fea
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1569080
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Pranami Bhattacharya [Mon, 2 Oct 2017 05:19:07 +0000 (22:19 -0700)]
security:tlk: enable CONFIG_TRUSTED_LITTLE_KERNEL
This patch enables CONFIG_TRUSTED_LITTLE_KERNEL option in the android
defconfig because it is needed for android customers only.
This patch removed unnecessary functions from ote_comms.c file.
te_restore_keyslots which is a TOS specific function is renamed for
both OSes as {tlk|trusty}_restore_keyslots and the caller is updated
in a separate patch
Bug
200346933
Change-Id: Id6cc3f328a886cbe39e034ce2d875583c9ee56e6
Signed-off-by: Pranami Bhattacharya <pranamib@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1571782
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Pranami Bhattacharya [Wed, 20 Sep 2017 22:48:25 +0000 (15:48 -0700)]
ote_comms: Suffix tlk to the APIs
Since we are supporting both trusty and TLK in the build and the same
APIs are used for both, suffixing the TLK ones with the appropriate
suffix.
Bug
200346933
Change-Id: Id51a305e4f9960dbd417f52fdb1444a0e66a3ee0
Signed-off-by: Pranami Bhattacharya <pranamib@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1564893
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mihir Joshi <mihirj@nvidia.com>
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Pranami Bhattacharya [Thu, 14 Sep 2017 22:59:17 +0000 (15:59 -0700)]
Revert "security: tlk: enable CONFIG_TRUSTED_LITTLE_KERNEL"
This reverts commit
c8a04599c6bb577e00795e0ae23166bf31ac60b6 .
Bug
200346933
Change-Id: I36c65cbff3a515397bac7e28862e03fb36f83ab0
Reviewed-on: https://git-master.nvidia.com/r/
1560293
Reviewed-by: Mihir Joshi <mihirj@nvidia.com>
Tested-by: Pranami Bhattacharya <pranamib@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Hans-Christian Noren Egtvedt [Tue, 26 Sep 2017 13:44:18 +0000 (15:44 +0200)]
iio: imu: nvi_mpu: remove double const declarations
Discovered using GCC 7.2.0, typing const twice does not makes sense for
C source code. Fixes compiler error.
Bug
1996535
Change-Id: Iaa2ef15514ed1dc2bd9c4487c962322e838ac6c0
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1569076
GVS: Gerrit_Virtual_Submit
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Yunfan Zhang [Thu, 28 Sep 2017 08:39:57 +0000 (16:39 +0800)]
arm64: tegra21: android: enable ina3221 support
enable INA3221 driver for T210 android device
Bug
200351357
Change-Id: Iafe036e5d4424adda078f4bd058802d798ec19b1
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1570047
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Hans Yang [Thu, 14 Sep 2017 09:44:21 +0000 (17:44 +0800)]
usb: otg: sync device mode on at resuming
With xotg enabled, we can observe that 'device mode on' is
after xudc resume as it is managed by the otg fsm which uses
workqueue mechanism to do callbacks and a delay for calls is
expected.
However this may cause an issue if 'device mode on' is invoked too
late and happens to run into the next coming system suspend process,
then immediate wakeup due to this might be seen as follows:
[ 129.739436] Resume caused by WAKE76,
3530000 .xhci
[ 129.739436] Resume caused by WAKE78,
3530000 .xhci
This commit fixes this by forcely synchronizing devcie mode at
xudc resuming, the sequences will be the same as without enabling
otg.
Adding new function call in otg core for this purpose:
void usb_otg_flush_work(struct usb_otg *otg)
Bug
200331125
Change-Id: I97a6c64ac367d75efdb61e0de6ba3a8af5f7a332
Signed-off-by: Hans Yang <hansy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1563088
GVS: Gerrit_Virtual_Submit
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Sing-Han Chen <singhanc@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Krishna Yarlagadda [Thu, 21 Sep 2017 06:15:00 +0000 (23:15 -0700)]
spi: tegra: disable slcg for T186
Disable SLCG for T186 chip
Bug
1977129
Change-Id: I7f0064ccecfe113fd8d5c13453ed9b1e7d0287ac
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1565136
Reviewed-by: Arun Kannan <akannan@nvidia.com>
Tested-by: Arun Kannan <akannan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Jeetesh Burman [Wed, 20 Sep 2017 11:07:35 +0000 (16:37 +0530)]
drivers: qspi_mtd: Set LC mode to 0
Historial background for checksum issue on DVT Orca-viper:
During implementation of fujitsu's FRAM driver, FRAM's spec
version "DS501-00043-0v01-E" doesn't say default value of status
register but observed that default value for status register in
FRAM on DVT boards was 0x20 while FRAM on EVT boards was 0x00
with 3 dummy-cycles and we were facing checksum failure on DVT.
Once we got newer version(DS501-00043-2v0-E) from FRAM vendor, it is
mentioned that for status reg = 0x20 (LC0 = 0, LC1 = 1 in status
register) need to set 2 dummy-cycle, this was the fixed provided
during first version of this FRAM driver but still checksum issue
was with other FRAM chips.
This change is to fix checksum issue properly so that checksum
should pass for all FRAM chips, below changes have been implemented
to fix this issue:
1. set 3 dummy-cycle
2. set status register to 0x00 before issuing FRQAD command, this
need to be set once
Bug
200284769
Change-Id: Iccc40d3c8a4096e098bc01c6b2f2a67d4e6582d3
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1564482
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Rajkumar Kasirajan [Thu, 24 Aug 2017 17:18:54 +0000 (01:18 +0800)]
iio: meter: ina3221: channel critical power limit
Add support to set critical power limit for INA3221 input channel.
If critical power limit is defined, critical current is calculated
dynamically based on channel input voltage & user defined power limit.
Bug
200334257
Change-Id: I59b1f96ad92b14732c97c89b319ab92285dda789
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1545120
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Debarshi Dutta [Mon, 18 Sep 2017 08:48:53 +0000 (14:18 +0530)]
defconfig: remove unnecessary erratum
This patch removes unnecessary A53 erratum from the defconfig to clean
up the build warnings. The version of ld that we have does not support
the erratum anyway so the config is not of any use.
arch/arm64/Makefile:23: ld does not support --fix-cortex-a53-843419;
kernel may be susceptible to erratum
Bug
1987412
Change-Id: I547ea7a7527e788b0d9f00fa70a5ccc4b403fc64
Signed-off-by: Aniruddha Banerjee <aniruddhab@nvidia.com>
Reviewed-on: http://git-master/r/
1305292
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
(cherry picked from commit
0a2e1896772e13d5d34a91b25f0e1c0fe42465dd in
dev-kernel)
Reviewed-on: https://git-master.nvidia.com/r/
1562261
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Ahung Cheng [Thu, 14 Sep 2017 06:59:28 +0000 (14:59 +0800)]
clk: tegra: add sdm_reset mask for PLLD2/DP
add sdm_reset as part of PLL startup sequence suggested
by PLL Team. This is required for PLLD2/DP and for
Tegra210 only.
bug
1923859
Change-Id: I01ba4b7f89e78f6fc134eac6a7200351e2b93477
Signed-off-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1559770
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Bhanu Murthy V [Fri, 22 Sep 2017 18:30:01 +0000 (11:30 -0700)]
drivers: camera: Add multiplier for 32bit formats
Add multiplier for 32 bit formats to adjust for
the calculations in the nvhost framework. This avoids
any race conditions or timing issues for kernel and
userspace driver requests.
Fix multiplier issue for TPG formats as well and cleanup
unnecessary calculations.
Bug
200333190
Change-Id: I7ee6a2323566e57ba04dbcf14da0295bfb659cec
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1566661
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Josh Kergan <jkergan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bruce Yang <kuoyuany@nvidia.com>
Tested-by: Bruce Yang <kuoyuany@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Jerry Chang [Mon, 18 Sep 2017 08:57:17 +0000 (16:57 +0800)]
Revert "add DOL settings for imx274"
This reverts commit
2b06bc7466cdd4a9acb4a40e0c9de4ca2130b1e5 .
Bug
200326805
Change-Id: I2d3d5ec0532d461d9b0100ece188fe9d97c2cf76
Signed-off-by: Jerry Chang <jerchang@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1563006
Reviewed-by: Esen Chen <esenc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Josh Kuo <joshk@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Robb Glasser [Fri, 24 Mar 2017 23:23:37 +0000 (16:23 -0700)]
Prevent potential double frees in sg driver
sg_ioctl could be spammed by requests, leading to a double free in
__free_pages. This protects the entry points of sg_ioctl where the
memory could be corrupted by a double call to __free_pages if multiple
requests are happening concurrently.
Bug
1971958
Change-Id: Ie13f65beb6974430f90292e2742841b26aecb8b1
Signed-off-by: Robb Glasser <rglasser@google.com>
Reviewed-on: https://git-master.nvidia.com/r/
1560698
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Adrian Salido [Tue, 25 Apr 2017 23:55:26 +0000 (16:55 -0700)]
driver core: platform: fix race condition with driver_override
The driver_override implementation is susceptible to race condition when
different threads are reading vs storing a different driver override.
Add locking to avoid race condition.
Bug
1971958
Fixes: 3d713e0e382e ("driver core: platform: add device binding path 'driver_override'")
Cc: stable@vger.kernel.org
Signed-off-by: Adrian Salido <salidoa@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I81138f12fff2499823fb96d89a3297d9df3c5b24
Reviewed-on: https://git-master.nvidia.com/r/
1560693
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Chris Salls [Sat, 8 Apr 2017 06:48:11 +0000 (23:48 -0700)]
mm/mempolicy.c: fix error handling in set_mempolicy and mbind.
In the case that compat_get_bitmap fails we do not want to copy the
bitmap to the user as it will contain uninitialized stack data and leak
sensitive data.
Bug
1971958
Signed-off-by: Chris Salls <salls@cs.ucsb.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Change-Id: I5b40ffb7f8d6b8c129e7b94f987346b52286502b
Reviewed-on: https://git-master.nvidia.com/r/
1560690
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Eric Dumazet [Tue, 14 Feb 2017 17:03:51 +0000 (09:03 -0800)]
packet: fix races in fanout_add()
Multiple threads can call fanout_add() at the same time.
We need to grab fanout_mutex earlier to avoid races that could
lead to one thread freeing po->rollover that was set by another thread.
Do the same in fanout_release(), for peace of mind, and to help us
finding lockdep issues earlier.
Bug
1971958
Fixes: dc99f600698d ("packet: Add fanout support.")
Fixes: 0648ab70afe6 ("packet: rollover prepare: per-socket state")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Change-Id: Ie3607aa40862958a2013cf90980e3abc6678a451
Reviewed-on: https://git-master.nvidia.com/r/
1560682
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Eric Dumazet [Fri, 3 Feb 2017 22:59:38 +0000 (14:59 -0800)]
tcp: avoid infinite loop in tcp_splice_read()
Splicing from TCP socket is vulnerable when a packet with URG flag is
received and stored into receive queue.
__tcp_splice_read() returns 0, and sk_wait_data() immediately
returns since there is the problematic skb in queue.
This is a nice way to burn cpu (aka infinite loop) and trigger
soft lockups.
Again, this gem was found by syzkaller tool.
Bug
1971958
Fixes: 9c55e01c0cc8 ("[TCP]: Splice receive support.")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Change-Id: I39dca8466a0505bdb02d68515d35479c87bd39fc
Reviewed-on: https://git-master.nvidia.com/r/
1560680
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Dan Carpenter [Tue, 2 May 2017 10:58:53 +0000 (13:58 +0300)]
ipx: call ipxitf_put() in ioctl error path
We should call ipxitf_put() if the copy_to_user() fails.
Bug
1971958
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Change-Id: I53219ff4f54a1456c44912036c64149a497a9850
Reviewed-on: https://git-master.nvidia.com/r/
1560678
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Daniel Borkmann [Sun, 7 May 2017 22:04:09 +0000 (00:04 +0200)]
bpf: don't let ldimm64 leak map addresses on unprivileged
The patch fixes two things at once:
1) It checks the env->allow_ptr_leaks and only prints the map address to
the log if we have the privileges to do so, otherwise it just dumps 0
as we would when kptr_restrict is enabled on %pK. Given the latter is
off by default and not every distro sets it, I don't want to rely on
this, hence the 0 by default for unprivileged.
2) Printing of ldimm64 in the verifier log is currently broken in that
we don't print the full immediate, but only the 32 bit part of the
first insn part for ldimm64. Thus, fix this up as well; it's okay to
access, since we verified all ldimm64 earlier already (including just
constants) through replace_map_fd_with_map_ptr().
Bug
1971958
Fixes: 1be7f75d1668 ("bpf: enable non-root eBPF programs")
Fixes: cbd357008604 ("bpf: verifier (add ability to receive verification log)")
Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Change-Id: Id15fc25d5d60a2a6969e60dc67a1956dbfeac443
Reviewed-on: https://git-master.nvidia.com/r/
1560676
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
WANG Cong [Tue, 9 May 2017 23:59:54 +0000 (16:59 -0700)]
ipv6/dccp: do not inherit ipv6_mc_list from parent
Like commit
657831ffc38e ("dccp/tcp: do not inherit mc_list from parent")
we should clear ipv6_mc_list etc. for IPv6 sockets too.
Bug
1971958
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Change-Id: I86381f2e9e5dd73c590ae8a77be916c68a0a23a1
Reviewed-on: https://git-master.nvidia.com/r/
1560673
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Eric Dumazet [Tue, 9 May 2017 13:29:19 +0000 (06:29 -0700)]
dccp/tcp: do not inherit mc_list from parent
syzkaller found a way to trigger double frees from ip_mc_drop_socket()
It turns out that leave a copy of parent mc_list at accept() time,
which is very bad.
Very similar to commit
8b485ce69876 ("tcp: do not inherit
fastopen_req from parent")
Initial report from Pray3r, completed by Andrey one.
Thanks a lot to them !
Bug
1971958
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Pray3r <pray3r.z@gmail.com>
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Change-Id: I49a3d7de687451ead042783517f944fb3c6e5c6e
Reviewed-on: https://git-master.nvidia.com/r/
1560672
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Insun Song [Wed, 24 May 2017 16:21:02 +0000 (09:21 -0700)]
net: wireless: bcmdhd: adding boundary check in wl_notify_rx_mgmt_frame
added boundary check for input parameters not to corrupt kernel heap in
case user injected malformed input
Bug
1971958
Signed-off-by: Insun Song <insun.song@broadcom.com>
Change-Id: I6dc12e9bcfce8f3b43ecf14bfd6976bf87afeaa5
Reviewed-on: https://git-master.nvidia.com/r/
1560667
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Sudhir Kohalli [Thu, 22 Jun 2017 18:48:53 +0000 (11:48 -0700)]
net: wireless: bcmdhd: Remove "dhd_handle_swc_evt" from dhd.
Remove SWC(siginificant wifi change) from the host. Since current
feature is no longer being used. If needed will get the feature
back. Due to this there will not any heap overflow in
"dhd_handle_swc_evt" will be observed.
Bug
1971958
Signed-off-by: Sudhir Kohalli <sudhir.kohalli@broadcom.com>
Change-Id: I38e891e3640471170f6ee37a519dcd9a222cb9f1
Reviewed-on: https://git-master.nvidia.com/r/
1560662
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Insun Song [Mon, 5 Jun 2017 21:39:26 +0000 (14:39 -0700)]
net: wireless: bcmdhd: adding boundary check for pfn events
adding boundary check for bssid count in dhd_pno_process_epno_result
and dhd_handle_hotlist_scan_evt function to prevent heap overflow.
Bug
1971958
Signed-off-by: Insun Song <insun.song@broadcom.com>
Change-Id: I1f0bc25ef4e7f5ba8f1aa9d9271919ee84d780a1
Reviewed-on: https://git-master.nvidia.com/r/
1560663
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Insun Song [Mon, 5 Jun 2017 17:21:10 +0000 (10:21 -0700)]
net: wireless: bcmdhd: adding boudary check in wl_escan_handler
WLC_E_ESCAN_RESULT event could be manipulated especially two length field
inside, one is for escan_result buffer length and another one is
bss_info length, the forged fields may bypass current length check and
corrupt kernel heap memory.
Bug
1971958
Change-Id: I31e9fccc48fc06278fb3a87a76ef7337296c2b0d
Signed-off-by: Insun Song <insun.song@broadcom.com>
Bug:
37351060
Reviewed-on: https://git-master.nvidia.com/r/
1558883
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Manikanta [Tue, 1 Aug 2017 09:07:44 +0000 (14:37 +0530)]
pcie: host: tegra: set clkreq as input before linkup
Set clkreq as input to avoid root port control it.
Clkreq is set as bi directional once L1SS is enabled.
bug
200323063
Change-Id: I806f1506b119865c52802d0f69ab963f69332046
Signed-off-by: Manikanta <mmaddireddy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1530439
(cherry picked from commit
659a3bac2a9ae4601e234c9c1af0e5da2e42e62a )
Reviewed-on: https://git-master.nvidia.com/r/
1533899
(cherry picked from commit
70d864df32ec21cec01972dcc3afdd5afa49739d )
pcie: host: tegra: move clkreq pinmux setting to probe
Issue: clkreq is set to input during link up.
This setting happens during boot and resume.
If L1SS is enabled, setting clkreq as input
cause CTO.
Fix: Set clkreq as input only during boot.
bug
200323063
Change-Id: Ie84d63d8d322869cf0b5a376972c22f1ada5110d
Signed-off-by: Manikanta <mmaddireddy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1531547
(cherry picked from commit
776fcffe01be4dec619efee51b04c0fe0a050d1a )
Reviewed-on: https://git-master.nvidia.com/r/
1533900
(cherry picked from commit
af5d8d676a8914f937a58d05192cc146bb81b44c )
pcie: host: tegra: check program_clkreq_as_bi_dir flag
clkreq pinmux should be updated only if program_clkreq_as_bi_dir
flag is set. Check program_clkreq_as_bi_dir flag before updating
pinmux.
bug
200323063
Change-Id: I88283b0d06be1055b7bca1cbedb9653067914d94
Signed-off-by: Manikanta <mmaddireddy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1534031
(cherry picked from commit
10c0efcb9d5b8b9f4d044d3303d6888f486d9d76 )
Reviewed-on: https://git-master.nvidia.com/r/
1567668
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Srinivas Ramachandran [Tue, 8 Aug 2017 20:03:41 +0000 (13:03 -0700)]
net: wireless: bcmdhd: Reset wifi band to restore channel flags
Issue: Sometimes on disconnection from AP on DFS channel,
firmware channel flags are still in stale active state. This
leads to active scanning on DFS channel without AP connection.
To prevent this, the currently set country code is reset again
to firmware to refresh the channel flags.
However, if setting country code fails, channel flags are not
refreshed.
Fix: Reset the existing band selection to firmware inorder to
restore channel flags to passive on DFS channel
and avoid probing DFS channel.
Bug
1883430
Change-Id: I528ff23391305dfa6fb9c9e42e4fca8855a24c1f
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1535199
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Sachin Nikam [Wed, 28 Jun 2017 07:40:37 +0000 (13:10 +0530)]
firmware: add /vendor/firmware path
Adding path for firmwares to pick from
vendor partitions.
SoC-Vendor specific firmwares should
reside in /vendor/firmware path.
Bug
200322880
Change-Id: I4a6fc673995a963b4b8f5425eb90334ddb12714c
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: https://git-master/r/
1509875
(cherry picked from commit
25cd561fceda63aa3b6cdafbc3390defb1faf788 )
Reviewed-on: https://git-master.nvidia.com/r/
1565306
Tested-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
mkarthik [Thu, 21 Sep 2017 09:25:55 +0000 (14:55 +0530)]
arm64: config: t210: Add SND_USB_AUDIO Config
Bug
200340830
Change-Id: Ibbe67a471add8037a4be41ead5c800ff9fdfd57e
Reviewed-on: https://git-master.nvidia.com/r/
1565267
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Manikanta Maddireddy [Thu, 21 Sep 2017 08:18:00 +0000 (13:48 +0530)]
ARM64: tegra21: Enable PCIe based card drivers
Enable drivers for NVMe, Intel EThernet, Broadcom
Ethernet, EHCI USB and PCIe based SATA cards.
bug
200349203
Change-Id: I1213f5627078c6725c27bc39afcdaf60047ea3a7
Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1564691
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Manikanta Maddireddy [Thu, 21 Sep 2017 06:46:47 +0000 (12:16 +0530)]
ARM64: tegra21: update tegra21 defconfig using make
Update the tegra21 defconfig using make and savedefconfig
commands.
bug
200349203
Change-Id: I4c71d8ab18d75ef2965cc0659038e843c9e63a0c
Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1565204
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Srinivas Ramachandran [Tue, 19 Sep 2017 20:08:43 +0000 (13:08 -0700)]
arm64: configs: tegra21: enable INET_DIAG_DESTROY
Issue: ConnectivityManagerTest cts test is failing
due to socket close time out error
Fix: Enable CONFIG_INET_DIAG_DESTROY to allow
privileged process to administratively close sockets
Bug
200316929
Change-Id: Ibeaf0ac7b4eeae64bafabd2f761627b7787e829d
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1563797
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Tested-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Frank Chen [Fri, 15 Sep 2017 21:02:30 +0000 (14:02 -0700)]
drivers: media: i2c: Fix IMX185 set gain function
Update set gain formula so we don't lose precision
over fixed point math calculation.
Bug
200325453
Change-Id: Ib67c77051a6c45cdce3f6d7cd84179e54a8ce40a
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1561145
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Esen Chen <esenc@nvidia.com>
Reviewed-by: Amit Purwar <apurwar@nvidia.com>
Reviewed-by: Saurabh Maniktala <smaniktala@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Sai Gurrappadi [Wed, 6 Sep 2017 20:05:10 +0000 (13:05 -0700)]
soc/tegra: sysedp: Fix deadlock on GPU EDP update
There is an ABBA deadlock involving the edp core_lock (B) and the
pm_qos_lock (A) like so:
Thread 1:
[<
ffffffc000085dc4 >] __switch_to+0xa4/0xb0
[<
ffffffc000b2aee8 >] __schedule+0x588/0x6ec
[<
ffffffc000b2b0cc >] schedule+0x80/0xa0
[<
ffffffc000b2b454 >] schedule_preempt_disabled+0x20/0x3c
[<
ffffffc000b2cbb4 >] __mutex_lock_slowpath+0xe8/0x178
[<
ffffffc000b2cc88 >] mutex_lock+0x44/0x60 <= (B)
[<
ffffffc00045696c >] tegra_edp_notify_gpu_load+0x3c/0x124
[<
ffffffc00052f0d0 >] gk20a_tegra_prescale+0x3c/0x48
[<
ffffffc000530b6c >] gk20a_scale_get_dev_status+0x40/0xd4
[<
ffffffc0007d1bd4 >] nvhost_pod_estimate_freq+0x78/0x5e4
[<
ffffffc0007d03c0 >] update_devfreq+0x54/0x100
[<
ffffffc000530ca0 >] gk20a_scale_qos_notify+0xa0/0xc0
[<
ffffffc0000c13dc >] notifier_call_chain+0x48/0x88
[<
ffffffc0000c18f4 >] __blocking_notifier_call_chain+0x44/0x68
[<
ffffffc0000c192c >] blocking_notifier_call_chain+0x14/0x1c
[<
ffffffc0000eef24 >] pm_qos_update_bounded_target+0x2b0/0x310 <= (A)
[<
ffffffc0000ef278 >] pm_qos_update_bounded_req+0x84/0x94
[<
ffffffc0000f05ac >] pm_qos_bounded_write+0x1ac/0x22c
[<
ffffffc0001d04cc >] __vfs_write+0x30/0xe4
[<
ffffffc0001d0b7c >] vfs_write+0xa4/0x190
[<
ffffffc0001d15d4 >] SyS_write+0x44/0x88
[<
ffffffc0000847f0 >] el0_svc_naked+0x24/0x28
Thread2:
[<
ffffffc000085dc4 >] __switch_to+0xa4/0xb0
[<
ffffffc000b2aee8 >] __schedule+0x588/0x6ec
[<
ffffffc000b2b0cc >] schedule+0x80/0xa0
[<
ffffffc000b2b454 >] schedule_preempt_disabled+0x20/0x3c
[<
ffffffc000b2cbb4 >] __mutex_lock_slowpath+0xe8/0x178
[<
ffffffc000b2cc88 >] mutex_lock+0x44/0x60
[<
ffffffc0000efb54 >] pm_qos_update_target+0x30/0x27c <= (A)
[<
ffffffc0000f0100 >] __pm_qos_update_request+0xdc/0x128
[<
ffffffc0000f01b0 >] pm_qos_update_request+0x48/0x54
[<
ffffffc0004572f0 >] _do_cap_control+0xe8/0x2b0
[<
ffffffc0004574dc >] do_cap_control+0x24/0x38 <= (B)
[<
ffffffc0004574fc >] capping_worker+0xc/0x14
[<
ffffffc0000ba7dc >] process_one_work+0x234/0x45c
[<
ffffffc0000bac4c >] worker_thread+0x248/0x428
[<
ffffffc0000c08e4 >] kthread+0xf8/0x100
[<
ffffffc000084790 >] ret_from_fork+0x10/0x40
tegra_edp_notify_gpu_load blocks on the core_lock via calc_gpu_busy which
is held to protect the gpu_high_hist. However, tegra_edp_notify_gpu_load
is already called with the devfreq GPU lock held so there is no need to
try and protect calc_gpu_busy with the core_lock. We can simply drop it
and fix this deadlock.
Bug
1984722
Change-Id: Iac2a24fca1b84381e037482059c51b2989d6fdbc
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1553852
(cherry picked from commit
d35aea1278a36e3d72e61589b11fd0ff3c1e64bf ))
Reviewed-on: https://git-master.nvidia.com/r/
1564070
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Anders Kugler <akugler@nvidia.com>
Adrian Salido [Tue, 18 Apr 2017 18:44:33 +0000 (11:44 -0700)]
tracing: fix race condition reading saved tgids
Commit
939c7a4f04fc ("tracing: Introduce saved_cmdlines_size file")
introduced ability to change saved cmdlines size. This resized saved
command lines but missed resizing tgid mapping as well.
Another issue is that when the resize happens, it removes saved command
lines and reallocates new memory for it. This introduced a race
condition when reading the global savecmd as this can be freed in the
middle of accessing it causing a use after free access. Fix this by
implementing locking.
Bug
1954563
Signed-off-by: Adrian Salido <salidoa@google.com>
Change-Id: I334791ac35f8bcbd34362ed112aa624275a46947
Reviewed-on: https://git-master.nvidia.com/r/
1560443
GVS: Gerrit_Virtual_Submit
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Jin Qian [Tue, 25 Apr 2017 23:28:48 +0000 (16:28 -0700)]
f2fs: sanity check segment count
F2FS uses 4 bytes to represent block address. As a result, supported
size of disk is 16 TB and it equals to 16 * 1024 * 1024 / 2 segments.
Bug
1954563
Signed-off-by: Jin Qian <jinqian@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Change-Id: I7ce14d49672b26b18c30c81f4245628fdc0fb343
Reviewed-on: https://git-master.nvidia.com/r/
1560442
GVS: Gerrit_Virtual_Submit
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Jin Qian [Tue, 25 Apr 2017 01:20:52 +0000 (18:20 -0700)]
BACKPORT: f2fs: sanity check log_blocks_per_seg
f2fs currently only supports 4KB block size and 2MB segment size.
Sanity check log_blocks_per_seg == 9, i.e. 2MB/4KB = (1 << 9)
Partially
(cherry-picked from commit
9a59b62fd88196844cee5fff851bee2cfd7afb6e )
f2fs: do more integrity verification for superblock
Do more sanity check for superblock during ->mount.
Bug
1954563
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Jin Qian <jinqian@google.com>
Change-Id: I0be52e54fba82083068337ceb9f7ad985a87319f
Reviewed-on: https://git-master.nvidia.com/r/
1560425
GVS: Gerrit_Virtual_Submit
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Thomas Gleixner [Tue, 31 Jan 2017 14:24:03 +0000 (15:24 +0100)]
timerfd: Protect the might cancel mechanism proper
The handling of the might_cancel queueing is not properly protected, so
parallel operations on the file descriptor can race with each other and
lead to list corruptions or use after free.
Protect the context for these operations with a seperate lock.
The wait queue lock cannot be reused for this because that would create a
lock inversion scenario vs. the cancel lock. Replacing might_cancel with an
atomic (atomic_t or atomic bit) does not help either because it still can
race vs. the actual list operation.
Bug
1954563
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: "linux-fsdevel@vger.kernel.org"
Cc: syzkaller <syzkaller@googlegroups.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1701311521430.3457@nanos
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Change-Id: I75cec83c8b124010a951d6a92c78cea3c7dbe403
Reviewed-on: https://git-master.nvidia.com/r/
1560424
GVS: Gerrit_Virtual_Submit
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Insun Song [Fri, 7 Apr 2017 23:27:49 +0000 (16:27 -0700)]
net: wireless: bcmdhd: additional length check for BRCM EVENT frame.
(cherry picked from commit
72c9463eaab0fa19a461ac8de7d0abbf825a44bd )
This is just for exceptional case where user has updated kernel to the
latest, but still used non-patched firmware. The non-patched firmware
could deliver ETHER_TYPE_BRCM packet to host.
If attacker inject packet with its header length forged, it could bypass
current host driver's length check routine and cause memory corruption.
Proposed fix is enhancing length check to validate its header length.
Bug
1954563
Signed-off-by: Insun Song <insun.song@broadcom.com>
Bug:
37168488
Change-Id: I90fc5101bddfd1d427e0a52758ddf8bc16577555
Reviewed-on: https://git-master.nvidia.com/r/
1557564
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: James Huang <jamehuang@nvidia.com>
Tested-by: James Huang <jamehuang@nvidia.com>
Bhanu Murthy V [Tue, 12 Sep 2017 22:18:12 +0000 (15:18 -0700)]
drivers: camera: Fix fps for HDMI->CSI bridge
Fix framerate reporting mechanism for HDMI->CSI
sensor. Use dv timings which control the HDMI
throughput to calculate the framerate of incoming
CSI stream to VI.
Bug
200333190
Change-Id: I349b9a06a5da0820c8b465ea523c0eb7ed14af42
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1558596
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>