4 years agovideo: tegra: Fix hdmi 2.0 length masking error
Arun Swain [Wed, 16 Sep 2015 19:28:13 +0000]
video: tegra: Fix hdmi 2.0 length masking error

Mask length with 0x1f instead of 0x0f since
length is of 5 bits.

Bug 200122117

Change-Id: I317507e0ccf1ede503ab479ff0151b6c61ac3a13
Reviewed-on: http://git-master/r/802430
(cherry picked from commit 1ba569d7b0559c8a84bcf25a4a6c709ddc8e20aa)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821203
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agotegra: dc: Add hdr support
Arun Swain [Wed, 23 Sep 2015 21:34:18 +0000]
tegra: dc: Add hdr support

Added HDR support in kernel using the new FLIP4.

1. Added support for new HDR infoframe defined
in CEA 861.3.
2. This new infoframe data is associated with each
flip and passed onto kernel from userspace. The
user space uses tegra_dc_ext_hdr struct and the
appropriate tag info in the new FLIP4 ioctl to
pass the info to kernel.
3. The new infoframe data in the ioctl is parsed
and stored in existing tegra_dc_ext_flip_data
struct in the flip ioctl. This info is passed to
dc in flip_worker.
4. Currently the design is to set the eotf as 0
(SDR) and 2(SMPTE 2084) with the required payload
for non-HDR and HDR frames respectively.

Bug 200122117

Change-Id: Ic66fa88db50177ccd0349bbf7a6ff9f33c4eb764
Reviewed-on: http://git-master/r/803998
(cherry picked from commit 3f6e9e9531360eedba5ce43c5d129f34b6d7f68b)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821201
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agotegra: dc: ext: Add TEGRA_DC_EXT_FLIP4 support
Arun Swain [Wed, 23 Sep 2015 21:17:01 +0000]
tegra: dc: ext: Add TEGRA_DC_EXT_FLIP4 support

Add FLIP4 support for the follwing reasons:
1. Cuurent FLIP3 doesn't have enough space in
order to pass head-specific info.
2. In order to pass HDR metadata we need at least
26 bytes and the current FLIP3 doesn't support
that.

The new FLIP4 has
1. A pointer to a array of 32 bytes of data to
pass head-specific info.
2. A nr_elements variabel that indicates the no.
of elements in the above array.

A new "tegra_dc_ext_flip_user_data" is defined
that has 6 bytes of tag info and 26 bytes of
payload data.

Bug 200122117

Change-Id: I4831b89ec25f877a948406feb4589824e82e3f3e
Reviewed-on: http://git-master/r/803991
(cherry picked from commit 83f6cd1eaebf1384c95a48069807407fb7beccf2)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821188
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agovideo: tegra: hdmi: Add HDR notification support
Arun Swain [Tue, 29 Sep 2015 01:47:22 +0000]
video: tegra: hdmi: Add HDR notification support

Add support for notifying user sapce of hdr
capability of the sink.

If hdr info is found in the edid, FB_CAP_HDR is
set and informed to the userspace via
"FBIOGET_FSCREENINFO" ioctl.

Bug 200122117

Change-Id: Iaf96cd4940ab866767c222e18fd2778237b3fe9a
Reviewed-on: http://git-master/r/806384
(cherry picked from commit 2b2c865bead01f282bbdd81aa3bca42a179bb119)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821185
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agotegra: dc :hdmi: Add CEA 861.3 support
Arun Swain [Tue, 15 Sep 2015 03:47:17 +0000]
tegra: dc :hdmi: Add CEA 861.3 support

Add support for reading CEA 861.3 HDR related
info from edid.

Due to lack of floating point support, it is
expected that user space to actually makes sense
of the numbers by following the specs. Kernel
just reads the values as it is from the edid.

Bug 200122117

Change-Id: I91bfe3b92cd8937cb862e8a38f790b89903d90f4
Reviewed-on: http://git-master/r/802449
(cherry picked from commit 39c2e727a24b929fff96df05ef5e032105df44c2)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821184
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoarm64: t210: disable cluster switch for t210.
Hayden Du [Thu, 15 Oct 2015 10:01:07 +0000]
arm64: t210: disable cluster switch for t210.

Disable cluster switch on T210 platform to avoid
stress issue.

bug 200117285

Change-Id: I2ef7f433d2b2afdadc033cc1d85adcb238f3523a
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/762220
(cherry picked from commit 043030f05d75c1269fd1dd574e48c9c7f05a002e)
Reviewed-on: http://git-master/r/818191
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoplatform: tegra: mc: handle dec and sec mc err combo
Krishna Reddy [Wed, 23 Sep 2015 21:55:25 +0000]
platform: tegra: mc: handle dec and sec mc err combo

Hanlde DECERR_EMEM and SECURTY_VIOLATION error combination.

Bug 1675932

Change-Id: I762b3bfa153ea41af35881fad2c7c9306b0fc8d5
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/804003
(cherry picked from commit 9b1002220dcc62e7f18b2e7db76976318f0592d6)
Reviewed-on: http://git-master/r/820460
GVS: Gerrit_Virtual_Submit

4 years agortc: max77620: remove buffer update for RTCINT reg read
Leo He [Sat, 28 Feb 2015 09:56:11 +0000]
rtc: max77620: remove buffer update for RTCINT reg read

remove unnecessary buffer update for RTCINT reg read,
because RTCINT is not a double buffered register

bug 200056803

Change-Id: Ie3956ee7ef3fdb0f423f081f24c702603672dce0
Signed-off-by: Leo He <leoh@nvidia.com>
Reviewed-on: http://git-master/r/712270
(cherry picked from commit 812afcc13fad503716393b2156dae70bc18d1a1d)
Reviewed-on: http://git-master/r/819473
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

4 years agoarm64: tegra21: Increase VPR memory
Amit Sharma (SW-TEGRA) [Wed, 21 Oct 2015 09:17:17 +0000]
arm64: tegra21: Increase VPR memory

Increase VPR memory for following devices as follows
to handle 4K content:
 - Foster    – 672 MB
 - HE/Others – 364 MB

of_machine_is_compatible() API can't be used in tegra_t210ref_reserve()
because DT is not populated by the time tegra_t210ref_reserve() is called.
So to set the vpr_size for foster_e device we have to use
of_flat_dt_is_compatible() API.

Bug 200057425

Change-Id: Ie6a1239224176f69e2458a54862d56f724c08382
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/817461
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agomisc: tegra-baseband: fix coverity defect
BH Hsieh [Wed, 30 Sep 2015 04:48:07 +0000]
misc: tegra-baseband: fix coverity defect

fix coverity defect CID 19864
caused by http://git-master/r/453975

Bug 1416640

Change-Id: Ia739024f55e0a75037503fe3d95db86e62be30e3
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>
Reviewed-on: http://git-master/r/807182
(cherry picked from commit 92bac217c5c1df83829db8b5f52b8f84744f224f)
Reviewed-on: http://git-master/r/812732
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

4 years agoRevert "gpu: nvgpu: WAR for bad GPFIFO entries from userspace"
Terje Bergstrom [Mon, 5 Oct 2015 21:51:13 +0000]
Revert "gpu: nvgpu: WAR for bad GPFIFO entries from userspace"

This reverts commit aeb74fc7952718ffab6281c687951499510c4333.
User space was fixed not to send zero-length GPFIFO entries.

Bug 1662670

Change-Id: Iec6bf1870a19db4e8daa2ed4512650b92a37ba92
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/815440
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoUSB: tegra: support for parsing skip_resume
Suresh Mangipudi [Mon, 19 Oct 2015 11:05:32 +0000]
USB: tegra: support for parsing skip_resume

skip_resume flag will be parsed and stored in case of hsic
interface for T210 platforms

Bug 1694914

