7 years agoarm: tegra: enterprise: Controls for 3d barrier
Alex Odorovic [Mon, 23 May 2011 10:42:27 +0000]
arm: tegra: enterprise: Controls for 3d barrier

Adds userspace control for 3d barrier on 3d panel found on enterprise.
Provides 2 sysfs files:

/sys/devices/nvhost/tergradc/stereo_mode
/sys/devices/nvhost/tergradc/stereo_orientation

These are used to enable/disable 3d barrier and control it's
orientation, respectively.

Change-Id: I580f0992c19cbee9a695bac9bef503c9888abc83
Reviewed-on: http://git-master/r/32575
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: Rcbf4758dbc1637ebfe924d48f543cc657dd8abdc

7 years agovideo: tegra: nvmap: Fix nvmap_handle.c compile
Dan Willemsen [Mon, 13 Jun 2011 22:04:10 +0000]
video: tegra: nvmap: Fix nvmap_handle.c compile

Rebase-Id: Re05bf8da51b75cfd7c8a10677fce557c76593a43

7 years agovideo: tegra: nvmap: Fix iovm_commit accounting issue.
vdumpa [Thu, 9 Jun 2011 00:42:19 +0000]
video: tegra: nvmap: Fix iovm_commit accounting issue.

Bug 835748

Original-Change-Id: I67766cc94496162816cbef4689fa806553d6edfa
Reviewed-on: http://git-master/r/35792
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: Ree8a45408d5763ec8db2cc4072add4c347326f99

7 years agovideo: tegra: dc: configurable LCD parent clock
Jon Mayo [Thu, 2 Jun 2011 03:10:27 +0000]
video: tegra: dc: configurable LCD parent clock

use a .parent_clk field to allow forced configuration of parent of
LCD/RGB clock. default is to use "pll_p".

Bug 829081

Original-Change-Id: If891e38022b7e88836d41385f60be66d48e366f9
Reviewed-on: http://git-master/r/34833
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Tested-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: Rb97abda6cee3fcff379fe253372c203df073dbab

7 years agonvrm: move stale wait checking into the kernel
Chris Johnson [Sat, 30 Apr 2011 21:24:44 +0000]
nvrm: move stale wait checking into the kernel

The kernel now receives wait tracking data (similar to gathers and
relocs) and compares the current syncpt with the threshold value.

If it's old, it gets a kernel mapping and rewrites the method data
to use a kernel reserved syncpt that is always 0 (so trivially pops
when seen by the HW).

Bug 519650
Bug 785525
Bug 803452

The waitchk implementation is also backward compatible with older
user space code that didn't supply waitchk data as part of the
submit.

(cherry picked from commit 4069d8e67665624ad3dceb628e572980dd57acd0)
(cherry picked from commit 6e4336408588e348804a62e53386acc9abc06823)
(cherry picked from commit 87a9efe751716ca741caac72b9061fdfdcec540a)
(cherry picked from commit 6d8d2c454e835f7cfe34371e07dac173f3153452)

Original-Change-Id: I1bf4c940fefb6e251aa8c396e92631fa3cbe32df
Reviewed-on: http://git-master/r/23159
Reviewed-on: http://git-master/r/30281
Reviewed-on: http://git-master/r/32669
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: Rbad4942a103de7d64d8a6a11d4a973740c56fa8e

7 years agoarm: tegra: nvhost: Add debugfs entry for null GPU kickoff
Janne Hellsten [Tue, 24 May 2011 12:34:13 +0000]
arm: tegra: nvhost: Add debugfs entry for null GPU kickoff

Add a debugfs entry for enabling/disabling GPU null kickoff of
graphics submits on a per process basis.

Restructure existing tegra_host debugfs node by making the existing
tegra_host file a directory and moving the status query under its own
status node.  Thus the file system structure changes from:

/sys/kernel/debug/tegra_host - status

to

/sys/kernel/debug/tegra_host/status - status
/sys/kernel/debug/tegra_host/null_kickoff_pid - null GPU ctl

Bug 826513

Original-Change-Id: Id7ccbce1bb9e53c6e3b036d10f23563fab6bf481
Reviewed-on: http://git-master/r/32765
Reviewed-by: Janne Hellsten <jhellsten@nvidia.com>
Tested-by: Janne Hellsten <jhellsten@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

Rebase-Id: R8bfacafbd0a74cddf33cded06331e52b53564156

7 years agovideo: tegra: host: Work towards enabling 3d power gating
Shashank Garg [Tue, 17 May 2011 11:25:23 +0000]
video: tegra: host: Work towards enabling 3d power gating

Fixed clock enable/disable balance issue. Added code for power gating 3d1.

Power gating still disabled as it won't work for T20 or T30 A01.

Original-Change-Id: Idcc5fd9d21d43c796bbeeac378a46f9eca3ab1c9
Reviewed-on: http://git-master/r/31142
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Shashank Garg <sgarg@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R80f171724518d94364e169416788d4ce577b3a66

7 years agovideo: tegra: nvmap: Add support to allocate specific IOVM
vdumpa [Mon, 16 May 2011 02:31:15 +0000]
video: tegra: nvmap: Add support to allocate specific IOVM

Original-Change-Id: I95cdf71e74947d4394e0cfd272a29c47562d4059
Reviewed-on: http://git-master/r/31648
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: Rb8c6f92bdfd0bf124a878800a793828fa61c0043

7 years agovideo: dsi: tegra: Stop dc stream before configuring dsi
Animesh Kishore [Thu, 2 Jun 2011 16:25:37 +0000]
video: dsi: tegra: Stop dc stream before configuring dsi

Advantage is that it avoids glitches on panel arising while dsi
registers are being configured.

Bug 833685

Original-Change-Id: I6c36749ae964aa4669c4e3cccd551405d3542a4e
Reviewed-on: http://git-master/r/34926
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>

Rebase-Id: R423ce1bc27a1cf99c441ee4d56aba2dd53dcf696

7 years agovideo: tegra: nvmap: single page allocation policy corrected
Kirill Artamonov [Tue, 24 May 2011 10:12:43 +0000]
video: tegra: nvmap: single page allocation policy corrected

When user doesn't use default heap policy and selects
GART or carveout allocation, automatic single-page-to-sysmem
rule doesn't work. Because of broken rule many single page
allocations take extra space in carveout and create
unnecessary page mappings in GART and SMMU.

The fix adds sysmem bit to heap mask when allocation is
single page and GART or carveout is present in heap mask.

bug 730124
bug 731923

The change also does sanity check of available system memory
before adding sysmem bit for carveout allocations.

bug 777839

Original-Change-Id: I13a62653825f6c80581adcd2682fb2608d3a284e
Reviewed-on: http://git-master/r/31383
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Tested-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R278606210f20aacc885fa9eb06b3a2a3d8677b55

7 years agovideo: tegra: dc: Selecting proper output signal or LM0/1
Laxman Dewangan [Wed, 1 Jun 2011 17:41:56 +0000]
video: tegra: dc: Selecting proper output signal or LM0/1

If LM0/LM1 output signal is selected from the PWM PM0 and PM1 then
configuring the output select register accordingly.

bug 831073

Original-Change-Id: I7546fd86a10dbf3ca3fa114d0e528ec8b9ee0e4f
Reviewed-on: http://git-master/r/34733
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R99e5dff91c5e7c9c7367c2b591ca16c804cdbed1

7 years agovideo: backlight: tegra: Supporting DC-pwm on Tegra3.
Laxman Dewangan [Wed, 1 Jun 2011 17:46:03 +0000]
video: backlight: tegra: Supporting DC-pwm on Tegra3.

Supporting the dc pwm based backlight control for TEGRA3
SOC.

bug 831073

