]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
sojka/nv-tegra/linux-3.10.git
8 years agoRevert "mmc: tegra: Disable async suspend for sdhci."
Jeetesh Burman [Tue, 22 Sep 2015 11:59:24 +0000 (17:29 +0530)]
Revert "mmc: tegra: Disable async suspend for sdhci."

This patch causing stack dump during LP0 resume, if SD card
used to wake-up from LP0.

Bug 200108407

This reverts commit 3b4cf3f6d1f3ae2d33dbc22c69433a50746b0ad1.

Change-Id: Ib7c9e0d82226deb4d019e05504f77931cc59d84e
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/802946
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agomm: Coverity fixes
Pavitrakumar [Fri, 19 Jun 2015 15:35:35 +0000 (21:05 +0530)]
mm: Coverity fixes

Coverity fixes
Initialized the dummy1 & dummy2 variables to 0, to avoid
using these two un-initialized. Though the returned count
value is not used in the calling function, its better to
have clean code.

Coverity ID 13508 13509

Bug 200083369

Change-Id: Ia9d1d9eccd9079c2973d07ce9e2ce17f2e33ee9b
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/760156
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
8 years agoPCI: Fix use of uninitialized MPS value
Bjorn Helgaas [Tue, 29 Apr 2014 18:51:55 +0000 (12:51 -0600)]
PCI: Fix use of uninitialized MPS value

If "pcie_bus_config == PCIE_BUS_PERFORMANCE", we don't initialize "smpss",
so we pass a pointer to garbage into pcie_bus_configure_set(), where we
compute "mps" based on the garbage.  We then pass the garbage "mps" to
pcie_write_mps(), which ignores it in the PCIE_BUS_PERFORMANCE case.

Coverity isn't smart enough to deduce that we ignore the garbage (it's a
lot to expect from a human, too), so initialize "smpss" to a safe value in
all cases.

Cherry-picked from vanilla kernel commit ID 1e358f94c0

Coverity ID 13477

Bug 200083369

Change-Id: I33131de68a8e47d65e9ae1a01a931cb76116a886
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/759248
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
8 years agoRevert "ARM64: tegra210: hawkeye: set FPS timing to 5120us"
Todd Poynter [Tue, 15 Sep 2015 15:57:13 +0000 (08:57 -0700)]
Revert "ARM64: tegra210: hawkeye: set FPS timing to 5120us"

Test revert for 200138938 on iBeta branch.

Bug 200138938
Bug 1675404

This reverts commit 026cfb24edbf6628af4826137d3669735acdbf56.

Change-Id: I188d02762065e45ed9a9aad80a65243b0eb92c74
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/799448
(cherry picked from commit 7655ce60d946bee88b5dbe952c036e691b60779c)
Reviewed-on: http://git-master/r/802972

8 years agoALSA: hda: hdmi: remove check for HBR caps
Ashok Mudithanapalli [Wed, 16 Sep 2015 05:42:14 +0000 (11:12 +0530)]
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
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
8 years agovideo: tegra: dc: make SOR instance configurable
Shu Zhong [Fri, 18 Sep 2015 23:53:59 +0000 (16:53 -0700)]
video: tegra: dc: make SOR instance configurable

Allow SOR configuration to attach to any DC via
new "nvidia,dc-or-node" DT property. Force DPAUX configuration
to be the same as the SOR instance number.

Bug 1684922

Change-Id: I9df348cdb873cb47d17bf9af9d772326c0a81ecc
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/801569
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agovideo: tegra: dc: fix changing min refresh rate
Daniel Solomon [Sat, 5 Sep 2015 04:24:05 +0000 (21:24 -0700)]
video: tegra: dc: fix changing min refresh rate

Fix ability to change minimum refresh rate during
runtime.

Bug 1682873

Change-Id: I6d1f38c0e7084557e50ce967649106a69d0c8392
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/794672
(cherry picked from commit 584f05bea8f88674f38c0f6fa719da449387d998)
Reviewed-on: http://git-master/r/799518
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agotegra210: update P2143 sku emc tables
Anand Bhatia [Fri, 4 Sep 2015 00:08:38 +0000 (17:08 -0700)]
tegra210: update P2143 sku emc tables

Bug 1613337
Update MID table to V07

Change-Id: I7b2dfef973a8c390231113337d126950701edfa7
Signed-off-by: Anand Bhatia <anandb@nvidia.com>
Reviewed-on: http://git-master/r/793995
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agovideo: tegra: hdmi: read scdc status flags
Emma Yan [Thu, 17 Sep 2015 08:55:48 +0000 (16:55 +0800)]
video: tegra: hdmi: read scdc status flags

According to 6.1.3.1 of HDMI 2.0, source shall poll
the Scrambling_Status bit following the writeof
Scrambling_Enable to a 1 and following transmission of
scrambled video. Moreover, the 10.4 section indicated
that source shall verify a valid HF-VSDB in the EDID
and set the scdc_present bit before accessing SCDC.

Bug 1661387

Change-Id: I97a867f6589f920c2a7ae3aa43c459dd8122edf8
Signed-off-by: Emma Yan <eyan@nvidia.com>
Reviewed-on: http://git-master/r/800691
(cherry picked from commit dd1ea4a985cb2b3ec96037d8761de5f2c12203d0)
Reviewed-on: http://git-master/r/802082
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
8 years agogpu: nvgpu: dbg level for per-write ctx patch msg
Konsta Holtta [Wed, 22 Apr 2015 14:39:58 +0000 (17:39 +0300)]
gpu: nvgpu: dbg level for per-write ctx patch msg

The message "per-write ctx patch begin?" is a legacy message for warning
about probably inefficient code, but it's written at error loglevel.
Silence it out a bit by using gk20a_dbg_info(). The inefficient paths
can be fixed later.

Bug 200075565

Change-Id: Idae821aef3001ea5016de22a1a87fec747c42d31
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/734248
(cherry picked from commit e10ba74d3eb7cd9f0547be16d740b1b06b0af112)
Reviewed-on: http://git-master/r/800693
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sandarbh Jain <sanjain@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Sandarbh Jain <sanjain@nvidia.com>
8 years agoRe-order bus header field before payload msg
Srinivas Ramachandran [Wed, 16 Sep 2015 21:42:20 +0000 (14:42 -0700)]
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/800359
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
8 years agoASoC: tegra-alt: Enable DCR and DMIC Boost Gain
Viswanath L [Thu, 23 Jul 2015 12:04:22 +0000 (17:34 +0530)]
ASoC: tegra-alt: Enable DCR and DMIC Boost Gain

 - DCR filter enabled
 - Mixer control "Boost Gain" provided (with 100x factor); gain
   is applied in LP filter configured for passthrough

Bug 200108603

Change-Id: If1e3cfa8cc0b5a3a186ebd6ecdeba9a5a3cc2ef3
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/773917
Tested-by: Siva Simanapalli <ssimanapalli@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
8 years agoASoC: tegra-alt: Update DMIC DCR coeff to T186 POR
Viswanath L [Tue, 15 Sep 2015 09:55:08 +0000 (15:25 +0530)]
ASoC: tegra-alt: Update DMIC DCR coeff to T186 POR

TEGRA210_DMIC_DCR_BIQUAD_0_COEF_4 is corrected to 0x0
(as per T186 POR)

Bug 200134942
Bug 200078772

Change-Id: I628c2d3e18615df476b67761553762a23f1fe47e
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/799353
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Siva Simanapalli <ssimanapalli@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
8 years agotegra-nor: Coverity fixes
Pavitrakumar [Tue, 7 Jul 2015 13:54:12 +0000 (19:24 +0530)]
tegra-nor: Coverity fixes

