3 years agoASoC: tegra: Notify SAR about speaker state
Sumit Bhattacharya [Tue, 3 Nov 2015 09:42:32 +0000]
ASoC: tegra: Notify SAR about speaker state

Notify SAR about when speaker is enabled/disabled so that it
can tune sensor response accordingly. This is a WAR for hawkeye.

Bug 200137195

Change-Id: I3750eb7f6409cfa329c8931d7eb6ba3fe7662282
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/826889
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

3 years agodma:tegra: avoid int overflow for transferred cnt
Christopher Freeman [Tue, 6 May 2014 20:13:58 +0000]
dma:tegra: avoid int overflow for transferred cnt

bytes_transferred will overflow during long audio playbacks.  Since the
driver only ever consults this value modulo bytes_requested, store the value
modulo bytes_requested to prevent overflow.

BUG=chrome-os-partner:28376
TEST=Video/audio playback for >4 hours

Bug 200157067

Change-Id: I67ec972a6abcda0944728592c6c6ff319ea2486b
Reviewed-on: https://chromium-review.googlesource.com/198540
(cherry picked from commit a7ca1e2b0d1bbfa8ea480ac30fee73b85039881e)
Signed-off-by: Christopher Freeman <cfreeman@nvidia.com>
Signed-off-by: Diwakar Paliwal <dpaliwal@nvidia.com>
Reviewed-on: http://git-master/r/840880
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

3 years agopower: bq27441: disable irq line while shutdown
Venkat Reddy Talla [Thu, 3 Dec 2015 06:06:29 +0000]
power: bq27441: disable irq line while shutdown

Disabling interrupt line while device shutting down.
triggering or handling interrupt while powering off
may lead to i2c transactions after i2c bus shutdown.

Bug 200155467

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

3 years agodriver: hid-nvidia-blake: fix allocation size of loc
Pritesh Raithatha [Tue, 17 Nov 2015 12:31:32 +0000]
driver: hid-nvidia-blake: fix allocation size of loc

Bug 200116059
Coverity id: 13435, 13439

Change-Id: I8d777b745b2f8b6722d8bc0e21c634449594ed4f
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/833282
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Ankita Garg <ankitag@nvidia.com>

3 years agogpu: nvgpu: create sync_fence only if needed
Deepak Nibade [Wed, 7 Oct 2015 10:50:07 +0000]
gpu: nvgpu: create sync_fence only if needed

Currently, we create sync_fence (from nvhost_sync_create_fence())
for every submit
But not all submits request for a sync_fence.

Also, nvhost_sync_create_fence() API takes about 1/3rd of the total
submit path.

Hence to optimize, we can allocate sync_fence
only when user explicitly asks for it using
(NVGPU_SUBMIT_GPFIFO_FLAGS_FENCE_GET &&
NVGPU_SUBMIT_GPFIFO_FLAGS_SYNC_FENCE)

Also, in CDE path from gk20a_prepare_compressible_read(),
we reuse existing fence stored in "state" and that can
result into not returning sync_fence_fd when user asked
for it
Hence, force allocation of sync_fence when job submission
comes from CDE path

Bug 200141116

Change-Id: Ia921701bf0e2432d6b8a5e8b7d91160e7f52db1e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/818190
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agojetson-CV/E: Set Ignore susp for all codec links
Viswanath L [Mon, 7 Dec 2015 06:03:58 +0000]
jetson-CV/E: Set Ignore susp for all codec links

[Missing integration to I2S4 node in Jetson-CV/E DT files]:
Set Ignore suspend bit for all codec dai links.
It will help to avoid dapm sync calls during
suspend operation which is consuming significant
time and causing delay in entering lp0 state.

Bug 200152856
Bug 200155912

Change-Id: I77e88b1eefa48092ab24af0bd16744a621db5fd2
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/842103
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

3 years agopcie: host: tegra: fix port register access
Vidya Sagar [Tue, 24 Nov 2015 18:08:35 +0000]
pcie: host: tegra: fix port register access

access root port registers only if rootport is active

Bug 1705758

Change-Id: Iac2f2b673d30824188220ddddf3a037535ab1f34
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/837265
(cherry picked from commit be8e3f837be5cdf3ed8daec91ac0dedc29d0c7a7)
Reviewed-on: http://git-master/r/841724
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agomfd: max77620: add support for active and suspend FPS period
Laxman Dewangan [Thu, 5 Nov 2015 15:33:55 +0000]
mfd: max77620: add support for active and suspend FPS period

Add support to configure device FPS period different for the
active and suspend state of the device.

Change-Id: Ia34ffbcb283a2011de4a50a4c99e06881fb8e5e9
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/828480
(cherry picked from commit e40bbe6035ea76178f8bbf07311e7a4772ab9dcc)
Reviewed-on: http://git-master/r/829137
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/840914
GVS: Gerrit_Virtual_Submit

3 years agoresource: Coverity fixes
Pavitrakumar [Thu, 18 Jun 2015 15:17:20 +0000]
resource: Coverity fixes

Coverity fixes
Initializing counter 'l' to 0 in 'r_next', which is
incremented to keep track of the resource position during
resource tree traversal.

Coverit ID 13503

Bug 200083369

Change-Id: Iea3d1390686b4c418a9bf40571921dbd9ca8d2fa
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/759698
(cherry picked from commit 73ee1c6332a0725dd28dbe5fdb7fa84a96f8f987)
Reviewed-on: http://git-master/r/839215
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agoARM64: dts: darcy: copy power tree data for darcy
Venkat Reddy Talla [Wed, 18 Nov 2015 07:01:16 +0000]
ARM64: dts: darcy: copy power tree data for darcy

Copy foster power tree dts file content to darcy
as darcy will be subset of Foster,using seperate
power tree dts file for darcy to avoid any
issues when changes made for Foster platform
only.

Bug 1700499

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

3 years agomm: Coverity fixes
Pavitrakumar [Fri, 19 Jun 2015 15:35:35 +0000]
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
(cherry picked from commit 6c696464c6719ab2679d93519656b200aa5f784f)
Reviewed-on: http://git-master/r/805188
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agotegra-nor: Coverity fixes
Pavitrakumar [Tue, 7 Jul 2015 13:54:12 +0000]
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
(cherry picked from commit 472fdd0ee0cc438e10f15aa1ec58e85de9740286)
Reviewed-on: http://git-master/r/805187
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agoPCI: Fix use of uninitialized MPS value
Bjorn Helgaas [Tue, 29 Apr 2014 18:51:55 +0000]
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
(cherry picked from commit dfc76a7e9d62465948bd51c0439ae61016a8f310)
Reviewed-on: http://git-master/r/805186
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>