Change-Id: I20013a274b2dce43c6102087a791c68677a2343d
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/819583
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frederic Bossy <fbossy@nvidia.com>
Tested-by: Frederic Bossy <fbossy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoARM: tegra: dts: enable skip resume flag
Suresh Mangipudi [Mon, 19 Oct 2015 11:00:36 +0000]
ARM: tegra: dts: enable skip resume flag

enable skip resume for modem over ehci

Bug 1694914

Change-Id: I9fd88939da0b90ec3e98f560ab27a8a1b0c37645
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/819582
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frederic Bossy <fbossy@nvidia.com>
Tested-by: Frederic Bossy <fbossy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarm64: tegra210: dts: Map US/CA/IN to use Country code Q2/998
Srinivas Ramachandran [Tue, 14 Jul 2015 00:54:29 +0000]
arm64: tegra210: dts: Map US/CA/IN to use Country code Q2/998

Power tunings done with latest nvram uses Q2/998 code, however
due to incorrect DT mapping, US country code could be overriden
in firmware. Change mapping for only US/CA/IN to Q2/998 instead

Bug 200087379

Change-Id: I6ec3ac041193cb00ee1bdfe02401359cdabb5f30
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/769571
(cherry picked from commit e4e7f9f83ddd4c85748b6cb6211e78ceb9394bc6)
Reviewed-on: http://git-master/r/819435
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoRevert "arm: tegra: no need to reserve fbmem"
Prafull Suryawanshi [Mon, 19 Oct 2015 11:29:44 +0000]
Revert "arm: tegra: no need to reserve fbmem"

Bug 200147064
Bug 1602113

This reverts commit bc3f5f7d619578d864a33508747de03c6adeba0b.

Change-Id: I10c4a4977e874aa34e6256a78e4c015276c1de5c
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/819595
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>

4 years agoRevert "video: tegra: dc: manage alloc/release framebuffer memory by driver"
Prafull Suryawanshi [Mon, 19 Oct 2015 11:26:26 +0000]
Revert "video: tegra: dc: manage alloc/release framebuffer memory by driver"

Bug 200147064
Bug 1602113

This reverts commit 69867681b50f345c9180d63570a8436a33557809.

Change-Id: I3a65157580b542bee5f15bc9980c558b4047bec7
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/819593
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: dc: Fix build break with OF_DC_DEBUG
Aly Hirani [Thu, 15 Oct 2015 18:58:08 +0000]
video: tegra: dc: Fix build break with OF_DC_DEBUG

There was a typo in a couple of the prints that were only conditionally
enabled

Change-Id: Id38f769a057b489de09dc437831ffcf4a8e4dba5
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/818370
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoRe-order bus header field before payload msg
Srinivas Ramachandran [Wed, 16 Sep 2015 21:42:20 +0000]
Re-order bus header field before payload msg

The DHD driver implementation derives the bus header
pointer based on the msg payload pointer, assuming
the header memory is always before the msg payload.

DHD ver 1.201.82 has swapped the order of msg payload
field to be before bus header in struct dhd_prot_t.
This causes memory corruption when the driver tries to
access header contents by seeking the msg pointer
backwards.

Previous versions of the DHD driver do not have this
issue, and later versions 1.363.x have the correct order
(Header before the payload)

Bug 200128157

Change-Id: I33c1c99fad970c6aa221537a5bf0496666ea6d00
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/800362
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Tested-by: Ashutosh Jha <ajha@nvidia.com>
(cherry picked from commit 1c46f75709d86e03bf2a5961e6a5bf3dce651928)
Reviewed-on: http://git-master/r/818003
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

4 years agoarm64: jetson: add chosen node for EEPROM
Gaurav Sarode [Sat, 1 Aug 2015 22:30:58 +0000]
arm64: jetson: add chosen node for EEPROM

Adding node for EEPROM present on Jetson.

Bug 200113569

Change-Id: If891c9323bdff0e931202c3f35486c12a6b81aab
Signed-off-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-on: http://git-master/r/777709
(cherry picked from commit 2d57b9b7834e75682957a8b5ced04cda94067146)
Reviewed-on: http://git-master/r/803446
Reviewed-by: Automatic_Commit_Validation_User

4 years agogpu: nvgpu: fix pbdma intr handling
Deepak Nibade [Thu, 24 Sep 2015 09:26:44 +0000]
gpu: nvgpu: fix pbdma intr handling

To handle any of the pbdma interrupt, we currently write zero
to pbdma_method0 and then clear the interrupt

But this is insufficient since we cannot use same intr clear
method for all the interrupts

Hence, add intr specific routines to handle those interrupts

NV_PPBDMA_INTR_0_PBENTRY:
- fix the pb_header to have a null opcode
- fix the pbdma_method to have a valid nop

NV_PPBDMA_INTR_0_METHOD:
- fix the pbdma_method to have a valid nop

NV_PPBDMA_INTR_0_DEVICE:
- fix the pb_header to have a null opcode
- go through all pbdma_method0/1/2/3
-- if they contain host s/w methods, replace those
   methods with a valid NOP

Bug 200134238

Change-Id: I10c284a6cdc1441f9d437cea65aae00d3c33a8c8
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/814561
(cherry picked from commit 5e2cfdee1171cc46d3a78465409b2df7372bf0e6)
Reviewed-on: http://git-master/r/819394
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

4 years agoloki: dts: Enable touch on loki-e
Ankita Garg [Wed, 9 Sep 2015 19:32:36 +0000]
loki: dts: Enable touch on loki-e

Bug 1681669

Change-Id: Id990365a3e68d36711431b08b5a62809ae2a0e0f
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/819158
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

4 years agoarm64: tegra: update jetson_e emc dvfs to v983
Kerwin Wan [Mon, 19 Oct 2015 05:32:26 +0000]
arm64: tegra: update jetson_e emc dvfs to v983

Bug 1636958

Change-Id: Icb9ae1e15fd5041f8bbd3df0fe2e4b6d5f84f463
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/819386
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

4 years agoRevert "loki:foster: emc update to 983 v11"
Kerwin Wan [Mon, 19 Oct 2015 03:14:25 +0000]
Revert "loki:foster: emc update to 983 v11"

This reverts commit 27457b6fa2c07a7ddca6df9b58b4818ce6066c93.

Change-Id: I99e9d26b179a0f0d00ccda3a10e3dfb364919b98
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/819341
GVS: Gerrit_Virtual_Submit

4 years agoASoC: Codec: fix headset-mic issue
Sameer Pujar [Tue, 13 Oct 2015 11:06:07 +0000]
ASoC: Codec: fix headset-mic issue

LDO2 and MICBIAS power supplies are turned ON during
jack detection to detect headset-mic. The micbias voltage
turned OFF if there is no headset-mic.
This should be tried on E2614 with FSA rework

Bug 1686170
Bug 200135470

Reviewed-on: http://git-master/r/805033
(cherry picked from commit b05badedae5c0445949c25ebf5b4d44adb638a00)

Change-Id: I88b4901e00b88fae7b7fb1ceacb738dd2fc488df
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: http://git-master/r/816713
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

4 years agoiio: light: CM3217 index fix.
Erik Lilliebjerg [Fri, 16 Oct 2015 07:56:04 +0000]
iio: light: CM3217 index fix.

- Fix possible table index out-of-bounds.
- Change default threshold values to something in reality.
- Add CM3217 debug light dump.
NVS_IIO v208:
- Add ability to read debug dump from HW driver without a write.
- Add sensor name to debug prints.
- Add functionality to returned calls from HW driver allowing simplification
  of HW driver code, specifically for multi-sensor drivers.

Bug 200145232

Change-Id: I79d014569e236c70d8a3cdec2945fc0f22e43c07
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/818914
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

4 years agoarm: boot: dts: SB ALS calibration
Erik Lilliebjerg [Fri, 16 Oct 2015 14:50:55 +0000]
arm: boot: dts: SB ALS calibration

- CM3217 device tree calibration values.

Bug 200145232

Change-Id: I781f4ffb1228291a3dbdc7f8352f58bd96ff4f15
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/818911
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