Original-Change-Id: I21e430e28472285636612b71732a8b94e609bb91
Reviewed-on: http://git-master/r/34734
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Re9ee1077cf2c77017472740ac7bc50e4dc7e3ce8

7 years agovideo: tegra: dc: fix ksv_list query sequence and timeout handling
Peter Zu [Sat, 28 May 2011 06:13:15 +0000]
video: tegra: dc: fix ksv_list query sequence and timeout handling

- remove delay on i2c r/w success to fix hdcp test case 1b-03 failure
- do not turn on hdcp crypt before verifying repeater

bug 829599

Original-Change-Id: I43718636342cb0d396cc702a8374d61da72844a7
Reviewed-on: http://git-master/r/34645
Tested-by: Peter Zu <pzu@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R209e114e898cb2052233d6e8d24a2e5be3fbd32a

7 years agotegra: dc: fix dc hang during dc reset
Min-wuk Lee [Thu, 2 Jun 2011 02:03:01 +0000]
tegra: dc: fix dc hang during dc reset

1. fix dc hang during dc reset
2. do dc reset after dc clk enabling
in reset worker function
3. remove a few build warnings

Bug 801463

Original-Change-Id: Ib7fe65555d7b0cdc8ae73fd3afd28d2b95e2d57e
Reviewed-on: http://git-master/r/33112
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Tested-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>

Rebase-Id: R4e8a48b950a7f5965953dcb9490a61a486c4d779

7 years agoarm: tegra: Clean up SOC conditionals
Scott Williams [Tue, 24 May 2011 05:08:42 +0000]
arm: tegra: Clean up SOC conditionals

Change SOC conditionals to make them more forward-looking.

Original-Change-Id: Ib60db4e690c2f396afdec962616d735548b5a8a9
Reviewed-on: http://git-master/r/32706
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R4731d27b650940a5d532419616fefc495c621305

7 years ago[ARM] tegra: Extend the wait interface in the host
Paul Hodgson [Wed, 9 Mar 2011 12:18:26 +0000]
[ARM] tegra: Extend the wait interface in the host

Extend the wait interface to relay the actual resultant waited
point back.

Original-Change-Id: Idbaa96b186390a2383ef2cc99aefb950648a2d19
Reviewed-on: http://git-master/r/23033
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: Rd30d550f9adbd84f643201c17c61a46e80884e86

7 years agovideo: tegra: host: add additional syncpoint id
Prayas Mohanty [Mon, 2 May 2011 10:54:23 +0000]
video: tegra: host: add additional syncpoint id

For stereo camera, we need to read syncpoints from
both the rear sensors which are on their own pixel
parsers. Add an additional sw syncpoint for that.

bug 787214
bug 786928

Original-Change-Id: I4dff7fa636ff548de44544f845a5a1ba0c402d6d
Reviewed-on: http://git-master/r/30009
Tested-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Andrew Howe <ahowe@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Erik M Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R927b1c2297441f9c30afdc8c623a8299340b6771

7 years agovideo: dsi: tegra: Support for sync point
ankishore [Wed, 18 May 2011 05:48:13 +0000]
video: dsi: tegra: Support for sync point

Adding support for sync point in dsi kernel driver

Bug 807903

Original-Change-Id: Id0520be9896bdb7f96718e38d548bc2f7e52fa3e
Reviewed-on: http://git-master/r/31939
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R364c6b99608b2743c94cf80779305ce56e1570ea

7 years agovideo: dsi: tegra: driver power management
ankishore [Mon, 16 May 2011 09:16:24 +0000]
video: dsi: tegra: driver power management

Support for power management in dsi kernel driver

Bug 793857

Original-Change-Id: If2ac183c830974d33b9aeeb615178cf554136bbf
Reviewed-on: http://git-master/r/31541
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>

Rebase-Id: R25378071d2ca6ad17982d1cad5512d66ebe63c1e

7 years agotegra: iovm: Limit forced Carveout-to-IOVM conversion to tegra 3
Hiro Sugawara [Tue, 17 May 2011 20:15:05 +0000]
tegra: iovm: Limit forced Carveout-to-IOVM conversion to tegra 3

Bug 828027

Original-Change-Id: I890e0481be5aade59bc68510c9fe5929bb3b64a2
Reviewed-on: http://git-master/r/31902
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Tested-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R7daa676019d94684e5245d850a49274903578332

7 years agoARM: tegra: dc: lower hdmi clock before set rate
Jon Mayo [Sat, 14 May 2011 00:28:58 +0000]
ARM: tegra: dc: lower hdmi clock before set rate

choose a higher clock divider on hdmi before switching clock parents.
This prevents hdmi from exceeding its DVFS clock limits.

Original-Change-Id: I09c23498bf6450cf19e91accb788715582c3befb
Reviewed-on: http://git-master/r/31605
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>

Rebase-Id: Red51c8e99dcc60fe4cda52efba77e1182e89e3b5

7 years agomedia: tegra: avp: Allocate IOVMM first for AVP
Kaz Fukuoka [Sun, 15 May 2011 00:46:24 +0000]
media: tegra: avp: Allocate IOVMM first for AVP

bug 827505

Original-Change-Id: If6d4fd137b72c3a08bf8fb1094d8dd31ab361f1c
Reviewed-on: http://git-master/r/31633
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Tested-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Frank Thomas Bourgeois <fbourgeois@nvidia.com>

Rebase-Id: R563eaa39b299d89133f7a9fb4b1c7129e8ddb71e

7 years agoarm: tegra: nvmap: Forcing to convert CarveOut requests to IOVM
Hiro Sugawara [Thu, 17 Mar 2011 20:58:13 +0000]
arm: tegra: nvmap: Forcing to convert CarveOut requests to IOVM

Adding a build time CONFIG option to enable forcing of conversion
of non-IRAM CarveOut memory allocation requests to IOVM requests.
Default is "y" to force the conversion.
Each forced conversion is reported to console.
Allocation alignments larger than page size for IOVM are enabled.
Single page CarveOut allocations are converted to system memory.
CarveOut memory reservation has been removed for aruba, cardhu,
and enterprise.

Original-Change-Id: I3a598431d15b92ce853b3bec97be4b583d021264
Reviewed-on: http://git-master/r/29849
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R602260e283f721b7e0f0d802092516ff68c068fe

7 years agovideo: tegra: dsi: Adjusted the values of packet sequence registers.
Kevin Huang [Tue, 3 May 2011 17:52:24 +0000]
video: tegra: dsi: Adjusted the values of packet sequence registers.

Changed the values of packet sequence registers for DSI burst video mode.

Original-Change-Id: I70188ed3c8fff094862a89377457751fd0d4382c
Reviewed-on: http://git-master/r/31080
Reviewed-by: Kevin Huang <kevinh@nvidia.com>
Tested-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R15b821f1f77afa2a323c92b4db660781a3f6a219

7 years agonvhost: Add tracing to nvhost driver.
Terje Bergstrom [Thu, 28 Apr 2011 13:32:33 +0000]
nvhost: Add tracing to nvhost driver.

Creates /d/tracing/events/nvhost. Logs channel opens, closes,
writes and flushes. For writes, logs number, size and address
of cmdbufs and number of relocs.

Original-Change-Id: I5bdadcb40c31e3f057eb8c4579b95e235d860e39
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/29770
Reviewed-by: Andrew Howe <ahowe@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

Rebase-Id: Rbe763a4da9f5c431170301f91fa1bc4cb4ed8f0e

7 years agovideo: tegra: Added sysfs for dc/smartdimmer
Laurence Harrison [Thu, 7 Apr 2011 01:26:21 +0000]
video: tegra: Added sysfs for dc/smartdimmer

