]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
sojka/nv-tegra/linux-3.10.git
10 years agogpu: nvgpu: Do not enable HCE priv mode origin/l4t/l4t-r19.2 daily-2014.04.28.0_l4t/l4t-r19.2 tegra-l4t-r19.2
Terje Bergstrom [Fri, 18 Apr 2014 06:08:07 +0000 (09:08 +0300)]
gpu: nvgpu: Do not enable HCE priv mode

Do not enable HCE priv mode.

Bug 1501689

Change-Id: I3da0ed7c7c1d59ef3e2a8bc727ca531eb22bab11
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/398110
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
10 years agoARM: tegra: pm375: disable usb device mode
Preetham Chandru R [Tue, 15 Apr 2014 10:03:45 +0000 (15:33 +0530)]
ARM: tegra: pm375: disable usb device mode

Disable usb device mode for pm375 rev A-D

Bug 1495952

Change-Id: I553d3c05f9a8421ff4900999d9d6e5c21dc5e596
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/396368
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoARM: tegra: powergate: suppress unwanted info
Bibek Basu [Mon, 14 Apr 2014 11:43:50 +0000 (17:13 +0530)]
ARM: tegra: powergate: suppress unwanted info

is_powered is a check and it should not throw
wrong information that powergating is not supported
for this SOC

Bug 1499524

Change-Id: Id2f0ff0d295d49b952fba571b17639723bbdec65
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/395835
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agoARM: tegra: laguna: correct vbus regulators
Preetham Chandru R [Tue, 15 Apr 2014 07:08:39 +0000 (12:38 +0530)]
ARM: tegra: laguna: correct vbus regulators

vbus regulators were configured wrongly for pm375.
This patch corrects the vbus regulators.

Change-Id: Ib49f95b3ea9d46cb97978d1433f4d05681d10f0a
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/396247
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
10 years agoARM: tegra12: enable CONFIG_TMPFS_POSIX_ACL
Eric Brower [Wed, 16 Apr 2014 04:13:21 +0000 (21:13 -0700)]
ARM: tegra12: enable CONFIG_TMPFS_POSIX_ACL

Enable POSIX ACL support for DEVTMPFS; this is
"optional but strongly recommended" by systemd and
required for proper operation of some Linux distributions.

Bug 1499849

Change-Id: I414316e6b231da34c97971cf0eecf699da3075b6
Signed-off-by: Eric Brower <ebrower@nvidia.com>
Reviewed-on: http://git-master/r/396806
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agousb: otg: tegra: sysfs-setting for gadget mode
Haribabu Narayanan [Tue, 4 Mar 2014 08:52:56 +0000 (00:52 -0800)]
usb: otg: tegra: sysfs-setting for gadget mode

Add ability to set the OTG port to device mode through sysfs.

Bug 1463801
Bug 1380254
Bug 1435985

Change-Id: I7bf5a3d8576e88ffb399a0bab2d43b446d6753c8
Signed-off-by: Haribabu Narayanan <hnarayanan@nvidia.com>
Reviewed-on: http://git-master/r/377073
(cherry picked from commit 8921a2c370014e997df95818802ceb487084fadb)
Reviewed-on: http://git-master/r/396367
Reviewed-by: Preetham Chandru <pchandru@nvidia.com>
Tested-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoregulator: as3722: sd1 external control only during suspend
Bibek Basu [Fri, 11 Apr 2014 05:44:13 +0000 (11:14 +0530)]
regulator: as3722: sd1 external control only during suspend

If SD1 external control is enabled from boot, it has adverse
effect on power down cycle. Which can lead to long term product
stability. So enable SD1 external control only while going to
to suspend and disable while resuming

Bug 1495458

Change-Id: Ia65bf6f358d15604cea3914914188ce1725b4120
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/395039
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoASoc: Tegra: max98090: secondary mic only for t14x
Naveen Kumar S [Wed, 9 Apr 2014 11:41:03 +0000 (17:11 +0530)]
ASoc: Tegra: max98090: secondary mic only for t14x

Secondary MIC available in tegra14x platforms only. Hence adding
appropriate conditions.
Also, DMIC3 and DMIC4 are declared for max98091 and not max98090.

bug 1457218

Change-Id: Ieeaff6890a195a4620f80b17ea9a9e0a1ff975c9
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/394119
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agoiommu/tegra: smmu: fix unaliged sg mapping
Hiroshi Doyu [Thu, 10 Apr 2014 06:43:00 +0000 (09:43 +0300)]
iommu/tegra: smmu: fix unaliged sg mapping

map_sg() miscaluculated the number of pages to map where 'offset' and
PAGE_ALIGN was ignored. This patch fixes the ext4 memory corruption
problem when USB is used. This patch was based on Nilesh More's hard
working journey to narrow down the root cause of this problem. This bug
was introduced by the commit:

  f46788a6f7d9 - iommu/tegra: smmu: Optimize smmu_iommu_map_sg()

Bug 1418514

Change-Id: I3492ca3aad48f63bc81e50886eefc32cb6a17a8b
Reported-by: Nilesh More <nmore@nvidia.com>
Tested-by: Nilesh More <nmore@nvidia.com>
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/394554
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nilesh More <nmore@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
(cherry picked from commit 7b4dac1d522cf48e4e6bd227ff235bffa82cb755)
Signed-off-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-on: http://git-master/r/394993

10 years agovideo: tegra: host: g20a: Add AELPG feature
Prashant Malani [Thu, 5 Dec 2013 22:27:29 +0000 (14:27 -0800)]
video: tegra: host: g20a: Add AELPG feature

Add basic functionality and helper routines for AELPG. Also,
enable AELPG during init.

Enabling adaptive elpg is needed for the data corruption
issues seen as per the bug reported below.
Bug 1458353

Change-Id: Ie6effc354dc1ade2a4baa2585984ff39d7c0660d
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/338873
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 2b235e3708857f12ee765a85ce7a61cc464ac98e)
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/394410
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agovideo: tegra: host: gk20a: add AELPG headers
Prashant Malani [Thu, 5 Dec 2013 22:03:05 +0000 (14:03 -0800)]
video: tegra: host: gk20a: add AELPG headers

Enabling adaptive elpg is needed for the data corruption
issues seen as per the bug reported below.
Bug 1458353

Change-Id: Ie285e7e7e3849e0b8cb263a67a5dfe7056150d51
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/338872
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
(cherry picked from commit b0b937165d49e3f57fa25815239e2a0f6f155527)
Reviewed-on: http://git-master/r/394409
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agopcie: host: tegra: re-enable MSI after resume
Peter Daifuku [Fri, 10 Jan 2014 23:57:28 +0000 (15:57 -0800)]
pcie: host: tegra: re-enable MSI after resume