4 years agoconfig: Add NVS drivers
Robert Collins [Thu, 1 Oct 2015 05:52:45 +0000]
config: Add NVS drivers

Bug 200145232

Change-Id: Id2b751b09cdc333c95cc6ccf60be1da7b10bc501
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/807849
Reviewed-by: Automatic_Commit_Validation_User

4 years agodts: Sensors: Add NVS sensor drivers
Robert Collins [Thu, 1 Oct 2015 05:51:47 +0000]
dts: Sensors:  Add NVS sensor drivers

Add NVS sensor drivers:
* LTR5X5
* MAX44000
* CM3217

Bug 200145232

Change-Id: I829b43b8f268926172993fae90633425695c7bc2
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/807848
Reviewed-by: Automatic_Commit_Validation_User

4 years agopcie: host: tegra: adds pad powerdown programming
Vidya Sagar [Mon, 3 Aug 2015 17:26:29 +0000]
pcie: host: tegra: adds pad powerdown programming

adds missing pad powerdown programming which is present
in pcie IAS doc

Bug 200069084
Bug 200044687

Change-Id: I3c69be6da8d849e9c203d3af0fb84b2ade4f09fe
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/778016
(cherry picked from commit 749728999ab66c61e27495567309e26d315a9701)
Reviewed-on: http://git-master/r/818629
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoconfigs: tegra21_android_defconfig: add net sch
Xiao Bo Zhao [Wed, 23 Sep 2015 06:00:29 +0000]
configs: tegra21_android_defconfig: add net sch

Enable NET_SCH_TEGRA for T210 platforms

Change-Id: Ifd1b83795e4ee00ab3b970b140bdef24296f83bb
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/803468
(cherry picked from commit cf68388d96382ce0ebaf0591623b686b97ff55e6)
Reviewed-on: http://git-master/r/815686
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agonet: sched: Tegra Network Device Queue packet scheduling algorithm
Michael Hsu [Tue, 12 May 2015 00:54:19 +0000]
net: sched: Tegra Network Device Queue packet scheduling algorithm

Tegra devices reserve highest priority queue for real-time network
devices, such as audio stream to a network (wifi) gaming controller.

Bug 1640086

Change-Id: I34a97edc87404c630c483389459f8e7b2474e892
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/795857
(cherry picked from commit fae05854103a872c8b9913079ffc83f3a6c79c68)
Reviewed-on: http://git-master/r/815685
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agoarm: tegra: no need to reserve fbmem
Eric Miao [Wed, 25 Feb 2015 20:19:12 +0000]
arm: tegra: no need to reserve fbmem

Bug 1602113

Now framebuffer memory is allocated by the driver, there is no
need to reserve by tegra_reserve4().

Change-Id: I4e2e025f17c32d338d15269aed65058498a7cb30
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/711712
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Li Li (SW-TEGRA) <lli5@nvidia.com>
Tested-by: Li Li (SW-TEGRA) <lli5@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/805260
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Tested-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

4 years agovideo: tegra: dc: manage alloc/release framebuffer memory by driver
Eric Miao [Tue, 28 Oct 2014 13:30:51 +0000]
video: tegra: dc: manage alloc/release framebuffer memory by driver

Bug 1602113

Manage the allocation and release of the framebuffer memory by the fb
driver. This allows system such as Android, which doesn't actually map
the framebuffer, to release this memory.

Patch based on previous work done by Sri Krishna, but largely rewriten
per discussion with Jon/Krishna so that:

  1. Make use of standard DMA API - specifically

     - dma_alloc_writecombine()
     - dma_free_writecombine()
     - dma_mmap_writecombine()

  2. Do not break seamless display by copying over the content from
     bootloader framebuffer, which is passed in the resource instead
     of the reserved framebuffer memory

  3. Release the allocated framebuffer from DC driver when buffers
     submitted available for display, but only safely when:

     - no kernel use (e.g. fbcon)
     - no mmap into userspace

  4. Allocation size defaults to 4K with double buffering if not
     specified otherwise. This allows maximum backward compatibility,
     the memory will be released anyway once Android is up - and for
     the cases where it's not necessary to allocate such a big memory
     block, one can still modify the DT attribute 'nvidia,fbmem-size'
     for that.

Change-Id: If53c6d071d5f7a9cfb16eb0dc27866b9795bf5ac
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Eric Miao <emiao@nvidia.com>
Cc: Jon Mayo <jmayo@nvidia.com>
Cc: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/711711
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/805259
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Tested-by: Naveen Kumar S <nkumars@nvidia.com>

4 years agoprintk: add loglevel for messages from /dev/kmsg
Eric Miao [Thu, 11 Jun 2015 17:37:42 +0000]
printk: add loglevel for messages from /dev/kmsg

Bug 1644887

Allow messages to /dev/kmsg to have a different loglevel other than
the default_message_loglevel, which is the one kernel printk() uses
when no loglevel is specified.

Change-Id: I340d20693d87cfea9aaea51845caf32b4cbd62fa
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/756603
Reviewed-by: Li Li (SW-TEGRA) <lli5@nvidia.com>
Tested-by: Li Li (SW-TEGRA) <lli5@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/805255
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agoarm: tegra: dts: cmu: Tune LUT2 params
Arun Swain [Wed, 7 Oct 2015 21:19:05 +0000]
arm: tegra: dts: cmu: Tune LUT2 params

LUT2 cmu params further tuned for both sRGB and
enhanced_color on hawkeye. With this it very
closely matches gamma 2.2.

Bug 200089321

Change-Id: If831a2169bf7b4a8e3616219c16923b909bc6973
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/817833
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

4 years agovideo: tegra: edid: Fix corrupted header
Animesh Kishore [Tue, 29 Sep 2015 08:42:33 +0000]
video: tegra: edid: Fix corrupted header

Fix base block header if corrupted.

Bug 200131561

Change-Id: Ic87fe0a466454502ea721676b746c77a4bdeba99
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/806557
(cherry picked from commit a2109be0cb0a9674a812f59d7a4f4cc92977c731)
Reviewed-on: http://git-master/r/818188
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agovideo: modedb: Fix vga timings
Animesh Kishore [Wed, 16 Sep 2015 12:19:40 +0000]
video: modedb: Fix vga timings

Revert back to original timings.
Regressed by patch http://git-master/r/#/c/780641/

Bug 200103501

Change-Id: Ie22f14e584f47fc362317718253f71e2f5b8e3dc
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/800116
(cherry picked from commit 835da905e7b9e19b1bc6d641a1bb1fc1b388e491)
Reviewed-on: http://git-master/r/818187
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agovideo: tegra: dc: Do not NULL _sd_brightness.
Prafull Suryawanshi [Thu, 16 Jul 2015 05:23:12 +0000]
video: tegra: dc: Do not NULL _sd_brightness.

bug 200120741

There is race condition where while update brightness going on,
nvsd_init happens. Somehow update brighness yet not finished.
So while accessing _sd_brightness in between, we see kernel panic.

Change-Id: I01f7b739691f0ab06f55fdf443e46f527b509224
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/770844
(cherry picked from commit dcd3eca43fea8dd95065e886760f219272657ecf)
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/818020
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoloki:foster: emc update to 983 v11
David DSH [Tue, 25 Aug 2015 19:35:30 +0000]
loki:foster: emc update to 983 v11

v9:
-Update MRW command to use MRS_SHORT_WAIT_CNT for bug 200099624
-Fix W2W/R2R for lp4 dual rank usage for bug 1616889
-Add 5 new lp4 mappings
-Reduce PutermExtra by 2
-Fix unterminated CA/DQ vref to 42%
-DVFS_gen_script update to V1.4 from V1.3 for Vcore(mV)