Includes:
1.) Added basic DC sysfs objects.
2.) Sysfs objects and functions for smartdimmer settings.
3.) Register dump access for smartdimmer.
4.) Improvements to the behavior of smartdimmer (now updates
    at the end of vblank instead of the beginning).
5.) Rename v_blank_complete to vblank_complete to keep in
    same effective style as the rest of the code.

Original-Change-Id: I59addcc479880322d49b24d1206009def3c4b392
Reviewed-on: http://git-master/r/29893
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R3a65726e3644d01b374f9774e966d635234567b4

7 years agovideo: tegra: Fixed compilation warnings.
Kevin Huang [Fri, 6 May 2011 20:40:53 +0000]
video: tegra: Fixed compilation warnings.

Original-Change-Id: Ie46f78c54ea8f7bf04fa33c368123e760c072999
Reviewed-on: http://git-master/r/30751
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Raf05cd039655b68ebd398c5cf517c292ba10d493

7 years agoARM: tegra: dc: Fix overlay emc scaling calculations
Alex Frid [Wed, 4 May 2011 05:36:43 +0000]
ARM: tegra: dc: Fix overlay emc scaling calculations

Bug 822754

Original-Change-Id: I0b46083137efe1221faf4b71763c5c805c2b928d
Reviewed-on: http://git-master/r/30310
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rb6df5db1b5e18ef45d8b492c467409bed01f6733

7 years agovideo: tegra: dc: handle error condition
Amit Kamath [Wed, 27 Apr 2011 12:23:43 +0000]
video: tegra: dc: handle error condition

Do not handle requests further for displays that are not enabled

BUG 813310

Original-Change-Id: Id4dc73cd9603b84d4ff1c62ae58fb19fc59a7e41
Reviewed-on: http://git-master/r/29515
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R602328df16df1b9c5e94a2737fa20181359a3c6e

7 years agoARM: tegra: dc: fix h_ref_to_sync calculation
Jon Mayo [Fri, 29 Apr 2011 23:43:24 +0000]
ARM: tegra: dc: fix h_ref_to_sync calculation

use smaller h_ref_to_sync values.
removed old debug printks

Bug 806009

Original-Change-Id: Iaf2cf258fcfb840df1863a69bcbba236486d2551
Reviewed-on: http://git-master/r/29900
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Chong Zhang <chzhang@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: Rddb9941a95c37a509a024036bc8711019a65baf6

7 years agovideo: tegra: dc: stop hdcp when keys are missing
Jon Mayo [Fri, 29 Apr 2011 23:57:07 +0000]
video: tegra: dc: stop hdcp when keys are missing

verify Aksv, if it is invalid then quickly disable further hdcp checks.

Bug 792855

Original-Change-Id: I4a9d689d571d2f916e11f92f5b897f287f724068
Reviewed-on: http://git-master/r/29899
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R198c9da7c918732a9b764063d12fd7de3792e5b8

7 years agoARM: tegra: dc: clip invalid windows to screen res
Jon Mayo [Fri, 29 Apr 2011 03:25:13 +0000]
ARM: tegra: dc: clip invalid windows to screen res

clip invalid windows to fix screen size, failure to do so causes display
errors that result in corrupted display and invalid video modes.
prints a warning only once, if this warning is present in the logs then
there is a misbehaving application.

Bug 821094

Original-Change-Id: Ief7b6379026e6abeb31a28aabf920618edd7ab44
Reviewed-on: http://git-master/r/29759
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: Rbbd1c33e5d4b58b5ddc8a4910b6851dc9bb73d63

7 years agoARM: tegra: dc: fix mutex lock in reset worker
Jon Mayo [Fri, 29 Apr 2011 22:08:56 +0000]
ARM: tegra: dc: fix mutex lock in reset worker

unlock mutex if reset worker finds the display disabled.

Bug 801463

Original-Change-Id: I22bff26b5b72e75f0c46efb68446ec2257e8273f
Reviewed-on: http://git-master/r/29898
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>

Rebase-Id: Rc38b140352b443963756a0b0385261065a58b1e0

7 years agoHACK: Enable HDMI hotplug
Dan Willemsen [Fri, 1 Apr 2011 06:33:08 +0000]
HACK: Enable HDMI hotplug

Original-Change-Id: I0aabdebab1765014c2a853f41ec53fba3cce6670

Rebase-Id: R4ac77645bd5c1a615d9045dccdd1cc40e9d05938

7 years agovideo: dsi: tegra: Read from dsi panel
ankishore [Fri, 15 Apr 2011 06:16:51 +0000]
video: dsi: tegra: Read from dsi panel

Support to read from dsi panel even with dc stream on.

Original-Change-Id: I4ecbeded43d3e8424d66f64321f902c540163427
Reviewed-on: http://git-master/r/27465
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venkata Nageswara Penumarty <vpenumarty@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Original-Change-Id: I68c59bb0d8f8761102e10f130029ffce827cdadb

Rebase-Id: R6b3498b0cb1b9608ca457ab9869d97ad46bea4f9

7 years agoARM: tegra: Use proper type for physical addresses
Scott Williams [Wed, 13 Apr 2011 00:47:52 +0000]
ARM: tegra: Use proper type for physical addresses

Original-Change-Id: I158d2be97c795313e7e74ce9fb4ec0bdc7d95496
Reviewed-on: http://git-master/r/27559
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Hiro Sugawara <hsugawara@nvidia.com>
Reviewed-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I0ff198daa548ed2837f7fb1794013bf0adf7e5a1

Rebase-Id: R83df5f3b5104183bfe774d8eed8ce94427c9b7fc

7 years agoarm: video: tegra: dc callbacks for hotplug init
Jon Mayo [Wed, 13 Apr 2011 01:14:22 +0000]
arm: video: tegra: dc callbacks for hotplug init

add new dc out callback hotplug_init and postsuspend to handle board
specific configuration of power and gpios for detecting hotplug.

bug 812083 bug 811523

Original-Change-Id: Ia7937cc9461465502cabbd2a5efaee0093bccfe0
Reviewed-on: http://git-master/r/27570
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: Iab0fbe0e493ad3818416454ba7a2dda679f68dfb

Rebase-Id: R8869de766d7939a7be48a4860c45d18ac7a2ffed

7 years agoARM: tegra: dc: hdmi drive strength changes
Jon Mayo [Thu, 10 Feb 2011 23:35:38 +0000]
ARM: tegra: dc: hdmi drive strength changes

use pixel clock to configure HDMI interface signaling properties.
These options are different depending on which SoC.

Bug 786961 Bug 795251

Original-Change-Id: Ic898e87134cbac0fe5723242febdf46bc5b72d32
Reviewed-on: http://git-master/r/19176
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I98d68da65e590a0eb5cf7fac166d05e0c531bd5f

Rebase-Id: Re162cfbb1042f6e19b38d2de3e278677dc702361

7 years agovideo: tegra: nvmap: Remove dead code
Dan Willemsen [Fri, 1 Apr 2011 06:36:58 +0000]
video: tegra: nvmap: Remove dead code

This commit:
tegra:video:nvmap: optimize cache_maint operation.

added some dead code

Original-Change-Id: I9193a7865f5e3126b06950efaf9b5a4b6c7fd919

Rebase-Id: R30ba7719d8aa6ad48d708714396299b154cf0131

7 years agoARM: tegra: dc: fix deadlock on overlay wq flush
Jon Mayo [Thu, 31 Mar 2011 03:23:39 +0000]
ARM: tegra: dc: fix deadlock on overlay wq flush

dc lock is head while flush occurred, but functions called by workers need
take the dc lock to proceed.

Bug 807015

Original-Change-Id: Id30c5c768947f8f9959b01be3983761a18c5a1e5
Reviewed-on: http://git-master/r/24890
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I6537018e03cfc354af9a7187d2fdd019cfe55960