3 years agoarm64: tegra210: fix DT for node xusb_padctl
Hans Yang [Fri, 4 Dec 2015 09:11:38 +0000]
arm64: tegra210: fix DT for node xusb_padctl

This commit fixed xusb_padctl node in DT source files
by means of "check_padctl_dt_auto_fix.sh"

It automatically checks .dtb and does following actions
in .dts/.dtsi files

1) Replace padctl@0 by xusb_padctl.
2) Correct "nvidia,enable-sata-port" if sata is enabled/disabled.
3) Correct "nvidia,lane-map=0x??" if pcie is enabled/disabled.
4) Correct "status=??" depends on sata/pcie/xusb lane owner.
5) Add needed regulators depends on sata/pcie/xusb lane owner.

Bug 200153624

Change-Id: I1546a1ab2dd6217ca17bb5433206dd672aac84d1
Signed-off-by: Hans Yang <hansy@nvidia.com>
Reviewed-on: http://git-master/r/841580
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoarm64: dts: remove vbus detection for Darcy
Daniel Fu [Fri, 27 Nov 2015 09:16:51 +0000]
arm64: dts: remove vbus detection for Darcy

- Darcy will use sysfs node to control device/host mode.
  No need to have vbus detection for otg.

Bug 1695353
Bug 1709564