v10:
-Change receiver mode for 665MHz from HSSA to DIFF to expand the OB margin
-Update 1600MHz Vcore from 875mV to 887mV to address 1600MHz regression failure on A02p silicon qual
-Vcore DVFS Table Update
EMC Freq. Vcore (mV)
1600MHz 887
1331.2MHz 850
1065.6MHz 837
800MHz 825
665MHz 825
408MHz 812
<=204MHz 800

V11:
Update DVFS table format to rev0x7
-Support moving average method for periodic calibration. It will improve the stability due to MEMIO noise.

Bug 1636958
Bug 1541472

Change-Id: I9848b4fb08a990022c44ecad8129d9139f00dbfd
Signed-off-by: David DSH <ddastoussthi@nvidia.com>
Reviewed-on: http://git-master/r/815468
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Tested-by: Kerwin Wan <kerwinw@nvidia.com>

4 years agoarm64: tegra: jetson_cv: update emc table to v7
Kerwin Wan [Fri, 7 Aug 2015 02:56:48 +0000]
arm64: tegra: jetson_cv: update emc table to v7

Bug 1650324

Change-Id: I03c2f60b330d0ffe7bb52da09e43d20cb3cc0cf2
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/780217
(cherry picked from commit 9e3456a58fc5cce211022743d8d30f8bcef677fc)
Reviewed-on: http://git-master/r/804530
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

4 years agoarm64: p2894: add a bring up memory table
Sang-Hun Lee [Wed, 14 Oct 2015 23:08:23 +0000]
arm64: p2894: add a bring up memory table

Bug 1695353

Change-Id: I971a7308ff4085f6cd17ac41e4d577792d5ef839
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/817819
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Daniel Fu <danifu@nvidia.com>

4 years agomedia: nec-decoder: remove trailer_space state
Daniel Fu [Fri, 30 Jan 2015 17:31:09 +0000]
media: nec-decoder: remove trailer_space state

Remove STATE_TRAILER_SPACE from state machine.
Causing 2 issue:
- can not decode the keycode, if it didn't following with
  another keycode/repeat code
- will generate one more code in curreent logic.
  i.e. key_right + repeat code + key_left + repeat code.
  expect: key_right, key_left.
  Result: key_right, key_right, key_right.
  Reason: when receive repeat code of key_right, state machine will
  stay in STATE_TRAILER_SPACE state, then wait for a new interrupt,
  if an interrupt came after keyup_timer, then will generate another
  fake key.

According to the NEC protocol, it don't need a trailer space. Remove it.

Bug 1601127

Change-Id: I7b990e94c4fc26b4387dcbbb68ae6c4e4af4dd46
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/679574
(cherry picked from commit d6027e7ad132f42d066371773efb48257789774b)
Reviewed-on: http://git-master/r/816585
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agomedia: rc: extend the margin for nec decoder
Daniel Fu [Tue, 3 Feb 2015 12:21:09 +0000]
media: rc: extend the margin for nec decoder

Bug 1601127

Change-Id: If39a358ec0726d06b201b32f6c26872e0c6b7d04
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/680617
(cherry picked from commit 0d7791e368bafaadfd70d08318c040423d32166e)
Reviewed-on: http://git-master/r/816584
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agomedia: rc: Add auto-correct for nec decoder
Daniel Fu [Wed, 4 Feb 2015 15:53:10 +0000]
media: rc: Add auto-correct for nec decoder

- Add auto-correct for the Missing 1 pulse/space caes when IRQ is off.
  Only could handle when IRQ off duration < 1125us.
- Set Key press timout to be 125ms

Bug 1601127

Change-Id: I4488d84f07a46a00bb4489bea9cb795705bc9c99
Signed-off-by: Daniel Fu <danifu@nvidia.com>
(cherry picked from commit 585eb718ca36109c33b7f842a0a3a308c91baeb3)
Reviewed-on: http://git-master/r/816583
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agodvfs: tegra21: Integrate CPU DVFS tables p4v54
Alex Frid [Wed, 30 Sep 2015 01:39:31 +0000]
dvfs: tegra21: Integrate CPU DVFS tables p4v54

Integrated CPU DVFS tables p4v54.

Bug 1689490

Change-Id: Id18408e310498073c9773a676919ddcd4abade13
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/807191
(cherry picked from commit be52f56009847b8f0e5f640a48a165515668e59c)
Reviewed-on: http://git-master/r/815779
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Steve Rogers <srogers@nvidia.com>

4 years agoarm64: tegra: jetson_cv: disable INA on CVM by default
Kerwin Wan [Tue, 22 Sep 2015 07:25:42 +0000]
arm64: tegra: jetson_cv: disable INA on CVM by default

The INA on CVM will be fixed on DVT which is not avaliable
right now. In order not to confuse the consumers with the
wrong data reported by INA on CVM, disable it right now.
It will be enabled on DVT.

Bug 1657022

Change-Id: I6eff0365089f7716b93df107ab2df5d6bc8c3830
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/802711
(cherry picked from commit 14163ebd655d5f6276b057fb41a295eb998e5ab2)
Reviewed-on: http://git-master/r/815735
GVS: Gerrit_Virtual_Submit

4 years agovideo: tegra: dsi: limit dsi sync timeout.
Prafull Suryawanshi [Mon, 17 Aug 2015 09:16:42 +0000]
video: tegra: dsi: limit dsi sync timeout.

As for hawkeye panel, dsi needs commands while shutdown,
dsi syncpoint timeout causing shutdown to stall. To unblock
it, limiting the timeout for the dsi sync writes. Earlier
it was max, now changing it to 500 msec. This is safe to
detect faiure as dsi sync write atmost takes 60 msec.

bug 200124422

Change-Id: I706498d566fdf0d9d4443452b1dacf24a759a07e
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/785188
(cherry picked from commit dfb766b06b3a2663501b11e9d8e4f24a3cdb5153)
Reviewed-on: http://git-master/r/815058
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: dsi: attempt retry for dsi write fail
Prafull Suryawanshi [Thu, 20 Aug 2015 09:03:52 +0000]
video: tegra: dsi: attempt retry for dsi write fail

This logic adds retry attempts for possible dsi write
failure. It also takes care of error to be propagated to
caller.

bug 200124422

Change-Id: I652ac4c6e513585a4f94048b6596e4aec9f22b4b
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/786469
(cherry picked from commit e9f89cda70103526c1a524576de6d310fed434f2)
Reviewed-on: http://git-master/r/815057
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agocpuquiet: Tweak runnable governor threshold
Sai Gurrappadi [Wed, 1 Jul 2015 01:25:38 +0000]
cpuquiet: Tweak runnable governor threshold

Reduced the threshold to go from 2->3core to 2.25 avg. threads instead of
2.75 avg. threads.

This allows us to respond faster to load and gives us better perf in some
cases.

Change-Id: I0833416915b978d8fe20ca4e040e56ab9201042c
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/764515
(cherry picked from commit 0ea60ccdf0ef146db00e3ba74bd83d85d91a368e)
Reviewed-on: http://git-master/r/814732
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agosched: Move CFS tasks to CPUs with higher capacity
Sai Gurrappadi [Wed, 1 Jul 2015 01:06:40 +0000]
sched: Move CFS tasks to CPUs with higher capacity

Original commit message:

"When a CPU is used to handle a lot of IRQs or some RT tasks, the remaining
capacity for CFS tasks can be significantly reduced. Once we detect such
situation by comparing cpu_capacity_orig and cpu_capacity, we trig an idle
load balance to check if it's worth moving its tasks on an idle CPU.

It's worth trying to move the task before the CPU is fully utilized to
minimize the preemption by irq or RT tasks.

Once the idle load_balance has selected the busiest CPU, it will look for an
active load balance for only two cases:

  - There is only 1 task on the busiest CPU.

  - We haven't been able to move a task of the busiest rq.

A CPU with a reduced capacity is included in the 1st case, and it's worth to
actively migrate its task if the idle CPU has got more available capacity for
CFS tasks. This test has been added in need_active_balance.