Initialize core MSI data once and re-enable MSI
registers on resume, if MSI were enabled.

Bug 1478052

Change-Id: I3d3d7e21be121e38d5159302ec47aaff9dcf7525
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/354470
(cherry picked from commit 7908f31c3e7a5cfa9c053f89acc5691c6502e3a3)
Reviewed-on: http://git-master/r/394682
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agoarm: tegra12: enable dram temperature only for LPDDR2
Shreshtha Sahu [Mon, 24 Mar 2014 06:15:25 +0000 (11:45 +0530)]
arm: tegra12: enable dram temperature only for LPDDR2

This patch disables creating debugfs entry for non
LP DRAM variants. As currently two DRAM variants are
supported i.e. LPDDR2 and DDR3, so it enables dram
temperature entry only for LPDDR2.

Bug 1473611

Change-Id: I3b9ef616e5110a09f06522d761549f6db4bd578d
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/385488
(cherry picked from commit 4d0fa6f0c069d796de4b037f12b532c856742256)
Reviewed-on: http://git-master/r/393193
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agovideo: tegra: hdmi: WAR: emulate hdmi hotoplug
Jong Kim [Sat, 5 Apr 2014 00:32:38 +0000 (17:32 -0700)]
video: tegra: hdmi: WAR: emulate hdmi hotoplug

Emulate hotplug to make DVI monitors work through HDMI-to-DVI
dongle. In the last hdmi state, enabled_state, force trigger
hotplug for the HDMi go through clean power off, read EDID,
power on, and configure sequence.

bug 1495496

Change-Id: I0d9c3d7e5d1244d677a0d547c68c6cb9f961a956
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/392977
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
10 years agovideo: tegra: dc: get default mode from EDID
Jong Kim [Tue, 8 Apr 2014 17:39:16 +0000 (10:39 -0700)]
video: tegra: dc: get default mode from EDID

Override hard-coded default HDMI mode with the preferred mode
obtained from EDID read. Since the preferred mode is obtained
dynamically from EDID, the default hard-coded HDMI mode is set
to 640x480 @60Hz, which is universally supported.

bug 1495496

Change-Id: I19bc910758015927938fe5dde3e5359a78d905d4
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/393564
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
10 years agoARM: tegra: config: disable firmware loading
Preetham Chandru R [Tue, 25 Mar 2014 10:11:15 +0000 (15:41 +0530)]
ARM: tegra: config: disable firmware loading

disable firmware loading by Realtek 8169 driver.

Bug 1481697

Change-Id: Ie0413caf9029d5515d862429956c386f16082553
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/394645
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoASoC: codecs: max98090: correct DMIC names
Naveen Kumar S [Wed, 9 Apr 2014 11:07:39 +0000 (16:37 +0530)]
ASoC: codecs: max98090: correct DMIC names

DMIC1 and DIMC2 were renamed to DMICL and DMICR respectively.
Hence correcting the names accordingly.

bug 1457229

Change-Id: Iecff0cabb18743a8d399965fab320ac3683f622a
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/394109
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoARM: tegra: Add SW thermal throttling for Jetson
Sai Gurrappadi [Tue, 8 Apr 2014 21:23:14 +0000 (14:23 -0700)]
ARM: tegra: Add SW thermal throttling for Jetson

Enable cpu & gpu balanced cooling devices so that SW thermal throttling
gets enabled.

Bug 1496341

Change-Id: I28f7f9cda4aaa4fbe7d5eb6b7ebcee54a7f492a4
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/393645
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoARM: tegra12: Use runnable governor as default
Sai Gurrappadi [Tue, 8 Apr 2014 02:03:33 +0000 (19:03 -0700)]
ARM: tegra12: Use runnable governor as default

Switch cpuquiet to use the runnable_threads governor instead of the
balanced governor as the default governor.

Bug 1493183

Change-Id: Ie7519e1744bb620e54be7a9c9010290a72b941f9
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/393174
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoARM: tegra12: disable sata idle powergating
Bibek Basu [Tue, 1 Apr 2014 05:50:52 +0000 (11:20 +0530)]
ARM: tegra12: disable sata idle powergating

SATA idle powergating is broken. Thus disabling it.

Bug 1483608

Change-Id: I31d50e443986be332d5916dff1d7413581e179a6
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/390900
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agotegra: T124: HDMI: fix pixel clock setting
Jong Kim [Thu, 27 Mar 2014 16:18:58 +0000 (09:18 -0700)]
tegra: T124: HDMI: fix pixel clock setting

- Enhance the HDMI pixel clock setting by determining a better parent
  clock rate.  Half resolutions for HDMI pclk are not used due to
  uneven duty cycle.
- Fix the divider value out of sync problem between two registers,
  DISP_DISP_CLOCK_CONTROL and CLK_RST_CONTROLLER_CLK_SOURCE_HDMI, due
  to the rounding difference.  The clk_set_rate() routine uses round-up,
  while the tegra_dc_program_mode() routine uses round-closest.  Due to
  the DVFS, the frequency determination can not exceed the requested
  rate and this means that round-up must be used for divider handling
  instead of round-closest.

bug 1420652

Change-Id: Ib32e79f96dcd272a392de7f852c3c0285f9c453a
Signed-off-by: Sungwook Kim <sungwookk@nvidia.com>
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/366390
(cherry picked from commit 6eb5d7e7b5dcd9a118649e5a8d02e35cf45a4fc6)
Reviewed-on: http://git-master/r/392419
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agovideo: tegra: Check DC connected status
Pankaj Dabade [Tue, 25 Mar 2014 11:34:58 +0000 (17:04 +0530)]
video: tegra: Check DC connected status

1. Prevent any operations from user-space and tty when no HDMI
device is connected. DC will stay powergated till hotplugged.
2. Virtual Terminal requests blank after blank timeout. If HDMI
isn't connected we shouldn't allow this operation.

bug 1487112
bug 1481748

Change-Id: I0bd97e62ca059513044bc49b8d8c045610268016
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/391152
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agomisc: nct : configure nct local hi/lo temp also
Bibek Basu [Thu, 3 Apr 2014 04:26:30 +0000 (09:56 +0530)]
misc: nct : configure nct local hi/lo temp also

configure nct local hi/lo temp also so
that action is taken if there is an increase
in local temp

Bug 1490524

Change-Id: I3186ff3ade97e7655c5c7494efa7c51b6946de5d
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/391649
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoARM: tegra: enable nct interrupt for pm375 & laguna
Bibek Basu [Wed, 2 Apr 2014 11:53:27 +0000 (17:23 +0530)]
ARM: tegra: enable nct interrupt for pm375 & laguna

Enable nct alert interrupt for pm375