Coverity fixes
memsetting 'nor_cs_info' to avoid uninitialzied usage of
the fields in code.

Coverity ID 18089

Bug 200083369

Change-Id: I08f1b308feb08a8953a51ec868fb493c00f29790
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/767141
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
8 years agoARM64: dtsi: Disable sdmmc3.
Naveen Kumar Arepalli [Fri, 18 Sep 2015 01:31:42 +0000 (07:01 +0530)]
ARM64: dtsi: Disable sdmmc3.

-SD is unable to mount because the mount point of SD has
changed as sdmmc3 is enabled.

Bug 200140103

Change-Id: I2b9a67e798c7b43a21b216894b968cf8a3bc0287
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/801030
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoplatform: tegra: emc: Fix logic in EMC CC
Alex Waterman [Thu, 27 Aug 2015 17:50:18 +0000 (10:50 -0700)]
platform: tegra: emc: Fix logic in EMC CC

Fix some logic in the EMC clock change. The problem was that a bitwise and
operation was compared against the literal value 1. The idea was to actually
test if the bit was set.

Bug 1416640

Change-Id: Ib30c36bb59206b1637ff1fe0443b918c2e493ebe
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/791570
Reviewed-by: Robert Shih <rshih@nvidia.com>
Tested-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>
8 years agonet: bcmdhd: Fix DT unregister
Michael Hsu [Mon, 13 Jul 2015 00:18:17 +0000 (17:18 -0700)]
net: bcmdhd: Fix DT unregister

Unregister platform driver if it was registered due to device tree
settings.

Bug 1630780

Change-Id: I9dd77a7ede32e73edbcbc5b93b536aacd74487d7
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/769164
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agommc: sdhci: reduce card detect latency
Jeetesh Burman [Wed, 16 Sep 2015 04:31:52 +0000 (10:01 +0530)]
mmc: sdhci: reduce card detect latency

Card detection delay (700ms) was added early, this should
apply during resume from LP only, for running system, this delay
should be reduced to 200ms.

Bug 200108407

Change-Id: I5a9f51dd92c72f5af22b24e0d6c7d784f6011b62
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/799915
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agoiio: proximity: configurable SAR resume
Erik Lilliebjerg [Fri, 11 Sep 2015 12:29:04 +0000 (05:29 -0700)]
iio: proximity: configurable SAR resume

- Add a device tree parameter to set the deferred resume execution delay.
  This allows no IQS device interactions when there are fast system resume
  suspends.
- Add a device tree parameter to set the SAR GPIO assertion level when the
  IQS device is configured as a non-wake device.  In other words, when the
  device is configured for sleep during suspend, this DT setting determines
  the SAR GPIO state during the suspend period.

Bug 200133919.

Change-Id: I5c26835d673b65c00742307dc9454f20baa91988
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/797723
(cherry picked from commit ea3ea28b324ab87139404bb26490e1f58a0653a5)
Reviewed-on: http://git-master/r/800399
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
8 years agoiio: proximity: Configure SAR deferred resume time
wahsu [Mon, 14 Sep 2015 03:22:18 +0000 (11:22 +0800)]
iio: proximity: Configure SAR deferred resume time

Set the deferred resume execution delay to 3000ms.
This allows no IQS device interactions when there are fast system resume
suspends.

Bug 200133919

Change-Id: Ie06254b5961a62c41dd95fabd7e2cd0477c6b51a
Signed-off-by: wahsu <wahsu@nvidia.com>
Reviewed-on: http://git-master/r/798536
(cherry picked from commit b0cc84877373dd5078de7ba321b9fa2732a57942)
Reviewed-on: http://git-master/r/800398
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
8 years agodriver: soc_camera: enable ov23850 driver contrls
David Wang [Wed, 16 Sep 2015 21:27:45 +0000 (14:27 -0700)]
driver: soc_camera: enable ov23850 driver contrls

enabling ov23850 driver with gain and exposure controls.

bug 1651635.

Change-Id: If37c504f49a9c0fa68590f50e60ed6b30c101024
Signed-off-by: David Wang <davidw@nvidia.com>
(cherry picked from commit 39ba701eea6910ee6c2b5ceb9dc5eb87ac60a4d3)
Reviewed-on: http://git-master/r/800352
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Sharma <rasharma@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
8 years agoIQS2x3: Disable SAR wake up interrupt flag
wahsu [Thu, 10 Sep 2015 03:03:57 +0000 (11:03 +0800)]
IQS2x3: Disable SAR wake up interrupt flag

SAR interrupt is not a wake up GPIO, therefore, these bits should be cleared
with DTS setting which overrides the defaults.
Also, by clearing these bits, it tells the SAR kernel driver to put the device
to sleep during system suspend instead of being operational.

Change-Id: If3fc1747c35deb274f2846c354c5dda8a09d550a
Signed-off-by: wahsu <wahsu@nvidia.com>
Reviewed-on: http://git-master/r/796753
(cherry picked from commit 77fc6c96d34c8e656583c27707cd3d1240b833f2)
Reviewed-on: http://git-master/r/798612
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
8 years agodrivers: soc_camera: add OV23850 driver support
David Wang [Thu, 3 Sep 2015 00:07:28 +0000 (17:07 -0700)]
drivers: soc_camera: add OV23850 driver support

Adding support OV23850 with drivers as soc_camera
v4l2 subdevices.

bug 1651635.

Change-Id: I14f2006490269bb7a2133c3b0ed2803a00197432
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/793427
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Sharma <rasharma@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
8 years agoARM64: adding OV23850 on E3323 jetson_cv
David Wang [Mon, 14 Sep 2015 18:47:55 +0000 (11:47 -0700)]
ARM64: adding OV23850 on E3323 jetson_cv

Adding the DT and board file support for the OV23850
camera sensor on the E3323 for jetson_cv

bug 1651635.

Change-Id: I47415aba608aa361151763ea7b3d073a22a9c2c6
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/786233
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Sharma <rasharma@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
8 years agopci: host: tegra: don't free pcie port stuctures
Vidya Sagar [Tue, 18 Aug 2015 15:08:05 +0000 (20:38 +0530)]
pci: host: tegra: don't free pcie port stuctures

some pcie port specific controls are present only in
rootport-0 registers which are applicable for all the ports
Hence, instead of freeing port specific structures, this patch
just disables the port on which no device is enumerated
As per MBIST bug, it also applies MBIST WAR for RP-0 always
even if there is no device enumerated on it

Bug 200122328

Change-Id: I2644144ba0e3be86abc25eeba70e86df0791231c
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/785436
(cherry picked from commit 0865f5492b1d60e457c3d928394a4e61d1eef5a0)
Reviewed-on: http://git-master/r/796900
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agobacklight: lp855x: set zero brightness at FBBLANK
Shingo Nakao [Tue, 2 Jul 2013 12:15:54 +0000 (14:15 +0200)]
backlight: lp855x: set zero brightness at FBBLANK

When backlight turns on early from display, a white line can be
seen on the screen. Therefore make sure backlight is off when we
are under an fb blank event.

Bug 200089489

Change-Id: I5cd70bfda9902a982d168f2c5b4388424e7d800c
Signed-off-by: Shingo Nakao <shingo.x.nakao@sonymobile.com>
Cc: Milo Kim <milo.kim@ti.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Oskar Andero <oskar.andero@sonymobile.com>
Acked-by: Milo Kim <milo.kim@ti.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
(cherry picked from commit 9f0a511f4a227c58c45b65c10fd2b85586360f67)
Signed-off-by: Shu Zhong <shuz@nvidia.com>
backlight: lp855x: Don't clear level on suspend/blank

Don't clear the backlight level when we're going into suspend or
blanking. Instead, just temporarily set the level to 0 so we retain
the value when we resume.