Change-Id: Iad80af2fd6d445b9c1e543970dea9991707e535e
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/838793
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoloki:foster: emc update to 983 v11
David Dastous St Hilaire [Mon, 19 Oct 2015 23:12:04 +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

This reverts commit 3b7bafd46987c26e1bba2143c1b25907d3e1e527.

Change-Id: I50edbf8b69bbad007e9e650bfe6b2364c40808f7
Signed-off-by: David DSH <ddastoussthi@nvidia.com>
Reviewed-on: http://git-master/r/819946
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agotegra: host: pcie: fix D3_Hot test code
Vidya Sagar [Fri, 27 Nov 2015 11:52:16 +0000]
tegra: host: pcie: fix D3_Hot test code

fixes D3_Hot test code w.r.t checking device's
entry into D3_Hot state

Bug 200143348

Change-Id: I74b874b8c0e105b69da086a9edc3f9a29718eb7e
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/838881
(cherry picked from commit 1bc402e93b3e1d854288c350b7eabc27324552ce)
Reviewed-on: http://git-master/r/839231
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoiio: proximity: SAR v.21
Erik Lilliebjerg [Wed, 2 Dec 2015 01:07:13 +0000]
iio: proximity: SAR v.21

- Add device tree byte streams for external state low and high.
  When an external entity writes a status state to the SAR driver's external
  function sar_external_status, the corresponding DT byte stream is executed
  depending on the value written (0 or 1).
- Update documentation that explains this.

Bug 200137195

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

3 years agoneigh: Better handling of transition to NUD_PROBE state
Erik Kline [Wed, 2 Dec 2015 10:01:20 +0000]
neigh: Better handling of transition to NUD_PROBE state

[1] When entering NUD_PROBE state via neigh_update(), perhaps received
from userspace, correctly (re)initialize the probes count to zero.

This is useful for forcing revalidation of a neighbor (for example
if the host is attempting to do DNA [IPv4 4436, IPv6 6059]).

[2] Notify listeners when a neighbor goes into NUD_PROBE state.

By sending notifications on entry to NUD_PROBE state listeners get
more timely warnings of imminent connectivity issues.

The current notifications on entry to NUD_STALE have somewhat
limited usefulness: NUD_STALE is a perfectly normal state, as is
NUD_DELAY, whereas notifications on entry to NUD_FAILURE come after
a neighbor reachability problem has been confirmed (typically after
three probes).

Bug 200154120

Change-Id: I3ee05ab3489173824d38a4b3790bcf0840e0dc40
Signed-off-by: Erik Kline <ek@google.com>
Acked-By: Lorenzo Colitti <lorenzo@google.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: kraghavender <kraghavender@nvidia.com>
Reviewed-on: http://git-master/r/840346
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoarm64:dts:jetson-CV/E: Support for i2s4 loopback
Viswanath L [Mon, 30 Nov 2015 06:04:30 +0000]
arm64:dts:jetson-CV/E: Support for i2s4 loopback

Add I2S4 node in Jetson-CV and Jetson-E DTS. This node will be used
for remote-submix loopback path.

Bug 200155912

Change-Id: I4d02531f978b07d4407b79aec1b9c2d836b0b40e
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/839102
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agoST8: DTS: disable ltr proxmity device
wahsu [Sun, 29 Nov 2015 06:03:24 +0000]
ST8: DTS: disable ltr proxmity device

Proximity is not used in data only and wifi sku on ST8 device.

Bug 200148651

Change-Id: I01f2d5f960ccdf1dacbb92fe802426a9839fd1dd
Signed-off-by: wahsu <wahsu@nvidia.com>
Reviewed-on: http://git-master/r/839015
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Chuang <echuang@nvidia.com>
Reviewed-on: http://git-master/r/839370
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

3 years agoARM: tegra: hawkeye:added touch_clk_sel gpio
David Pu [Fri, 20 Nov 2015 19:54:33 +0000]
ARM: tegra: hawkeye:added touch_clk_sel gpio

added touch_clk_sel gpio which need to be explictly pull low/high
to select touch clock(external or internal clock)

Bug 1706267

Change-Id: I1b70bdddbc362a7a2eb2dd42d5c3087cc3fbf2f3
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/836030
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoinput: touch: sharp:add touch_clk_sel control.
David Pu [Fri, 20 Nov 2015 19:57:00 +0000]
input: touch: sharp:add touch_clk_sel control.

touch_clk_sel GPIO need to be configured correctly no matter active
stylus feature is enabled or not.

Bug 1706267

Change-Id: I5381a60b4e86e1562804eed08bb7165b58eb6921
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/836029
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoRevert "Revert "input: touch: sharp: turn off TOUCH_CLK by default.""
David Pu [Mon, 23 Nov 2015 06:29:28 +0000]
Revert "Revert "input: touch: sharp: turn off TOUCH_CLK by default.""

This reverts commit aea857137f1733436bde5f4b0a9a6b0552e16adc.

Change-Id: I1628c717030cdc05fdc235f4aaf22591c1966108
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/836392
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoarm64: dts: update fastboot usb pid for darcy
Daniel Fu [Wed, 18 Nov 2015 02:47:51 +0000]
arm64: dts: update fastboot usb pid for darcy

Bug 1695353

Change-Id: I29ba6d6d2d5f8eaacf2a627567716a563ac69f66
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/834320
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoARM64: t210: jetson: add enable/disable/ramptime for rails
Venkat Reddy Talla [Mon, 16 Nov 2015 08:59:05 +0000]
ARM64: t210: jetson: add enable/disable/ramptime for rails

Adding enable, disable and ramptime details for Jetson-CV
platform pmic rails.
enable, disable and ramptime data for different rails
provided by sys-eng team.

Bug 200148181

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

3 years agommc: tegra: Update is_calibration_done flag status
Naveen Kumar Arepalli [Mon, 30 Nov 2015 10:21:03 +0000]
mmc: tegra: Update is_calibration_done flag status

-Set is_calibration_done to true only if device is present in
the slot.
-when sd card is removed corresponding rails are turned off
hence no need to run calibration, set is_calibration_done to false
when sd card is removed.
-In suspend set is_calibration_done to false as sd rails are
turned off.

Bug 1661177

Change-Id: I3291c820067b53a72b81e82a5da0cb5eb9fa8363
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/839222
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dc: Setup hda presence on hotplug
Shaunak Gupte [Tue, 20 Oct 2015 07:00:31 +0000]
video: tegra: dc: Setup hda presence on hotplug

Setup hda presence automatically when hdmi is plugged in.

Bug 200130740
Bug 200128816

Change-Id: I846300c9808956ac25dba94792793321cad61af2
Signed-off-by: Shaunak Gupte <shaunakg@nvidia.com>
Reviewed-on: http://git-master/r/838499
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>

3 years agogpu: nvgpu: move check_gp_put() and update_gp_get() to worker
Deepak Nibade [Mon, 30 Nov 2015 10:39:48 +0000]
gpu: nvgpu: move check_gp_put() and update_gp_get() to worker

We currently call check_gp_put() and update_gp_get()
in submit path and this takes about 5uS for both checks
check_gp_put() - 3.5 uS
update_gp_get() - 1.5 uS

But this book keeping can be moved to gk20a_channel_update()
to save some submit time

Note that check_gp_put() needs to be done inside submit
lock

Bug 200141116

Change-Id: I276400111be0421eb673695e2f2899ff52e344b4
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/839232
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agogpu: nvgpu: Fix alignment calculation overflow
Ari Hirvonen [Thu, 19 Nov 2015 09:12:26 +0000]
gpu: nvgpu: Fix alignment calculation overflow

Bug 200150865

Change-Id: If4f0e01bdeb95c303675b63444bd497b65d934f3
Signed-off-by: Ari Hirvonen <ahirvonen@nvidia.com>
Reviewed-on: http://git-master/r/835151
(cherry picked from commit d172eea1fd0a329c62f5a8229e8d8af7b24c4b4c)
Reviewed-on: http://git-master/r/836551
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agoarm64: tegra21: config: enable USB_SERIAL_FTDI_SIO
Jeetesh Burman [Wed, 25 Nov 2015 06:04:31 +0000]
arm64: tegra21: config: enable USB_SERIAL_FTDI_SIO

Enable USB_SERIAL_FTDI_SIO.

Bug 1705825

Change-Id: I928642b23c8fcf561137edcd5d326ed5029bd03d
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/837612
(cherry picked from commit 8bb3bb40a5ad0ec2e4a78b79d2ceafabe1addc3a)
Reviewed-on: http://git-master/r/838831
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoASoC:tegra-alt:Set Ignore susp for all codec links
Manoj Gangwal [Tue, 24 Nov 2015 10:29:08 +0000]
ASoC:tegra-alt:Set Ignore susp for all codec links

Set Ignore suspend bit for all codec dai links.
It will help to avoid dapm sync calls during
suspend operation which is consuming significant
time and causing delay in entering lp0 state.

Bug 200152856

Change-Id: Iea70de203233fbc5e5140a3d8773ed69ab64d42e
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/837085
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoirqchip: tegra: set FIQ shadows offset
Ian Chang [Wed, 25 Nov 2015 08:41:16 +0000]
irqchip: tegra: set FIQ shadows offset

Set FIQ shadows offset to fix kernel
warnning.

bug 200117915

Change-Id: I3c27df9183d46f6ff8c4a3cc784089b34f6035c8
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/837727
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoARM64: DT: tegra210: disable KSO mode dump
Bitan Biswas [Thu, 29 Oct 2015 09:58:23 +0000]
ARM64: DT: tegra210: disable KSO mode dump

Disable SDMMC register dump after errors
like command index error in KSO sleep mode
for Jetson-cv board

bug 200138403

Change-Id: Iad087a16de2caa270c1fc30dbd0fe76da99c2792
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/824721
(cherry picked from commit 9eff610878c3fe568c91aa29a1b9203ea2a7a03d)
Reviewed-on: http://git-master/r/837896
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agommc: host: tegra: disable kso mode reg dump
Bitan Biswas [Thu, 29 Oct 2015 09:54:37 +0000]
mmc: host: tegra: disable kso mode reg dump

On platforms with Broadcom Wifi over SDIO
support register dump in KSO sleep is disabled

bug 200138403

Change-Id: I49bded4df12fd0ce83be5bd791f4a9bd2e98b5b7
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/824720
(cherry picked from commit b3bee6cb894a0066d95dd77073b9c2e652cb0634)
Reviewed-on: http://git-master/r/837894
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agobindings: mmc: tegra: disable SDIO register dump
Bitan Biswas [Thu, 29 Oct 2015 09:49:54 +0000]
bindings: mmc: tegra: disable SDIO register dump

Platforms with Broadcom Wifi over SDIO support
may use attribute
nvidia,bcm-sdio-supress-kso-dump to suppress
register dump in KSO sleep mode.

bug 200138403

Change-Id: Ib7258be0023df53cdf0f3910f947b5e56b5e2f82
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/824719
(cherry picked from commit a6913e767a250ec98d401b7336f73202f11ce0fd)
Reviewed-on: http://git-master/r/837893
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoarm: dt: p1761: Correct name-format of a DT entry
Petlozu Pravareshwar [Mon, 23 Nov 2015 12:20:41 +0000]
arm: dt: p1761: Correct name-format of a DT entry

Correct name-format of a ehci DT entry.

Bug 200153623

Change-Id: Ie1ef144a4aeca2a2999a389a99d22380f870dc02
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/836531
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agousb: phy: Correct usb device speed information
Petlozu Pravareshwar [Mon, 23 Nov 2015 12:17:46 +0000]
usb: phy: Correct usb device speed information

When turn_off_vbus_on_lp0 is set, we disconnect
VBUS before going to LP0 and re-enable it after
LP0 wakeup.

Present code assumes device speed info after LP0
is same as before LP0 which is not true if there
is a swapping of devices when system is in LP0.
Hence set speed as UNKNOWN in such condition.

Bug 200153623

change-Id: I129b88ecc8ad743a0a65341dcb0a7b6001f24ff8
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/835297
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoarm64: t210: jetson_cv: update hdmi2.0 prod values
Naveen Kumar S [Mon, 23 Nov 2015 06:27:59 +0000]
arm64: t210: jetson_cv: update hdmi2.0 prod values

Updated prod settings for HDMI2.0 on Jetson-CV to ahere to
HDMI electrical compliance values.

bug 1699941
bug 1660935

Change-Id: Icb3909f67ae282d3bde528e99f820454680ce835
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/837320
(cherry picked from commit bd8a37df0314fbcdd9a67d9fdcfd31902395385a)
Reviewed-on: http://git-master/r/837592
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoarm64: tegra: jetson: disable SAR int on super module
Kerwin Wan [Mon, 16 Nov 2015 05:45:51 +0000]
arm64: tegra: jetson: disable SAR int on super module

Config SAR int as output to avoid it cause false interrupts
storms on the gpio expander it connects. This will be reverted
after SAR int is correctly fixed.

Bug 200153628
Bug 200137392

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

3 years agovideo: tegra: dc: moved KSV reads before V'
Sharath Sarangpur [Mon, 23 Nov 2015 23:04:41 +0000]
video: tegra: dc: moved KSV reads before V'

Moved KSV reads before reading V'

bug 200144160

Change-Id: If74570c2e37e6d9df5aada1a055d104ebe65449e
Signed-off-by: Sharath Sarangpur <ssarangpur@nvidia.com>
Reviewed-on: http://git-master/r/836775
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agotegra21: dvfs: Add support for SKU 0x8F
Alex Frid [Fri, 20 Nov 2015 19:56:50 +0000]
tegra21: dvfs: Add support for SKU 0x8F

Bug 1558421

Change-Id: Ib31ac17b0338d8916fb8e9b526b86b7cebbd45d0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/836415
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoarm64: t210: config: disable DEBUG_KMEMLEAK for l4t
Deepak Nibade [Tue, 24 Nov 2015 06:52:17 +0000]
arm64: t210: config: disable DEBUG_KMEMLEAK for l4t

Disable CONFIG_DEBUG_KMEMLEAK for l4t/T210 since it
increases GPU submit time latencies

Bug 200141116

Change-Id: Ib71028d85f917b673301db3603177612c774301c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/836949
GVS: Gerrit_Virtual_Submit
Tested-by: Kiran SJ <ksj@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agoinput: touch: sharp:fix unbalanced irq disable.
David Pu [Tue, 17 Nov 2015 23:12:34 +0000]
input: touch: sharp:fix unbalanced irq disable.

it is not multi-process safe when accessing touch driver sysfs
/sys/class/misc/touch/wakeup_enable and
/sys/class/input/input0/enabled at same time.
it leads to wakeup_enable flag inconsistent state during changing
waekup_enable and enabled node at sametime. In such case disable_irq
would be called twice and it will never comes back to balanced
state(changing between irq depth between -1 and 0 instead of 0 and 1).

This change keeps irq always enabled after touch input is enabled.
Also move enable/disable irq wake to system suspend/resume routine to
keep it always balanced.

Bug 1702947

Change-Id: I732909ebffc139cce6ed92b2388284dbf817c7e2
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/834216
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

3 years agoRevert "arm64: t210: change post soc core time"
Todd Poynter [Mon, 16 Nov 2015 20:07:20 +0000]
Revert "arm64: t210: change post soc core time"

Bug 1675404
Bug 200154032

This reverts commit 82282fddfd05de8181a43764617e35674d1b5ed1.

Change-Id: I1c8cda9ea6e1e18458e1cf856534ac0e621f0061
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/833430
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoRevert "ARM64: tegra210: hawkeye: set FPS timing to 5120us"
Todd Poynter [Mon, 16 Nov 2015 20:06:53 +0000]
Revert "ARM64: tegra210: hawkeye: set FPS timing to 5120us"

Bug 1675404
Bug 200154032

This reverts commit b852d0d200d6f44b707b353bf92bd57c54aa2f8e.

Change-Id: I5b02f7c97cb69241fd42f7ef4fde7c1019f3cf31
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/833429

3 years agoplatform: tegra: pmc: silent debug print
Bibek Basu [Sat, 31 Oct 2015 21:03:53 +0000]
platform: tegra: pmc: silent debug print

pcm prod list not found list is made a
debug print as its not a mandatory error

Bug 200137939

Change-Id: I8b5523e015325ad940ff29b2b7ba1cad69d2d845
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/825874
(cherry picked from commit 5c9397de732d50acaf879ca1a77823a16410ac6e)
Reviewed-on: http://git-master/r/826864
(cherry picked from commit b9fd57e8201f90691f4e88d3cb20add311ab96a1)
Reviewed-on: http://git-master/r/835178
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

3 years agoarch: arm64: dts: INA3221 config
Anshul Jain [Wed, 18 Nov 2015 22:35:55 +0000]
arch: arm64: dts: INA3221 config

Fix parent file location for configuring the INA3221 correctly.

Bug 200153161

Change-Id: I34d3f9f38768867671b93e4078aba13d84baa61b
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/834810
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoASoC: codec: rt565x: enable mclk protection
Sameer Pujar [Mon, 16 Nov 2015 06:33:55 +0000]
ASoC: codec: rt565x: enable mclk protection

The amplifier latches to DC voltage and burns out
speakers, when mclk is not detected. There is a
protection mechanism available in the codec chip,
which turns off the amplifier when there is no mclk.
The change enables this protection circuit.

Bug 200148158

Reviewed-on: http://git-master/r/828447
(cherry picked from commit a09674309b87f5532237987d8c0fc7772532b897)

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

3 years agogpu: nvgpu: rework private command buffer free path
Deepak Nibade [Wed, 4 Nov 2015 08:36:37 +0000]
gpu: nvgpu: rework private command buffer free path

We currently allocate private command buffers (wait_cmd
and incr_cmd) before submitting the job but we never
free them explicitly.
When private command queue of the channel is full, we
then try to recycle/remove free command buffers.
But this recycling happens during submit path, and
hence that particular submit path takes much longer

Rework this as below :
- add reference of command buffers to job structure
- when job completes, free the command buffers
  explicitly
- remove the code to recycle buffers since it should
  not be needed now

Note that command buffers need to be freed in order of
their allocation. Ensure this with error print before
freeing the command buffer entry

Bug 200141116
Bug 1698667

Change-Id: Id4b69429d7ad966307e0d122a71ad55076684307
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/827638
(cherry picked from commit c6cefd69b71c9b70d6df5343b13dfcfb3fa99598)
Reviewed-on: http://git-master/r/835818
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agogpu: nvgpu: support skipping buffer refcounting in submit
Deepak Nibade [Thu, 29 Oct 2015 09:50:50 +0000]
gpu: nvgpu: support skipping buffer refcounting in submit

In job submission path, we always take refcount on all
the mapped buffers to safeguard against case where user
space releases the buffer early

But in case user space itself is doing proper buffer
management, kernel need not take refcounts on all the
buffers - which is also a overhead in submit path

Hence, provide a new submit flag
NVGPU_SUBMIT_GPFIFO_FLAGS_SKIP_BUFFER_REFCOUNTING to
optionally skip taking refcounts on all the buffers

Also, if we do not take refcounts, then no need to drop
any refcounts in gk20a_channel_update() as well

Bug 1698667
Bug 200141116

Change-Id: I81bb7a03240300b691c70bcec04ea1badd5934f4
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/824718
(cherry picked from commit 8c8978fa303ec4e6db0233becdbdcbad4a248173)
Reviewed-on: http://git-master/r/833327
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agogpu: nvgpu: set aggressive_sync_destroy at runtime
Deepak Nibade [Fri, 23 Oct 2015 10:11:21 +0000]
gpu: nvgpu: set aggressive_sync_destroy at runtime

We currently set "aggressive_destroy" flag to destroy
sync object statically and for each sync object

Move this flag to per-platform structure so that it
can be set per-platform for all the sync objects

Also, set the default value of this flag as "false"
and set it to "true" once we have more than 64
channels in use

Bug 200141116

Change-Id: I1bc271df4f468a4087a06a27c7289ee0ec3ef29c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/822041
(cherry picked from commit 98741e7e88066648f4f14490c76b61dbff745103)
Reviewed-on: http://git-master/r/835817
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agogpu: nvgpu: remove temporary gpfifo allocation in submit path
Deepak Nibade [Mon, 26 Oct 2015 13:17:55 +0000]
gpu: nvgpu: remove temporary gpfifo allocation in submit path

In GPU job submit path gk20a_ioctl_channel_submit_gpfifo(),
we currently allocate a temporary gpfifo, copy user space
gpfifo content into this temporary buffer, and then copy
temp buffer content into channel's gpfifo.

Allocation/copy/free of temporary buffer adds additional
overhead

Rewrite this sequence such that gk20a_submit_channel_gpfifo()
can receive either a pre-filled gpfifo or pointer to
user provided args.
And then we can direclty copy the user provided gpfifo
into the channel's gpfifo

Also, if command buffer tracing is enabled, we still need
to copy user provided gpfifo into temporaty buffer for reading
But that should not cause overhead in real world use case

Bug 200141116

Change-Id: I7166c9271da2694059da9853ab8839e98457b941
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/823386
(cherry picked from commit 3e0702db006c262dd8737a567b8e06f7ff005e2c)
Reviewed-on: http://git-master/r/835816
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agostaging: ozwpan: Make oz_pd_stop atomic
Spencer Sutterlin [Tue, 17 Nov 2015 02:50:02 +0000]
staging: ozwpan: Make oz_pd_stop atomic

Change responsibility of holding g_polling_lock to caller of
oz_services_stop()

Bug 200151967

Change-Id: I3a1d5d12d1c03153a62555c3ccd4121e90671afa
Signed-off-by: Spencer Sutterlin <ssutterlin@nvidia.com>
Reviewed-on: http://git-master/r/833613
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoarm64: t210: remove unused platform
David Yu [Tue, 17 Nov 2015 06:21:24 +0000]
arm64: t210: remove unused platform

Bug 200133974

Change-Id: Ibe6272b7a2826c65fc4a6dcb406d5b46afad1af5
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/833674
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Harry Hong <hhong@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoRevert "input: touch: sharp: turn off TOUCH_CLK by default."
David Pu [Fri, 20 Nov 2015 19:49:21 +0000]
Revert "input: touch: sharp: turn off TOUCH_CLK by default."

This reverts commit 11208e8d20f890ddf72bf81e8f609e26019c83e2.

it causes bug 1706267. reverting it.
original Bug 1704518

Change-Id: I96dc461b265ea2cc56ae483fb5448e9d16e4d199
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/836025
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoarm: tegra12: Enable hid/Jarvis support
Rene Houle [Thu, 29 Oct 2015 01:22:29 +0000]
arm: tegra12: Enable hid/Jarvis support

Bug 1695822

Change-Id: I553dcaf025c69039e0f215066f435f256c1fa972

Signed-off-by: Rene Houle <rhoule@nvidia.com>
Change-Id: If38241713db95202cfda086177d8e56c59bfd8dd
Reviewed-on: http://git-master/r/824432
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoarch: arm: boot: dts: remove cy8c for Darcy
Martin Gao [Thu, 19 Nov 2015 03:00:16 +0000]
arch: arm: boot: dts: remove cy8c for Darcy

- Darcy uses pwm based led, and therefore no long needs this.

Change-Id: I3c2d10922da6dbe55c4ee98213b5066abbc885a1
Signed-off-by: Martin Gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/834937
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Fu <danifu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoregulator: max77620: fix setting active discharge
Damon Duan [Thu, 19 Nov 2015 03:36:40 +0000]
regulator: max77620: fix setting active discharge

MAX77620 has different settings to enable active
discharge:
-for Step-Down, need set nADE bit to 0
-for LDO, need set ADE bit to 1

Bug 1698711

Change-Id: I498b153ac11c32ef046e63b9bde5c286e17b3e2e
Signed-off-by: Damon Duan <danield@nvidia.com>
Reviewed-on: http://git-master/r/834996
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoARM64:jetson-cv: add dt support for A03 revision
Damon Duan [Mon, 16 Nov 2015 08:40:00 +0000]
ARM64:jetson-cv: add dt support for A03 revision

Jetson-CV A03 revision needs below settings in bootloader:
- enable low-battery shut down(MBLPD)
- disable active discharge for LDO4
Add support in DT for these settings.

Bug 1698711

Change-Id: Ic7604fc32c0650b185525d45bf1bf5c54738b8b4
Signed-off-by: Damon Duan <danield@nvidia.com>
Reviewed-on: http://git-master/r/833366
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hayden Du <haydend@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoRevert "arm64: t210: Enable the MCC in WiFi"
kraghavender [Mon, 16 Nov 2015 11:58:15 +0000]
Revert "arm64: t210: Enable the MCC in WiFi"

This reverts commit b47674285ada3105f72b88a755f24907cea26138.

Bug 1693638

Change-Id: I7660873174b902ec67ac8f72570534217aee51af
Signed-off-by: Kasturi Raghavender <kraghavender@nvidia.com>
Reviewed-on: http://git-master/r/833299
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agommc: debugfs: added timing spec for HS400
Anubhav jain [Tue, 17 Nov 2015 07:45:53 +0000]
mmc: debugfs: added timing spec for HS400

-timing spec for HS400 mode was not defined.
So added timing spec for HS400 mode.

Change-Id: Id5d2b11a18980e633170ac0280c826dd736711eb
Signed-off-by: Anubhav jain <anubhavj@nvidia.com>
Reviewed-on: http://git-master/r/833740
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agousb: phy: tegra: add pm_stay_awake/pm_relax during otg work
Rakesh Babu Bodla [Tue, 17 Nov 2015 05:52:18 +0000]
usb: phy: tegra: add pm_stay_awake/pm_relax during otg work

Ensure suspend events don't trigger during otg
workqueue function is running, using
pm_stay_awake/pm_relax.

Bug 200148068
Bug 200141477

Change-Id: Idf9ae907eb563f3849fa420ce3b73b1635083fe4
Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/833693
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-by: Petlozu Pravareshwar <petlozup@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoarm64: t210: config: enable Intel 82576 NIC driver
Vidya Sagar [Wed, 18 Nov 2015 11:58:42 +0000]
arm64: t210: config: enable Intel 82576 NIC driver

Bug 200144579

Change-Id: Ibadbd0418914844a1d6613cdf3a6bdb5c5eee785
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/834649
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoarm64: ptm: ignore PTM config file register reading
Chun XU [Fri, 13 Nov 2015 10:28:06 +0000]
arm64: ptm: ignore PTM config file register reading

Reading T210 A57 PTM registers causes kernel hang
when PTM has not been power.

This is a WAR.

Bug 200146743

Change-Id: I0c3d847c737eedfaacd600813a581c34bc819e51
Signed-off-by: Chun XU <chunx@nvidia.com>
Reviewed-on: http://git-master/r/833592
Reviewed-by: Allen Yu <alleny@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agowireless: bcmdhd: Set/get dhd_msg_level using module param
Srinivas Ramachandran [Tue, 13 Oct 2015 22:13:58 +0000]
wireless: bcmdhd: Set/get dhd_msg_level using module param

Android utility tools to configure the msg_level in the DHD are
not available for platforms like L4T. Allow the msg_level variable
as a module param so that it can be configured at runtime via sysfs

Bug 1686560

Change-Id: Ibc480bd6eebea446ba453e2e58c37d1744cfb2a9
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/817239
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/834306
Tested-by: Nagaraj Annaiah <nannaiah@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoDNI: nvdec: Enable nvdec clock forever for foster
Soumen Kumar Dey [Thu, 15 Oct 2015 05:58:05 +0000]
DNI: nvdec: Enable nvdec clock forever for foster

This change does the following to make sure that NVDEC
registers can be written anytime for foster.

* Enable nvdec clock forever
* Disable nvdec powergating
* Disable host1x powergating

Bug 1599524

Change-Id: Ie87b4ec17c7246266ce024619f0424ea69667ec8
Signed-off-by: Soumen Kumar Dey <sdey@nvidia.com>
Signed-off-by: Mahesh Lagadapati <mlagadapati@nvidia.com>
Reviewed-on: http://git-master/r/818025
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agopower: extcon: set ac cable state true always
Venkat Reddy Talla [Tue, 17 Nov 2015 11:14:33 +0000]
power: extcon: set ac cable state true always

Add support to set ac cable state true always
based on DT property
power-supply,default-ac-cable-connected

Bug 1690367

Change-Id: Ib2fabba59bfeecfb7201a447b26eb4a6ba6acc0f
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/833894
Tested-by: Murali Duggireddy <mduggireddy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoARM64: t210: foster: enable power supply extcon
Venkat Reddy Talla [Mon, 16 Nov 2015 10:16:20 +0000]
ARM64: t210: foster: enable power supply extcon

Enabling power supply extcon interface to report
input cable type from kernel to framework layer,
adding power-supply,default-ac-cable-connected
property to set ac cable state true always.

Bug 1690367

Change-Id: I260dc64fd4126536871aebb3a94e8810ebc1ffff
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/833239
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Murali Duggireddy <mduggireddy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agodrivers: misc: add switch for therm_est_activ
Hyungwoo Yang [Thu, 16 Jul 2015 04:25:01 +0000]
drivers: misc: add switch for therm_est_activ

add sysfs node for switching on/off therm_est activator.

Bug 1491412

Change-Id: I723bf6f5520a40c8c7c5cc5d0b9c51f9a023d964
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/770802
(cherry picked from commit 2cd27254cce721fb495b1098d6f6c871dca06687)
Reviewed-on: http://git-master/r/779917
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wen Yi <wyi@nvidia.com>
Tested-by: Wen Yi <wyi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 23f5242e72b04cec4c290acb4b10629942faf900)
Reviewed-on: http://git-master/r/817233
Reviewed-by: Eric Chuang <echuang@nvidia.com>