Bug 1490524

Change-Id: I473365b4d7c9ab26626dac73b9b15f2e708f2719
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/391648
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoPCIE: tegra: enable ASPM and disable L0s
Bibek Basu [Tue, 1 Apr 2014 08:41:20 +0000 (14:11 +0530)]
PCIE: tegra: enable ASPM and disable L0s

Enable ASPM feature for Tegra12 but keep L0s
disabled as its broken.

Bug 1483608

Change-Id: Ie1f8c10dc1d95c4b5164f9030aa5560542c81f1b
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/391647
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agomisc: nct1008: avoid reading bogus temperature
Diwakar Tundlam [Tue, 4 Mar 2014 02:11:34 +0000 (18:11 -0800)]
misc: nct1008: avoid reading bogus temperature

Added a check for temperature above max value and return error when
that happens to avoid showing insane temperature values to user. Bogus
temperature readout happens rarely due to the NCT device still being
initialized and unprepared while interrupts happen.

Based on commit 707c55d46a9c9f3780caa64426efa8220be11a1e which was
reviewed-on: http://git-master/r/376832

Bug 1454792

Change-Id: I7f31f80f47abc197e6dda3d661dfb82e946ea039
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/392045
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agomisc: nct1008: use signed long for temp
Diwakar Tundlam [Thu, 20 Mar 2014 22:33:31 +0000 (15:33 -0700)]
misc: nct1008: use signed long for temp

Avoid setting signed temperature value into unsigned long pointer

Bug 1454792

Change-Id: I583f2296c294b6d499fcdf8e1b9338cce5b8344d
Reviewed-on: http://git-master/r/384655
(cherry picked from commit 72ccbb69fcf0375ce7a26db7c32dd3dd925a6f26)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/392044
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agomisc: nct1008: change overheat enable message
Diwakar Tundlam [Fri, 7 Mar 2014 01:47:19 +0000 (17:47 -0800)]
misc: nct1008: change overheat enable message

Avoid using the word 'warning' in the log message that reports
successful setup of the overheat warning message. This confuses
tests that scan for errors and warnings on console.

Also changed the level of the message to pr_debug.

Bug 1436329

Change-Id: Idbc6cc5eed42265a1487a9809969bce7edc7a620
Reviewed-on: http://git-master/r/378669
(cherry picked from commit 999acb87fffe01365485333ac28b160a34502efb)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/392043
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agovideo: tegra: host: gk20a: Check for free va fail
Terje Bergstrom [Tue, 4 Mar 2014 13:05:06 +0000 (15:05 +0200)]
video: tegra: host: gk20a: Check for free va fail

Return error if freeing virtual address space fails. Do not try to
free graphics context that has not been allocated.

Change-Id: I1c22650aae25038d56582e00b8906532ace482f1
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/382474
(cherry picked from commit 20a8917aaa7c6bbad3c74f5279fb8b142f858e77)
Reviewed-on: http://git-master/r/391823
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agovideo: tegra: fb: Keep old mode list origin/l4t/l4t-r19.1 daily-2014.03.25.0_l4t/l4t-r19.1 tegra-l4t-r19.1
Pankaj Dabade [Thu, 20 Mar 2014 08:47:27 +0000 (14:17 +0530)]
video: tegra: fb: Keep old mode list

Keeping the old mode list and framebuffer console is storing a
video mode pointer pointing to one of the modes in modelist.
Adding enable function to enable DC when hotplug succeeds.

bug 1481759

Change-Id: I8164c0d318edc3cbc6f61481eda8c90daabe14a5
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/382507
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoPCIE: tegra: run PCIE at GEN1 speed
Bibek Basu [Thu, 20 Mar 2014 10:55:26 +0000 (16:25 +0530)]
PCIE: tegra: run PCIE at GEN1 speed

To preserve power, run PCIE @ GEN1 speed.
This will introduce cap on pciex clock to 250Mhz

Bug 1483563

Change-Id: Iedc05870647368523070a8033e7cbba1e0bc2b43
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/384368
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoARM: tegra: update hdmi tdms parameter for PM375
Bibek Basu [Fri, 21 Mar 2014 03:52:31 +0000 (09:22 +0530)]
ARM: tegra: update hdmi tdms parameter for PM375

update hdmi tdms parameter for PM375

Bug 1481888

Change-Id: Icd04f0d8a80ee84b8ba9a2441a841d7bd5954c3a
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/384776
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoARM: tegra: laguna: configure ams gpio1 and gpio2
Bibek Basu [Fri, 21 Mar 2014 01:00:32 +0000 (06:30 +0530)]
ARM: tegra: laguna: configure ams gpio1 and gpio2

Configure ams gpio1 and 2 as bial pull-down from pdata

Bug 1485412

Change-Id: I8df5c6e79933e1c9c01f35ae7938bfd360fce88f
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/384705
Tested-by: Mike Thompson <mikthompson@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoARM: tegra: update PM375 pinmux setting
Bibek Basu [Wed, 19 Mar 2014 15:46:31 +0000 (21:16 +0530)]
ARM: tegra: update PM375 pinmux setting

Update PM375 pinmux by tristating the unusued
pins based on pinmux excel
T124_customer_pinmux_PM375_29Oct2013.xlsm

Bug 1483835

Change-Id: I1eaea4f5d40096d9a1d560f59561db2dce2dfda6
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/383907
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoPCIE: tegra: limit mselect clk to 102Mhz
Bibek Basu [Thu, 20 Mar 2014 10:52:15 +0000 (16:22 +0530)]
PCIE: tegra: limit mselect clk to 102Mhz

This will put cap on power consumption in idle
If someone one to bup the clock, it can be done from
debugfs

Bug 1483563

Change-Id: I668193864fa26b108bec1c1f953f275847ee293c
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/384367
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoARM: tegra12: enable SATA idle powergating
Bibek Basu [Wed, 19 Mar 2014 09:01:10 +0000 (14:31 +0530)]
ARM: tegra12: enable SATA idle powergating

Enable SATA idle powergating

Bug 1483608

Change-Id: I23d8675620c6ff844bda558a48c608aaebcf6e5a
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/383755
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
10 years agoARM: tegra: dont register unavailable sensors
Bibek Basu [Wed, 19 Mar 2014 06:48:59 +0000 (12:18 +0530)]
ARM: tegra: dont register unavailable sensors

PM375 does not have mpu, bmp, akm, wifi sensors.
So dont register those i2c devices

Bug 1483432

Change-Id: Ic91049b35ad65e558f5a4a292f36550eca51fd1c
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/383692
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoARM: tegra: config: Enable GK20A devfreq for L4T
Prashant Malani [Thu, 20 Mar 2014 02:34:33 +0000 (19:34 -0700)]
ARM: tegra: config: Enable GK20A devfreq for L4T

