5 years agoftrace: Add arm64 support to recordmcount
Peng Du [Tue, 1 Apr 2014 19:42:13 +0000]
ftrace: Add arm64 support to recordmcount

Change-Id: Iabda40bedbcdfc26fdf4282ce3752ae887400817
Signed-off-by: Peng Du <pdu@nvidia.com>
Signed-off-by: Noah Imam <nimam@nvidia.com>
Change-Id: I58e5131a05a66d3ba21cb232fb1e21b613c04753
Reviewed-on: http://git-master/r/451086
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm64: Optimize jump label implementation for ARM64
Peng Du [Tue, 1 Apr 2014 22:05:30 +0000]
arm64: Optimize jump label implementation for ARM64

This patchset tries to optimize arch specfic jump label implementation
for ARM64 by dynamic kernel text patching.

To enable this feature, your toolchain must support "asm goto" extension
and "%c" constraint extesion.

It has been tested on ARM Fast mode and a real hardware platform.

Jiang Liu (7):
  arm64: introduce basic aarch64 instruction decoding helpers
  arm64: introduce interfaces to hotpatch kernel and module code
  arm64: move encode_insn_immediate() from module.c to insn.c
  arm64: introduce aarch64_insn_gen_{nop|branch_imm}() helper functions
  arm64, jump label: detect %c support for ARM64
  arm64, jump label: optimize jump label implementation
  jump_label: use defined macros instead of hard-coding for better
    readability

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Jiang Liu <liuj97@gmail.com>

Change-Id: I2ccd72995852193d491b342787c8e5c1e7b4c30d
Signed-off-by: Peng Du <pdu@nvidia.com>

Conflicts:
arch/arm64/kernel/Makefile

Signed-off-by: Noah Imam <nimam@nvidia.com>
Change-Id: Ieeca17c1326fc71918d66fe56046eebd903f9bd2
Reviewed-on: http://git-master/r/451085
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mark Peters <mpeters@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm64: Add 'notrace' attribute to unwind_frame() for ftrace
Peng Du [Tue, 1 Apr 2014 19:41:43 +0000]
arm64: Add 'notrace' attribute to unwind_frame() for ftrace

Change-Id: I5f1b9347c77147065ecc8eed547db9f313e94022
Signed-off-by: Peng Du <pdu@nvidia.com>
Signed-off-by: Noah Imam <nimam@nvidia.com>
Reviewed-on: http://git-master/r/391455
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mark Peters <mpeters@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm64: add __ASSEMBLY__ in asm/insn.h
Peng Du [Tue, 1 Apr 2014 22:19:36 +0000]
arm64: add __ASSEMBLY__ in asm/insn.h

Change-Id: I6e0653d8e4e68368b9bffb9e94ac428774ccecd9
Signed-off-by: Peng Du <pdu@nvidia.com>
Signed-off-by: Noah Imam <nimam@nvidia.com>
Reviewed-on: http://git-master/r/391454
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mark Peters <mpeters@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm64: dts: grenada: enable uartc driver
Matt Craighead [Mon, 4 Aug 2014 18:37:12 +0000]
arm64: dts: grenada: enable uartc driver

UARTC was listed here but the entry was still incomplete.  Fix it
to be consistent with how UARTB is handled.

Change-Id: Ib107f1b435bea187b013adf448e16435fa406920
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/451043
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agotegra: thermal: soctherm: driver uses device tree
Diwakar Tundlam [Wed, 6 Aug 2014 23:52:56 +0000]
tegra: thermal: soctherm: driver uses device tree

Ported all original platform configuration that came from board files
to device tree. Soctherm driver parses and gets all initialization
parameters such as clock frequencies, fuse work-arounds, and tsosc
setup parameters from soctherm dt-node.

Bug 200004664

Change-Id: I423c76ac2a1ff1ee4499de13bf8d00c4bfc69674
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/453717

5 years agovideo: tegra: dc: Fix and refactor FRAME_END_INT
Daniel Solomon [Tue, 5 Aug 2014 21:48:42 +0000]
video: tegra: dc: Fix and refactor FRAME_END_INT

- Fix a conflict with other DC interrupt masks
  when the DSI driver waits on FRAME_END_INT
- Move generic FRAME_END_INT mask/unmask and
  wait-for functions to dc.c

Bug 1534724

Change-Id: I40e26ada2f0494782979e32c1a22906361b214b5
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/451186
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoARM: tegra: enable GPIO and ADC_JACK extcon
Laxman Dewangan [Tue, 12 Aug 2014 13:01:57 +0000]
ARM: tegra: enable GPIO and ADC_JACK extcon

Enable GPIO and ADC_JACK extcon driver for gpio based and
ADC/GPIO based extcon driver.

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

5 years agoextcon: gpio: add DT binding doc for extcon-gpio
Laxman Dewangan [Tue, 12 Aug 2014 12:58:02 +0000]
extcon: gpio: add DT binding doc for extcon-gpio

Add DT binding doc for the extcon gpios properties.

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

5 years agoextcon: gpio: support for DT
Laxman Dewangan [Tue, 12 Aug 2014 12:57:15 +0000]
extcon: gpio: support for DT

Add DT support for extcon-gpio driver.

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

5 years agoarm: tegra: Remove sysedp_update_limits
Steve Rogers [Tue, 5 Aug 2014 18:44:34 +0000]
arm: tegra: Remove sysedp_update_limits

Bug 1536691

This change simplifies the code by getting the sysedp
limit only during a clock change request.

Change-Id: Iae2d9c327e1de2e978635bbbb345c443683ff512
Signed-off-by: Steve Rogers <srogers@nvidia.com>
Reviewed-on: http://git-master/r/453142
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoarm: tegra: Add EDP support for CPULP
Steve Rogers [Thu, 24 Jul 2014 20:46:51 +0000]
arm: tegra: Add EDP support for CPULP

Bug 1536691

This change modifies the way that cpu-tegra.c and edp.c
interact to implement CPU regulator EDP management.
Rather than relying on a a cached table of EDP-limited
frequencies, cpu-tegra.c calls edp.c each time it needs
to know an EDP-limited frequency. With each call,
cpu-tegra passes in a parameter indicating which CPU
cluster to use.