3 years agoarm64: max77620: jetson-cv: update fps-time-period
Shreshtha SAHU [Sat, 7 Nov 2015 05:50:42 +0000]
arm64: max77620: jetson-cv: update fps-time-period

Fix fps-time-period for Jetson-CV board as provided by syseng

Bug 200149755

Change-Id: Ia1be5dc98143b6b25821235381dbd191b3803893
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/829392
(cherry picked from commit cdddc523aafea574cd2d83d6f3455ae403b27354)
Reviewed-on: http://git-master/r/833320
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoinput: touch: sharp: use singlethreaded wq.
David Pu [Thu, 12 Nov 2015 04:22:21 +0000]
input: touch: sharp: use singlethreaded wq.

create_singlethread_workqueue has much short and
consistent latency compared to alloc_workqueue.
It fixes random line break issue.

Bug 1704546

Change-Id: I6de67ba353b19b03c983f7867bf3b045ad01d2b7
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/832081
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoasoc: es755: fix pop sound in passthru playback
Srinivas Anne [Thu, 12 Nov 2015 04:07:23 +0000]
asoc: es755: fix pop sound in passthru playback

Hawkeye FW version:
M90.5.2.12_B61366_NVidia_Hawkeye_MCFFillIn_STREAM.bin

Loki FW version:
M90.5.2.12_B61668_NVidia_Loki_MCFFillIn_STREAM.bin