Also disable gk20a perfmon, which was earlier enabled.

Bug 1484540

Change-Id: I539a60d45db1990df3db7dcc98da1d78a788c600
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/384149
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
10 years agovideo: tegra: host: gk20a: remove pmu dump stats
Prabhu Kuttiyam [Wed, 19 Mar 2014 01:11:37 +0000 (18:11 -0700)]
video: tegra: host: gk20a: remove pmu dump stats

This commit removes the dumping of pmu stats only
if the pmu exterr intr occurs.

bug 1458353

Change-Id: I0836da647abca64879991af9c280572477d1ce97
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/383442
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoarm: tegra: HDMI: fix 720p low output swing for PM375
Jong Kim [Wed, 19 Mar 2014 01:16:25 +0000 (18:16 -0700)]
arm: tegra: HDMI: fix 720p low output swing for PM375

Fix 720p HDMI low output swing for PM375.

bug 1481888

Change-Id: Ide0e8a9d02213b3a2e59e3f5ad614f9c2e423139
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/383441
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agovideo: tegra: gk20a: do not set error notifier during debugging
Kirill Artamonov [Thu, 27 Feb 2014 12:02:06 +0000 (14:02 +0200)]
video: tegra: gk20a: do not set error notifier during debugging

Do not set error notifier on exceptions handled by attached
SM debugger.

bug 1468586
bug 1470992

Change-Id: I9c35b098ade022df7c2745a4f974ef0d1a7fad58
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
Reviewed-on: http://git-master/r/377866
(cherry picked from commit e30f88aa7fbb56a703a50a445ae6761bcb0d5e99)
Reviewed-on: http://git-master/r/383228
GVS: Gerrit_Virtual_Submit

10 years agovideo: tegra: host: gk20a: add missing returns
Mayank Kaushik [Mon, 3 Mar 2014 17:34:40 +0000 (09:34 -0800)]
video: tegra: host: gk20a: add missing returns

Bug 1375360

Change-Id: I20562349a45185e97ee2a3a1c9e3262ed302d76a
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
Reviewed-on: http://git-master/r/376657
(cherry picked from commit af817f4a70c04203622a8d56068ed72f28dfe66b)
Reviewed-on: http://git-master/r/383227
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

10 years agoARM: tegra: dtb: Add new file to support gpio-keys
Jeetesh Burman [Mon, 17 Mar 2014 09:14:15 +0000 (14:44 +0530)]
ARM: tegra: dtb: Add new file to support gpio-keys

Many GPIOs registered as interrupt are not applicable for PM375,
new file added for PM375 to support GPIOs which are applicable for
PM375.

Added file: tegra124-pm375-gpio-keys.dtsi

Bug 1475519

Change-Id: Ic7cdae2afa43751b3ba045f08c62dbb2c36b6562
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/382467
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoARM: tegra: config: disable BLUEDROID_PM
Jeetesh Burman [Tue, 18 Feb 2014 09:13:34 +0000 (14:43 +0530)]
ARM: tegra: config: disable BLUEDROID_PM

Disable BLUEDROID_PM in L4T defconfig.

Bug 1457135

Change-Id: I027e83cde9a37e244c473b35179cf1fe529ed9af
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/368728
Cherry-picked from 1217dac9195728b160e01749a222882d7519386c
Reviewed-on: http://git-master/r/376564
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoARM: tegra124: pm375: add pcie_usb_vbus consumer
Preetham Chandru R [Mon, 17 Mar 2014 07:14:25 +0000 (12:44 +0530)]
ARM: tegra124: pm375: add pcie_usb_vbus consumer

Bug 1466561

Change-Id: I4522495ed4d8d0ef39c4e3747f1e4413999b6633
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/382433
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agoARM: tegra: pm375 : Enable utmi1
Preetham Chandru R [Thu, 13 Mar 2014 11:35:50 +0000 (17:05 +0530)]
ARM: tegra: pm375 : Enable utmi1

Enable usb port included in the mPCIe

Bug 1466561

Change-Id: I0aaa655652bb7c6f27a082b0cd3909cbb4334057
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/381487
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
10 years agovideo: tegra: gpu debugger
Ken Adams [Thu, 27 Feb 2014 21:57:26 +0000 (13:57 -0800)]
video: tegra: gpu debugger

Add a control to manage SMPC context switch mode.
This is needed in reaction to the recent security
change which disabled set_falcon[5] etc.

Bug 1375360

Change-Id: Ia9d1a97a1b89b48538010d74207ff4d1b8852083
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/375772
(cherry picked from commit c3c7d8b60f62bc276d0e773994ea6e0a4d9422cb)
Reviewed-on: http://git-master/r/382743
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agovideo: tegra: host: gk20a implement priv access map
Ken Adams [Tue, 25 Feb 2014 00:30:00 +0000 (16:30 -0800)]
video: tegra: host: gk20a implement priv access map

This change enables a whitelist for priv register accesses on gk20a
through the set_falcon[4] path (used by usermode drivers).

Bug 1375360

Change-Id: I18274097fddaab0a15a8ad59f1d23f9e974a50e7
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/375651
(cherry picked from commit afd7fec44674af2569ac6443cf245e25786cc335)
Reviewed-on: http://git-master/r/376912
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agovideo: tegra: host: gk20a: Fix deferred mmu fault
Arto Merilainen [Fri, 7 Mar 2014 07:03:47 +0000 (09:03 +0200)]
video: tegra: host: gk20a: Fix deferred mmu fault

Deferred MMU fault did not clear stored mmu_fault_engines variable
and this caused the MMU fault handler to handle subsequent MMU fault
as a fake fault.

This patch modifies the code so that we clear the mmu_fault_engines
variable if we need to continue fault handling on channel tear down.

Bug 1472328

Change-Id: Iabec72575072b207aef1b05ef2f661d7dc8f3c40
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/378792
(cherry picked from commit 25d1566063ae030124c28780fb825e982a5a24e2)
Reviewed-on: http://git-master/r/381534
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoarm: tegra: add emc dvfs table for PM375
Bibek Basu [Mon, 17 Mar 2014 07:29:01 +0000 (12:59 +0530)]
arm: tegra: add emc dvfs table for PM375

Add EMC DVFS table for PM375

Bug 1454434

Change-Id: I83ef7cfcf65f5d1a4b7e7a711e6373e249439e34
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/382438
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoarm: tegra: HDMI: fix 1080p low output swing for PM375
Jong Kim [Mon, 17 Mar 2014 23:05:55 +0000 (16:05 -0700)]
arm: tegra: HDMI: fix 1080p low output swing for PM375