Bug 200089489

Change-Id: If86de80c15400db7ed28832f369328b5031d6d02
Reported-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Tested-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Acked-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
(cherry picked from commit 61c1c6147f69d8dea31fd133d2ec0b1594c9a3eb)
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/789222
(cherry picked from commit a9c396f9f0e3d4075be7d04a3d8b349c5000b24a)
Reviewed-on: http://git-master/r/797976
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agodrivers: mmc: disable deferred resume for sd card
Jeetesh Burman [Mon, 31 Aug 2015 03:51:10 +0000 (09:21 +0530)]
drivers: mmc: disable deferred resume for sd card

Enable MMC_BLOCK_DEFERRED_RESUME only for mmc0.

And disabling same for SD card by setting
bus_resume_flags and rescan_disable to 0 after its
enumeration successfully done.

Bug 200130799

Change-Id: If54eceb3661516a3db4e3dcef44920e7c6e75da3
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/791579
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agommc: sdhci: resume mmc_rescan at 700ms in LP0 exit
Jeetesh Burman [Thu, 27 Aug 2015 05:56:23 +0000 (11:26 +0530)]
mmc: sdhci: resume mmc_rescan at 700ms in LP0 exit

While resuming from LP0, all interrupts for sd card are not
enabled in early resume and during that if system sends any
command (e.g enumeration CMDs by plugin SD card), system
doesn't get any response for transmitted command, this causes,
driver throw sd dump registers.

350ms is not sufficient for Jetson-CV.

To fix this issue, resuming from LP0/1, "mmc_rescan" delayed
by 700ms, so that interrupts for SD card get enabled during this
period.

Bug 200108407

Change-Id: I64122764f5dd59aadb2d6e7b8963c8b6a87317c8
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/790156
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agoARM: tegra: Hawkeye: make pin pex_l0_rst common
Daniel Solomon [Fri, 14 Aug 2015 00:05:24 +0000 (17:05 -0700)]
ARM: tegra: Hawkeye: make pin pex_l0_rst common

The pin pex_l0_rst is used by the bootloader as an
output GPIO. In order for this pin's pinmux to be
configured correctly by the bootloader, it needs to
be part of the common group. In addition, since it's
an output GPIO, this pin is no longer tristated.

(Previously all this was configured by the kernel, but now
we need this functionality in bootloader as well.)

Bug 1649961

Change-Id: If458767ecb191476d778630f1152e7636cb85a51
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/783341
(cherry picked from commit c4961707ae44c77ce588568873643a6d38b248ca)
Reviewed-on: http://git-master/r/785015
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agoarm64: dts: hawkeye: Remove unused dt prop
Harry Lin [Thu, 20 Aug 2015 06:45:13 +0000 (14:45 +0800)]
arm64: dts: hawkeye: Remove unused dt prop

long-press-power-key-on-enable is deprecated.
We now use only long-press-power-key-on-time.

Bug 200111953

Change-Id: Ia779db97e203b30bf33fabf620a6b1fd7bba9eb4
Signed-off-by: Harry Lin <harlin@nvidia.com>
Reviewed-on: http://git-master/r/786378
(cherry picked from commit de93e92c64caa188d06a8e260f0f73ef7067a211)
Reviewed-on: http://git-master/r/790202
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agostaging: ozwpan: don't use audio priority for none audio packets
Om Prakash Singh [Sat, 16 May 2015 06:08:03 +0000 (11:38 +0530)]
staging: ozwpan: don't use audio priority for none audio packets

Bug 1522708
Bug 200094897

Change-Id: Ied5ec5f428084beddad110a8e11718d76e0fab38
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/743515
(cherry picked from commit 233117f0474df197b87ba7b16b91e68d7e5cf4e5)
Reviewed-on: http://git-master/r/768437
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agovideo: tegra: dsi: poll for end of DC stream
Daniel Solomon [Tue, 18 Aug 2015 22:15:25 +0000 (15:15 -0700)]
video: tegra: dsi: poll for end of DC stream

The function tegra_dsi_stop_dc_stream_at_frame_end()
is used to stop the DC stream and block until either
this happens or a timeout occurs. To determine that
DC stream stopped, it waits for on a conditional
variable that gets signaled in dc_irq(). However, since
this function gets called in dc->mutex locked context,
dc_irq() cannot acquire the mutex in order to signal
the frame-end conditional variable, so the function
consistently times out. This causes a noticeable pause
in data stream to the display, which is a problem on
some displays.

Instead of using a conditional variable, switch to a
simple polling loop and wait on GENERAL_ACT_REQ to
clear. Polling time is expected to be short,
less than 1 frame, and happens only during major
transitions (display on/off, MIPI command
transmission, etc.).

Bug 1673450

Change-Id: Icdf457c72c45820f18f8a66b55c32d6b1a48f817
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/785601
(cherry picked from commit 44fa2c85094232c34f0afa4a05f05d0dd2017e83)
Reviewed-on: http://git-master/r/796603
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agonet: wireless: bcmdhd: bump thread priority
Bibhay Ranjan [Fri, 4 Sep 2015 09:03:47 +0000 (14:33 +0530)]
net: wireless: bcmdhd: bump thread priority

For the latency sensitive data on wifi, the
thread priority needs to be increased.

Bug 200122028

Change-Id: Ia350ecb6f78fac7a5397296a8549b7dd845b374b
Signed-off-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/794251
(cherry picked from commit 803af873c1f8f663c3134d53e4af1254e52646ef)
Reviewed-on: http://git-master/r/798610
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
8 years agobacklight: lp855x: add check_fb to bl ops
Shu Zhong [Fri, 4 Sep 2015 02:09:17 +0000 (19:09 -0700)]
backlight: lp855x: add check_fb to bl ops

Add check_fb function to bl ops so that lp855x driver
only responds when correct fb device is blanked/unblanked.

Change-Id: I944d5dbbaf2deb6f721fd62c754b5738438957e9
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/794055
(cherry picked from commit bdedec2028e9af1fd7ad8386a29c7e68702fcf18)
Reviewed-on: http://git-master/r/797980
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agodvfs: tegra: update dvfs table as per POR sheet
Praveen Mallaiah [Thu, 13 Aug 2015 00:51:57 +0000 (06:21 +0530)]
dvfs: tegra: update dvfs table as per POR sheet

Updated CPU DVFS table as per POR sheet

Bug 1661819

Change-Id: I69cf4d87d48298870b3b7fc7a51bbfc13352199b
Signed-off-by: Praveen Mallaiah <pmallaiah@nvidia.com>
Reviewed-on: http://git-master/r/782705
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yue-Herng Lin <yueherngl@nvidia.com>
Reviewed-by: Luis Dib <ldib@nvidia.com>
Reviewed-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-by: Sreenivasulu Velpula <svelpula@nvidia.com>
Reviewed-by: Paul Giglio <pgiglio@nvidia.com>
8 years agotegra: nvmap: fix the possible dead lock
Xianhui Wang [Wed, 19 Aug 2015 04:26:42 +0000 (12:26 +0800)]
tegra: nvmap: fix the possible dead lock

bug 200107851

When a process call nvmap_iovmm_get_client_mss it will hold mutex_lock(&h->lock)

and try to get down_read(&mm->mmap_sem), at the same time if the related

process is calling nvmap_vma_close, it have hold mm->mmap_sem for write when

it entering vm_munmap, and try to get mutex_lock(&h->lock). Then the problem

happen, many process become "uninterruptable sleep" with the two process.

Then bugreport will not work.

Try to fix the problem and let nvmap_iovmm_get_client_mss get mmap_sem firstly

then it will align with nvmap_vma_close.

The call stack:

<6>[68949.696132] memory_usage.sh D ffffffc000086b1c    0 2771     1 0x00000000
<7>[68949.696140] Call trace:
<7>[68949.696146] [<ffffffc000086b1c>] __switch_to+0x3c/0x48
<7>[68949.696151] [<ffffffc000b90410>] __schedule+0x4b4/0x5e0
<7>[68949.696156] [<ffffffc000b90588>] schedule+0x4c/0x68
<7>[68949.696161] [<ffffffc000b91234>] __down_read+0xb8/0xe0
<7>[68949.696166] [<ffffffc000b8f85c>] down_read+0x28/0x38
<7>[68949.696174] [<ffffffc0004705b8>] nvmap_iovmm_get_client_mss+0xf8/0x1ac
<7>[68949.696180] [<ffffffc0004706fc>] nvmap_debug_iovmm_procrank_show+0x90/0x124
<7>[68949.696185] [<ffffffc0001c8b94>] seq_read+0x178/0x3d4
<7>[68949.696190] [<ffffffc0001a30c8>] vfs_read+0x94/0x158
<7>[68949.696195] [<ffffffc0001a3a78>] SyS_read+0xbc/0x16c
<6>[68949.696870] nvtest64       D ffffffc000086b1c    0 9220     1 0x00000000
<7>[68949.696877] Call trace:
<7>[68949.696883] [<ffffffc000086b1c>] __switch_to+0x3c/0x48
<7>[68949.696888] [<ffffffc000b90410>] __schedule+0x4b4/0x5e0
<7>[68949.696893] [<ffffffc000b90588>] schedule+0x4c/0x68
<7>[68949.696898] [<ffffffc000b90a04>] schedule_preempt_disabled+0x10/0x24
<7>[68949.696904] [<ffffffc000b8f42c>] __mutex_lock_slowpath+0x19c/0x264
<7>[68949.696909] [<ffffffc000b8f534>] mutex_lock+0x40/0x60
<7>[68949.696914] [<ffffffc00046ede8>] nvmap_vma_close+0x64/0x234
<7>[68949.696919] [<ffffffc000182e64>] remove_vma+0x3c/0x6c
<7>[68949.696924] [<ffffffc000184110>] remove_vma_list+0x68/0x9c
<7>[68949.696928] [<ffffffc000184b60>] do_munmap+0x1d8/0x250
<7>[68949.696932] [<ffffffc000184c18>] vm_munmap+0x40/0x64
<7>[68949.696937] [<ffffffc000184cc8>] SyS_munmap+0x8c/0x11c

Change-Id: Icee67329c2dbbd05b10a7ddf0dcc4167191623d3
Signed-off-by: Xianhui Wang <xianhuiw@nvidia.com>
Reviewed-on: http://git-master/r/785721
(cherry picked from commit 306af7c0b904d04300c8a6e202bdf7eea6acd5af)
Reviewed-on: http://git-master/r/788685
Reviewed-by: Maneet Maneet Singh <mmaneetsingh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agovideo: tegra: hdmi: fix mode_filter mode rejection
Naveen Kumar S [Mon, 24 Aug 2015 11:54:41 +0000 (17:24 +0530)]
video: tegra: hdmi: fix mode_filter mode rejection

When comparing Pixel clock in Pico Seconds, we should reject
those modes which are less than maximum supported pixel clock
in pico seconds. This is equivalent to rejecting modes that
need a higher pixel clock frequency than maximum pixel clock.

bug 200130894

Change-Id: Ie9b0f64867533ad9b4234216d15c56e9062d4a4e
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/788160
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agoarm64: tegra: jetson_cv: disable SAR on super module
Kerwin Wan [Thu, 10 Sep 2015 10:39:39 +0000 (18:39 +0800)]
arm64: tegra: jetson_cv: disable SAR on super module

SAR will cause gpio expander fail to work and system
become very stuck. Disable it now until the issue is
fixed.

Bug 200137392

Change-Id: Ia7c453a6f5e5667fd767707a66d27b57b135e005
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/796998
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoplatform: tegra: add support for board specific prod
Laxman Dewangan [Fri, 11 Sep 2015 14:18:32 +0000 (19:48 +0530)]
platform: tegra: add support for board specific prod

Add support for board specific prod settign also.
Currently, prod settings are chip specific. On this,
add the board specific prod setting as child node to
configure for given board.

prod-device {
prod = < chip specific>;
board-specific {
prod = <board specific>;
};
};

bug 200119447

Change-Id: Ieb0dd1037b5fd7a2f05e4eb458b0fe374df0671f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/797770
GVS: Gerrit_Virtual_Submit

8 years agonet:wireless:bcmdhd: Enable PMF support
Dhruvaraja Kunjar [Fri, 6 Feb 2015 04:39:08 +0000 (10:09 +0530)]
net:wireless:bcmdhd: Enable PMF support

Enable the Protected Management Frames feature which
is mandatory for 802.11-ac certification.
Bug 200060786

Change-Id: I60cf958f9320fc3e92712d9aff192f8d21a3d190
Signed-off-by: Kasturi Raghavender <kraghavender@nvidia.com>
Reviewed-on: http://git-master/r/681820
(cherry picked from commit f3c9e1de630a0ae2a6fd9f055ea372644521f27b)
Reviewed-on: http://git-master/r/696336
Reviewed-on: http://git-master/r/791749
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-on: http://git-master/r/796415
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agonet: wireless: bcmdhd: Synchronize p2p deletion
kraghavender [Thu, 3 Sep 2015 18:58:06 +0000 (00:28 +0530)]
net: wireless: bcmdhd: Synchronize p2p deletion

dhd_dpc thread gets tainted when 'dhd_rx_frame' access the p2p
interface data strcuture which is deleted by cfg layer
asyncronous call back 'wl_cfg80211_del_virtual_iface'.
There is no proper synchronization between p2p interface deletion by
cfg and interface access data structure in 'dhd_rx_frame'.
This will fix syncronization issues between cfglayer p2p
interface deletion and 'dhd_rx_frame' access of p2p interface data
structure. Instead of deleting the p2p interface in cfglayer
asynchronous call, mark the p2p interfacelist as NULL when p2p firwmare
delete event is given to DHD and delete it in cfg layer delete
virtual interface call.

Bug 200134576

Change-Id: I17a29d2fa355436003af734ae994a42dcf7a7726
Signed-off-by: Kasturi Raghavender <kraghavender@nvidia.com>
Reviewed-on: http://git-master/r/796406
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
8 years agovideo: tegra: dsi: attempt retry for dsi write fail
Prafull Suryawanshi [Thu, 20 Aug 2015 09:03:52 +0000 (14:33 +0530)]
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/786467
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agovideo: tegra: dc: mark crc_pending false frame end
Prafull Suryawanshi [Thu, 3 Sep 2015 10:45:46 +0000 (16:15 +0530)]
video: tegra: dc: mark crc_pending false frame end

In one of the instance, found that crc_pending needs
to set false at the time of frame end interrupt. It is
already handled for one shot irq and now adding for
continuous irq.

bug 200117718

Change-Id: I6c071ce95804cf07ba4eadc0e8004a4d8369ed70
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/793706
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agovideo: tegra: dc: handle tegra_dc_sync_windows error
Bibek Basu [Mon, 17 Aug 2015 11:18:59 +0000 (16:48 +0530)]
video: tegra: dc: handle tegra_dc_sync_windows error

In case tegra_dc_sync_windows is interrupted by signal,
return the error to caller application

Bug 200090492