Rebase-Id: Rc1c42255aef998f6741fe1484356a884479b8ec8

7 years agovideo: tegra: dsi: Stop dc stream at the frame end
kevinh [Fri, 18 Mar 2011 07:12:40 +0000]
video: tegra: dsi: Stop dc stream at the frame end

Fixed tegra_dsi_stop_dc_stream() to flush register immediately.
Added tegra_dsi_stop_dc_stream_at_frame_end().

Original-Change-Id: Ie4fe1f6d59e6bf0dab40251f33a0c2f8d816fdd8
Reviewed-on: http://git-master/r/23488
Reviewed-by: Kevin Huang <kevinh@nvidia.com>
Tested-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I398cb977146656936c5768c2bc3ec83f7bdc7c66

Rebase-Id: Rda5a11692992edd47c49e0f30446efc0a26e747e

7 years agovideo: tegra: host: Backwards compatible null kickoff
Andrew Howe [Thu, 24 Mar 2011 16:24:47 +0000]
video: tegra: host: Backwards compatible null kickoff

Change back to the backwards compatible null kickoff method
(having a separate ioctl).

Original-Change-Id: Ifb6e706ac9e068c5bc8d834fe61f797f14c5889f
Reviewed-on: http://git-master/r/24159
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Ifde9ee33e072ec502fcd855ffc8d92d312946a00

Rebase-Id: R1884e0a57bf63fced738567acf5c521d1c8109b9

7 years agovideo: tegra: host: Add emc clock to gr2d, gr3d and mpe modules
Andrew Howe [Thu, 24 Mar 2011 15:06:50 +0000]
video: tegra: host: Add emc clock to gr2d, gr3d and mpe modules

Add emc to the set of units to power-manage.

Original-Change-Id: I9d9624ce3673fc005447df3356867b37f4a75006
Reviewed-on: http://git-master/r/24158
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I75a48f19bd94b832b9f70707806aef26a53cae45

Rebase-Id: Rac3067ac41491e4e3a63f64ff87df851b2e9bc6c

7 years agovideo: tegra: host: Renovate debug code
Andrew Howe [Tue, 22 Mar 2011 16:38:23 +0000]
video: tegra: host: Renovate debug code

Bring in changes to enable dumping the debug state
to the kernel log (used when module suspend times out).

Rewrote debug code to get that working more cleanly (no 16K buffer).

Refactored & cleaned up debug code to make it easier to understand.

Original-Change-Id: I22db36a627bfb1815a46866dfe23a5d3aa693edc
Reviewed-on: http://git-master/r/24157
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I92d7dcc4ede088179a5a1bca982fdfba1eeb3553

Rebase-Id: Ra013bf33c1002d2e37a7c97b7d4b441ad51f7211

7 years agovideo: tegra: host: Revert previous merge
Kishore Kumar Kunche [Tue, 8 Feb 2011 05:18:00 +0000]
video: tegra: host: Revert previous merge

The proper host driver patches will follow, based on the
pre-merge state.

also includes:
[ARM]: tegra: host disable MPE auto power gate
Fixes Random CRC failures on T30.
Original-Change-Id: Ib42b8efc30d9e8910934bb9350e8170c9096e614
Reviewed-on: http://git-master/r/18663

Original-Change-Id: I985bfbef277db4d533b67ee674db41d4a8daa18a
Reviewed-on: http://git-master/r/24296
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Iec8ea27d5648b7f9f8ac51f2aca79b5e7cf44879

Rebase-Id: Rcfb56b73d820c182354e6b91afa219148e4000b0

7 years agoUpdate copyrights
Scott Williams [Mon, 28 Mar 2011 07:34:42 +0000]
Update copyrights

Original-Change-Id: I2ffeaf6f8dfeb279b40ca6f69f6c9157401a746a

Rebase-Id: R5a6d087b717731c957b016f903fb82b4ea22b92d

7 years agovideo: dsi: tegra: Removing the dsi related macros
ankishore [Thu, 24 Mar 2011 12:26:51 +0000]
video: dsi: tegra: Removing the dsi related macros

Due to dynamic recognition of the board id these macros are no longer
required

Original-Change-Id: I4eafad1a8ccab3a3e493944fd4a90df8972e7521
Reviewed-on: http://git-master/r/24127
Reviewed-by: Venkata Nageswara Penumarty <vpenumarty@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>
Original-Change-Id: I90c1fe2a6a6f2a22b6389b3080c743dd20f1fe1a

Rebase-Id: Ra862a12a1b7882bd7a0d6633277ad2e9299cd74d

7 years agovideo: dsi: tegra: Support for dsi 2nd instance
ankishore [Tue, 22 Mar 2011 06:10:33 +0000]
video: dsi: tegra: Support for dsi 2nd instance

Made necessary changes in dsi kernel driver to support dsi 2nd instance
Bug id: 805483

Original-Change-Id: I1e333b243e31f285dca22351d999328d9d5f0485
Reviewed-on: http://git-master/r/22174
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venkata Nageswara Penumarty <vpenumarty@nvidia.com>
Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: I10ff6243a0c3b0e7114976a4615e8b26f382b7ec

Rebase-Id: R48ba2a5247d6e6d28d0794ae698e7afe877b2fd6

7 years agovideo: tegra: Added initial smartdimmer support
Laurence Harrison [Wed, 16 Mar 2011 04:43:45 +0000]
video: tegra: Added initial smartdimmer support

includes:
1.) changes to DC init to add SD functionality
2.) changes to DC flip to add SD functionality

Original-Change-Id: I8c729e16e2b8a5a4158697b99cc4b3d07bf02001
Reviewed-on: http://git-master/r/21452
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I4ad3ee3778a0e859e0d2b0c36ee6369193795cd3

Rebase-Id: Rd133da1af5c8b283b1886b025b8b1880ec61fde0

7 years agovideo: tegra: calculate h_ref_to_sync for mode
Jon Mayo [Fri, 11 Mar 2011 22:39:26 +0000]
video: tegra: calculate h_ref_to_sync for mode

add tegra_dc_set_fb_mode() to create tegra_dc_mode from fb_videmode.

Original-Change-Id: Icfaf99ab1c14b64f52b5b382bc8b94ed2e8306db
Reviewed-on: http://git-master/r/22689
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I233b15e1c88e0946752cac1251d5122a1f50a579

Rebase-Id: R7e280e6d4a1e2f2432ec4ca85bfcf209fd55c9dc

7 years agoarm: tegra: Ignore DC interrupts on FPGA platforms
Bo Yan [Fri, 11 Mar 2011 02:04:22 +0000]
arm: tegra: Ignore DC interrupts on FPGA platforms

Bug 800669

Original-Change-Id: I4b3a58b4938c4582a3738714c301541b752be844
Reviewed-on: http://git-master/r/22500
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Id050088e6b2ac4289ab9a5dcca0f7f3288354dac

Rebase-Id: Rc7e17b39fd0a986a333bd8aae78a116fca9ebbdc

7 years agovideo: dsi: tegra: Correcting clock api in dsi driver
ankishore [Mon, 14 Mar 2011 06:02:34 +0000]
video: dsi: tegra: Correcting clock api in dsi driver

Corrected the arguments being passed in the clock api.

Original-Change-Id: I1515280b2f1e4856910923340aeb67b4a4867e7b
Reviewed-on: http://git-master/r/22780
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Original-Change-Id: Ibc2ce652b8dbfb8aa40d75ac502cf72768697480

Rebase-Id: Redbc4be423706727d150798bc78273bafafd89d1

7 years agovideo: tegra: use low power for any type of blank
Jon Mayo [Thu, 10 Mar 2011 23:42:15 +0000]
video: tegra: use low power for any type of blank