Fix 1080p HDMI low output swing for PM375.

bug 1481888

Change-Id: Iad850d2e674a4f4fe3cc32020bba99004dc85eaf
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/382693
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Dan Coggin <dcoggin@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
10 years agoarm: tegra124: PM375: update soc0 machine name
Prabhu Kuttiyam [Fri, 14 Mar 2014 00:50:56 +0000 (17:50 -0700)]
arm: tegra124: PM375: update soc0 machine name

This commit adds a new machine name for PM375 boards.

bug 1395699

Change-Id: Ia07b86a03e2457b192095b0bb01cc7ee900641d7
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/381774
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoARM: tegra: dtb: add new compatible string
Prabhu Kuttiyam [Fri, 14 Mar 2014 00:47:54 +0000 (17:47 -0700)]
ARM: tegra: dtb: add new compatible string

This commit adds a new compatible string for pm375.
This string can be used in board init files to differentiate
between other boards.

bug 1395699

Change-Id: I8d1bcac377a730ac25c0a4d4814e510be4136384
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/381773
Reviewed-by: Eric Brower <ebrower@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoARM: tegra: pm375: enable thermal sensor
Bibek Basu [Fri, 7 Mar 2014 06:05:08 +0000 (11:35 +0530)]
ARM: tegra: pm375: enable thermal sensor

Enable thermal nct sensors for PM375

Bug 1476224

Change-Id: I0fdb3c0ce1a1eccdd893e417b2caecb696fb166f
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/378839
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoarm: tegra: HDMI: set 1080p as default mode
Jong Kim [Fri, 14 Mar 2014 01:21:49 +0000 (18:21 -0700)]
arm: tegra: HDMI: set 1080p as default mode

Set 1920x1080 as default HDMI FBcon mode.
1080p is the current working common denominator for FBcon and
X11 without any anormally.
This change is the step 1 of ultimate fix for HDMI/DISPB clock
setting which is required for HDMI mode change from Ubuntu
desktop GUI.

bug 1395699

Change-Id: I6773b7dc1218491aa9fd9fe63903fbed2376cb14
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/381781
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
10 years agovideo: tegra: hdmi: unpowergate dc if powergated
Pankaj Dabade [Wed, 12 Mar 2014 11:55:27 +0000 (17:25 +0530)]
video: tegra: hdmi: unpowergate dc if powergated

Need to unpowergate DC before updating monitor specs.
updating monitorspecs triggers NEW_MODELIST call chain. This
will trigger pan display.

bug 1478898

Change-Id: If4a4616e63c2293d6b1bd6824123bfedf6520721
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/380343
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jong Kim <jongk@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoRM: tegra: config: disable PREPOWER_WIFI
Jeetesh Burman [Fri, 7 Mar 2014 05:09:56 +0000 (10:39 +0530)]
RM: tegra: config: disable PREPOWER_WIFI

Disable PREPOWER_WIFI from L4T defconfig.

Bug 1466881

Change-Id: Ie9db9632c0720e26ef13a5db14ac23c5a3260900
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/378745
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoarm: tegra: HDMI: set 720p as default mode
Jong Kim [Tue, 11 Mar 2014 18:41:13 +0000 (11:41 -0700)]
arm: tegra: HDMI: set 720p as default mode

Set 1280x720 as default HDMI FBcon mode.

bug 1395699

Change-Id: I7d7e865f417a1d8e8d97cfed6e6aa1c4333cd7ad
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/380451
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
10 years agoARM: tegra: dtb: add DT support for xusb
Preetham Chandru R [Thu, 6 Mar 2014 16:27:11 +0000 (21:57 +0530)]
ARM: tegra: dtb: add DT support for xusb

Bug 1466561

Change-Id: I4ce0962a48465a0423c883b41103bdc885ceaa0d
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/378429
GVS: Gerrit_Virtual_Submit
Reviewed-by: Joy Wang <joyw@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoarm: tegra124: PM375: update port config for xusb
Preetham Chandru R [Thu, 6 Mar 2014 13:45:46 +0000 (19:15 +0530)]
arm: tegra124: PM375: update port config for xusb

Bug 1466561

Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Change-Id: I950c55361e305f10944a2210a5b30a69dea52397
Reviewed-on: http://git-master/r/377877
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoiommu/tegra: smmu: remove sanity checks during dev notifications.
Krishna Reddy [Sat, 8 Feb 2014 00:49:48 +0000 (16:49 -0800)]
iommu/tegra: smmu: remove sanity checks during dev notifications.

arm_iommu_detach_device doesn't reset mapping to NULL.
remove sanity checks during device  notifications to avoid
incorrect warning messages.

Bug 1446597

Change-Id: I7a49cd9ba464a1007260260b5fe41113db0b7689
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/365172
(cherry picked from commit 246a182ef16776f9db88559b5b3c3d7b07ebd8cd)
Reviewed-on: http://git-master/r/375600
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoiommu: tegra: correct device attach/detach
Sri Krishna chowdary [Thu, 30 Jan 2014 09:29:49 +0000 (14:59 +0530)]
iommu: tegra: correct device attach/detach

attach/detach a device only if registered to use smmu

Bug 1446597

Change-Id: I99be7eb3ddeff8b9f8ec61dc06b09eeb66bbd1d6
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/361928
(cherry picked from commit 25e4750235628bc03dca21c0cbf30fe267761a93)
Reviewed-on: http://git-master/r/375599
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agodriver: vi: tegra_camera: correct pdev->id for DT
Bryan Wu [Fri, 21 Feb 2014 18:45:03 +0000 (10:45 -0800)]
driver: vi: tegra_camera: correct pdev->id for DT

DT will initialize the pdev->id as -1 for both vi.0 and vi.1. This
will cause several subtle issues since checking pdev->id is used a
in VI and Tegra V4L2 camera drivers.

Set the pdev->id as the right value during probing for DT case. Then
no change is need for others

drivers/video/tegra/host/vi/vi.c change was cherry picked from commit
b9de88f6b2362532edbab617fd2d824b83fcf059

Bug 1463966

Change-Id: I8adf124c4d3489e9c06abbecb6d3587437954c50
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/373000
(cherry picked from commit 4ca388fb943d17c7f7e8992fba04aac38714fdb2)
Reviewed-on: http://git-master/r/378471
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoSATA: tegra: handle gpio correctly
Bibek Basu [Thu, 6 Mar 2014 04:34:35 +0000 (10:04 +0530)]
SATA: tegra: handle gpio correctly

Handle port expander gpio correctly

Bug 1454434

Change-Id: I19a76ea70dc95aefad8db2a6b4f4f0cd05edfcda
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/378192
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoHID: usbhid: disable autosuspend for usb Keyboards
Petlozu Pravareshwar [Wed, 22 Jan 2014 12:35:30 +0000 (18:05 +0530)]
HID: usbhid: disable autosuspend for usb Keyboards