Change-Id: Id69fbe38d0abe0b3e71eb5a413db241ebcf0a0ae
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/785146
(cherry picked from commit da2221aad86f84908072420b975c5ef0d6502a53)
Reviewed-on: http://git-master/r/795624
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoxhci: tegra: Set trigger to boost frequency
Krishna Yarlagadda [Mon, 6 Jul 2015 18:07:52 +0000 (23:37 +0530)]
xhci: tegra: Set trigger to boost frequency

Boost cpu frequency only when buffer of bulk and isoc
transfers exceeds particular size configured by dt

Bug 200115844

Change-Id: Ia6948395d893e426600ba0554f50f209f6d921d4
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/769451
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agoarm64: jetson: dts: set default boost for xhci
Krishna Yarlagadda [Mon, 6 Jul 2015 18:24:23 +0000 (23:54 +0530)]
arm64: jetson: dts: set default boost for xhci

Jetson boards have ethernet device on xhci and this
will cause cpu boost to be always on which is not desired
Removed dt change to load default boost frequency 800MHz

Bug 200115844

Change-Id: Iad8d370f4036b08b5491b033d1d8e147c522845e
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/769452
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoARM64: dtsi: Support eMMC on sdmmc3
Naveen Kumar Arepalli [Tue, 8 Sep 2015 04:05:40 +0000 (09:35 +0530)]
ARM64: dtsi: Support eMMC on sdmmc3

-Add eMMC Support on SDMMC for jetson-cv-p2597-2180

Bug 200137330

Change-Id: I6409dc7567c578f16ae576607e115c3c9a0f6b8f
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/795312
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoarm64: dts: enable INA3221 in P2180
Shreshtha SAHU [Mon, 7 Sep 2015 11:36:07 +0000 (17:06 +0530)]
arm64: dts: enable INA3221 in P2180

Enable INA3221 in P2180 for power measurements.

Bug 1674705

Change-Id: Ib65e3349943b815b0d5e31c7f4f703e4f4bf5fa4
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/795255
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoARM: 7829/1: Add ".text.unlikely" and ".text.hot" to arm unwind tables
Douglas Anderson [Wed, 28 Aug 2013 23:08:01 +0000 (00:08 +0100)]
ARM: 7829/1: Add ".text.unlikely" and ".text.hot" to arm unwind tables

It appears that gcc may put some code in ".text.unlikely" or
".text.hot" sections.  Right now those aren't accounted for in unwind
tables.  Add them.

I found some docs about this at:
  http://gcc.gnu.org/onlinedocs/gcc-4.6.2/gcc.pdf

Without this, if you have slub_debug turned on, you can get messages
that look like this:
  unwind: Index not found 7f008c50

bug 200110987
bug 200120060

Change-Id: I5f70de5aa2ecc71e00e32908ca8d690e1edb9032

Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Vipin Kumar <vipink@nvidia.com>
(cherry picked from commit 849b882b52df0f276d9ffded01d85654aa0da422)
Change-Id: I82456cd2d538f8635ecba34bfad107d2a5145170
Reviewed-on: http://git-master/r/784820
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
8 years agoFinally eradicate CONFIG_HOTPLUG
Stephen Rothwell [Tue, 21 May 2013 03:49:35 +0000 (13:49 +1000)]
Finally eradicate CONFIG_HOTPLUG

Ever since commit 45f035ab9b8f ("CONFIG_HOTPLUG should be always on"),
it has been basically impossible to build a kernel with CONFIG_HOTPLUG
turned off.  Remove all the remaining references to it.

bug 200110987
bug 200120060

Change-Id: I36c04ae841a55cd2c85b6cf2483ae3f691ee8c9f

Cc: Russell King <linux@arm.linux.org.uk>
Cc: Doug Thompson <dougthompson@xmission.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Vipin Kumar <vipink@nvidia.com>
(cherry picked from commit 40b313608ad4ea655addd2ec6cdd106477ae8e15)
Change-Id: Ia685a4b416755a918c6f0c760a85d75e4dd29043
Reviewed-on: http://git-master/r/784819
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
8 years agoHID: hidraw: Fix potential memory leak in list->buffer
Ankita Garg [Tue, 25 Aug 2015 23:15:03 +0000 (16:15 -0700)]
HID: hidraw: Fix potential memory leak in list->buffer

Bug 1677312

Change-Id: I4fe6296b3d944c7ebf81f3af2aa73256688a4613
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/789231
(cherry picked from commit 78d9ee9ad113e31193fdfae30f3743a0febcb8ca)
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/791185
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>
8 years agoHID: hidraw: Fix memory leak in list->buffer
Ankita Garg [Tue, 25 Aug 2015 22:55:39 +0000 (15:55 -0700)]
HID: hidraw: Fix memory leak in list->buffer

Deallocate memory allocated to list->buffer[x].value on
release

Bug 1677312

Change-Id: Iaf320327e917b3e78b07230819d51053e43e2c25
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/791189
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>
8 years agoarm64: dts: hawkeye: set gen2 prod settings
Shardar Shariff Md [Tue, 8 Sep 2015 14:20:52 +0000 (19:50 +0530)]
arm64: dts: hawkeye: set gen2 prod settings

set gen2 recommended prod settings for 100KHz
and remove earlier settings done for 400KHz

Bug 200114347

Change-Id: Iae0b89e071233fbca3b24e8668242b21dc833b63
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/795802
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agot124: vcm30t124: Enable disable-clock-request for PCIE ports
Vipin Kumar [Tue, 25 Aug 2015 04:42:19 +0000 (10:12 +0530)]
t124: vcm30t124: Enable disable-clock-request for PCIE ports

Because of a HW bug in T124, clkreq line from the endpoint is not
honored by the PCIE host. A new DT property "disable-clock-request"
handles it such that the driver enables clkref irrespective of clkreq.

Both vcm30t124 based platfroms (p1859 and p2360) use clkreq line from
the EP. So, this patch defines this property for all vcm30t124 based
platforms.

bug 200132704

Change-Id: Iaff60db64ed2512aa21058f576072f97336bf1ad
Signed-off-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-on: http://git-master/r/788587
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
8 years agoHACK: modify smc calls mapping for foster_e
Josh Kuo [Fri, 21 Aug 2015 08:14:54 +0000 (16:14 +0800)]
HACK: modify smc calls mapping for foster_e

rel-23 will enable retail foster_e with a stock android build.

The fused unit of foster_e uses the existing tos prebuilt from rel-22,
which is based on legacy smc calls mapping.

Need to roll back the smc mapping to legacy ones for retail foster_e

Bug 1676875
Bug 200116003

Change-Id: I3dd1fcef04c96034455badae3d5154a6f4494697
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/787163
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoHACK: dt: roll back psci version for foster_e
Josh Kuo [Fri, 21 Aug 2015 08:10:21 +0000 (16:10 +0800)]
HACK: dt: roll back psci version for foster_e

rel-23 will enable retail foster_e with a stock android build.

The fused unit of foster_e uses existing bootloader prebuilt on unit,
which is based on legacy bpmp.

roll back psci version due to bpmp compatibility.

Bug 1676875
Bug 200116003

Change-Id: I670b795bd2309354892f4695391b80f2a0da335a
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/787155
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoHID: Fix Blake vibration
Spencer Sutterlin [Wed, 29 Jul 2015 19:03:11 +0000 (12:03 -0700)]
HID: Fix Blake vibration

Remove the check for application in HID report. Blake fails this
check and doesn't initialize Force Feedback.

Bug 1625921

Change-Id: Ifb4d7b82c63aee4535022d7b6bb697275b721ac1
Signed-off-by: Spencer Sutterlin <ssutterlin@nvidia.com>
Reviewed-on: http://git-master/r/776459
(cherry picked from commit 11dbd3089a693df4923244c2b83d13f0ee19d1b3)
Reviewed-on: http://git-master/r/792805
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agoRevert "Revert "HID: remove extra kfree""
Spencer Sutterlin [Wed, 29 Jul 2015 19:12:26 +0000 (12:12 -0700)]
Revert "Revert "HID: remove extra kfree""