Change-Id: I3f9672260e8e62aa0250eb9902701d120724056a
Signed-off-by: Steve Rogers <srogers@nvidia.com>
Reviewed-on: http://git-master/r/441999
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoarm: tegra: Remove unused sysedp limits code
Steve Rogers [Tue, 5 Aug 2014 18:23:40 +0000]
arm: tegra: Remove unused sysedp limits code

Bug 1536691

Change-Id: I8a5be1f18057925b4e164c2a51c947113781b841
Signed-off-by: Steve Rogers <srogers@nvidia.com>
Reviewed-on: http://git-master/r/453130
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agommc: tegra: Dump more regs when SDMMC errors seen
R Raj Kumar [Mon, 4 Aug 2014 05:23:31 +0000]
mmc: tegra: Dump more regs when SDMMC errors seen

Dump Tap delay and Trim delay values if any SDMMC
errors are seen.

Change-Id: Ic8e95fb440f53aeabbc2a311289de7cf5092aa2b
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/450742
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM64: DT: tegra210: Update pinctrl settings for SDMMC
R Raj Kumar [Wed, 6 Aug 2014 06:57:19 +0000]
ARM64: DT: tegra210: Update pinctrl settings for SDMMC

Updated pinctrl settings for SDMMC1 and SDMMC3.

Bug 1505960

Change-Id: I322111ea2d58be27384c17723c73400e5f07d3be
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/453356
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agommc: tegra: Update pad control register settings
R Raj Kumar [Thu, 26 Jun 2014 10:49:45 +0000]
mmc: tegra: Update pad control register settings

- Updated Schmitt Trigger (E_SCHMT) settings for
SDMMC1 and SDMMC3 devices. The E_SCHMT value should
be 1'b0 at 3.3V and 1'b1 at 1.8V operation.

- Updated spare register and IO trim control register
settings for all SDMMC controllers

Bug 1505960

Change-Id: If818bbc9a438ec80ca2d228c12a8db0d538c3425
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/453998
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agopower: reset: max77620: print NVERC register
Shardar Shariff Md [Wed, 23 Jul 2014 06:39:50 +0000]
power: reset: max77620: print NVERC register

Print the Non-Volatile Power-OFF Event Recorder
register

Bug 1524176

Change-Id: I6cf7ccc089ec88f48bcb5508531da9d828118304
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/441057
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agogpu:nvgpu: update aelpg parameter
Mahantesh Kumbar [Tue, 12 Aug 2014 08:41:22 +0000]
gpu:nvgpu: update aelpg parameter

Updated aelpg parameter APCTRL_CYCLES_PER_SAMPLE_MAX_DEFAULT
default value to 200

Bug 1536384

Change-Id: I090e50d0025f16c006429455d161bee26fc64173
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/455440
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoarch: arm: dts: vcm2: disable SDMMC1(wifi) for VM2
Seshagir.H [Mon, 11 Aug 2014 08:47:08 +0000]
arch: arm: dts: vcm2: disable SDMMC1(wifi) for VM2

bug 200023956

Change-Id: Ie9b6fb8d8e7885a65993350dd355f9040e1045b1
Signed-off-by: Seshagir.H <sholi@nvidia.com>
Reviewed-on: http://git-master/r/454931
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agowatchdog: max77620: enable watchdog for interposer and t210-ers.
Hayden Du [Tue, 12 Aug 2014 05:05:02 +0000]
watchdog: max77620: enable watchdog for interposer and t210-ers.

Change-Id: I42c1d6e15eb117910084447d39353ef252d3ad67
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/455361
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agousb: misc: usb_nvshieldled: Support dual LEDs
Ben Goska [Fri, 7 Mar 2014 23:07:47 +0000]
usb: misc: usb_nvshieldled: Support dual LEDs

-Hardware has changed LEDs to have two different
groups. Change the driver accordingly.
-Added a brightness scaling table for NV button LED.

Bug 1475380
Bug 1475411

Change-Id: I87e52b1627c58268e90af484436d16a82fd90f1f
Signed-off-by: Ben Goska <bgoska@nvidia.com>
(cherry picked from commit 0d386cb0ce5b65169b7334090b7fecc43bee6d87)
Reviewed-on: http://git-master/r/388035
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Tao Xie <txie@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/379191
Reviewed-by: Ankita Garg <ankitag@nvidia.com>
Tested-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: Set TEGRA_XHCI_ENABLE_CDP_PORT config
Petlozu Pravareshwar [Mon, 11 Aug 2014 12:05:32 +0000]
ARM: tegra: Set TEGRA_XHCI_ENABLE_CDP_PORT config

Set TEGRA_XHCI_ENABLE_CDP_PORT config variable in
T124 and T132 defconfigs.

Bug 1522728

Change-Id: Ica85b55f9586481f5b4cb23d6008640acee41a54
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/454911
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoxhci: tegra: enable CDP declaration for host ports
Petlozu Pravareshwar [Mon, 11 Aug 2014 11:52:30 +0000]
xhci: tegra: enable CDP declaration for host ports

Enable CDP declaration for USB 2.0 utmi host ports.

Also if CDP config is set, don't power down the
bias pad during ELPG entry. This is to ensure CDP
works even after ELPG exit.

Bug 1522728

Change-Id: I6ad534c955dbff73957f4d793f88de68983aaff9
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/452997
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: tegra:move mach/gpio-tegra.h to platform_data
Shravani Dingari [Thu, 7 Aug 2014 07:53:41 +0000]
arm: tegra:move mach/gpio-tegra.h to platform_data

move mach/gpio-tegra.h to include/linux/platform_data

Bug 200022780

Change-Id: I09a2acb680a6abaaeb74fb1b0aea66f800ac5369
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/453864
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoRevert "arm64: tegra: T210: Add SATA support"
Sachin Nikam [Tue, 12 Aug 2014 07:18:44 +0000]
Revert "arm64: tegra: T210: Add SATA support"