Change Summary:
fixed POP sound in DHWPT playback when capture starts.
Fixed audio mute issue during device switch
fixed Commit warnings.

Bug 200118587

Change-Id: Ifb53b118cfd75fcf8fdf8820b8b7ce387c7dfa17
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/832080
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoinput: touch: sharp: turn off TOUCH_CLK by default.
David Pu [Wed, 11 Nov 2015 03:49:14 +0000]
input: touch: sharp: turn off TOUCH_CLK by default.

TOUCH_CLK is only required for active stylus which is not supported yet.

Bug 1704518
Change-Id: Ic07e5163d68709c3fd1654f0cda9345108a19087
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/831594
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

3 years agoASoC: Remove ignore_suspend in OFFLOAD dai-link
Diwakar Paliwal [Mon, 16 Nov 2015 11:26:03 +0000]
ASoC: Remove ignore_suspend in OFFLOAD dai-link

This assignment of .ignore_suspend in DAI_LINK_I2S_OFFLOAD_BE
was preventing the disabling of irq in suspend_pre calls.
As a result the device was not entering L0 state.
Removing this allowes the irq to be disabled if the suspend
is allowed.

Bug 200152820

Change-Id: Ief2648b020646263e05ffc295989497184d3bf93
Signed-off-by: Diwakar Paliwal <dpaliwal@nvidia.com>
Reviewed-on: http://git-master/r/833280
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