Needed to prevent system hangs when Blake disconnects/connects
with force feedback (FF) enabled

Bug 1625921

This reverts commit 4e22eef0777eddfef50687395c87997a16498aac.

Change-Id: Ie423f456a3305325a9f87d273eeb5511cf6092b7
Signed-off-by: Spencer Sutterlin <ssutterlin@nvidia.com>
Reviewed-on: http://git-master/r/776458
(cherry picked from commit dcfe20d7df7cd303c7c8fe8630e961b21574c970)
Reviewed-on: http://git-master/r/792804
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agonet: wireless: bcmdhd: Send DISASSOC to FW if status of wlan is connecting
Om Prakash Singh [Fri, 21 Aug 2015 06:24:19 +0000 (11:54 +0530)]
net: wireless: bcmdhd: Send DISASSOC to FW if status of wlan is connecting

Bug 200094442
Bug 200104476

Change-Id: I18a1f633f2019cd160cd342f39319a313637ffd6
Signed-off-by: lungtsai_lin <lungtsai_lin@htc.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/744280
(cherry picked from commit a1418f5f2b871f362050ca858c7c7aa6c6815a83)
Reviewed-on: http://git-master/r/787093
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agovideo: fbcon: Keep atleast one mode in modelist
Naveen Kumar S [Tue, 1 Sep 2015 06:35:54 +0000 (12:05 +0530)]
video: fbcon: Keep atleast one mode in modelist

Framebuffer console init requires atleast one valid
mode to exist for it to succeed.
Virtual terminals relies on the success of fbcon_init
without really checking the return value of this function.

tegra_dc_vga_mode already defined in dc.c. Removed duplicate
defination in hdmi.c and hdmi2.0.c

bug 200036424
bug 200130124
bug 200129681

Change-Id: Ia34da6ab3814f667a485d23ef88e1a52f8b5519b
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/707309
(cherry picked from commit 73a561a53469912d94c0dea866646c87ec257bef)
Reviewed-on: http://git-master/r/792235
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoclock: tegra21: boosting sclk clock
Anubhav jain [Tue, 18 Aug 2015 10:09:38 +0000 (15:39 +0530)]
clock: tegra21: boosting sclk clock

Bug 200128606

Change-Id: Ia3c9ba840d6897a2052f5aaa10e1cf2bf451ef7a
Signed-off-by: Anubhav jain <anubhavj@nvidia.com>
Reviewed-on: http://git-master/r/781812
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/793613
GVS: Gerrit_Virtual_Submit

8 years agovideo: tegra: use vga mode if no edid upon hotplug
Naveen Kumar S [Fri, 4 Sep 2015 13:34:06 +0000 (19:04 +0530)]
video: tegra: use vga mode if no edid upon hotplug

When hdmi cable is connected but we do not get EDID from
sink for some reason, fallback to default vga mode so that
upper layers won't hang due to null mode.

bug 200102964

Change-Id: I0c898f26644472e39101ade4aa04be741487089d
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/794362
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agogpu: nvgpu: Add CDE bits in FECS header
sujeet baranwal [Mon, 31 Aug 2015 22:32:13 +0000 (15:32 -0700)]
gpu: nvgpu: Add CDE bits in FECS header

In case of CDE channel, T1 (Tex) unit needs to be promoted to 128B
aligned, otherwise causes a HW deadlock. Gpu driver makes changes in
FECS header which FECS uses to configure the T1 promotions to aligned
128B accesses.

Bug 200096226

Change-Id: Ic006b2c7035bbeabe1081aeed968a6c6d11f9995
Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com>
Reviewed-on: http://git-master/r/792051
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agotegra: dc: ext: fix Coverity dead code issue
Daniel Solomon [Tue, 1 Sep 2015 23:14:35 +0000 (16:14 -0700)]
tegra: dc: ext: fix Coverity dead code issue

Forcing has_timestamp to flase on Android causes
dead code.
Fix for Coverity CID 19586.

Bug 200116059

Change-Id: I3082f660d0a3d3c63d2d37e0cbbb80230e57a431
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/792746
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agoarm-dt: Enable DT proc updates.
Laxman Dewangan [Sat, 5 Sep 2015 00:40:53 +0000 (06:10 +0530)]
arm-dt: Enable DT proc updates.

This simple patch enables dynamic changes of the DT tree on runtime
to be visible to the device-tree proc interface.

This is based on patch
31982e52f0f5d6d51e69d5c4c4a7be5d52307c6e

bug 200137206

Change-Id: I6c8ec8b13943d4ea12f495e0f92ebf52f96e08d1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/794621
GVS: Gerrit_Virtual_Submit

8 years agoof: add support for plugin manager for board-id based DT update
Laxman Dewangan [Sat, 5 Sep 2015 00:33:37 +0000 (06:03 +0530)]
of: add support for plugin manager for board-id based DT update

Add support for plugin manager which identify the board ID
of platform and update the DT before kernel populate devices
based on the DT.

This way, the single DTS file can work with multiple module with
proper overlay.

bug 200137206

Change-Id: Iad1a2551620a9a4a441a116b713b76e2096dcd53
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/794620
GVS: Gerrit_Virtual_Submit

8 years agovideo: tegra: dc: no hotplug for eDP
Shu Zhong [Thu, 20 Aug 2015 23:18:35 +0000 (16:18 -0700)]
video: tegra: dc: no hotplug for eDP

tegra_dc_hotplug_supported should be false for
eDP panels. Currently, we still need it to return
true for VCM30T124 to prevent inadvertent sanity failures
on p1859.

Bug 200113686

Change-Id: Ic9619c75a427546c9a536ada215c964a10764ce7
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/793873
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agovideo: tegra: dp: WAR to disable hdcp for dp
Santosh Reddy Galma [Mon, 17 Aug 2015 11:51:40 +0000 (17:21 +0530)]
video: tegra: dp: WAR to disable hdcp for dp

Change-Id: Iee25c4486f530ac53b4d5ceab8d6279d793e7abe
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/784761
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agovideo: tegra: dp: fix dp switch handling
Santosh Reddy Galma [Mon, 10 Aug 2015 14:49:52 +0000 (20:19 +0530)]
video: tegra: dp: fix dp switch handling

skip hpd switch and audio switch registration for
eDP as they are not required for eDP. Also perform
switch related calls only for DP.

Bug 200128097

Change-Id: Ic320f4be2be92a80ba4d62fa9e7d65af2139deb5
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/781143
(cherry picked from commit b187863c5f4cc112e125f83a7ac996f2edf943be)
Reviewed-on: http://git-master/r/782806
(cherry picked from commit c13abf6e77a5e59d4f3a476c63c5f11466dfc385)
Reviewed-on: http://git-master/r/784730
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agovideo: tegra: dp: fix integration errors
Santosh Reddy Galma [Mon, 17 Aug 2015 10:19:52 +0000 (15:49 +0530)]
video: tegra: dp: fix integration errors

fixed compilation errors caused for integrations to
rel23 codetree.

Bug 200128097

Change-Id: Ia825fafae8830b9f13eb4ff25f6e78f5d13c38ee
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/784713
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agovideo: tegra: dp: Add eDP support
Animesh Kishore [Fri, 10 Jul 2015 17:03:16 +0000 (22:33 +0530)]
video: tegra: dp: Add eDP support

Bug 200113686