This reverts commit aa1006c31291715a22aea16d4c5fd0d554f30123.

Change-Id: If19164897c38b0290f1a652a5766851da3fbbdab
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/455405

5 years agoarm: tegra13: add PMU device to tegra132.dtsi
Eric Miao [Sat, 9 Aug 2014 01:18:40 +0000]
arm: tegra13: add PMU device to tegra132.dtsi

Bug 1542680

With below commit:

    arm: tegra12: Support arm-pmu device using DT

    bug 1527003

    Change-Id: I276b627f44a0812a6fee5101d3fb6bf49239ff28
Signed-off-by: Vipin Kumar <vipink@nvidia.com>

All original tegra_pmu_device(s) have been moved out of the board files
into the device tree.  However, T132 is missing from that change, which
causes perf to fail.

Change-Id: I59098dfeb98b865d22e11afc42ef25a00411c087
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/454701
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agogadget: tegra: null terminate tegra_udc_of_match
JC Kuo [Thu, 31 Jul 2014 06:54:54 +0000]
gadget: tegra: null terminate tegra_udc_of_match

"struct of_device_id" has to be terminated with NULL entry.

bug 200025579

Change-Id: Ibe897cb168cd1eaaac60808d7af2540463470f78
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/449164
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agostaging: ozwpan: consume all rx skb
Vinayak Pane [Wed, 9 Jul 2014 01:44:17 +0000]
staging: ozwpan: consume all rx skb

All rx skb should be consumed or dropped, if left
unconsumed it leads to netdev becoming stale situations.
Check net state before submitting tx skb.

Re-arrange oz_remove_binding() function to make sure PDs
stop before net intf packet_type callbacks are removed.

Remove old WAR to recover from enumeration failure.

Bug 1522708

Change-Id: Id13e837c9ed6941f03404762203ad2841e9af24f
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
(cherry picked from commit c2022c5288c83ad3dc31987157bf152f16d85fb4)
Reviewed-on: http://git-master/r/440892
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoclock: tegra: Skip over-clock warning on bus users
Alex Frid [Mon, 11 Aug 2014 04:07:56 +0000]
clock: tegra: Skip over-clock warning on bus users

Don't issue boot over-clock warning for virtual shared bus user clocks.
If underlying bus can not be scaled into operating range, there will be
a warning on bus itself, and user warning is redundant; if bus can be
scaled down, all users will be scaled with the bus, and user warning is
unnecessary.

Change-Id: I9e08993c004028ae1eada95d46fcaf998136fa91
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/454879
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Tested-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoclock: tegra21: Restore "pll_u" clock name
Alex Frid [Mon, 11 Aug 2014 03:46:21 +0000]
clock: tegra21: Restore "pll_u" clock name

For backward compatibility with test scripts renamed PLLU VCO output
to "pll_u" from "pll_u_vco".  Removed duplicate "pll_u" clock that is
no longer needed.

Change-Id: I963dba415e3cd888957159304e2782a8548ebfd6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/454878
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Tested-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agovi: support vi watchdog
Chien-Yu Chen [Thu, 31 Jul 2014 17:22:33 +0000]
vi: support vi watchdog

Enable the VI ISR to handle interrupts from VI watchdog timers.
Also correct the interrupt value for ISPB on T210.

bug 1508285

Change-Id: I39ddb4df7a39f63f6b7e8d4ccdc6fe89e921a440
Signed-off-by: Chien-Yu Chen <chichen@nvidia.com>
Reviewed-on: http://git-master/r/449378
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agomisc: nct72: add DT support
Darren Sun [Wed, 6 Aug 2014 13:29:20 +0000]
misc: nct72: add DT support

Bug 200008324
Change-Id: I4533ec3a46fa8e1f6d8bd5c0385dfa5a9f6eb32e
Signed-off-by: Darren Sun <darrens@nvidia.com>
Reviewed-on: http://git-master/r/448871
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Tested-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoarm: config: Enable XUSB host/device as default
HUI FU [Thu, 7 Aug 2014 23:59:46 +0000]
arm: config: Enable XUSB host/device as default

Change-Id: I12bf606f46f307897b4c829f5a153df97af1a84b
Signed-off-by: Hui Fu <hfu@nvidia.com>
Reviewed-on: http://git-master/r/454195
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoARM: tegra: t210ref: Add IMX214 and DW9714 support
David Wang [Fri, 1 Aug 2014 22:37:55 +0000]
ARM: tegra: t210ref: Add IMX214 and DW9714 support

Adding IMX214 and DW9714 power on sequence and platform
data to t210ref board file.

Bug 1534562

Change-Id: I71e075955e02a7a1d9b697561cbcafe5e741059d
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/450538
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Amey Asgaonkar <aasgaonkar@nvidia.com>
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Daniel Fu <danifu@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agomedia: platform: tegra: Modify modes for IMX214
David Wang [Wed, 30 Jul 2014 00:23:14 +0000]
media: platform: tegra: Modify modes for IMX214

Updating the mode tables for IMX214 sensor.

Bug 1534562

Change-Id: I78bdaa16d537a287033d2e355547a11b8bfab557
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/448626
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Amey Asgaonkar <aasgaonkar@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: tegra: update DFLL tune parameters
Ishwarya Balaji Gururajan [Thu, 17 Jul 2014 21:21:08 +0000]
ARM: tegra: update DFLL tune parameters

update tune1 from 0x99 to 0x95

bug 1442659

Change-Id: I8f6fb9b2400504d0884b322254082aa814bd8cb9
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com>
(cherry picked from commit 0d2ae575982f2f41a998cf949b99a89d8e394e8e)
Reviewed-on: http://git-master/r/453831
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: T132: Use PLLX tables from A01 for A02/A03
Ishwarya Balaji Gururajan [Tue, 5 Aug 2014 19:20:39 +0000]
ARM: T132: Use PLLX tables from A01 for A02/A03

Use PLLX tables from A01 for A02/A03

Bug 1442659