use a lower power mode for any type of FB_BLANK instead of only supporting
FB_BLANK_POWERDOWN.

Original-Change-Id: I1dc9a6bb29808802563afb07fb5d7b41a5ba5c3d
Reviewed-on: http://git-master/r/22467
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Tested-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I4402e7f067a7f30e6a728c8b3ec4a00821741cbe

Rebase-Id: R6e8ac6c8cecd5ae91817e4225a166bac155c9d72

7 years agoarm: tegra: hdmi:audio freq and source selection
mohit singh [Tue, 1 Mar 2011 05:49:35 +0000]
arm: tegra: hdmi:audio freq and source selection

- moving the new API to a new file under mach tegra
  include.

Original-Change-Id: I0e898883bbf5ab0f24573bb334ff355564118f2f
Reviewed-on: http://git-master/r/21206
Tested-by: Mohit Singh <mpsingh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: I232974ba41e9b3589aebf6aa25a9ab17d4dd12dd

Rebase-Id: R09f335e4905579ca334a1f8132a3d6f96ada0555

7 years agovideo: tegra: Skip syncpoint increments if disabled
Yu-Huan Hsu [Wed, 2 Mar 2011 07:57:41 +0000]
video: tegra: Skip syncpoint increments if disabled

Avoid Display Controller (DC) syncpoint increments if that instance of DC is
not enabled.
Bug 793874

Original-Change-Id: I602b5399da8738824ae2e2c6ad3fa0d83a539567
Reviewed-on: http://git-master/r/21347
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Kevin Huang <kevinh@nvidia.com>
Tested-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I9ca8ebe373f96470a535199e2c89fc6a605489d9

Rebase-Id: R50565adaf483633ddaa58dd4e44bb608edbaeead

7 years agoarm: tegra: hdmi:audio freq and source selection.
mohit singh [Mon, 21 Feb 2011 15:11:40 +0000]
arm: tegra: hdmi:audio freq and source selection.

- provided an API for selecting source and
  audio freq.

- bug 790232.

Original-Change-Id: I693e7291085c7c7a3c26ef4daa9490c0b80d51df
Reviewed-on: http://git-master/r/20312
Tested-by: Mohit Singh <mpsingh@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: Ibf2b5a7bd298a550f0d8490a9386cd5f8c10bdc0

Rebase-Id: R6f54f7b337c7ee744c8054a8e37bc5cc73fdcdc6

7 years agoarm: tegra: hdmi:added support for edid like data
mohit singh [Tue, 15 Feb 2011 04:34:24 +0000]
arm: tegra: hdmi:added support for edid like data

- added support for eld extraction from edid.

- added support for propogation of eld to HDA.

- bug 790232.

Original-Change-Id: Ic94560c3bbef61e19fc901895052a892c5b7661f
Reviewed-on: http://git-master/r/19547
Tested-by: Mohit Singh <mpsingh@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: Ib331531ad735ea44f7c123610f7829573eb40623

Rebase-Id: R7ba53a66b41eb9aa87cf2842414f18d8f25d98c7

7 years agoarm: tegra: nvhost: Workaround for 3D hardware bug
Andrew Howe [Sun, 6 Feb 2011 03:30:22 +0000]
arm: tegra: nvhost: Workaround for 3D hardware bug

Send a RD_DONE syncpoint increment to GSHIM before switching
between broadcast and unicast (unless a non-immediate syncpt
was already sent).

Bug 789194

Original-Change-Id: I47630c08ecc065c0a7f3270809a85d0a9982c01b
Reviewed-on: http://git-master/r/18501
Tested-by: Andrew Howe <ahowe@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I030baf7fa8aa2a0df97a2727bdf214c09bb8ecd2

Rebase-Id: Ra2cf2cf0dc260779f8d145fa3c619236155e500a

7 years agoarm: tegra: hdmi: conditionalized the source path
mohit singh [Thu, 3 Feb 2011 13:32:47 +0000]
arm: tegra: hdmi: conditionalized the source path

This change enables support for selecting source
reg based on verion of SOC.

Bug 783375

Original-Change-Id: Ib0fd6c7a772c1b2e94e986fad5bea942a2f2f4aa
Reviewed-on: http://git-master/r/18190
Tested-by: Mohit Singh <mpsingh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Ibf5823e84810daef6dfb6b8e553115050e84d059

Rebase-Id: R3772f0aaf696af8298d13cb2e909f8a827ce20e4

7 years agoarm: tegra: nvhost: Fix TEGRA_2x_SOC build
Robert Morell [Tue, 1 Feb 2011 22:46:53 +0000]
arm: tegra: nvhost: Fix TEGRA_2x_SOC build

Preprocessor config options are either defined or not defined, not
always defined to logical true or false.  Use #ifdef instead of #if to
get the desired behavior and avoid the warning:
nvhost_3dctx.c:28:5: warning: "CONFIG_ARCH_TEGRA_3x_SOC" is not defined

Originally broken by commit 7959045ff7b177a09350df882c4bba78d93cac5f.

Original-Change-Id: I165aab164f4ed4d1c4a7e2b64357384c170aa009
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Reviewed-on: http://git-master/r/17945
Reviewed-by: Andrew Howe <ahowe@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Iec522ad1cbc4dfddc17386a5125c31ad95a4b753

Rebase-Id: R03fbafdec73e8fcab12ba0b70b41fe37f3a410a6

7 years agoARM: tegra: nvhost: Add the 2nd 3D clock control
Alex Frid [Thu, 27 Jan 2011 02:45:21 +0000]
ARM: tegra: nvhost: Add the 2nd 3D clock control

Original-Change-Id: Icfc816638b6010b46b2e587827322ef41a7e08d6
Reviewed-on: http://git-master/r/17141
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I7b792509dd5c99f86bb4a85ba5b092a80022ed78

Rebase-Id: Rd45d9892a5343664f77ffef3f541682e86e54b5d

7 years ago[arm:tegra] Limiting function visibility/scope to static
Hiro Sugawara [Thu, 20 Jan 2011 21:06:32 +0000]
[arm:tegra] Limiting function visibility/scope to static

Limiting an intra-file local function's visibility/scope to static.

Reviewed-on: http://git-master/r/16448
(cherry picked from commit 77ba728673bde431af2eb0cdb0050b91c3f8b647)

Original-Change-Id: I560fa431c81205513701f1e8263dd79ae371c813
Reviewed-on: http://git-master/r/16591
Tested-by: Hiro Sugawara <hsugawara@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I2981d976885b7c734a2c3000e41d9602ab04ce95

Rebase-Id: R8368b938b9854d300ca873cee2f38d28a2b927ae

7 years ago[ARM/tegra] nvhost: Tegra3 support
Andrew Howe [Fri, 10 Dec 2010 14:18:33 +0000]
[ARM/tegra] nvhost: Tegra3 support

Adding support for Tegra3:
* auto context save (without FIFO reading in interrupt)
* new registers
* SLI

Note: currently hardcoded to Tegra3, SLIx2. Need query function.

Original-Change-Id: I7daff768540ac0f0af12a655a664428a3ae55665
Reviewed-on: http://git-master/r/12564
Tested-by: Andrew Howe <ahowe@nvidia.com>
Tested-by: Jussi Rasanen <jrasanen@nvidia.com>
Reviewed-by: Andrew Howe <ahowe@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I42bfa94856676bfd82b4c11cc8cf523ca2c0dbe6

Rebase-Id: R9b1f81b7a0323f87a4c13804e483383595971550

7 years agoMerge remote branch 'git-master/android-tegra-2.6.36' into merge-android
Jin Qian [Thu, 30 Dec 2010 01:35:51 +0000]
Merge remote branch 'git-master/android-tegra-2.6.36' into merge-android