Change-Id: Ia21ad07d253026337f9590c3dc6482e005e26cd2
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/767154
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
(cherry picked from commit e4a90cb18ca3033b33645235fff83bd2d5fe0a83)
Reviewed-on: http://git-master/r/781172
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
8 years agovideo: tegra: dp: Add hotplug support
Animesh Kishore [Mon, 8 Jun 2015 18:01:52 +0000 (23:31 +0530)]
video: tegra: dp: Add hotplug support

Hotplug support with unified hpd driver
and new link architecture.

Bug 200113686

Change-Id: Ib32c3661b3653007080c40cc6c9a9f00201c941c
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/766601
(cherry picked from commit b720f8d058d4d90d97a1db3a2481baa43254cf48)
Reviewed-on: http://git-master/r/781170
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agovideo: tegra: hpd: Add hotplug driver
Animesh Kishore [Mon, 29 Jun 2015 13:09:52 +0000 (18:39 +0530)]
video: tegra: hpd: Add hotplug driver

Generic hotplug driver to cater all
external display interfaces.

Bug 200077478
Bug 200113686

Change-Id: I2af3e02e4bd86f73d84b1d41e9855df8c6d8cf71
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/766599
(cherry picked from commit 0133d7fcdbd18b5519bb0fa96bfe24f8e23e3e5e)
Reviewed-on: http://git-master/r/781165
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agovideo: tegra: dp: Add link training driver
Animesh Kishore [Mon, 8 Jun 2015 17:58:36 +0000 (23:28 +0530)]
video: tegra: dp: Add link training driver

Bug 200113686

Change-Id: If545957c34da8d69d0184f214847260ed3874882
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/766600
(cherry picked from commit f02c1d7bd062f0d2233cf49a5058889fb61517cb)
Reviewed-on: http://git-master/r/781164
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agovideo: tegra: sor: Fix detach sequence
Animehs Kishore [Mon, 29 Jun 2015 13:53:12 +0000 (19:23 +0530)]
video: tegra: sor: Fix detach sequence

- Add polling for head op mode sleep completion
- fix head op mode final state
- refactor for better code utilization across all chips

Bug 200103501

Change-Id: Iede7d004558149e29e5c9e7d90010ff8f606215f
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/762361
(cherry picked from commit c5c4e9217ccbe4d6eb2a9fef3998cab642b6a2b6)
Reviewed-on: http://git-master/r/780903
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agoRevert "video: tegra: dp: add hotplug support"
Animesh Kishore [Mon, 8 Jun 2015 17:31:49 +0000 (23:01 +0530)]
Revert "video: tegra: dp: add hotplug support"

This reverts commit 7378658fc6b568e26ea154f1c905500cb3a140ac.
Display port new architecture to be added after removing old
architecture.

Change-Id: I5b87e1b40bfe60f2abb20f05f3919951f79c72b3
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/766598
Reviewed-on: http://git-master/r/781162
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Tested-by: Shu Zhong <shuz@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agoNet:bcmdhd: Fix persistent scan failures
nagaraj [Sat, 15 Aug 2015 02:44:15 +0000 (19:44 -0700)]
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
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-on: http://git-master/r/788301
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agovideo: tegra: dsi: limit dsi sync timeout.
Prafull Suryawanshi [Mon, 17 Aug 2015 09:16:42 +0000 (14:46 +0530)]
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/784680
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
8 years agonet: wireless: bcmdhd: Add pno timing to custom scan policy.
Michael Hsu [Thu, 6 Aug 2015 02:34:58 +0000 (19:34 -0700)]
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/779545
Tested-by: Nagaraj Annaiah <nannaiah@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
8 years agoarm: tegra: p2360: add runtime-pwrctrl-off in isc
Songhee Baek [Fri, 21 Aug 2015 22:12:23 +0000 (15:12 -0700)]
arm: tegra: p2360: add runtime-pwrctrl-off in isc

Bug 1675354

Change-Id: I381a6eb5e65503bafba4642b5615c73a19be641c
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/788376
(cherry picked from commit 52a5df32b8ab9ad26064fb57feda7aa9002bfafe)
Reviewed-on: http://git-master/r/787592
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anurag Dosapati <adosapati@nvidia.com>
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
8 years agodrivers: media: platform: tegra: auto: pwr ctrl
Songhee Baek [Fri, 21 Aug 2015 21:53:23 +0000 (14:53 -0700)]
drivers: media: platform: tegra: auto: pwr ctrl

Added runtime-pwrctrl-off property for user to control power up
timing.

Bug 1675354

Change-Id: Ia5d77f0786f4cfa34faba2dd1ee0635bbce79f31
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/788375
(cherry picked from commit 1f164e541454187fd98232bd14ee034a351db700)
Reviewed-on: http://git-master/r/787591
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anurag Dosapati <adosapati@nvidia.com>
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
8 years agomedia: soc_camera: imx230 v4l2 driver
Arun Kannan [Tue, 18 Aug 2015 00:15:15 +0000 (17:15 -0700)]
media: soc_camera: imx230 v4l2 driver

Bug 1654210

Change-Id: Ia99855c91b67dff064bf74a4822c41cb4b9d1b97
Signed-off-by: Arun Kannan <akannan@nvidia.com>
Reviewed-on: http://git-master/r/785059
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
8 years agopower: bq2419x: set JEITA voltage offset
Venkat Reddy Talla [Tue, 1 Sep 2015 16:15:51 +0000 (21:45 +0530)]
power: bq2419x: set JEITA voltage offset

Set JEITA voltage offset bit to limit battery charge
voltage when battery temperature measured above threshold
value.

Bug 1647341

Change-Id: Ie041a861af052668bb41a99e6ae39061613f88aa
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/792535
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
8 years agotegra-alt: Jetson-E/CV: Update DMIC DAI params
Viswanath L [Mon, 31 Aug 2015 12:46:21 +0000 (18:16 +0530)]
tegra-alt: Jetson-E/CV: Update DMIC DAI params

Update DAI params for "spdif-dit-2" (DMIC) so that DMIC driver
receives correct PCM configuration

Bug 200135303
Bug 200078772

Change-Id: Id65fea270483cff0953ad75f5d1e2142f508631f
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/791778
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
8 years agotegra-alt:rt565x/rt5639: add compr_ops for machine
Viswanath L [Wed, 2 Sep 2015 07:57:48 +0000 (13:27 +0530)]
tegra-alt:rt565x/rt5639: add compr_ops for machine

ALSA compress does not call hw_params. Add compr_ops so that
set_params gets called to configure hw params.

Bug 200132890
Bug 200127533

Change-Id: Ifcfc6b5c4673961afd2d5e00318c97f8f2d0df18
Reviewed-on: http://git-master/r/787165
(cherry picked from commit f16ec9b89450d51cc805384407d4256e4204b141)
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/792967
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
8 years agotegra-alt: rt565x: Add control to set codec rate
Viswanath L [Wed, 19 Aug 2015 06:44:08 +0000 (12:14 +0530)]
tegra-alt: rt565x: Add control to set codec rate

Add control to set codec rate. This is used to force codec
rate when SFC is used.

Increase xbar clock to support 44.1kHz to 48kHz SRC.

Bug 200127533

Change-Id: Ie53660697d8506fdae203d9911ff13e2721fc049
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/787161
(cherry picked from commit 0ca8375f298aa2047cecc016ff89b5d11ef695ae)
Reviewed-on: http://git-master/r/792948
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
8 years agoarm64: dts: jetsonCV: add adsp_audio node
Viswanath L [Thu, 13 Aug 2015 09:32:31 +0000 (15:02 +0530)]
arm64: dts: jetsonCV: add adsp_audio node

Add ADSP audio node.
Add dai-link for I2S3.

Bug 200127533