3 years agotegra: dc: hdmi: Add fallback 720p 60Hz edid
Ivan Raul Guadarrama [Thu, 12 Nov 2015 22:43:45 +0000]
tegra: dc: hdmi: Add fallback 720p 60Hz edid

In case the EDID read procedure fails after all retries,
use a fallback 720p 60Hz edid to provide the default mode.

Bug 200144977

Change-Id: Ic2c422165cf9cb744b7f6521aeb1cd48e3677686
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/832409
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoARM: tegra: Change FPS delay time
Anshul Jain [Wed, 28 Oct 2015 22:20:41 +0000]
ARM: tegra: Change FPS delay time

This changes FPS delay for CPU and SOC rails to go down
from 2.56ms to 5.12

Bug 1692738, 200143975

Change-Id: I04b69436c1ec8dc9622bdf1d9945f53fd9887d81
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/824354
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agomedia: platform: tegra: Update IMX132 1080p mode
Frank Chen [Mon, 6 Jul 2015 21:58:25 +0000]
media: platform: tegra: Update IMX132 1080p mode

Make IMX132 1080p mode a true 1920x1080 mode

Bug 1662157

Change-Id: I91ab498b24df127c0a3705064a52b6626d458377
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/820590
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

3 years agogpu:nvgpu: railgate during shutdown
Seshendra Gadagottu [Mon, 18 May 2015 23:34:11 +0000]
gpu:nvgpu: railgate during shutdown