Conflicts:
arch/arm/configs/tegra_defconfig
arch/arm/mach-tegra/Kconfig
arch/arm/mach-tegra/Makefile
arch/arm/mach-tegra/board-ventana-power.c
arch/arm/mach-tegra/board-ventana-sensors.c
arch/arm/mach-tegra/board-ventana.c
arch/arm/mach-tegra/clock.c
arch/arm/mach-tegra/common.c
arch/arm/mach-tegra/cpu-tegra.c
arch/arm/mach-tegra/fuse.c
arch/arm/mach-tegra/headsmp.S
arch/arm/mach-tegra/tegra2_dvfs.c
arch/arm/tools/mach-types
drivers/rtc/rtc-tegra.c
drivers/usb/gadget/fsl_udc_core.c
drivers/video/tegra/host/dev.c
drivers/video/tegra/host/nvhost_channel.c
drivers/video/tegra/host/nvhost_intr.c

Original-Change-Id: I1e9b6d0e761cf1e95cf90b78b5932b53fcb9bb5e
(cherry picked from commit 2f331e046f7c4cfc6ab54fca3193035b3bf3a14f)
Reviewed-on: http://git-master/r/14572
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I29db8796b2e27a8d218c332de36f880a7cf4bcb2

Rebase-Id: R94fc2c47ca70926d668d8bf09b77c4843d2a5b47

7 years ago[ARM/tegra] nvhost: Merge NVIDIA changes into Google's nvhost
Andrew Howe [Thu, 9 Dec 2010 15:09:50 +0000]
[ARM/tegra] nvhost: Merge NVIDIA changes into Google's nvhost

Google's 2.6.36 nvhost driver branched from NVIDIA's 2.6.32 nvhost at some
point before it was actually committed to 2.6.32, but the former's
original commit included some fixes that were added to the latter after
that. Confusing... Also Google's version has some changes that we like
so they will remain, but that makes merging difficult.

Anyway, this commit brings the rest of our 2.6.32 changes into 2.6.36
and cleans it up a bit. It might be nicer to break this up into a load
of smaller commits but it turned out to be very difficult to do that.

Original-Change-Id: I828b624b089b811d6130173e55258da8f52a5cc2
Reviewed-on: http://git-master/r/12563
Tested-by: Jussi Rasanen <jrasanen@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Wei Sun <wsun@nvidia.com>
Original-Change-Id: I72fbcff16ec6df62cc7299052a84b91db252c8d1

Rebase-Id: Rb3aa29f2ecbecf889bbc6ccf7d0b26925f7b94fb

7 years agoARM: tegra: dc: Set fixed dc rate on FPGA.
Alex Frid [Fri, 17 Dec 2010 01:05:42 +0000]
ARM: tegra: dc: Set fixed dc rate on FPGA.

Original-Change-Id: I4c21dcfbcb59aef14656e91badaf9760b5aed498
Reviewed-on: http://git-master/r/13550
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Id6eee40265de4e21f269ab12d320152b1a40f8d7

Rebase-Id: R81f450360f01be1eb6dd282fa7b7168eafec09fc

7 years ago[ARM/tegra] Add initial Tegra3 driver support
Scott Williams [Tue, 7 Dec 2010 19:13:31 +0000]
[ARM/tegra] Add initial Tegra3 driver support

Bug 764354

Original-Change-Id: I807433ff825bed1fe91ce0cf50a2b3691c64ef0a
Reviewed-on: http://git-master/r/12227
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I3da91a438f98f2f51618446ce024f3fefd726a19

Rebase-Id: Rb1717b1f80aaf0242f4da555ce16c06946b7d072

7 years agovideo: tegra: dc: removed incorrect cropping code
Donghan Ryu [Mon, 18 Apr 2011 14:59:11 +0000]
video: tegra: dc: removed incorrect cropping code

there was a cropping code which saves from out of FB.However,
the cropping code was wrong and cropping should be done from
usermode driver instead of kernel. a warning is added here
for easy debugging

Bug 792524

Original-Change-Id: Id57243e36f903b14a093dad23a6111032890c01a
Reviewed-on: http://git-master/r/28055
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Tested-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R27c0cea87904d63d3c205a166cfcf637b9d75e0e

7 years agotegra dc: fix premult dst alpha blending
Francis Hart [Wed, 23 Mar 2011 10:30:15 +0000]
tegra dc: fix premult dst alpha blending

Register assignments were wrong for incoming overlay blend
parameters. DisplayManagerLite policy sets src combine mode
to premult to signal dst premult aplha blending. But the DC
expects premult set for the dst window for this mode.

Bug 796009

Original-Change-Id: I5929bc4cd362ac60c7a9f14bb4ae83da04b857ab
Reviewed-on: http://git-master/r/26835
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R750658116e021f7023e2cfff0eb0e35fc3da3695

7 years agoARM: tegra: dc: hdmi drive strength changes
Jon Mayo [Thu, 10 Feb 2011 23:35:38 +0000]
ARM: tegra: dc: hdmi drive strength changes

use pixel clock to configure HDMI interface signaling properties.
These options are different depending on which SoC.

Bug 786961 Bug 795251
(cherry picked from commit a59e2483a9f85a72186f51c124709401af554eb3)

Original-Change-Id: Ie5ef35fe03065d3e77831a0e1a2bbf8319d04125
Reviewed-on: http://git-master/r/27722
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Reviewed-by: Jessica Liao <jeliao@nvidia.com>

Rebase-Id: R35e45dfc28c36ff89df080f4b88c1a7d6b0533fe

7 years agovideo: tegra: nvmap: debugfs improvement
Donghan Ryu [Mon, 11 Apr 2011 11:18:49 +0000]
video: tegra: nvmap: debugfs improvement

nvmap's debugfs had a bad format so it was
very difficult to read the outputs. this commit
fixes it and added total allocation size along
with it

Bug 813891

Original-Change-Id: I6e3165b3ff917d9510d39f1e35b8e6b59c086592
Reviewed-on: http://git-master/r/27349
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Tested-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R0959d3648c3fe8e1d0a4bbbca5e79f0b5a744c6f

7 years agovideo: tegra: Limit error-diffusion dithering
Chao Jiang [Fri, 28 Jan 2011 06:41:32 +0000]
video: tegra: Limit error-diffusion dithering

Error-diffusion dithering on Tegra would never be enabled in video modes
where horizontal width exceeded 640 pixels. For large screen, either
24bit ture color or ordering dither may be used since it does not
require a line buffer.

Original-Change-Id: If60a64858506ee96d444cb2cb3dcf7a1fbce5b1d
Reviewed-on: http://git-master/r/17393
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rea0aa95d494f02476ead33f8851f1f4a394ea994

7 years agovideo: tegra: dc: emc scaling based on overlay and panel freq
Wen Yi [Wed, 30 Mar 2011 22:48:23 +0000]
video: tegra: dc: emc scaling based on overlay and panel freq

Using a factor of two to increase the emc frequency required by
the display panel to prevent underflow.

Bug 800993

Original-Change-Id: Ibb60a88a4efb384bce6f1277022b335540f11a2e
Reviewed-on: http://git-master/r/24862
Reviewed-by: Wen Yi <wyi@nvidia.com>
Tested-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R4894df954d75da78e87e8b7116829809c61101bb

7 years agovideo: tegra: dc: synchronize pwm config and dc state
Wen Yi [Tue, 22 Mar 2011 00:11:34 +0000]
video: tegra: dc: synchronize pwm config and dc state

There is a race condition between fb_blank and pwm_update_status
that could cause kernel panic. The solution is to synchronize
the function tegra_dc_config_pwm with dc->lock.
Bug 803498