This change will disable the autosuspend for KBs.
This is to avoid the lag observed on the screen
while we type the characters.

Bug 1390065

Change-Id: Ic6f2247bf4e4fa2332329cd3e8dac15aad56354c
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Signed-off-by: Eric Brower <ebrower@nvidia.com>
Reviewed-on: http://git-master/r/358743
(cherry picked from commit 8d49c2b57d7edf721933bda082374f8bcf7915c2)
Reviewed-on: http://git-master/r/378119
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agovideo: tegra: host: Do not access cmdbuf_ext if NULL
Terje Bergstrom [Thu, 6 Feb 2014 09:18:03 +0000 (11:18 +0200)]
video: tegra: host: Do not access cmdbuf_ext if NULL

Fix dereferencing cmdbuf_ext even when it's NULL.

Bug 1452279
Bug 1452227

Change-Id: Iabd98ea6e6aab0b2cf8e04287d43361dee9aa699
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/364298
(cherry picked from commit 3d20989565ab3d34dea52f49bb3928d33427dca9)
Reviewed-on: http://git-master/r/377630
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agovideo: tegra: dc: select right windows for update
Pankaj Dabade [Wed, 5 Mar 2014 05:40:03 +0000 (11:10 +0530)]
video: tegra: dc: select right windows for update

Use win->idx instead of windows table index to select right window
for tegra_dc_update_windows and tegra_dc_windows_are_clean funcs.

bug 1467186

Change-Id: I2e0f660556ad175205f173ca28195ac788eca08b
Signed-off-by: Jong Kim <jongk@nvidia.com>
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/377514
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
10 years agol4t: kernel: Enable DEVTMPS config option
Arun G [Fri, 28 Feb 2014 22:51:30 +0000 (14:51 -0800)]
l4t: kernel: Enable DEVTMPS config option

Turn on CONFIG_DEVTMPFS and CONFIG_DEVTMPFS_MOUNT to
populate /dev nodes dynamically when devices are attached.

bug 1408020

Change-Id: If114019772cff529716575456ad6dd71e871ba5d
Signed-off-by: Arun G <arg@nvidia.com>
Reviewed-on: http://git-master/r/376171
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agomach-tegra: change fb size to support 4K
Yogish Kulkarni [Mon, 3 Mar 2014 14:03:42 +0000 (19:33 +0530)]
mach-tegra: change fb size to support 4K

Change fb memory size to support 4K resolution

Change-Id: I9bae86724d8c569a124939faed0b136778080a44
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/376261
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoTegra12x: defconfig: Add HDMI audio device
Rahool [Fri, 28 Feb 2014 06:49:51 +0000 (12:19 +0530)]
Tegra12x: defconfig: Add HDMI audio device

Add HDMI audio device

Bug: 1470703

Signed-off-by: Rahool Paliwal <rpaliwal@nvidia.com>
Change-Id: Ic289366f9a25853fb6faa2537790242c97e1c33b
Reviewed-on: http://git-master/r/375851
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Kaustubh Purandare <kpurandare@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agovideo: tegra: host: Reduce debug leve of ctx load
Terje Bergstrom [Wed, 26 Feb 2014 05:41:38 +0000 (07:41 +0200)]
video: tegra: host: Reduce debug leve of ctx load

A ctxsw firmware load debug message was with log level warning. That
is the expected behavior, so change the message to debug level.

Bug 1461370

Change-Id: Ibaaa2c18d04751dafe7a1e7fa280b8ecb23a4a70
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/374649
Cherry-picked from aa568f47dd80a5a922e5d768951e0bb734d14a87
Reviewed-on: http://git-master/r/375474
Reviewed-by: Jeetesh Burman <jburman@nvidia.com>
Tested-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agopcie: host: tegra: enable second root port
Bibek Basu [Tue, 25 Feb 2014 16:53:22 +0000 (22:23 +0530)]
pcie: host: tegra: enable second root port

Enable second root port for the x2, x1 configuration

Bug 1468239

Change-Id: I8e4b59940bc148d883c129cecc614a0173874219
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/374341
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoARM: tegra: pm375: update the minor rev of pmic
Bibek Basu [Tue, 25 Feb 2014 17:09:02 +0000 (22:39 +0530)]
ARM: tegra: pm375: update the minor rev of pmic

Update the  minor revision of pmic based in board_id

Bug 1454434

Change-Id: I986aa1183ff8aa06962f151f40aa2575b3901f6e
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/374342
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit

10 years agovideo: tegra: host: gk20a: Do not defer ELPG init
Naveen Kumar S [Fri, 21 Feb 2014 11:44:38 +0000 (17:14 +0530)]
video: tegra: host: gk20a: Do not defer ELPG init

Currently the second phase of PMU initialisation runs asynchronously
with other code. This optimises the boot-up time, however, it may
cause unexpected race in PMU code as some functions are called while
the ELPG is still being initialised.

This patch modifies the ELPG initialisation to happen synchronously
as part of power on sequence.

Bug 1456985
Bug 1460116
Bug 1458353

Change-Id: Ic979b3e054a17c0bc6979da2cf03d98f8d416c26
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/368702
(cherry picked from commit 4100add7d80ff68669cec4f8f47b26e232dc7da5)
Reviewed-on: http://git-master/r/372853
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agovideo: tegra: dc: check DC suspend state
Pankaj Dabade [Fri, 14 Feb 2014 06:04:23 +0000 (11:34 +0530)]
video: tegra: dc: check DC suspend state

Check DC suspended state before updating window.
DC suspend function will disable dc but will only change
suspend status to true, while the enable status will
remain true. DC will be enabled by dc resume function.

bug 1452204

Change-Id: I55d44c8e84fd7025459dca1f9cec5a462aa1c842
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/363764
(cherry picked from commit 9bb217d8c2c7c55cc54c6a2281429ba169f7ddb6)
Reviewed-on: http://git-master/r/372681
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
10 years agoUndo"video: tegra: gk20a: Fix protected elpg race"
Prabhu Kuttiyam [Thu, 20 Feb 2014 21:40:17 +0000 (13:40 -0800)]
Undo"video: tegra: gk20a: Fix protected elpg race"

This reverts commit 6e3a8322adfdfc07e045fc874242e7cbd8ec8553.

Change-Id: I206bcd01d716d81b222491ac7d8f5c156070bbe0
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/370167
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
10 years agovideo: tegra: host: gk20a: fix pmu sequencing
Eric Eells [Tue, 18 Feb 2014 23:32:30 +0000 (15:32 -0800)]
video: tegra: host: gk20a: fix pmu sequencing