As a sidenote, this will not generate more spurious ilb because we already
trig an ilb if there is more than 1 busy cpu. If this cpu is the only one that
has a task, we will trig the ilb once for migrating the task.

The nohz_kick_needed function has been cleaned up a bit while adding the new
test.

env.src_cpu and env.src_rq must be set unconditionnally because they are used
in need_active_balance which is called even if busiest->nr_running equals 1"

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Morten.Rasmussen@arm.com
Cc: dietmar.eggemann@arm.com
Cc: efault@gmx.de
Cc: kamalesh@linux.vnet.ibm.com
Cc: linaro-kernel@lists.linaro.org
Cc: nicolas.pitre@linaro.org
Cc: preeti@linux.vnet.ibm.com
Cc: riel@redhat.com
Link: http://lkml.kernel.org/r/1425052454-25797-12-git-send-email-vincent.guittot@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>

Partial backport of upstream commit: 1aaf90a4b88aae26a4535ba01dacab520a310d17

Doesn't apply cleanly to k3.10 so did a manual backport.

Only intended for k3.10 kernels.

Change-Id: Idb88d844725aec934a7c0376b4fb0965c965da7c
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/764514
(cherry picked from commit 900cc112802a46d6803e381a8dadf7c3c4bf385b)
Reviewed-on: http://git-master/r/814730
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agomfd: max77620: add support for configuring low-battery monitor
Laxman Dewangan [Wed, 7 Oct 2015 13:01:45 +0000]
mfd: max77620: add support for configuring low-battery monitor

Add support to configure low battery monitor configuration register.

Change-Id: I426742d3af44b8bd1980f10da67142215b4e6d93
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 18d0e3f001a6e831172766fd51b42a4b8deefaa1)
Reviewed-on: http://git-master/r/815126
GVS: Gerrit_Virtual_Submit

4 years agoARM: dts: enable id detection on vbus interrupt
Somdutta Roy [Thu, 8 Oct 2015 11:20:42 +0000]
ARM: dts: enable id detection on vbus interrupt

adding enable-id-detect-on-vbus property to check
ID status on VBUS interrupt.

Bug 1690930

Change-Id: Ia3d7ffd55f29ed3598bc516bde4f1e1d4f89e4a3
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/814903
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoextcon: extcon-palmas: Provision ID status check from VBUS interrupt
Somdutta Roy [Mon, 5 Oct 2015 23:39:44 +0000]
extcon: extcon-palmas: Provision ID status check from VBUS interrupt

Resistance changes upon RIDB Y-Cable insertion sometimes not raising
ID interrupt causing failure in RIDB Y-Cable detection. Provisioned
checking ID status on VBUS interrupt if enabled in DTB.

Bug 1690930

Change-Id: If120d77048138d4dfeb7508b98fb20fa6051cb3d
Signed-off-by: Somdutta Roy <somduttar@nvidia.com>
Reviewed-on: http://git-master/r/814902
Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Tested-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agosysedp: Jetson-CV: Re-enable reactive capping.
Anand Prasad [Tue, 29 Sep 2015 21:44:05 +0000]
sysedp: Jetson-CV: Re-enable reactive capping.

Due to policy changes, we will now re-enable h/w throttling when the
overcurrent monitor trips, as well re-enable sysedp reactive capping.

Bug 1665297

Change-Id: I03bf80ab8bce075e6dce76abf2a78b7c0058fd45
Signed-off-by: Anand Prasad <anprasad@nvidia.com>
Reviewed-on: http://git-master/r/807084
(cherry picked from commit b75cdfe2137441250efc1b2e7a800f740ca38dba)
Reviewed-on: http://git-master/r/812995
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hayden Du <haydend@nvidia.com>

4 years agoiio: proximity: SAR v17 binary filter
Erik Lilliebjerg [Tue, 29 Sep 2015 05:24:19 +0000]
iio: proximity: SAR v17 binary filter

- Add DT configurable debounce filters to proximity binary data.
- Add documenation that explains this.

Bug 200137195

Change-Id: I54833cd938f6489b26226ca4b0088c771eb46613
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/806579
(cherry picked from commit 2523efae1cb8d7a223c18267a0ab011b6f3f122e)
Reviewed-on: http://git-master/r/811738
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

4 years agomisc: palmas: enable regulator when driver initial
Ian Chang [Wed, 7 Oct 2015 07:31:34 +0000]
misc: palmas: enable regulator when driver initial

enable regulator when driver initail to fix
regulator user count unbalance issue

bug 200143954

Change-Id: Idd4d25c3e09a654c4cee0b26c54aaa35d65f1625
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/812705
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoARM64: tegra210: hawkeye: set FPS timing to 5120us
Prafull Suryawanshi [Wed, 7 Oct 2015 05:58:06 +0000]
ARM64: tegra210: hawkeye: set FPS timing to 5120us

Set FPS period to 5120 to allow more discharge time to cpu and gpu.

bug 1675404

Change-Id: I2a8299e5e2384a18cb6c1994c6c5ab5769f56a64
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
(cherry picked from commit 2444777217279118c84a8ba3ecb51380f3d35ba0)
Reviewed-on: http://git-master/r/812662
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoarm64: t210: change post soc core time
Prafull Suryawanshi [Wed, 7 Oct 2015 05:52:54 +0000]
arm64: t210: change post soc core time

With new cpu fps settings, we need to double this time
to make sure core waits before going in lp0.

bug 1675404

Change-Id: Ic43dc4250c81221f4c26588776999a6c2c86290e
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
(cherry picked from commit 211029f562726b62a59e1d5867675ba63478f302)
(cherry picked from commit c0a905b3953181a4e7f3c04a14a38c7949911e22)
Reviewed-on: http://git-master/r/812652
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoARM64: t210: config: Disable kmemleak
Sri Krishna chowdary [Thu, 11 Dec 2014 18:30:33 +0000]
ARM64: t210: config: Disable kmemleak

In-spite of disabling automatic scan, kmemleak thread gets
active and causes audio jitters. Hence disable it for now.

It impacts BasemarkOS memory benchmark due to much heavier
kmem_cache_alloc/free.

Bug 200066404
Bug 1681975

Change-Id: I94e06aff83f00bdd373a0ad89b1968c7287afb6e
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/662741
(cherry picked from commit 471f1bd28a4384c81c5d7bf28784a11b48e4afb4)
Signed-off-by: Li Li <lli5@nvidia.com>
Reviewed-on: http://git-master/r/812324
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

4 years agopower: bq2419x: update JEITA_VSET bit based on cable status
Venkat Reddy Talla [Tue, 6 Oct 2015 07:08:09 +0000]
power: bq2419x: update JEITA_VSET bit based on cable status

Update JEITA_VSET bit of charger chip in following cases
- set if charger cable connected to device
- clear when input cable disconnected from device
- clear if cable connected to device while powering off.

Bug 1647341

Change-Id: I25100859288eb7602c0434bd3abf581df65218ac
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/812010
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoclock: tegra21: Add SCLK shared user for WIFI
Alex Frid [Tue, 16 Jun 2015 04:32:32 +0000]
clock: tegra21: Add SCLK shared user for WIFI

Bug 1653975

Change-Id: I7eb2f6b4509bfd2efaeaa47eb5ae38ac66394faf
Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit f8ba29eacd89d49bd1049c62eccbf68c1ec659a8)
Reviewed-on: http://git-master/r/767988
(cherry picked from commit 14b862da14fc895ce4edaf41776288d2f797c99a)
Reviewed-on: http://git-master/r/811791
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agonet: wireless: bcmdhd: boost wifi performance
Michael Hsu [Thu, 20 Aug 2015 19:34:13 +0000]
net: wireless: bcmdhd: boost wifi performance

Calculate network throughput and boost clock frequencies if data
rate exceeds configured threshold.

Bug 1602374
Bug 1653975