Change-Id: I996702bc537c03be1caf3222fef99143bb2a0d07
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com>
Reviewed-on: http://git-master/r/453149
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: T132: update CPU min to 800mV for all temp
Ishwarya Balaji Gururajan [Thu, 7 Aug 2014 20:17:45 +0000]
ARM: T132: update CPU min to 800mV for all temp

update CPU min to 800mV for all temperatures
update p4 revision to p4v18

bug 1442659

Change-Id: I5f42decbe7e182846df37b5667a0a43fb905b567
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com>
Reviewed-on: http://git-master/r/454109
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm: tegra: vcm30t124: add avp aux data
Ravi Chandra SV [Mon, 4 Aug 2014 06:14:39 +0000]
arm: tegra: vcm30t124: add avp aux data

Change-Id: I9ca44811cd1c6f491da4226bd7fcca7283fa440a
Signed-off-by: Ravi Chandra SV <ravichandrav@nvidia.com>
Reviewed-on: http://git-master/r/450777
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Nikhil Parab <nparab@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoarm: tegra: soctherm: revert reprogram suppression
Diwakar Tundlam [Wed, 6 Aug 2014 02:14:28 +0000]
arm: tegra: soctherm: revert reprogram suppression

Suppressing reprogramming HW registers saves very little but can
potentially result in suppressing all HW interrupts from soctherm.

Bug 1536511

Reviewed-on: http://git-master/r/453269
(cherry picked from commit d4428beada43ba8849eb98ec1e42e13e60fe5c4b)

Change-Id: I57a78f7955089c60dde89e81ed8d88d9f408f364
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/454255
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoArm: tegra: xhci: remove xhci from consumer list
Krishna Yarlagadda [Thu, 10 Jul 2014 06:41:19 +0000]
Arm: tegra: xhci: remove xhci from consumer list

DT handles have been created for all xhci boards
Removing xhci entries in consumer list for regulators.

Bug 200017056

Change-Id: I12cdaa019baf835973bed3d485ed2fc942d2fee9
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/436495
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: xhci: add regulator handles for loki
Krishna Yarlagadda [Mon, 11 Aug 2014 12:20:47 +0000]
ARM: tegra: xhci: add regulator handles for loki

Add regulator handles in dt for all loki and foster boards

Bug 200017056

Change-Id: I566747151c1e8efd9b9353b1a5bf5033c2873b61
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/455078
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoArm: tegra: xhci: add regulator handles
Krishna Yarlagadda [Tue, 22 Jul 2014 13:45:33 +0000]
Arm: tegra: xhci: add regulator handles

Add regulator handles in dt for laguna,
jetson, norrin and E1791

Bug 200017056

Change-Id: Icdf6cc689f7be747ad47a32aba104f185579383c
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/440781
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoArm: tegra: xhci: add regulator handles for ardbeg
Krishna Yarlagadda [Tue, 22 Jul 2014 13:44:37 +0000]
Arm: tegra: xhci: add regulator handles for ardbeg

Add regulator handles in dt for all ardbeg boards

Bug 200017056

Change-Id: I283e949c66af044bc58add7162e635897bf4246f
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/440780
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoArm: tegra: xhci: add regulator handles for TN8
Krishna Yarlagadda [Tue, 22 Jul 2014 13:40:05 +0000]
Arm: tegra: xhci: add regulator handles for TN8

Add regulator handles in dt for all TN8 boards

Bug 200017056

Change-Id: Ic3b7b53e9e09372b0305e49f14cf3af7d528bbdf
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/440779
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm64: dts: t210: clean up regulator for sensors
Daniel Fu [Wed, 30 Jul 2014 13:59:25 +0000]
arm64: dts: t210: clean up regulator for sensors

Clean up the consumer entries for sensors.
Add regulator with phandle correctly.

Bug 200020855
Bug 200017096
Bug 200017074

Change-Id: I533e82802c3bc2d85e19b434f2df24631e59f96e
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/448874
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm64: config: tegra21: enabled tegra_dc
Matt Craighead [Wed, 6 Aug 2014 17:01:56 +0000]
arm64: config: tegra21: enabled tegra_dc

Bug 1487089

Change-Id: I67f60bb308e10305f682f726c5c5430e44aaaf93
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/453562
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm64: tegra132: fix hotplug in system resume case
Peng Du [Wed, 6 Aug 2014 23:22:26 +0000]
arm64: tegra132: fix hotplug in system resume case

* poll secondary_holding_pen to handshake with CPU0
* clear suspend_in_progress flag after out of LP0

Change-Id: I0f60f38adf86a6f2d16ad38d035b86f668759a9b
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/453702
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agotegra: added support for HDCP2.2 in kernel
Sharath Sarangpur [Wed, 23 Jul 2014 01:32:52 +0000]
tegra: added support for HDCP2.2 in kernel

Added support for HDCP 2.2 over HDMI in kernel.

bug 1436257

Change-Id: I845473e99e2e615aa3aecb99f15dd5dd876b4c69
Signed-off-by: Sharath Sarangpur <ssarangpur@nvidia.com>
Reviewed-on: http://git-master/r/454124
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agogpu: disable cyclestats whitelist in debug mode
Kirill Artamonov [Mon, 11 Aug 2014 08:43:38 +0000]
gpu: disable cyclestats whitelist in debug mode

Disable cyclestats register whitelist check if allow_all is
enabled through sysfs.

bug 1523403
bug 1490388

Change-Id: Iaa1cf9a8fed18f1a379cac28128793fb33567f35
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/454932
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoiommu/tegra: smmu: remove obsolete nvidia,memory-clients
Hiroshi Doyu [Mon, 11 Aug 2014 08:01:02 +0000]
iommu/tegra: smmu: remove obsolete nvidia,memory-clients

Remove obsolete nvidia,memory-clients.

Change-Id: I06512b12e329af2d25bc117185ef00c2c942d422
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/454946

5 years agoARM: tegra: remove interposer battery related DTS file
Laxman Dewangan [Mon, 11 Aug 2014 12:12:50 +0000]
ARM: tegra: remove interposer battery related DTS file

Remove battery DTS file for T210 interposer as it is not used.

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