Currently the access to pmu->pmu_seq_tbl is not
synchronized resulting in possble multiple uses
of the same sequence.

Bug 1458524

Change-Id: I50acf3a7c0988a11131e903e7b93cea478dc69a8
Reviewed-on: http://git-master/r/367488
(cherry picked from commit cb2c2c2e1c8da73dd062b195104077246347302d)
Signed-off-by: Eric Eells <eeells@nvidia.com>
Reviewed-on: http://git-master/r/370078
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoarm: tegra: add emc dvfs table for PM359
Naveen Kumar S [Fri, 17 Jan 2014 09:18:46 +0000 (14:48 +0530)]
arm: tegra: add emc dvfs table for PM359

Add EMC DVFS table for Laguna-ERS-S (PM359)

bug 1354315
bug 1461523

Change-Id: Ida20f7797589559498db04df144e91e7c65f0588
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/357059
(cherry picked from commit 64cc409ccef04dfc0722c7dc3df4c0a37417240a)
Reviewed-on: http://git-master/r/368223
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit

10 years agopcie: host: tegra: Fix Invalid IRQ warning for RP
Jay Agarwal [Mon, 10 Feb 2014 07:11:07 +0000 (12:41 +0530)]
pcie: host: tegra: Fix Invalid IRQ warning for RP

Initialize IRQ_LINE to non-zero before enumeration
to avoid warning for invalid IRQ.

Bug 1453145

Change-Id: Ifbed98cb15f4f57a77bdc59dff225ae7fbaa3684
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/365334
(cherry picked from commit aa2e12682fc91a25184b4f468644e008c5047274)
Reviewed-on: http://git-master/r/369131
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoARM: tegra: dtb: add pm375 support
Bibek Basu [Wed, 12 Feb 2014 11:23:56 +0000 (16:53 +0530)]
ARM: tegra: dtb: add pm375 support

Add dtb for PM375 T124 board

Bug 1454434

Change-Id: I931667815c7d35dce0342a8c88e2afde6b2af001
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/366541
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agoARM: tegra124: pm375: add board file support
Bibek Basu [Wed, 12 Feb 2014 11:15:24 +0000 (16:45 +0530)]
ARM: tegra124: pm375: add board file support

Add board file support for pm375 T124

Bug 1454434

Change-Id: Id028a1ba855064469ebf9c171c997b6a1688e176
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/366540
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoSound: Tegra: max98090: add missing regulator enable
Bibek Basu [Mon, 17 Feb 2014 07:27:58 +0000 (12:57 +0530)]
Sound: Tegra: max98090: add missing regulator enable

Add enabling of regulator spkvdd during resume

Bug 1377308

Change-Id: I46af7d1eacd915ad975801cdcf37c41358df813e
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/368266
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agovideo: tegra: gk20a: Fix protected elpg race.
Prashant Malani [Tue, 4 Feb 2014 20:39:45 +0000 (12:39 -0800)]
video: tegra: gk20a: Fix protected elpg race.

Protected elpg calls can be pre-empted in the middle by the deferred
pg_init. This can lead to refcounting errors, which will result in elpg
always remaining on.

Therefore we protect the relevant sections of elpg setup in the deferred
work with a mutex.

Change-Id: I55746412885a09f7dbccd577f0c30d0d1102fe54
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/363424
(cherry picked from commit 782db693dfc5c70a1d327e52bec167309344ac19)
Reviewed-on: http://git-master/r/368259
Tested-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agovideo: tegra: dc: Check powergate status of DC
Pankaj Dabade [Tue, 11 Feb 2014 07:29:19 +0000 (12:59 +0530)]
video: tegra: dc: Check powergate status of DC

If DC is powergated quitely return.

bug 1449636

Change-Id: Id707f24d9d0c32a2f9ef356750da9d369d421edc
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/363785
(cherry picked from commit d2e049dae9d99dcd30dbdbe06566d5f4fd47fcd7)
Reviewed-on: http://git-master/r/368304
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agovideo: fbmem: change info prints as debug message
Pankaj Dabade [Wed, 12 Feb 2014 12:11:11 +0000 (17:41 +0530)]
video: fbmem: change info prints as debug message

Updating the message severity as debug message.

bug 1457209

Change-Id: I0796a326e3ca247cced93cb00b1ecb4fc6a86c4f
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/366621
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
10 years agoAttempt kernel firmware load before going to udev.
Neil Gabriel [Tue, 21 Jan 2014 18:03:59 +0000 (12:03 -0600)]
Attempt kernel firmware load before going to udev.

request_firmware() should fall back to usermodehelper
routines to load firmware only after a failed attempt
to load it directly. Prior to this change, the code
will attempt to lock the usermodehelper state before
attempting to load the firmware directly. If the
usermodehelper is disabled, the lock attempts will
fail and request_firmware() will exit without even
attempting a direct load.

Bug 1403956

Change-Id: I26c502d30657eab3d382d139618f9daa366068cf
Signed-off-by: Neil Gabriel <ngabriel@nvidia.com>
Reviewed-on: http://git-master/r/358303
Reviewed-on: http://git-master/r/362065
(cherry picked from commit 50ba73a322afff1e63d1cc2880bef7c907db98d6)
Reviewed-on: http://git-master/r/366457
Reviewed-by: Pankaj Dabade <pdabade@nvidia.com>
Tested-by: Pankaj Dabade <pdabade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agovideo: tegra: dc: Initialize hdmi vic length
Pankaj Dabade [Fri, 17 Jan 2014 14:01:53 +0000 (19:31 +0530)]
video: tegra: dc: Initialize hdmi vic length

Initialize HDMI vic length to avoid reading garbage.

bug 1400878

Change-Id: I4b91fb2c97c2650bb74788887965bbb35549fb6b
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/357167
(cherry picked from commit 5882be672a7f0c1928b1c592827785dc730fbcb6)
Reviewed-on: http://git-master/r/365897
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agopcie: host: tegra: Disable ASPM in pcie driver
Jeetesh Burman [Fri, 7 Feb 2014 08:55:39 +0000 (14:25 +0530)]
pcie: host: tegra: Disable ASPM in pcie driver

Since, there is hardware bug on T124, So removing ASPM support
from pcie driver, once DT supported on T124, ASPM can be enabled
with the help of DT.

Bug 1452479

Change-Id: I11308b9ba7b5f41c57e2031c57638d62b345df5d
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/364848
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
10 years agoPM/Domain: fix delayed power-off race
Andrew Bresticker [Tue, 14 Jan 2014 00:29:43 +0000 (16:29 -0800)]
PM/Domain: fix delayed power-off race