Change-Id: I3a786c60910ea7553b5accd109bb3d3ef823c00b
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/786751
(cherry picked from commit e8117840cf96b10c97dbe417e9f073e872afb986)
Reviewed-on: http://git-master/r/811790
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agopower: bq27441: add low battery shutdown sysfs node
Venkat Reddy Talla [Thu, 3 Sep 2015 14:34:07 +0000]
power: bq27441: add low battery shutdown sysfs node

Adding low battery shutdown sysfs node to enable/disable
device shutdown based on battery soc value.

Bug 1674449

Change-Id: I6c8847e17060ffe6af0e59621bc06ff4b5f578ec
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/812112
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agonet: wireless: bcmdhd: add NV_COUNTRY driver command
Om Prakash Singh [Tue, 6 Oct 2015 04:41:56 +0000]
net: wireless: bcmdhd: add NV_COUNTRY driver command

- add NV_COUNTRY driver command for nvidia specific country code.
- block default COUNTRY command

Bug 1626683
Bug 200077103

Change-Id: I1ad1e60969ce254a7fdf907fcf5007f8cc12342a
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/811927
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agodts: st8: update odmdata mask for battery supply
Robert Shih [Tue, 6 Oct 2015 05:52:09 +0000]
dts: st8: update odmdata mask for battery supply

st8 a04 use reserved bit (bit 23) for battery type -
byd v.s. yukon battery.

Update the mask to get correct battery supply data.

bug 200140957

Change-Id: I1705dd6d6c2208ed7bba09a36a650e58a5dddb86
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/811945
Reviewed-by: Wayne Hsu <wahsu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoasoc: es755: fine tuned mic params for gamecast
Srinivas Anne [Fri, 25 Sep 2015 01:35:23 +0000]
asoc: es755: fine tuned mic params for gamecast

FW version: M90.5.2.12_B59855_NVidia_Hawkeye_MCFFillIn_STREAM.bin

Updated tuning parameters for gamecast usecase.

Bug 200124396
Bug 200131474

Change-Id: I31c95d4e043a1e4adabf6eb4299fa0f4a2b4784b
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/805038
Reviewed-on: http://git-master/r/810627
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

4 years agomisc: tegra-baseband: enable DT EHCI load/unload
BH Hsieh [Tue, 15 Sep 2015 12:20:31 +0000]
misc: tegra-baseband: enable DT EHCI load/unload

Enable dynamic load/unload EHCI from device tree on T210.

Now EHCI load/unload is directly through of_* API through DT.

Bug 200027573

Change-Id: I6c9c0c3d4162bc7229d3f2fca975ada7c8105f61
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>
Reviewed-on: http://git-master/r/453975
(cherry picked from commit b04a1451c98cba4acaaa18d2974a3917a6252027)
Reviewed-on: http://git-master/r/807763
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frederic Bossy <fbossy@nvidia.com>
Tested-by: Frederic Bossy <fbossy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>

4 years agoarm64: tegra: add property to skip display init
Shreshtha SAHU [Tue, 29 Sep 2015 12:24:55 +0000]
arm64: tegra: add property to skip display init

Add "/chosen/bootloader/nvidia,skip-display-init" node
to inform bootloader to skip display initialization.
Display will be initialized by kernel.

Bug 200140476

Change-Id: I92fd5eb10e235137eba33d3b36ce3f777d2c9e87
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/806655
(cherry picked from commit ce50974bba0a43c4c5af413f9d0e2e04fab83b61)
Reviewed-on: http://git-master/r/811526
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agonvdumper: print based on event
Bibek Basu [Wed, 23 Sep 2015 08:32:17 +0000]
nvdumper: print based on event

Print reboot path based on state

Bug 200140065

Change-Id: I46d4b61f12a1f45468b887ec3e54802b9a8dff78
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/803539
(cherry picked from commit d4b46b581a2410af74719c6b2d6eb6d45e76e06e)
Reviewed-on: http://git-master/r/807976
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoarm64: jetson-cv: enable LP855X backlight
Kerwin Wan [Thu, 30 Jul 2015 05:45:24 +0000]
arm64: jetson-cv: enable LP855X backlight

Enable CONFIG_BACKLIGHT_LP855X in L4T defconfig and device tree

Bug 200127327

Change-Id: I7e56dc2eea0cddd84444eb8c608864f212abfea0
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/776611
(cherry picked from commit b5ee11f7fab1296b518d21283f74a4fb5cfb3f40)
Reviewed-on: http://git-master/r/807423
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: fix panel node detection
Shreshtha SAHU [Wed, 23 Sep 2015 19:07:38 +0000]
video: tegra: fix panel node detection

detect correct panel using presence of disp-default-out
inside the panel node

Bug 200140476

Change-Id: I9e53e4ff236052eae16fdc2eea251af5025e253f
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/803949
(cherry picked from commit 88b937d6fce6f9034e2ca7a0ca31f244ae197b7c)
Reviewed-on: http://git-master/r/807422
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agovideo: tegra: dc: hdmi vrr mode support.
Marvin Zhang [Fri, 17 Jul 2015 00:11:52 +0000]
video: tegra: dc: hdmi vrr mode support.

Bug 1637861

Change-Id: I93db7451b6c8e56924dd94dd7c0c58cc4a3603de
Signed-off-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-on: http://git-master/r/797294
Reviewed-on: http://git-master/r/810505
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: dc: hdmi vrr support
Marvin Zhang [Thu, 9 Jul 2015 23:31:43 +0000]
video: tegra: dc: hdmi vrr support

Bug 1637861

Change-Id: I492912fa6985568c0afd6c0164b7e7e651e4554d
Signed-off-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-on: http://git-master/r/797293
Reviewed-on: http://git-master/r/810504
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: dc: add hdmi vrr enable function
Marvin Zhang [Tue, 12 May 2015 00:28:16 +0000]
video: tegra: dc: add hdmi vrr enable function

Bug 1637861

Change-Id: Ic08bf7539738ab62c26c8502ec00800114a359e3
Signed-off-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-on: http://git-master/r/797292
Reviewed-on: http://git-master/r/810503
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: dc: parse vrr vsdb edid
Marvin Zhang [Tue, 12 May 2015 00:27:42 +0000]
video: tegra: dc: parse vrr vsdb edid

Bug 1637861

Change-Id: Ibc3a880b7b617b334b2379fbc1e7e2600ee9bb51
Signed-off-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-on: http://git-master/r/797291
Reviewed-on: http://git-master/r/810502
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: dc: add hdmi vrr_caps
Marvin Zhang [Tue, 12 May 2015 00:19:57 +0000]
video: tegra: dc: add hdmi vrr_caps

Bug 1637861

Change-Id: I8466b51cb7c476376e7a613299da0e2f21b1397e
Signed-off-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-on: http://git-master/r/797290
Reviewed-on: http://git-master/r/810501
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agonet: wireless: bcmdhd: Add pno timing to custom scan policy.
Michael Hsu [Thu, 6 Aug 2015 02:34:58 +0000]
net: wireless: bcmdhd: Add pno timing to custom scan policy.

Allow PNO (preferred network offload) scanning timing parameters to
be configured via the bcmdhd driver sysfs node.

Write this character string to the bcmdhd sysfs node for scan configuration:
  pno <time> <repeat> <freq_expo_max> <pno-timing-parameter>...
where <pno-timing-parameter> is one of these options:
  -H home_away_time
  -n nprobes
  -a active_time
  -p passive_time
  -h home_time

Change-Id: I0ac75a6935dad2af53c998f871d4f5bbab9cc4de
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/782133
(cherry picked from commit 265c05f28b74c2886efecc4b76c1e99a4650f8f7)
Reviewed-on: http://git-master/r/806985
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoinput: touch: nvtouch: initial check in
Kirill Artamonov [Tue, 27 Jan 2015 22:25:04 +0000]
input: touch: nvtouch: initial check in

Add kernel module required for Nvidia touch driver (nvtouch).

bug 1602711
bug 1651230