5 years agoata: ahci: T210 Specific changes to ahci-tegra
VENKAGAJAGADISH P [Fri, 1 Aug 2014 08:47:38 +0000]
ata: ahci: T210 Specific changes to ahci-tegra

Bug 200022458

Change-Id: I2338ade812b1524fae690a229f39f1fa01b94c1e
Signed-off-by: VENKATAJAGADISH P <vjagadish@nvidia.com>
Reviewed-on: http://git-master/r/450254
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agogpu: nvgpu: Set error notifier on PBDMA error
Terje Bergstrom [Mon, 11 Aug 2014 10:00:32 +0000]
gpu: nvgpu: Set error notifier on PBDMA error

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

5 years agobdi: avoid oops on device removal
Jan Kara [Thu, 3 Apr 2014 21:46:23 +0000]
bdi: avoid oops on device removal

After commit 839a8e8660b6 ("writeback: replace custom worker pool
implementation with unbound workqueue") when device is removed while we
are writing to it we crash in bdi_writeback_workfn() ->
set_worker_desc() because bdi->dev is NULL.

This can happen because even though bdi_unregister() cancels all pending
flushing work, nothing really prevents new ones from being queued from
balance_dirty_pages() or other places.

Fix the problem by clearing BDI_registered bit in bdi_unregister() and
checking it before scheduling of any flushing work.

Fixes: 839a8e8660b6777e7fe4e80af1a048aebe2b5977

Change-Id: Iba983ab2c40ab74f24484d44465741551a24de91
Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Derek Basehore <dbasehore@chromium.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Nilesh More <nmore@nvidia.com>
Reviewed-on: http://git-master/r/435485
Tested-by: Robert Shih <rshih@nvidia.com>
(cherry picked from commit eb19ff7db03c16091e041652f4c9f2a2a37f3007)
Signed-off-by: Gaurav <gauravsingh@nvidia.com>
Reviewed-on: http://git-master/r/441798
Reviewed-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoedp: sysedp: Fix debugfs files to prevent OOM
Timo Alho [Fri, 1 Aug 2014 12:32:21 +0000]
edp: sysedp: Fix debugfs files to prevent OOM

Bug 200022478

Add llseek and release operations to debugfs entries.

Change-Id: Ia4b2ff4aabd7f8df46c755cdbedfb9a9449dc243
Signed-off-by: Steve Rogers <srogers@nvidia.com>
Reviewed-on: http://git-master/r/450337
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra: Enable PMIC WDT based on odm data on T210 platform
Laxman Dewangan [Mon, 11 Aug 2014 09:17:53 +0000]
ARM: tegra: Enable PMIC WDT based on odm data on T210 platform

Enable PMIC WDT with odm data bit 17.

bug 200026795

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

5 years agoedp: sysedp: add initial_budget DT property
Steve Rogers [Thu, 7 Aug 2014 20:09:49 +0000]
edp: sysedp: add initial_budget DT property

Bug 1539990

This allows DT to specify an initial budget for the system.
If the system does not support a sysedp_batmon_calc device,
then this initial budget will be a fixed budget for the
system.  This allows sysedp to be enabled on systems without
batteries.

Change-Id: Idd2df9bab2aa12465a423acbb69beedf08cee897
Signed-off-by: Steve Rogers <srogers@nvidia.com>
Reviewed-on: http://git-master/r/454108
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoarm64: t210: e2190: enable spi4 dt node
Shardar Shariff Md [Sun, 3 Aug 2014 11:38:59 +0000]
arm64: t210: e2190: enable spi4 dt node

Enable spi4/touch dt node

Change-Id: I2dbda2836856eca33febf793c069568484c7f7be
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/450677
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoiommu/tegra: logical cleanup get_mapping
Hiroshi Doyu [Fri, 8 Aug 2014 11:03:58 +0000]
iommu/tegra: logical cleanup get_mapping

Logically clean up tegra_smmu_get_mapping().

Change-Id: Ib0363469c7a9d5e9e01b6decea91a393eb4c3234
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/454494
Reviewed-by: Automatic_Commit_Validation_User

5 years agoarm: tegra: remove sdhci.0 and wifi platfrom register
Seshagir.H [Mon, 4 Aug 2014 18:00:27 +0000]
arm: tegra: remove sdhci.0 and wifi platfrom register

sdhci and wifi driver are dt enabled.
remove platform register sdhci.0 and bcm wifi

bug 200023956

Change-Id: Icae0ddc9fd3a1c0b1fdc77310358d2ff8d8d76e3
Signed-off-by: Seshagir.H <sholi@nvidia.com>
Reviewed-on: http://git-master/r/441887
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoarm: tegra: vcm30t124: move wlan & sdhci.0 to dt
Seshagir.H [Mon, 4 Aug 2014 17:59:02 +0000]
arm: tegra: vcm30t124: move wlan & sdhci.0 to dt

bug 200023956

Change-Id: I9f5642c5c168379c68066d9f7e61375be0c6bf37
Signed-off-by: Seshagir.H <sholi@nvidia.com>
Reviewed-on: http://git-master/r/440465
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Tested-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoARM64: tegra: SDMMC2 Wifi enable
Bitan Biswas [Sun, 10 Aug 2014 17:33:43 +0000]
ARM64: tegra: SDMMC2 Wifi enable

SDMMC2 instance is for Wifi on E2190 and E2220

bug 200026657

Change-Id: I9611cbc3aefca34e9fd0049ec97052dd1e974e8f
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/454827
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>

5 years agoARM64: tegra13x: interposer: correct DT entries
Bitan Biswas [Fri, 8 Aug 2014 15:30:32 +0000]
ARM64: tegra13x: interposer: correct DT entries

T132 interposer DT changes are as follows:
- drive strength property name is corrected
- ocr mask setting as 0 also needs to be
  passed explicitly

bug 200028102

Change-Id: Ic03dc561106f436e6731126351db928b8737f622
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/454554
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>

5 years agoxhci: tegra: disable LPM support for SS hubs
Petlozu Pravareshwar [Wed, 6 Aug 2014 11:47:23 +0000]
xhci: tegra: disable LPM support for SS hubs

Disable the LPM support for the SS hubs
which are directly connected to the roothub.
This is to avoid the Firmware exception seen
on host controller.

Bug 1482765

Change-Id: I0b8bcfb660aa6da4ad3cf0d0d03d00da5378ff17
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/453445
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoxhci: tegra: Enable U1, U2 support for tegra xhci
Petlozu Pravareshwar [Fri, 25 Jul 2014 12:46:11 +0000]
xhci: tegra: Enable U1, U2 support for tegra xhci

LPM is supported on tegra xhci controller and is
enabled by setting the quirks XHCI_INTEL_HOST,
XHCI_LPM_SUPPORT.

Change-Id: I6b600be1bfb1f7300f314dfb1f5bdc0cef000f39
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/453444
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agogpu: sysfs mode for allowing access to registers
sujeet baranwal [Fri, 8 Aug 2014 00:04:18 +0000]
gpu: sysfs mode for allowing access to registers

Through this sysfs entry, the register space becomes accessible.
This is be accessible root-only.

Bug 1523403

Change-Id: Ia46f130a0cfd8324c5b675d19e7cbfba9dcb17ca
Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com>
Reviewed-on: http://git-master/r/454198
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agokernel: make controls access read only
Rahool Paliwal [Thu, 24 Jul 2014 15:54:30 +0000]
kernel: make controls access read only

This makes controls HDA Decode Capability, HDA Maximum PCM Channels
for HDA and AVP DMA channel id for Tegra Soc read only.

Bug 200023797

Change-Id: I3271470354b02f3d1b3aab8fa3963ad19d281f41
Signed-off-by: Rahool Paliwal <rpaliwal@nvidia.com>
Reviewed-on: http://git-master/r/441855
(cherry picked from commit a9cf57c92ca7044a9854f707220bf0cefc704d54)
Reviewed-on: http://git-master/r/453899
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agogpu: nvgpu: cde: Allow large surfaces
Arto Merilainen [Fri, 8 Aug 2014 19:49:17 +0000]
gpu: nvgpu: cde: Allow large surfaces

Currently cde swizzling application forces upper limit to surface
size. The limitation is artificial (i.e. nothing prevents shader
handling larger surfaces). Therefore, make the error condition a
warning.

Change-Id: I8f0cda7f2e9e9ecc90589e5a4b4091abcb513482
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/454591
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agogpu: nvgpu: gk20a: cde: Add base_post_divide param
Arto Merilainen [Fri, 8 Aug 2014 13:18:30 +0000]
gpu: nvgpu: gk20a: cde: Add base_post_divide param

This patch adds a parameter to communicate the compression bit
backing store address we write to the hardware.

Change-Id: Ibc0e3d8304e893ddf15b4e03b405c7d85a73e95b
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/454510
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agousb: gadget: mtp : Handle ioctl MTP_SEND_EVENT_32
Rohith Seelaboyina [Mon, 4 Aug 2014 09:17:56 +0000]
usb: gadget: mtp : Handle ioctl MTP_SEND_EVENT_32

MTP_SEND_EVENT_32 is defined for 64bit kernel.
This changes properly fixes handling of 32-64 bit
ioctl call for mtp_send_event.

Bug 200016543

Change-Id: Ife559ecb31d10fdfe17d34c8a132cbaf04b09082
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/450869
(cherry picked from commit baf0ecf975bafbe3031b81e3c1899e011c8e0a21)
Reviewed-on: http://git-master/r/454869
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: t210: Add extperiph3 in clk_init
Sudhir Vyas [Fri, 8 Aug 2014 13:43:35 +0000]
ARM: tegra: t210: Add extperiph3 in clk_init

Add extperiph3 clock for camera in clk_init_table
with default 150MHz freq.

Bug 200024195

Change-Id: I6e9896f6c870d90aa0ef41ee7fe8aa63652909c8
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/454515
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: correct ispb irq number
Ming Wong [Fri, 1 Aug 2014 17:58:55 +0000]
ARM: tegra: correct ispb irq number

Bug 1441127

Change-Id: I87fa2957bfc7e40f143f97cc1e1f5d0c6e1c4c12
Signed-off-by: Ming Wong <miwong@nvidia.com>
Reviewed-on: http://git-master/r/450402
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra12: vcm30t124: Update defconfig for Audio
Jinyoung Park [Tue, 5 Aug 2014 10:48:15 +0000]
ARM: tegra12: vcm30t124: Update defconfig for Audio

Enabled CONFIG_SND_DYNAMIC_MINORS for ALSA devices.
Disabled HD-Audio configs since VCM30 T124 platform doesn't support
audio through HDMI.

Bug 200018006
Bug 200026427

Change-Id: Id12c52a0236264f2ead3b9da3e604934cf3aecc1
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/452987
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoresource: Add device-managed request/release_resource()
Thierry Reding [Mon, 31 Mar 2014 07:56:15 +0000]
resource: Add device-managed request/release_resource()

Provide device-managed implementations of the request_resource() and
release_resource() functions. Upon failure to request a resource, the
new devm_request_resource() function will output an error message for
consistent error reporting.

Bug 200012096

Change-Id: Iab3fac7f6cf0a66a0be0e3bb383a035600bff4d1
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/450307
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoPCI: Simplify pcie_bus_configure_settings() interface
Bjorn Helgaas [Thu, 22 Aug 2013 03:24:44 +0000]
PCI: Simplify pcie_bus_configure_settings() interface

Based on a patch by Jon Mason (see URL below).

All users of pcie_bus_configure_settings() pass arguments of the form
"bus, bus->self->pcie_mpss".  The "mpss" argument is redundant since we
can easily look it up internally.  In addition, all callers check
"bus->self" for NULL, which we can also do internally.

This patch simplifies the interface and the callers.  No functional change.

Bug 1496843

Change-Id: I6f4b3c0e2bc359fb260e0f8e253dd737d9be4e25
Reference: http://lkml.kernel.org/r/1317048850-30728-2-git-send-email-mason@myri.com
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/449151
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoiommu/tegra: smmu: use correct print format %pad %pap
Hiroshi Doyu [Thu, 7 Aug 2014 09:55:34 +0000]
iommu/tegra: smmu: use correct print format %pad %pap

Use correct print format %pad(dma_addr_t) %pap(phys_addr_t)

Change-Id: Ib3dde7c20401879c34fa1ab2d17e2ff0ba4bdd86
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/453940

5 years agoiommu/tegra: smmu: ftrace mapping/unmapping
Hiroshi Doyu [Thu, 7 Aug 2014 06:26:22 +0000]
iommu/tegra: smmu: ftrace mapping/unmapping

Add ftrace to trace iommu mapping/unmapping

Change-Id: Ice7c6a549e3a94c62fab6e2d4f1eafee84b2012c
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/453829

5 years agovideo: tegra: nvmap: Kconfig cleanup
Hiroshi Doyu [Thu, 7 Aug 2014 08:54:51 +0000]
video: tegra: nvmap: Kconfig cleanup

- nvmap has its own menu page for readability.
- Remove unnecessary dependencies.

Change-Id: Ieae2c61d864531a302bf56f1fb06559fb1d0ba16
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/453898

5 years agovideo: tegra: nvmap: remove dependency on ARCH_TEGRA
Hiroshi Doyu [Thu, 7 Aug 2014 07:57:26 +0000]
video: tegra: nvmap: remove dependency on ARCH_TEGRA

Remove nvmap dependency on ARCH_TEGRA.

Change-Id: Icc288792626c695f6c32655c40a187fc2ec6aa75
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/453866

5 years agoarm64: tegra: T210: Enable USB host, otg configs
Petlozu Pravareshwar [Fri, 8 Aug 2014 09:35:40 +0000]
arm64: tegra: T210: Enable USB host, otg configs

Enable the USB host, otg and extcon config variables.

Change-Id: I89e1f3020375fcd0a9758f988ee94a9a3600ed8b
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/454405
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Tested-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: gadget: android: add default setup packet complete callback
Rakesh Bodla [Thu, 31 Jul 2014 11:58:37 +0000]
usb: gadget: android: add default setup packet complete callback

Adding the default setup packet complete callback in
android gadget driver. If this is not initialized in current
thread, initialization from previous thread calls are carried forward
and calling unnecessary complete callback is leading system to
undesirable state. Issue is seen when booted with accessory device.

Bug 200014405

Change-Id: Ib3075f65803e754138b47e7c705fa407ab6f1dea
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/449312
(cherry picked from commit 55e72fe9b4ebdd4a08e34a8e6cabaede4c23abe1)
Reviewed-on: http://git-master/r/450347
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoclock: tegra21: Add support for SDMMC2/4 LJ inputs
Alex Frid [Sun, 10 Aug 2014 06:44:54 +0000]
clock: tegra21: Add support for SDMMC2/4 LJ inputs

The same PLLC4 output branches are connected to the low jitter (LJ)
and divided inputs of the SDMMC2/4 source selection mux. The difference
is that clock from LJ input does not go through SDMMC2/4 divider. This
commit updated SDMMC2/4 clocks operations so that LJ input is selected
automatically when SDMMC2/4 clock parent is one of the PLLC4 outputs,
and SDMMC output rate is equal to the source rate. Changing SDMMC clock
rate-to-source ratio from 1:1 automatically selects divided input.

Change-Id: Icb3a47be2548bb26d6a0e3976dace95849004825
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/454796
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Tested-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoclock: tegra21: Apply safe rate to ISP
Alex Frid [Sun, 10 Aug 2014 03:54:44 +0000]
clock: tegra21: Apply safe rate to ISP

ISP is a special case with regards to application of safe rate during
initialization: ISP clock that control rate does not have reset control,
but 2 children clock branches ISPa and ISPb have it. Handle special
post-processing to clock initialization to check/apply safe rate to ISP.

Change-Id: I08d35fa2351d38f2bbd74984c37ed44d23fe57ef
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/454795
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Tested-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoclock: tegra21: Split PERIPH_NO_RESET / PERIPH_NO_ENB
Alex Frid [Sat, 9 Aug 2014 23:50:59 +0000]
clock: tegra21: Split PERIPH_NO_RESET / PERIPH_NO_ENB

Removed dependency of tegra21_periph_clk_reset() interface on
PERIPH_NO_ENB flag. Although all peripherals on Tegra21 that do not
have clock enable/disable bits also do not have reset control as well,
this should not create dependency in operations. Added PERIPH_NO_RESET
explicit flag to clock definitions that were relying on dual function
of PERIPH_NO_ENB.

Change-Id: I80930acd89e210a92957823d80dde344f3f0048e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/454794
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Tested-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoarm64: t210: Enabled MTD configs in defconfig
Amlan Kundu [Sun, 10 Aug 2014 15:58:32 +0000]
arm64: t210: Enabled MTD configs in defconfig

Enabled MTD char interface.

Bug 1425976

Change-Id: I919104b88c8d58515dad206d6ff3a57eebf1d821
Signed-off-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-on: http://git-master/r/454825
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agodriver: mtd: qspi_flash : Add mtd driver layer
Ashutosh Patel [Wed, 30 Jul 2014 05:28:54 +0000]
driver: mtd: qspi_flash : Add mtd driver layer

Change:

  - Add mtd driver support for QSPI flashes
  - Support added for Spansion S25FL512S, Micron MT25QL512AB
  - Functionality added : Jedec probe, read, write, erase

bug 1448604

Change-Id: I22b454817899e24fea290c6ff67c5f359eb2704d
Signed-off-by: Ashutosh Patel <ashutoshp@nvidia.com>
Reviewed-on: http://git-master/r/419570
Reviewed-by: Amlan Kundu <akundu@nvidia.com>
Tested-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoARM64: tegra21:enable BC, FG and extcon config
Venkat Reddy Talla [Fri, 8 Aug 2014 11:51:36 +0000]
ARM64: tegra21:enable BC, FG and extcon config

enable battery charger, Fuel gauge and power supply extcon
config flags

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

5 years agoARM64: tegra21:add system pmic flag for T210
Venkat Reddy Talla [Fri, 8 Aug 2014 11:53:08 +0000]
ARM64: tegra21:add system pmic flag for T210

enable system pmic flag for T210

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

5 years agovideo: tegra: dc: fix deadlock in one_shot_work
Allen Yu [Thu, 7 Aug 2014 10:11:07 +0000]
video: tegra: dc: fix deadlock in one_shot_work

_tegra_dc_disable() is called with dc->lock held, and then flushes
one_shot_work which needs dc->lock as well, leading to a deadlock
scenario.

Change to cancel one_shot_work before aquiring dc->lock and calling
_tegra_dc_disable() to avoid deadlock. Acquire one_shot_lock before
calling the cancel to avoid race condition between cancellation of
old delayed work and schedule of new delayed work.

Bug 200027294

Change-Id: Ia2d67a21a1347eb9b5946807d734262b11291efa
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/453496
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoiio: light: fix deadlock in cm_disable
Allen Yu [Thu, 7 Aug 2014 04:32:39 +0000]
iio: light: fix deadlock in cm_disable

cm_disable() is called with indio_dev->mlock held, and flush cm_work
which needs the same lock as well, leading to a deadlock if cm_work
happens to start executing while cm_disable() is cancelling the work.

This patch use cancel_delayed_work() instead of cancel_delayed_work_sync()
in cm_disable() to avoid the deadlock. If cm_work happens to be executing
while cm_disable() is cancelling it, cm_work will be blocked until
cm_disable() finishes and releases indio_dev->mlock, at this point
st->enable should be set to zero and cm_read() will do nothing, so no
risk here.

Bug 200026757

Change-Id: I70128fd27f9424a69834a1d90e0a210c649ee7a1
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/453775
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoirqchip: tegra: support setting affinity in LIC
Prashant Gaikwad [Thu, 3 Jul 2014 10:07:05 +0000]
irqchip: tegra: support setting affinity in LIC

Affinity can be programmed on Tegra legacy interrupt
controller. Till now all interrupts were affined
to CPU0 in LIC since it did not make difference in
forwarding the interrupt to GIC and GIC handled the
affinity assignment.

We are using LIC wake events on T210 which requires
enabling interrupts in LIC for correct CPU else FC
will generate wake event for wrong CPU.

Change-Id: I66ea34c1be867fbd4886dfd262a34ac11dcb7fbc
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/434086
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoclock: tegra21: Update PLLC4 configuration
Alex Frid [Sat, 9 Aug 2014 03:34:07 +0000]
clock: tegra21: Update PLLC4 configuration

Updated PLLC4 configurations to match SDMMC DVFS table.

Bug 1528707

Change-Id: Ia15e8d3a7d444467f1d4b6b30d992e86c2532215
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/454715
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoclock: tegra21: Force safe rate on clock with no reset
Alex Frid [Sun, 22 Jun 2014 06:45:53 +0000]
clock: tegra21: Force safe rate on clock with no reset

As a general rule, safe rate is forced during initialization only for
clocks associated with peripherals that are under reset. If there is
no associated reset, this commit allowed to force safe rate when clock
is disabled (can do it, since Tegra21 supports changing dividers of
disabled clocks).

Bug 1528707

Change-Id: I709da693be928842ac84a73fd4efd41144fdb1c7
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/426939
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agodvfs tegra21: Add DVFS tables for I/Os
Alex Frid [Fri, 8 Aug 2014 05:46:18 +0000]
dvfs tegra21: Add DVFS tables for I/Os

Added DVFS tables for I/Os and updated maximum clock rates.
Set VDD_CORE Vmin to 0.9V.

Bug 1528707

Change-Id: I24c341af1781cb3afad27c82f36b822c8c66dca4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/454385
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Update predict voltage interfaces
Alex Frid [Thu, 7 Aug 2014 05:27:01 +0000]
ARM: tegra: dvfs: Update predict voltage interfaces

- Implemented tegra_dvfs_predict_millivolts_t interface that applies
thermal floors at current temperature when predicting voltage (this
is in addition to tegra_dvfs_predict_millivolts - does not apply
floors, and tegra_dvfs_predict_peak millivolts - applies max floor
across temperature ranges).

- Protect by dvfs_lock public versions of prediction interfaces.

Change-Id: I573691fc8e02b5958bdded685c949cd109f73f93
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/453807
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Add helper accessors
Alex Frid [Sun, 3 Aug 2014 04:13:19 +0000]
ARM: tegra: dvfs: Add helper accessors

Added helper accessors for DVFS voltage in DFLL mode, and rail thermal
floors in DFLL and PLL modes.

Change-Id: I107a42bc1af0ff8c0c9e386c0fda5b4bd886ac4a
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/450673
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoplatform: t210: Add sor1 to clock info list for TEGRA_POWERGATE_SOR
Hoang Pham [Thu, 7 Aug 2014 20:36:32 +0000]
platform: t210: Add sor1 to clock info list for TEGRA_POWERGATE_SOR

Change-Id: Iff0e91e85f65c3ea46eacb6d399bdc03f0f0f0db
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/454117
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoplatform: t210: Remove hdmi clock
Hoang Pham [Thu, 7 Aug 2014 15:38:07 +0000]
platform: t210: Remove hdmi clock

Remove hdmi clock as it doesn't exist in T210

Change-Id: I3dfd591cd8a98f142be9b96c80bd919d440133d5
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/454028
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoARM64: DT: tegra210: Add built-in support for SDMMC4
Naveen Kumar Arepalli [Thu, 7 Aug 2014 17:22:38 +0000]
ARM64: DT: tegra210: Add built-in support for SDMMC4

--built_in was added in patch
http://git-master/r/#/c/436131/
but removed in below patch
http://git-master/r/#/c/409255/
-enabling built-in for sdmmc4

Change-Id: Ie18218490537358a69a324d2922bddea60fc37de
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/454054
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>