Commit 5ffea6f ["CHROMIUM: PM/domains: add delayed power off capability"]
introduced the ability to defer the power-off of a power domain and
used a PM notifier to flush any delayed power-off work for a power
domain. The PM notifiers, however, run before tasks are frozen and
outstanding runtime PM requests are flushed.  A runtime resume may
run during this time scheduling a delayed power-off which may not run
until after pm_genpd_prepare(), where the state of the domain at suspend
is recorded. As a result, a device which expected to be powered off
across suspend may be powered up unexpectedly during resume because
pm_genpd_prepare() recorded the state of the device as on at suspend.
Fix this race by flushing delayed power-off work in pm_genpd_prepare()
instead.

Bug 1426717

Change-Id: Ia3f83304eaa5eb8a6396175eaa98192a392692ad
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Mark Zhang <markz@nvidia.com>
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/355390
Tested-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/364897
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoRevert "video: tegra: host: gk20a: Do not suspend if active"
Arto Merilainen [Mon, 25 Nov 2013 14:10:54 +0000 (16:10 +0200)]
Revert "video: tegra: host: gk20a: Do not suspend if active"

This reverts commit 63078e87a62b265111622e58e66d9e67a2e1519b. The
original patch was added to protect kernel from applications that
injected jobs just after pm had suspended the device. This lead
the bookkeeping to get mixed as some callbacks were not called
correctly before the device was suspended.

We have now revisited the suspend sequences and identified that
we actually used to use some callbacks in a wrong way and the
original patch was simply a workaround to hide the issue. Now
that the issues are fixed, we can safely remove the hack.

Bug 1426717

Change-Id: I42d884bc21baad1a37001c354ef1a80e2eba140c
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/358575
(cherry picked from commit 12d0c2928fb62b4ba649dcd88b6fa0b057f1182c)
Reviewed-on: http://git-master/r/335100
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/364149
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jeetesh Burman <jburman@nvidia.com>
Tested-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agovideo: tegra: host: gk20a: reduce gr delays
Prashant Malani [Wed, 2 Oct 2013 21:23:59 +0000 (14:23 -0700)]
video: tegra: host: gk20a: reduce gr delays

The delay value used in gr usleep_range calls is
too high. We can start at a much lower value.

Change-Id: I7d196d0e3be0a5cd84e8c4dad537fae043da6274
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/335234
(cherry picked from commit 49bb8436a534496c70e6238d3bc20ed280d5b654)
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/363693
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
10 years agoarm: tegra: config: enable MAX98090 for laguna
Shreshtha Sahu [Mon, 3 Feb 2014 14:07:44 +0000 (19:37 +0530)]
arm: tegra: config: enable MAX98090 for laguna

Bug: 1377308

Change-Id: Id48262e3073d6f8b8dd6662e607ec7ccee1a49aa
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/362918
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
10 years agoarm: tegra: select MAX98090 codec for MACH_LAGUNA
Shreshtha Sahu [Mon, 3 Feb 2014 14:02:30 +0000 (19:32 +0530)]
arm: tegra: select MAX98090 codec for MACH_LAGUNA

Bug: 1377308

Change-Id: I77b2fca9d6f9a75b1688c21950ecfc46bddde704
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/362917
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Vikram Fugro <vfugro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agoASoc: Tegra: max98090: add support for laguna ers-s
Shreshtha Sahu [Mon, 3 Feb 2014 13:57:35 +0000 (19:27 +0530)]
ASoc: Tegra: max98090: add support for laguna ers-s

This patch adds support of MAX98090 codec for laguna
ers-s boards

Bug: 1377308

Change-Id: I118ec0f4514b3958d1253b6eb10e7488ff7700b0
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/362916
Tested-by: Vikram Fugro <vfugro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agoASoC: Tegra: use GPIO based HS detection
Mohan Kumar [Mon, 6 Jan 2014 19:20:49 +0000 (00:50 +0530)]
ASoC: Tegra: use GPIO based HS detection

norrin uses TI chip ts3a225e for headset detection, the detetion
signal is handled via gpio based logic which we need to add in
the machine driver of max98090 to support it.

Bug 1434511
Bug 1419069

Change-Id: I3329ebf4577782f2cd313ce39c9d435883f91370
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: http://git-master/r/352341
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/362915
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Vikram Fugro <vfugro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agoarm: tegra: laguna: add platform data for MAX98090
Shreshtha Sahu [Mon, 3 Feb 2014 12:32:09 +0000 (18:02 +0530)]
arm: tegra: laguna: add platform data for MAX98090

This patch adds platform data support for MAX98090
audio codec

Bug: 1377308

Change-Id: I3abdb71e254601a7e0056adaa4ccc6256c39688a
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/362914
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Vikram Fugro <vfugro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agosoc: codecs: max98090: Support K3.10
Johnny Qiu [Wed, 27 Nov 2013 12:25:21 +0000 (12:25 +0000)]
soc: codecs: max98090: Support K3.10

Bug 1405054
Bug 1408474

Change-Id: If8479faa5d4389833fd850c258c1eb1e29819df9
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/345832
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Tested-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/362913
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Vikram Fugro <vfugro@nvidia.com>
GVS: Gerrit_Virtual_Submit

10 years agosoc: tegra: max98090: Add K3.10 support
Johnny Qiu [Wed, 27 Nov 2013 12:18:53 +0000 (12:18 +0000)]
soc: tegra: max98090: Add K3.10 support

Bug 1405054
Bug 1408474

Change-Id: Icbf29d222eefc76be061a5d2bc3b085e3325e3ca
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/345833
Reviewed-by: Manoj Gangwal <mgangwal@nvidia.com>
Tested-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/362912
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Vikram Fugro <vfugro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agoarm: tegra: laguna: fix ina230 i2c error
Shreshtha Sahu [Mon, 3 Feb 2014 12:17:51 +0000 (17:47 +0530)]
arm: tegra: laguna: fix ina230 i2c error

This patch fixes ina230 i2c error. Removed registration
of ina230 power monitor device for Laguna ERS-S boards
as it is not present in it.

Bug: 1377308

Change-Id: I2159e75417982b3d5b4731792896c0eb2b4fa85b
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/362911
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Vikram Fugro <vfugro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
10 years agoarm: tegra: laguna: fix rt5639 i2c failure
Shreshtha Sahu [Mon, 3 Feb 2014 11:52:53 +0000 (17:22 +0530)]
arm: tegra: laguna: fix rt5639 i2c failure

This patch fixes rt5639 i2c failure. Removed i2c
and platform data registration for Laguna ERS-S
boards as it is not present in it.

Bug: 1377308

Change-Id: I1c2def0f0d5176ddfc08783975e7ba882014376d
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/362910
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Vikram Fugro <vfugro@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>