Rail-gate gpu rail during shutdown

Bug 1643199
Bug 200143203

Reviewed-on: http://git-master/r/744080
(cherry picked from commit d5c4fc3db39cb771722f11271ba1cb43a72bfada)

Change-Id: I736e7f730fc15eb6f13f6ab18263db5a75e1d577
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/814597
(cherry picked from commit 32e42a8672d39cec66448596609b9cb8d7d0d72e)
Reviewed-on: http://git-master/r/832241
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agomedia: platform: tegra: Update OV5693 THS_PREPARE
Frank Chen [Fri, 10 Jul 2015 22:53:41 +0000]
media: platform: tegra: Update OV5693 THS_PREPARE

Update OV5693 THS_PREPARE settings to meet MIPI
spec

Bug 200114169

Change-Id: I94b7dfc20a590d39577e200dc85d372cef9d5e6b
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/769044
(cherry picked from commit 3e565be6ee8cce8b01c29899bab6562c6cbb829b)
Reviewed-on: http://git-master/r/806105
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anton Kondratenko <akondratenko@nvidia.com>
Tested-by: Anton Kondratenko <akondratenko@nvidia.com>
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

3 years agortc: max77620: change sysfs interface permission to 666
Laxman Dewangan [Fri, 13 Nov 2015 08:13:13 +0000]
rtc: max77620: change sysfs interface permission to 666

Change the permission of sysfs interface for enabling/disabling
prints in suspend to 666 so that user space can change it
per requirements.

bug 200148303

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

3 years agoarm64: t210: Enable the MCC in WiFi
kraghavender [Thu, 5 Nov 2015 19:18:27 +0000]
arm64: t210: Enable the MCC in WiFi

Remove the Disable MCC config

Bug 1693638

Change-Id: I66e2d0140edeeb3e3a2d360f12840e0fd6330811
Signed-off-by: Kasturi Raghavender <kraghavender@nvidia.com>
Reviewed-on: http://git-master/r/828574
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoARM: dts: disable id detection on vbus interrupt
Venkat Reddy Talla [Thu, 5 Nov 2015 08:12:01 +0000]
ARM: dts: disable id detection on vbus interrupt

Removing property enable-id-detect-on-vbus to disable
id detection check on vbus interrupt.

Bug 200145974

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

3 years agosecurity: tlk_driver: kernel mem type allocation
sujeet baranwal [Tue, 27 Oct 2015 19:05:47 +0000]
security: tlk_driver: kernel mem type allocation

Flags added to pass kernel allocated buffer to secure world

bug 1647060

Change-Id: Ic65fc20c894efdaecdfa47471881d06f402b9514
Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com>
Reviewed-on: http://git-master/r/823670
Reviewed-by: Daniel Solomon <daniels@nvidia.com>
Tested-by: Daniel Solomon <daniels@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agosecurity: tlk_driver: vrr authentication
sujeet baranwal [Wed, 28 Oct 2015 20:08:13 +0000]
security: tlk_driver: vrr authentication

Upon hpd, vrr authentication protocol is initated and tz
calls are made to validate the connection.

bug 1647060

Change-Id: I3755facc05f81f0aa6cc264847d5ab6a72a7cc17
Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com>
Reviewed-on: http://git-master/r/819008
Reviewed-by: Daniel Solomon <daniels@nvidia.com>
Tested-by: Daniel Solomon <daniels@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agovideo: tegra: dc: add hdmivrr authentication
Marvin Zhang [Thu, 10 Sep 2015 19:25:44 +0000]
video: tegra: dc: add hdmivrr authentication

bug 1637861

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

3 years agovideo: tegra: dc: add ddcci i2c client
Marvin Zhang [Fri, 21 Aug 2015 19:59:32 +0000]
video: tegra: dc: add ddcci i2c client

bug 1637861