Squash of 3 commits:

Reviewed-on: http://git-master/r/776366
(cherry picked from commit ecf6240f015dc27655bc3aadba148847b7f2df9d)

Reviewed-on: http://git-master/r/794019
(cherry picked from commit 62907584f970d77cdeafaa35c08f5200633e5a67)

Reviewed-on: http://git-master/r/798028
(cherry picked from commit 33b80e66e29c7212bc656ea187182e85a4789685)

Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Change-Id: I71d90f12816ddf5480c480b789c7ab37ff3499fc
Reviewed-on: http://git-master/r/806270
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agoNet:bcmdhd: Fix persistent scan failures
nagaraj [Sat, 15 Aug 2015 02:44:15 +0000]
Net:bcmdhd: Fix persistent scan failures

Handle escan failure from firmware and
reduce scan retry count for faster recovery.

Bug 200130449

Change-Id: I758d85a4544b0752d883cf997e5b0509ce45a625
Signed-off-by: nagaraj <nannaiah@nvidia.com>
Reviewed-on: http://git-master/r/783962
(cherry picked from commit 5bf72b6bbb83e22237bcc65fdba4a9404584a4b4)
Reviewed-on: http://git-master/r/805302
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

4 years agodts: sensors: Implement NVS on ST8
Robert Collins [Wed, 30 Sep 2015 19:46:44 +0000]
dts: sensors: Implement NVS on ST8

Convert ST8 to use NVS driver architecture.

Bug 1691008

Change-Id: I373bbb7164dd7b3fb61e368eb15e5a09ab00c426
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/807615
Reviewed-by: Automatic_Commit_Validation_User

4 years agoiio: common: nvs: NVS v207 DT fixes
Erik Lilliebjerg [Fri, 25 Sep 2015 04:14:25 +0000]
iio: common: nvs: NVS v207 DT fixes

- Expanded the NVS device tree parsing return values to include the number of
  changes made to allow efficient processing for sensor hub.
- Add documentation to the NVS device tree parsing call.
- Fix drivers using the NVS device tree configuration call for the new change.
- Add one-shot sensor support to the NVS IIO interface layer.
- Fix the flags attribute debug print in the NVS IIO interface layer.
- Fix a possible divide by 0 in the common ALS module.
- Fix a possible divide by 0 in the common proximity module.
- Fix calibration proximity reporting in common proximity module.
- Add a configuration option to not reverse the proximity range if the HW
  supports this.  Typically, the proximity HW value gets larger the closer an
  object gets.  By default NVS reverses this by subtracting the value from the
  maximum possible value.  The configuration option allows this feature to be
  disabled.

Bug 200137195

Change-Id: Ia278cc298fe54cd67e1600f3039c70e69f898ed9
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/805080
(cherry picked from commit 5a685485642d333c0ed75da5714ef734ca9dc363)
Reviewed-on: http://git-master/r/807684
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

4 years agoiio: proximity: SAR v16 add delta
Erik Lilliebjerg [Sat, 19 Sep 2015 04:09:27 +0000]
iio: proximity: SAR v16 add delta

- Add delta virtual sensor to IQS263 SAR.  The delta sensor uses the delta HW
  and its thresholds to determine its output.  It can then be used to drive the
  SAR GPIO.  It can be configured to use a specific HW channel delta.
- Added the ability to control the GPIO SAR assert and deassert from different
  sources.  For example, asserting the GPIO can be done by SAR_delta and the
  deasserting by SAR_touch.
- Add moving average to delta data.
- Add the ability to define a delta sensor algorithm in the device tree.
- Add documentation that explains all this.

Bug 200137195

Change-Id: I39f7182bbb2867bdf2b95ac8fd9e23445200d741
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/801662
(cherry picked from commit 9f4d7846630651e6d7430ae0497c9fced6941927)
Reviewed-on: http://git-master/r/807683
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

4 years agoARM64: t210: dts: change AO-therm shutdown temp to 110C
Shreshtha SAHU [Wed, 12 Aug 2015 10:26:07 +0000]
ARM64: t210: dts: change AO-therm shutdown temp to 110C

AO-therm shutdown should engage at 110C for T210 SOC

Bug 1674007

Change-Id: I0d0cebd1f9bfe15636ee88d2fbbfbddb8c0bcd99
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/782378
(cherry picked from commit 34c2a62540920cc626968d038e245eada73b512d)
Reviewed-on: http://git-master/r/807430
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoarch64: tegra210: DT file for Jetson-TX1
Shreshtha SAHU [Sat, 19 Sep 2015 05:28:55 +0000]
arch64: tegra210: DT file for Jetson-TX1

Create DT file for Jetson-TX1 devkit board.
It is shipped without display panel hence DSI display is disabled.

Bug 200140476

Change-Id: Ie71d69fe8eaf4266fafb74ff10fa65d93b976d87
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/801684
(cherry picked from commit 8370ee7791861ecec7777287824c53598644b21e)
Reviewed-on: http://git-master/r/807428
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agotegra: t210: set ext Tdiode shoutdown temp to 107C
Shreshtha SAHU [Thu, 13 Aug 2015 12:10:47 +0000]
tegra: t210: set ext Tdiode shoutdown temp to 107C

Tdiode thermal external sensor shutdown temperature should be 107C

Bug 1674815

Change-Id: I2286808f9780f012c5f180ac751408b7080dd0b1
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/782995
(cherry picked from commit 961db56fce6369d1e257b35ff6058372cd31f3a8)
Reviewed-on: http://git-master/r/807398
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agovideo: tegra: sor: fix sor detach sequence
Santosh Reddy Galma [Mon, 28 Sep 2015 16:03:13 +0000]
video: tegra: sor: fix sor detach sequence

fix sequence of polling for head op mode sleep
completion in tegra_dc_sor_pre_detach

Bug 200140339

Change-Id: I7ac54669d930b9efafab64e80cf97947c0419d3c
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/806079
(cherry picked from commit 8d69b8a8984bd5f4535d64e51bfb958115721909)
Reviewed-on: http://git-master/r/807340
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agovideo: tegra: dc: Add apc smoothing
David Lock [Mon, 21 Sep 2015 18:36:28 +0000]
video: tegra: dc: Add apc smoothing

Add up to 8ms of synthetic frame latency in order to smooth
actual present cadence when vrr is enabled.

Bug 200121259

Change-Id: I9bdc3f4b723b66acbb477394c8fe6904a2f7b0b6
Reviewed-on: http://git-master/r/802370
Signed-off-by: Jonathan McCaffrey <jmccaffrey@nvidia.com>
Reviewed-on: http://git-master/r/807151
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agovideo: tegra: dc: ext: workq becomes kthread
David Lock [Fri, 19 Jun 2015 21:36:54 +0000]
video: tegra: dc: ext: workq becomes kthread

Replace the usage of workq inside the dc flipworker with a
kthread.  This allows us explicit scheduling control over
the kthread running this work, including the ability to make
that thread realtime.  This allows us to tighten the latency
and execution time of the dc flip work.  Since the the display
is updated when the dc work completes instead of on a
vsync pulse in vrr mode the latency and scheduling of the
work becomes much more important.

Bug 1657411

Change-Id: I6ad5052d629fbc3d87475734c731b591d8d0c78a
Reviewed-on: http://git-master/r/760274
Signed-off-by: Jonathan McCaffrey <jmccaffrey@nvidia.com>
Reviewed-on: http://git-master/r/807150
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoasoc: es755: tuning params for factory mode
Srinivas Anne [Mon, 21 Sep 2015 22:53:46 +0000]
asoc: es755: tuning params for factory mode

FW version: M90.5.2.12_B59687_NVidia_Hawkeye_MCFFillIn_STREAM.bin

New tuning parameters factory mode.
Additional tuning done for voice search and voice record usecases.

Bug 200124396
Bug 200131474