Original-Change-Id: I9323cb223aa8feb92f56d0025b2d97ab3b8d1752
Reviewed-on: http://git-master/r/23776
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

Rebase-Id: R1d9fe79a9babedb8134c3e1df205a88fd38deea0

7 years agovideo: tegra: dc: emc scaling based on overlay and panel freq
Wen Yi [Thu, 24 Mar 2011 00:18:47 +0000]
video: tegra: dc: emc scaling based on overlay and panel freq

Change the emc frequency using number of overlays and the frequency
of the display panel.
Bug 800993

Original-Change-Id: I30ef2edd1ed9b43afa8c38b0f05b5d6e49b7f892
Reviewed-on: http://git-master/r/24052
Reviewed-by: Amit Kamath <akamath@nvidia.com>
Reviewed-by: Wen Yi <wyi@nvidia.com>
Tested-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>

Rebase-Id: Rd10138e4e51282e44a265601f70dd7917222de62

7 years agovideo: tegra: dc: hdcp: renegotiate the hdcp link on resume
Peter Zu [Tue, 22 Mar 2011 18:50:30 +0000]
video: tegra: dc: hdcp: renegotiate the hdcp link on resume

bug 802909

Original-Change-Id: I061eb7082b251ef6963e2a68fd9821122e010966
Reviewed-on: http://git-master/r/23871
Reviewed-by: Peter Zu <pzu@nvidia.com>
Tested-by: Peter Zu <pzu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>

Rebase-Id: R255ee5f24d31f5c5a44c09174e2a7089dd300837

7 years agovideo: tegra: dsi: Set dsi clock in multiples of Mhz
Tom Cherry [Mon, 21 Mar 2011 22:35:59 +0000]
video: tegra: dsi: Set dsi clock in multiples of Mhz

Original-Change-Id: I82081f6e4e3646fbf7c265851e548ca64b2415db
Reviewed-on: http://git-master/r/23760
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rddb38546f04cdc4717320ae45fa2983c80e7759f

7 years agotegra:video:nvmap: optimize cache_maint operation.
vdumpa [Sat, 12 Feb 2011 05:53:45 +0000]
tegra:video:nvmap: optimize cache_maint operation.

video:tegra:nvmap: Clean whole L1 instead of cleaning by MVA

For large allocations, cleaning each page of the allocation can
take a significant amount of time. If an allocation that nvmap needs
to clean or invalidate out of the cache is significantly larger than
the cache, just flush the entire cache by set/ways.

bug 788967

Reviewed-on: http://git-master/r/19354
(cherry picked from commit c01c12e63b1476501204152356867aeb5091fb80)

tegra:video:nvmap: optimize cache_maint operation.

optimize cache_maint operation for carveout and heap memories.
flush carveout memory allocations on memory free.
Bug 761637

Reviewed-on: http://git-master/r/21205
Conflicts:
drivers/video/tegra/nvmap/nvmap_dev.c
drivers/video/tegra/nvmap/nvmap_heap.c
drivers/video/tegra/nvmap/nvmap_ioctl.c

(cherry picked from commit 731df4df5e895e1d4999359d6d5939fc2095f883)

tegra:video:nvmap: optimize cache flush for system heap pages.

optimize cache flush for pages allocated from system heap.
Bug 788187

Reviewed-on: http://git-master/r/21687
(cherry picked from commit 3f318911ad91410aed53c90494210e2b8f74308b)

Original-Change-Id: Ia7b90ba0b50acfef1b88dd8095219c51733e027f
Reviewed-on: http://git-master/r/23465
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Tested-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R04f618f88ed1d2c7a680d51a8c5113f42de3f667

7 years agovideo: tegra: dsi: Added dsi support.
Luke Huang [Thu, 27 Jan 2011 21:14:44 +0000]
video: tegra: dsi: Added dsi support.

Bug 793366
Bug 794499

Original-Change-Id: Id49d86dd7760b75ef4947f5bdab9e37f0333391d
Reviewed-on: http://git-master/r/#change,18950
Reviewed-on: http://git-master/r/22508
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R28d85faa28119d5803ab717831d610ee8ad37700

7 years agovideo:tegra:nvmap: Allow mapping uc/wc memory as wb.
vdumpa [Tue, 1 Feb 2011 00:54:49 +0000]
video:tegra:nvmap: Allow mapping uc/wc memory as wb.

Bug 786016
Original-Change-Id: Ic72c57b710a305851dfea3dda3eb217156683b39
Reviewed-on: http://git-master/r/17795
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R9839c206d5606463e124c59f733282561ff8a48d

7 years agovideo: tegra: dc: Fix hang in dc reset
Min-wuk Lee [Mon, 28 Feb 2011 14:01:13 +0000]
video: tegra: dc: Fix hang in dc reset

When DC(Display controller) meets underflow,
DC needs to be reset to recover this,
but in several resets, it hangs.
To avoid this,
- Set DC STOP mode ahead of DC reset assert
- Off read host bus by DC ahead of DC reset
- In DC0 reset period, to avoid DC1 access
and vice versa
- In reset worker, do not try to off host1x

Bug 785529
Bug 789567

Original-Change-Id: I26f40240cd60b83133309b36f61223336e9b3a41
Reviewed-on: http://git-master/r/20769
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R5ea8d6c0f39e54bd6410c5cc7c42ee553f30557f

7 years agovideo: tegra: flush flip work queue upon controller disable
Michael Frydrych [Wed, 23 Feb 2011 14:30:13 +0000]
video: tegra: flush flip work queue upon controller disable

When display controller is being disabled, some scheduled flips
may still be pending in a work queue. Do not lose them.

Original-Change-Id: I043fce583d44bb962494e6625a5c28675498fb55
Reviewed-on: http://git-master/r/20580
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Michael Frydrych <mfrydrych@nvidia.com>

Rebase-Id: R126931e333b17d968a15f29092a6449b9543e2f1

7 years agodrivers: video: tegra: fix comment formatting
Dan Willemsen [Tue, 15 Feb 2011 23:14:55 +0000]
drivers: video: tegra: fix comment formatting

Rebase-Id: Rd2cb19d9e8f80e63483b6e7542c9cbc30d6fa807

7 years agowhitespace change: drivers/video/tegra/dc/hdmi.c
Dan Willemsen [Tue, 15 Feb 2011 23:12:47 +0000]
whitespace change: drivers/video/tegra/dc/hdmi.c

Rebase-Id: Rd938ed14dceb2bd1e93affc57a34d80e9a14ebb5

7 years agovideo: Adding support for 1080p@30Hz
Gaurav Sarode [Tue, 22 Feb 2011 00:35:29 +0000]
video: Adding support for 1080p@30Hz

Adding support for 1080p@30Hz.Disabled by default.
Fixes Bug 789164

Original-Change-Id: I2fd37d6c19aa30daee321c9cdafbdb7ed1b6a271
Reviewed-on: http://git-master/r/20349
Tested-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Chao Jiang <chaoj@nvidia.com>

Rebase-Id: R554f273bb68642fbfde5b61123912b41fe7ac566

7 years agovideo: tegra: Add support for pin output overrides
Joseph Lehrer [Tue, 8 Feb 2011 19:47:47 +0000]
video: tegra: Add support for pin output overrides

bug 773671

Original-Change-Id: Ia3d5ff4843a3da48a9a43123040b8bb75497cfef
Reviewed-on: http://git-master/r/18757
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Re392ebe1d7c334fcdd32a6a24c5acfcf7c56f925

7 years agotegra: dc: Add PMx PWM control
Joseph Lehrer [Mon, 14 Feb 2011 01:29:36 +0000]
tegra: dc: Add PMx PWM control

bug 773671