Change-Id: I4ee264421986cafcd00dab855fcea283465d9caa
Signed-off-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-on: http://git-master/r/810589
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Solomon <daniels@nvidia.com>
Tested-by: Daniel Solomon <daniels@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoMerge remote-tracking branch 'origin/dev/darcy-bringup_merge_on_rel-24' into my_rel24
Daniel Fu [Thu, 12 Nov 2015 22:17:49 +0000]
Merge remote-tracking branch 'origin/dev/darcy-bringup_merge_on_rel-24' into my_rel24

Change-Id: If80e00de082a42a5791c88c71c72d3cfef47bddf
Signed-off-by: Daniel Fu <danifu@nvidia.com>

3 years agodvfs: tegra: Add relationship between CPU and GPU
Anshul Jain [Fri, 6 Nov 2015 22:56:39 +0000]
dvfs: tegra: Add relationship between CPU and GPU

Darcy board has same GPU and CPU rail, that means CL DVFS should adjust
Vmin based on the requirement from GPU DVFS.

This change adds relationship between CPU and GPU, GPU DVFS can now call
a set function in CL_DVFS that can force the new voltage requirement on
CL_DVFS.

Bug 1669968

Change-Id: I9b4727fa2cc43874ea21574567463017730cd605
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/828694
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoarm64: dts: add darcy in compatible machine
Anshul Jain [Fri, 6 Nov 2015 22:54:54 +0000]
arm64: dts: add darcy in compatible machine

Need this to detect Darcy board from platform tegra dvfs code.

Bug 1669968

Change-Id: I76dfdbeae185642b5dda58cea50c60a1c03770a1
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/829281
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>

3 years agogpu: nvgpu: Add sysfs node to enable rail gating
Seshendra Gadagottu [Thu, 24 Sep 2015 20:16:33 +0000]
gpu: nvgpu: Add sysfs node to enable rail gating

Add sysfs node "railgate_enable" to enable
gpu railgating dynamically.

Bug 1552469

Reviewed-on: http://git-master/r/804746

Change-Id: Ib4e1e5b7c61e09e1c6aa7a136990a278eb661f70
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
(cherry picked from commit 53d76d1d1576a96c70f66b744411d2909ec8414f)
Reviewed-on: http://git-master/r/828746
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agogpu: nvgpu: unrailgate only if pm_domains not enabled
Deepak Nibade [Tue, 20 Oct 2015 11:24:22 +0000]
gpu: nvgpu: unrailgate only if pm_domains not enabled

Currently we unrailgate the GPU if railgating is not enabled
or pm_domains are not enabled

But in case if railgating is not enabled and pm_domains
are enabled, we explicitly unrailgate GPU in gk20a_pm_init()
and then runtime PM unrailgates it again when first user
space request arrives - setting unrailgate refcount to 2

Now for gk20a_do_idle(), we need to railgate the GPU in
fist call but that does not happen since unrailgate
refcount != 1

hence, in case railgating is not enabled, we should
unrailgate the GPU from only one place i.e. when first user
space request arrives

Bug 200142989
Bug 200137963
Bug 1678611

Reviewed-on: http://git-master/r/820321
Change-Id: I16e7c933efe2aa807b0fe610131707bffde5f9f6
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
(cherry picked from commit 452a1ff8da8e3f47caed2371440f9ad150bf8699)
Reviewed-on: http://git-master/r/828745
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoarm64: boot: dts: fix wifi enalbe issue
Daniel Fu [Thu, 5 Nov 2015 05:16:37 +0000]
arm64: boot: dts: fix wifi enalbe issue

- Remove foster gpio dtsi file
- Defalut gpio dtsi file should be included before include coomms dtsi file,
  to enalbe wifi correctly.

Bug 1695353

Change-Id: I2655cf96f6801016444d8a6a04c859fe1689a025
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/828257
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoarch: arm64: boot: dts: fix darcy commond dtsi
Martin Gao [Sun, 25 Oct 2015 04:12:37 +0000]
arch: arm64: boot: dts: fix darcy commond dtsi

- add tegra210-platforms/tegra210-foster-e-prods.dtsi
- add tegra210-platforms/tegra210-foster-e-gpio-p2530-0930-e00.dtsi
- add sdhci default-drv-type

All are included in tegra210-foster-e-p2530-common.dtsi and should
be included for darcy as well.

Bug 1695353

Change-Id: I60b8be59ecc29446f64023e10988012ac7567f7c
Signed-off-by: Martin Gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/825110
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>

3 years agotegra21: dvfs: Add 0x87 SKU
Anshul Jain [Wed, 28 Oct 2015 19:07:54 +0000]
tegra21: dvfs: Add 0x87 SKU

Add sku for Darcy that is capable of CPU 2Ghz at 1.15V

Bug 1669968

Change-Id: Ie6eac1a744760d0bf8afc1d2dd76c270aaf73ba1
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/825588
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>

3 years agoarch: arm64: dts: INA3221 config
Anshul Jain [Mon, 26 Oct 2015 21:32:47 +0000]
arch: arm64: dts: INA3221 config

Change INA3221 config for Darcy.
Rail 0: Not connected
Rail 1: HDMI and USB (VDD_IO)
Rail 2: System power

Change-Id: Ieb0bca5bad38f8c2261b45adec3da11989026ea9
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/825587
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoarm64: dts: enable pwm-leds for darcy
Daniel Fu [Sat, 31 Oct 2015 02:22:07 +0000]
arm64: dts: enable pwm-leds for darcy

Bug 1695353

Change-Id: I46b2f6970fb8a5b9ba814ab49fe37e0ab4306062
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/825786
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoarch: arm64: boot: dts: enable pci boot detect delay
Martin Gao [Sat, 24 Oct 2015 02:53:25 +0000]
arch: arm64: boot: dts: enable pci boot detect delay

- allow pci to detect attached device at a deferred time
- add minimum delay of 1000 miliseconds before card detection
  during boot after PCIe power and clock are stable.

Bug 1695353

Change-Id: Iccf3e443399e70eca1b620c08976878965f6deeb
Signed-off-by: Martin Gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/825109
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>

3 years agoarch: arm64: dts: darcy: add darcy identifier
Sang-Hun Lee [Fri, 23 Oct 2015 00:08:58 +0000]
arch: arm64: dts: darcy: add darcy identifier

Change-Id: I7186aa0fa3d54b81c4240778bde25009d520aa04
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/825106
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>

3 years agodrivers: net: ethernet: fix source realtek driver
Martin Gao [Sat, 24 Oct 2015 02:45:21 +0000]
drivers: net: ethernet: fix source realtek driver

- use config NET_VENDOR_REALTEK to decide whether or not
  to include realtek driver codes into compile
- enable only r8168 realtek driver for darcy

Bug 1695353

Change-Id: I2bcef80382c6f1fe98f0899291ee964b87bd42cc
Signed-off-by: Martin Gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/825108
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>