Change-Id: Id1aca9d4f3c689cc0506b3cee42559f31c0ac355
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/802497
Reviewed-on: http://git-master/r/807140
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

4 years agoasoc: es755: tuning parameters for all usecases
Srinivas Anne [Mon, 14 Sep 2015 17:52:21 +0000]
asoc: es755: tuning parameters for all usecases

FW version: M90.5.2.12_B59391_NVidia_Hawkeye_MCFFillIn_STREAM.BIN

This binary has tuning parameters for following handheld(2 mic open)
and tabletop(back mic blocked) usecases

1) Voice Search
2) Voice recording
3) Gamecast
4) Camcorder
5) Voip call

Bug 200124396
Bug 200131474
Bug 200135363

Change-Id: Id3339a4c1dc850a2bcb3f97ed15706dbf960c778
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/798813
Reviewed-on: http://git-master/r/807139
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

4 years agoasoc: es755: tuning parameters for voice search
Srinivas Anne [Mon, 31 Aug 2015 16:48:38 +0000]
asoc: es755: tuning parameters for voice search

FW vcesion: M90.5.2.12_B58902_NVidia_Hawkeye_MCFFillIn_STREAM.BIN

This binary has tuning parameters for following builtin mic usecases
Handheld( 2-mic)
1) Voice Search (preset 609)
2) Voice recording (preset 573)
3) Gamecast (preset 966)
4) Camcorder (preset 555)
5) Voip call (preset 570)
Others being modified partially and may see some improvement

Tabletop( back mic blocked)
1)Voice Search (preset 942)
2)Voice recording (preset 918)
3)Voip call (preset 914)

Bug 200124396
Bug 200131474

Change-Id: Ieb4c4d04444a9d5ec34974ff37ad83d6355bc374
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/791871
Reviewed-on: http://git-master/r/807137
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

4 years agoALSA: hda: hdmi: remove check for HBR caps
Ashok Mudithanapalli [Wed, 16 Sep 2015 05:42:14 +0000]
ALSA: hda: hdmi: remove check for HBR caps

By assuming HW always suuports HBR, remove
the HBR caps check on pinwidget.

Bug 200135860

Change-Id: Id97ac8a9e8e96f2512637d191589d01aff3ac210
Signed-off-by: Ashok Mudithanapalli <ashokm@nvidia.com>
Reviewed-on: http://git-master/r/799963
(cherry picked from commit 510d429a7125685c6599da018d6c24224a903037)
Reviewed-on: http://git-master/r/802267
(cherry picked from commit 9171ff3c25d47c8f44bad8358fc3e533a73f7516)
Reviewed-on: http://git-master/r/806873
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

4 years agovideo: tegra: dc: use fixed h_ref_to_sync value for HDMI
Santosh Reddy Galma [Mon, 14 Sep 2015 11:46:16 +0000]
video: tegra: dc: use fixed h_ref_to_sync value for HDMI

use fixed h_ref_to_sync value of 1 for HDMI to fix
HDMI 7-25 video format timing compliance test failure.
Previously fixed values of v/h_ref_to_sync were used for
HDMI IP. But calculated v/h_ref_to_sync values were used
with change http://git-master/r/#/c/554713/ as a part of
bug 1631663 to enable IMP. But this caused 7-25 video format
timings compliance failure. This change fix it using fixed
h_ref_to_sync value as it doesn't affect IMP with acceptance
from hw. More detailed discussion in the bug.

Bug 200129647

Change-Id: I26dd0a04184f494b14a66ce08c2cf5d25048ec98
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/798713
(cherry picked from commit dffaf94e83434ff090bd6ecfc0d3847ff9c8f66f)
Reviewed-on: http://git-master/r/806578
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agoarm64: boot: dts: Add HDMI prod settings for Darcy
Chaitanya Bandi [Mon, 10 Aug 2015 22:43:06 +0000]
arm64: boot: dts: Add HDMI prod settings for Darcy

Bug 200106837

Change-Id: I70493dea516c3dec90212892e857541753a6d5be
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/781305
(cherry picked from commit 71b50e1421bd3b1b9828b737989fbf5be049acb2)
Reviewed-on: http://git-master/r/806161
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agoarm64: tegra: enable AOTAG
Hyungwoo Yang [Tue, 14 Jul 2015 17:24:10 +0000]
arm64: tegra: enable AOTAG

- Make a darcy-common dts file for common configuration
  between Darcy EMMC and Darcy Pro.

- Enable AOTAG for darcy

Bug 1646378

Change-Id: Ie40802d626ef81f7d8e82e67491ccf0226a03ba0
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/769948
(cherry picked from commit 1e2c0b0c4fc8dbaa1075a3c3fed7b3f1fe4ef672)
Reviewed-on: http://git-master/r/806160
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agovideo: tegra: dc: Tune timestamp wait slack
David Lock [Tue, 8 Sep 2015 22:54:25 +0000]
video: tegra: dc: Tune timestamp wait slack

Reduce the DC driver slack for waiting for timestamps.  This allows
us to wake up more consistently on timestamps smoothing the actual
present cadence of frames.

Bug 1684016

Change-Id: I0a4f7ce29880645a12791a38bb407ae5fa26c60a

Change-Id: Ie36b31eaa626661917577d4c77001d6a61b0f5af
Reviewed-on: http://git-master/r/795999
Signed-off-by: Jonathan McCaffrey <jmccaffrey@nvidia.com>
Reviewed-on: http://git-master/r/806154
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agovideo: tegra: dc change endianness of type field
Sharath Sarangpur [Fri, 25 Sep 2015 04:27:28 +0000]
video: tegra: dc change endianness of type field

Changed the stremid_type to big endian

Bug 1683539

Change-Id: I691707bb4e28d7e11b84130fe85dd40274ed3830
Signed-off-by: Sharath Sarangpur <ssarangpur@nvidia.com>
Reviewed-on: http://git-master/r/805612
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

4 years agohawkeye: Change touch spi clock to 25Mhz.
Jordan Nien [Mon, 7 Sep 2015 14:29:11 +0000]
hawkeye: Change touch spi clock to 25Mhz.

- Change SPI clock from 30Mhz to 25Mhz to
  get reliable SPI transfer.

Bug 200128133

Change-Id: Iddacf16fa6aafce7a4e80daf8db7b101653195ec
Signed-off-by: Jordan Nien <jnien@nvidia.com>
Reviewed-on: http://git-master/r/795301
(cherry picked from commit 8f306b5e6842942c00fc5387063546f7af8da8cd)
Reviewed-on: http://git-master/r/804360
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agoinput: touch: sharp: update to version 14.
Jordan Nien [Thu, 3 Sep 2015 05:46:26 +0000]
input: touch: sharp: update to version 14.

- Added sysfs(test) for sensor check
- Added sysfs(log) for debugging
- Added reset control when wakeup_enable is disable
- Added trace log and fail safe

Bug 200128133

Change-Id: I11307948b19223095a232cdfdd89149bb002efbb
Signed-off-by: Jordan Nien <jnien@nvidia.com>
Reviewed-on: http://git-master/r/793557
(cherry picked from commit 6bd91b8a869d473aaa0ff71e66c1246e9b8091d5)
Reviewed-on: http://git-master/r/804359
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Chuang <echuang@nvidia.com>

4 years agoARM: tegra: hawkeye: added SPI4 dynamic pinmux
David Pu [Fri, 21 Aug 2015 21:20:19 +0000]
ARM: tegra: hawkeye: added SPI4 dynamic pinmux

internal pull down and tristate SPI4 pins dynamically to avoid LP0 power
leakage and touch controller power sequence violation during LP0 entry/exit.

Bug 1650903
Bug 200129779

Change-Id: I6b0943cd73d842cf4b8656cc3ad376345c31e24a
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/787575
(cherry picked from commit 97a8cbe88e46ce8fe743d992a473687934cf966c)
Reviewed-on: http://git-master/r/804357
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Tested-by: Jordan Nien <jnien@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>