Original-Change-Id: If4265051873809491c80ada9401e48014c15f63d
Reviewed-on: http://git-master/r/19397
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Ref287f0f7030cc889f2030efe0771c2dabf44c78

7 years agovideo: tegra: Add PWM backlight driver
Joseph Lehrer [Mon, 14 Feb 2011 02:19:34 +0000]
video: tegra: Add PWM backlight driver

bug 773671

Original-Change-Id: Ib93f0dcb7e22220fe297c81d403c401548f3c649
Reviewed-on: http://git-master/r/18280
Tested-by: Joseph Lehrer <jlehrer@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R3ddd56d2d3df9d9a78b2e8ccbfd0cd64e824ab2f

7 years ago[tegra: hdmi] clear stereo flag before checking edid for stereo
Chong Zhang [Sat, 19 Feb 2011 04:01:09 +0000]
[tegra: hdmi] clear stereo flag before checking edid for stereo

bug 788941

Original-Change-Id: Ib6c3da2f30fa5e7240cbdd1d406682aca3c820a2
Reviewed-on: http://git-master/r/20144
Tested-by: Chong Zhang <chzhang@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R74673d768bbcd6c1d8116a93424c62a877026b4f

7 years agovideo: tegra: Change overlay spinlock to mutex
Dan Willemsen [Fri, 18 Feb 2011 20:09:07 +0000]
video: tegra: Change overlay spinlock to mutex

We call tegra_overlay_put inside the overlay lock, which can do a flip.
It's not safe to do a flip in an atomic context.

Original-Change-Id: I4b043737a3eede0d47b8269a2d40e7c739f75df3
Reviewed-on: http://git-master/r/20087
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Tested-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>

Rebase-Id: Rbc627fe4370434efcf7a538f351a9670dba660d9

7 years agovideo: tegra: nvmap: fix potential deadlock
Kirill Artamonov [Fri, 18 Feb 2011 12:58:41 +0000]
video: tegra: nvmap: fix potential deadlock

Enabled mutex debugging reavealed potential deadlocks
introduced with compaction.

Handle spin lock replaced with mutex. Heap functions cannot be
protected with spinlock because they call kernel slab allocation
functions which cannot be called from atomic context.

nvmap_client ref_lock is also replaced with mutex. Otherwise we
cannot access heap parameters protected by mutex nvmap_handle lock.

Extra locking for handle->owner removed.

bug 793364

Original-Change-Id: I635ce9ebf259dd7bf8802457567f93b7be5795ea
Reviewed-on: http://git-master/r/19850
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Tested-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Reaa132703e278d75371d5e2b25426794aa8e0e4e

7 years agovideo: tegra: Fix handling non-zero Y offset
Taekhyun Kim [Tue, 25 Jan 2011 23:31:45 +0000]
video: tegra: Fix handling non-zero Y offset

Original-Change-Id: I6ce3f66075856397b394f433a4ee29ff3357b548
Reviewed-on: http://git-master/r/16977
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R1c5786f094067ccdfed27e08c972cff3d0592f38

7 years agovideo: tegra: fix max yres in stereo hdmi case
Chong Zhang [Sat, 29 Jan 2011 01:15:34 +0000]
video: tegra: fix max yres in stereo hdmi case

tegra_fb_set_windowattr() has logic to adjust
window y according to yres, however when in stereo
mode, the max y allowed should be v_active, which
could be larger than yres.

bug 784597

Original-Change-Id: I63342be8e2d87396502574f3a8dd0fb2769a47a8
Reviewed-on: http://git-master/r/17537
Reviewed-by: Chong Zhang <chzhang@nvidia.com>
Tested-by: Chong Zhang <chzhang@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R89099fab6efe7e2187645ef10e627f0d84be1f1b

7 years ago[tegra: HDMI: stereo] fix VIC for 720p stereo mode
Chong Zhang [Mon, 14 Feb 2011 20:11:34 +0000]
[tegra: HDMI: stereo] fix VIC for 720p stereo mode

VIC for 720p stereo mode should be 4 (60Hz) or 19 (50Hz).

bug 792143

Original-Change-Id: I3edb468a992842ed6a3247fbab02970b0c078acb
Reviewed-on: http://git-master/r/19468
Reviewed-by: Chong Zhang <chzhang@nvidia.com>
Tested-by: Chong Zhang <chzhang@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rfd1447ee5cf7e37f43490e1a228a0e404106fc4b

7 years agovideo: tegra: nvmap: replace mutex with spinlock
Kirill Artamonov [Mon, 14 Feb 2011 23:07:20 +0000]
video: tegra: nvmap: replace mutex with spinlock

There are places where nvmap_free_handle_id is called
when interrupts are disabled and mutex cannot be used as
nvmap handle lock.

Original-Change-Id: Icc220fe627c08f21c677d936a54f70c818dc8e8c
Reviewed-on: http://git-master/r/19489
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rb5a58e8226ad14340d1acae007d6b632960fae16

7 years agonvmap: implementing K36 carveout compactor
Kirill Artamonov [Wed, 9 Feb 2011 21:53:03 +0000]
nvmap: implementing K36 carveout compactor

bug 762482

Original-Change-Id: Ifadebc1b0c4eb0df89e179091acca0ff6e527e56
Reviewed-on: http://git-master/r/15743
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Tested-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R639e7f09f44c8919bd57a16a577b87db91160555

7 years agovideo: tegra: Fix HDMI mirroring corruption
Dan Willemsen [Thu, 27 Jan 2011 01:41:44 +0000]
video: tegra: Fix HDMI mirroring corruption

The new overlay code had this change commented out, because I hadn't
figured out how to get the resolution of the display outside of the fb
driver. This change now grabs it from the h_active and v_active of the
current mode.

Old Change:
    video: tegra: Fixed the HDMI corruption issue.

    If internal panel has different resolution compared
    to HDMI panel, then window attributes are calculated
    differently, this causes HDMI panel to show corruption.
    This is fixed by checking actual display resolution
    while computing window attributes.

Bug 784995

Original-Change-Id: I1ba2a85355ae02ed8914fbc32ea695f53ff9a947
Reviewed-on: http://git-master/r/17139
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R745bc56ef5df30fdfd1c9b5b252c0295eefc0a75

7 years agovideo: tegra: Support dither settings
Chao Jiang [Fri, 14 Jan 2011 03:08:34 +0000]
video: tegra: Support dither settings

Support dither settings in display control structure by writing color
control registers.

Original-Change-Id: I57ceb22a4b96bc507e15ad97893ec19a5be44ec7
Reviewed-on: http://git-master/r/15906
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R24ecffdf5186c8886b44afb90f2096a0c1ae2a2f

7 years agovideo: tegra: Support for post power-on actions
Chao Jiang [Wed, 8 Dec 2010 09:57:20 +0000]
video: tegra: Support for post power-on actions

Add support for extra actions that have to be done after power on the
panel.

fixes bug 767252

Original-Change-Id: I68b0c4d03818c2722149fcba38b6eb222157d209
Reviewed-on: http://git-master/r/15766
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R83157a78978ae41d265f8250a862a0158266c72b

7 years agovideo: tegra: Multi client overlay management
Dan Willemsen [Mon, 24 Jan 2011 10:07:05 +0000]
video: tegra: Multi client overlay management

This creates a new device node per head - /dev/tegra_dc%u. There are a
number of ioctls in linux/tegra_overlay.h to open, close, and flip
overlays.

This is a replacement for the extensions in the tegra fb interface, but
does not remove that functionality for compatibility reasons. Once
everyone has moved, we can remove the tegra fb extensions.

Original-Change-Id: Id78a94482637a7ce229ec64eb5feaf2dec2b7804
Reviewed-on: http://git-master/r/16700
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Tested-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R0d6e864cd50ce69c2e432bbac96b4932ec2bc476