Change-Id: I3a041a63f434e7651373159df6cf13721f855a11
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/782917
Reviewed-on: http://git-master/r/787114
(cherry picked from commit fca8052a35e3ffcaa43c605b992c70c0abc405fe)
Reviewed-on: http://git-master/r/792945
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
8 years agoARM: tegra210: hawkeye: add top level DTS file for P2290-A04
Laxman Dewangan [Thu, 3 Sep 2015 17:11:05 +0000 (22:41 +0530)]
ARM: tegra210: hawkeye: add top level DTS file for P2290-A04

Add top level DTS file for P2290-A04 DVT and MP.

bug 1679130

Change-Id: I27b518b323265f52b04ccef8fafacaca30d1f72d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/793807

8 years agovideo: tegra: host: Boost num active workers
Terje Bergstrom [Mon, 6 Apr 2015 19:02:57 +0000 (12:02 -0700)]
video: tegra: host: Boost num active workers

This patch increases the number of active workers to provide lower
latency for handling the syncpoint operations.

Bug 1598036
Bug 1671794

Change-Id: I30789b8adb8917664b9fa2cf66ebf25c2e2a4855
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/728122
(cherry picked from commit 0e0fce5049d578b7982634c938b64a1f9b04b6dd)
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/776930
Tested-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agovideo: tegra: host: Optimize work wakeup
Arto Merilainen [Wed, 15 Apr 2015 17:52:39 +0000 (20:52 +0300)]
video: tegra: host: Optimize work wakeup

Currently nvhost handles all interrupt events without
prioritization in the same workqueue. However, this may lead
into cases where work queue clean-up may slow down waking up
the waiters.

This patch modifies the queue to be cleaned up in two stages:
In the first stage all events are cleaned up but events related
to nvhost jobs or external events (gpu jobs) are pushed into a
global list. The handler first goes through the high-priority
handlers (ACTION_SIGNAL_SYNC_PT, ACTION_WAKEUP) and then
schedules a low-priority thread to take care of job clean-up
(ACTION_SUBMIT_COMPLETE, ACTION_NOTIFY events).

Bug 1598036
Bug 1671794

Change-Id: I744849efce27802067beeaca49f1381395dd7f90
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/733010
(cherry picked from commit b976172d1f193f815aaa0a320243b48587c5d1d5)
Reviewed-on: http://git-master/r/776929
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agovideo: tegra: host: Use mutex in intr handling
Arto Merilainen [Tue, 21 Apr 2015 08:02:11 +0000 (11:02 +0300)]
video: tegra: host: Use mutex in intr handling

Currently syncpoint interrupts are using spinlocks despite the handler
in itself is always running in threaded context. This patch converts
syncpoint interrupt spinlock into mutex to allow list users sleep.

Bug 1598036
Bug 1671794

Change-Id: Ic1e71961820c5561a73eb9ef0e5ff30db271d76b
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/733588
(cherry picked from commit 2a7e2fcfda9b1879ad745e87f933c85ff1e52370)
Reviewed-on: http://git-master/r/776928
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Gaurav Singh <gauravsingh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agogpu: nvgpu: vgpu: create some handlers in gpu_ops
Haley Teng [Mon, 6 Jul 2015 12:37:02 +0000 (20:37 +0800)]
gpu: nvgpu: vgpu: create some handlers in gpu_ops

gk20a_fifo_force_reset_ch(), gr_gk20a_update_smpc_ctxsw_mode() and
gk20a_tsg_open() do not support vgpu now, so we need to create some
function pointers in gpu_ops and assign them differently for vgpu and
non-vgpu.

By this change, we can avoid kernel panic issues when user space invokes
the below 3 ioctls in case virtual GPU driver is enabled.

- NVGPU_IOCTL_CHANNEL_FORCE_RESET
- NVGPU_GPU_IOCTL_OPEN_TSG
- NVGPU_DBG_GPU_IOCTL_SMPC_CTXSW_MODE

Bug 200103517

Change-Id: Ib27d6cd348c0b166085c3d44b7db730792a669a7
Signed-off-by: Haley Teng <hteng@nvidia.com>
Reviewed-on: http://git-master/r/766657
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoARM64: t210: Hawkeye: remove GPU rail disable time configuration
Laxman Dewangan [Sat, 29 Aug 2015 08:20:20 +0000 (13:50 +0530)]
ARM64: t210: Hawkeye: remove GPU rail disable time configuration

There is no need to provide the disable time got GPU rail
and hence setting it as 2US instead of 60mS.

2uS is configured so that driver default based on datasheet
should be override with platform need.

Change-Id: Ie7d7a9f67edbfcd27ebf23521a4b8fc53b3ff04b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/791405

8 years agoarm64: jetson: move node for EEPROM to base dtb
Zheng Liu [Wed, 2 Sep 2015 18:26:22 +0000 (11:26 -0700)]
arm64: jetson: move node for EEPROM to base dtb

Move the board-has-eeprom node to the base dtb to support L4T.

Bug 200136453

Change-Id: I8f95ca8ca8c0676a8b0d321daf5393651bd49a7c
Signed-off-by: Zheng Liu <zhliu@nvidia.com>
Reviewed-on: http://git-master/r/793252
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoarm64: dts: update INA3221 sense resistor in P2180
Shreshtha SAHU [Mon, 31 Aug 2015 09:26:15 +0000 (14:56 +0530)]
arm64: dts: update INA3221 sense resistor in P2180

Update sense resistors of all three channels of INA3221 in P2180
Jetson-CV Compute Module rev-A00 to match actual values in HW.

Disable INA3221 for Compute Module rev-A00 based boards as result
are inaccurate.

Bug 1674705

Change-Id: I1714558040fc475ec713a7cbf56598260229682a
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/791715
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agotegra: t210: set ext Tdiode shoutdown temp to 107C
Shreshtha SAHU [Thu, 13 Aug 2015 12:10:47 +0000 (17:40 +0530)]
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
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
8 years agoarm64: jetson-cv: enable LP855X backlight
Kerwin Wan [Thu, 30 Jul 2015 05:45:24 +0000 (11:15 +0530)]
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
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
8 years agoarm64: tegra: jetson_cv: add separate dts for boards w/ e2614
Kerwin Wan [Mon, 31 Aug 2015 09:17:41 +0000 (17:17 +0800)]
arm64: tegra: jetson_cv: add separate dts for boards w/ e2614

Bug 200129230

Change-Id: Ifa92d75e7845cdabd55f7bed89864057c6cacdae
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/791720
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
8 years agoarm64: dts: tegra210: add jetson cv hdmi prod settings
Santosh Reddy Galma [Tue, 30 Jun 2015 10:01:33 +0000 (15:31 +0530)]
arm64: dts: tegra210: add jetson cv hdmi prod settings

Bug 1660935

Change-Id: I15630379e742408ea065fa282d9d224b5013da0d
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: http://git-master/r/764115
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
8 years agovideo: tegra: host: Restore poweroff request
Arto Merilainen [Wed, 26 Aug 2015 23:58:02 +0000 (02:58 +0300)]
video: tegra: host: Restore poweroff request

Change 1a1db66cc323f6ac9e1f0d95449078b8de2f0073 refactored
keepalive flag to take a real pm runtime reference to a
device whenever the corresponding device node was open.
However, this regressed suspend stress testing; Since we
now take a real pm runtime reference to the device, having
the device node open prevents suspend. Depending on timing,
this may lead to failure to suspend.

This patch restores the no-poweroff request functionality to
nvhost acm and modifies poweroff requests to be flushed.

Bug 200132870

Change-Id: Ibdabec9ee004f2724595c64736b1a36d7f2cff25
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/791367
(cherry-picked from commit 27019e0147b9a9b408b21fa530b3e50e6aa84881)
Reviewed-on: http://git-master/r/790718
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>