6 years agovideo: tegra: host: Exclude suspend/resume if disabled
Terje Bergstrom [Fri, 15 Jun 2012 11:48:47 +0000]
video: tegra: host: Exclude suspend/resume if disabled

Compile power management suspend and resume functions only when
CONFIG_PM is enabled.

Change-Id: If349984d62ed002594ba60ac25cd4dddd956aa6c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/109425
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R74bdc5b8a6b13332b9692bf46926aec1d671b7a0

6 years agovideo: tegra: nvmap: Use trace points in NvMap.
Krishna Reddy [Tue, 5 Jun 2012 17:18:13 +0000]
video: tegra: nvmap: Use trace points in NvMap.

Change-Id: I2a5f0c9305bd53c42df181556d97efa5d6792ad7
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/106500
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

Rebase-Id: R0fe5f27e9f7c51540dd17166116b0782b4d6f739

6 years agovideo: tegra: dc: fix MC_DECERR display0_win errors on shutdown
Adam Cheney [Sat, 16 Jun 2012 02:22:35 +0000]
video: tegra: dc: fix MC_DECERR display0_win errors on shutdown

When a DC window is being released, a NULL flip is used to indicate
that the window should be disabled.  To disable a window, 0 is
written to WIN_OPTIONS.

The MC_DECERR on window shutdown is a symptom of forgetting step 2)
below when disabling windows, leaving no indication that there is
anything to wait for.  This causes DC to erroneously unpin the
scanout buffer while the buffer is still actively being used.

Summary of flip (window update) synchronization in DC:
1) program some window registers
2) set win->dirty=1
3) schedule the activation of the registers
4) request VBLANK or HBLANK interrupts
5) wait for win->dirty==0

In the trigger_windows ISR (every VBLANK or HBLANK):
1) if there is no window update pending in HW, clear dirty flag to
   indicate that ACTIVE registers are up-to-date.

bug 991572
bug 995614
bug 989119
bug 983251
bug 960424
bug 866711

Change-Id: I8b710aac874b202838c3989608b7e0bd15425382
Signed-off-by: Adam Cheney <acheney@nvidia.com>
Reviewed-on: http://git-master/r/109370
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R96ce8befac08dec2a7b6e9e5bf666c5cd26f0e9a

6 years agovideo: tegra: dc: fix bug causing drawing before flipping
I-Gene Leong [Fri, 18 Nov 2011 02:49:15 +0000]
video: tegra: dc: fix bug causing drawing before flipping

The tegra_dc_trigger_windows function was improperly using the
WIN_x_UPDATE bits to determine when a flip has occurred instead of the
WIN_x_ACT_REQ bits. Without this change, it's possible for the postflip
syncpoint for a buffer to get incremented before it actually flips.
Still need to figure out why that's even possible...

Fixes bug 902955

Change-Id: I67ba093a0114646977cc8cb95a040ec4178cebfc
Reviewed-on: http://git-master/r/65389
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Nate Huang <nhuang@nvidia.com>
Tested-by: Nate Huang <nhuang@nvidia.com>
Reviewed-on: http://git-master/r/98024
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R80151b1c6b750e825e1b99e367fe960c072047ee

6 years agovideo: tegra: dc: Use ref-count to mask vblank interrupt.
Kevin Huang [Fri, 8 Jun 2012 23:15:55 +0000]
video: tegra: dc: Use ref-count to mask vblank interrupt.

Bug 990586

Change-Id: I63da2bd0aaae86070718e0d769b8c9555db18547
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/107714
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R72bf42125fede78ce03ea4b626e1e605cd6dbe32

6 years agovideo: tegra: dc: Clock-gate display modules dynamically.
Kevin Huang [Wed, 6 Jun 2012 17:48:18 +0000]
video: tegra: dc: Clock-gate display modules dynamically.

Bug 936337
Bug 899053

Change-Id: I2b3d8cfc8a00881338c1e17d03f2844d15ba7d3e
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/106313
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R20bd77116f33ad8925c76ca8b7b288be7cb2781c

6 years agovideo: tegra: dc: recover underflow error
Jay Cheng [Thu, 5 Apr 2012 00:30:58 +0000]
video: tegra: dc: recover underflow error

1. set UF_LINE_FLUSH to 0 by default.
2. if it gets 4 consecutive frames with underflows, enable UF_LINE_FLUSH to
get rid of underflow condition.

Signed-off-by: Jay Cheng <jacheng@nvidia.com>
Change-Id: I6d647d958484ee355809036bec7ca1b0c716017b
Reviewed-on: http://git-master/r/103227
Reviewed-by: Michael I Gold <gold@nvidia.com>

Rebase-Id: Rc4c687e0a186ab6758803323dced7d7ceef11bd8

6 years agovideo: tegra: update nvmap_alloc_handle interface for Android only
Varun Wadekar [Tue, 17 Jul 2012 04:20:46 +0000]
video: tegra: update nvmap_alloc_handle interface for Android only

Bug 1017884

Change-Id: Ie50f4628f65f86ae52fd2c97f440fce8afb168cd
Reported-by: Michal Pecio <mpecio@nvidia.com>
Signed-off-by: Michal Pecio <mpecio@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/116724
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: R752a4053a29f1e171d5abd8749398b473bad2605

6 years agoARM: tegra: Fix merge error by adding header files
Bo Yan [Wed, 4 Jul 2012 01:22:41 +0000]
ARM: tegra: Fix merge error by adding header files

When migrating to K3.4, some headers need to be included explicitly.

Change-Id: I59794e0a62adeef18d81420ac4d1484a0002e8cd
Signed-off-by: Bo Yan <byan@nvidia.com>

Rebase-Id: R0720d9e84b401d358dd01987b26d0db0fde26615

6 years agovideo: tegra: host: Use Tegra11 headers for Tegra11
Terje Bergstrom [Wed, 20 Jun 2012 10:09:12 +0000]
video: tegra: host: Use Tegra11 headers for Tegra11

Use Tegra11 hardware headers on Tegra11 build. At the same time,
restore original T30 headers to remove the actmon values copied
by hand.

Move actmon specific isr processing to host1x_actmon, as generic
isr code does not know about actmon registers.

Bug 982965

Change-Id: Ibb8556f2da29d8562d34e3b3b00a158c0be4b43a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/110037
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
(cherry picked from commit fa2f467d6f479760d93c76556a8febfa4169b0fd)

Rebase-Id: R1c81965c2bd101a7e74a39c37852fd0d9da334b6

6 years agovideo: tegra: host: Support per Soc hardware headers
Terje Bergstrom [Fri, 8 Jun 2012 08:40:27 +0000]
video: tegra: host: Support per Soc hardware headers

Make all chip specific functions static. Include the chip specific
functions in SoC files after including the hardware headers. This
makes the chip specific functions to be compiled per SoC, and with
the correct hardware definitions.

Bug 982965

Change-Id: I4774d4dc351951cb886d9d4da66cf021f3f0121e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/107581
(cherry picked from commit f4f4b4d6567ac6102e90a8d74c61474696766946)
Reviewed-on: http://git-master/r/110036
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Signed-off-by: Bo Yan <byan@nvidia.com>

Rebase-Id: R778ba25710f74060ce66aff8d32c0631bb61f8f9

6 years agovideo: tegra: host: Give names to chip_support parts
Terje Bergstrom [Fri, 15 Jun 2012 04:48:17 +0000]
video: tegra: host: Give names to chip_support parts

Give names to the structures inside nvhost_chip_support. This way
they can be referred to individually.

Change-Id: I9b727bfc232d11957a8bd3e3570583d47cff778e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/109103
(cherry picked from commit 31c29c8bd6eb33ccc0a6e45d7c7a965de45a8a2d)
Reviewed-on: http://git-master/r/110035
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R3384b124da962c67de039dfe13f83f028d65565d

6 years agovideo: tegra: host: Remove unused functions
Terje Bergstrom [Fri, 15 Jun 2012 04:45:44 +0000]
video: tegra: host: Remove unused functions

Remove unused functions in CDMA and debug. They were left unused
when debug dump started using sync queue instead of channel
registers for detecting current position.

Change-Id: Ib1f0bc8f702667d0453079e6d5f5d8ca08f8db09
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/109102
(cherry picked from commit 20e1eb9daf61663383c245c8fa1939fe2ba588d6)
Reviewed-on: http://git-master/r/110034
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R893fd101d991363ee9b83b30c731ae319f929e46

6 years agovideo: tegra: host: Use chip_ops for save context
Terje Bergstrom [Fri, 15 Jun 2012 04:43:07 +0000]
video: tegra: host: Use chip_ops for save context

Call drain fifo and save context functions via nvhost_chip_support.
Earlier client drivers called into host1x code directly, which
makes each client driver SoC specific.

Change-Id: I4f805abad21012e59e11bf6a98fa46441c71c51a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/109101
(cherry picked from commit 4624dd8bed05435978ae4381cbcfc0382726941c)
Reviewed-on: http://git-master/r/110033
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: Rb478b99b27aceb3c56c425d0a3d92bbee7a1f9ef

6 years agovideo: tegra: host: expose power management paramters via sysfs
Mayuresh Kulkarni [Tue, 12 Jun 2012 12:52:26 +0000]
video: tegra: host: expose power management paramters via sysfs

this commit exposes following power management parameter through
sysfs:
- clockgate_delay: delay after which module is clock gated after
it goes idle. this read/write attribute & unit is ms.
- powergate_delay: delay after which module is power gated after
it is clock gated. this is read/write attribute & unit is ms.
- refcount: current reference count on the module. this is
read-only attribute.

path is: /sys/devices/host1x/<device-name>/acm/ where
<device-name> = name of device node like gr2d or gr3d etc

Bug 845598

Change-Id: I6011eb90ee85b5fc576320272e657ce31f9e264d
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/108827
(cherry picked from commit 6cc2ba059bc9760f185834e67d9456af36bf5a9f)
Reviewed-on: http://git-master/r/110032
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R4a4574bc4b43702740e9109e8514596475ecc1ae

6 years agovideo: tegra: host: Remove version from Tegra11 gr3d
Terje Bergstrom [Fri, 15 Jun 2012 13:50:59 +0000]
video: tegra: host: Remove version from Tegra11 gr3d

Remove version from the name of Tegra11 gr3d device.

Change-Id: I60071a314f1ee637867d4b4ba09a7ff75fa40c6e
Reviewed-on: http://git-master/r/109270
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R45d07d35e19f3c6bc5f9e79161e02e09d4f17f03

6 years agovideo: tegra: host: Remove version from dev name
Terje Bergstrom [Wed, 13 Jun 2012 08:57:59 +0000]
video: tegra: host: Remove version from dev name

Remove version from nvhost_device name, and use a new field,
version, to distinguish between IP versions. This restores the
sysfs API for 3D clock scaling back to its original path.

Change-Id: I444ef728b7cab9e5ea3a08f3c7be0f1661209686
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/108501
(cherry picked from commit c986dcfd3bfae55fbab9d27c2be57464011f7b28)
Reviewed-on: http://git-master/r/109269
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R073c8ffd3ceae880cc91fdca9a8aa8bbc9b5373b

6 years agovideo: tegra: host: Parameterize Tegra11 modules
Terje Bergstrom [Fri, 15 Jun 2012 13:41:01 +0000]
video: tegra: host: Parameterize Tegra11 modules

Tegra2 and Tegra3 host1x was parameterized and made to use generated hardware
headers. Adjust Tegra11 modules to do the same.

Bug 982965

Change-Id: Icc17a970cbaf419cabc41b5c475ae1a7a7851ac2
Reviewed-on: http://git-master/r/109268
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>
(cherry picked from commit 970f779f18e7bd498752c9f755cd530a2d8f157b)

Rebase-Id: Re1cfa2e10d738fa9e3db425791efbfbd3097d79a

6 years agovideo: tegra: host: Parametrize host1x
Terje Bergstrom [Wed, 30 May 2012 12:28:19 +0000]
video: tegra: host: Parametrize host1x

Add parameters in host1x nvhost_device on
* number of sync points
* number of wait bases
* number of channels
* number of mlocks
* client managed bitmask
* naming of sync points

Add automatically generated headers and use symbols from them to
access hardware.

Move host1x device definition from generic host1x to SoC specific
source files t20.c and t30.c.

Bug 982965

Change-Id: Ibec84be22d75b363900d10bcbd59d4d8321d54a1
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/104974
(cherry picked from commit f2dd85f69f329f372db29d2e20d71f7e0e0f85bb)
Reviewed-on: http://git-master/r/109267
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Signed-off-by: Bo Yan <byan@nvidia.com>

Rebase-Id: R276643e454284ca3e2ceed0b44108420aa9b3eb5

6 years agoARM: tegra: Fix merge error in host1x
Bo Yan [Wed, 4 Jul 2012 00:26:11 +0000]
ARM: tegra: Fix merge error in host1x

Change-Id: I403b27b18d22e660d45d4b4fdd6d7a30ea9b2480
Signed-off-by: Bo Yan <byan@nvidia.com>

Rebase-Id: R17566095d16f50c9bfc786e96984ce6b7272c142

6 years agovideo: tegra: host: Register Tegra11 devices
Terje Bergstrom [Fri, 15 Jun 2012 12:12:07 +0000]
video: tegra: host: Register Tegra11 devices

Tegra2 and Tegra3 device structures were moved to be registered in
SoC files. Do the same move for Tegra11.

Bug 982965

Change-Id: I88dbaf3a04a69ea917948bc079c4d5c2623787e3
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/109266
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
Signed-off-by: Bo Yan <byan@nvidia.com>

6 years agovideo: tegra: host: Register devices in SoC files
Terje Bergstrom [Tue, 22 May 2012 12:23:13 +0000]
video: tegra: host: Register devices in SoC files

Move the device structures to the driver source code files. Register
all nvhost_device's in one loop which is called from board file.

host1x driver code is moved to live under host1x, too. This causes
a need to add host to include path of tegradc and nvavp.

Bug 982965

Change-Id: If99cf9d1ef6bc24663ee8294c19370429ed04ca7
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit fe19b0ab25e721a77944268d31081e801dda9184)
Reviewed-on: http://git-master/r/109265
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Signed-off-by: Bo Yan <byan@nvidia.com>

6 years agovideo: tegra: dc: Move #includes from dc_priv.h
Terje Bergstrom [Tue, 12 Jun 2012 10:44:15 +0000]
video: tegra: dc: Move #includes from dc_priv.h

Move #include directives for nvhost headers from dc_priv.h to the
source files that need the #includes. This allows #including
dc_priv.h without access to all nvhost headers.

Also adds nvhost to the #include path of dc to allow making dev.h a
stub in a later commit.

Bug 982965

Change-Id: Icfe7084d295f57926195b178174f81047eb01187
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 4577283233907c3538076bab1f7a5cca49dbc674)
Reviewed-on: http://git-master/r/109263
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: Ra2cdbb45a925bf3ec52f50eed3fdc89d953ef8e7

6 years agovideo: tegra: mpe: Add missing header file
Bo Yan [Sat, 30 Jun 2012 00:46:38 +0000]
video: tegra: mpe: Add missing header file

This fixes build break when migrating to K3.4

Change-Id: I620dc3022968931b906df6c4ebeb23feedab8825
Signed-off-by: Bo Yan <byan@nvidia.com>

Rebase-Id: R3c890f0ba7cd0d9a09ef08ab432eb50163fd6571

6 years agovideo: tegra: dsi: Dynamic selection of ganged mode
Animesh Kishore [Wed, 6 Jun 2012 09:51:28 +0000]
video: tegra: dsi: Dynamic selection of ganged mode

Remove earlier config macros. Selection is through platform data.

Bug 944115

Change-Id: Ib7bcf8850dc807d4f5fd87cb52438fb23a7bb7d4
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/106741
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R6cc9251aded42b75ed6167de9ad7fce023e66faa

6 years agovideo: tegra: dc: Fix the DC register definition.
Kevin Huang [Wed, 6 Jun 2012 21:15:36 +0000]
video: tegra: dc: Fix the DC register definition.

Change-Id: I8266a1bd45d6d1204b1cc3eb216a40eaf4f7fb35
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/106869
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Jeff Smith <jsmith@nvidia.com>

Rebase-Id: R984bcda659632d5dcb5e9c79d31c18602f66cbb4

6 years agovideo: tegra: dsi2lvds: Implement ganged mode over bridge
Animesh Kishore [Tue, 22 May 2012 10:59:18 +0000]
video: tegra: dsi2lvds: Implement ganged mode over bridge

Supports left-right and even-odd ganged mode over the bridge.

Bug 927505

Change-Id: Id59a5d9804f86b4014aef1e7f92e09fb92eca04f
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/103867
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R8901f79076d4a430c4e44cdaae3c3588dcb5c997

6 years agovideo: tegra: dc: Add t114 display feature table.
Kevin Huang [Mon, 21 May 2012 18:23:32 +0000]
video: tegra: dc: Add t114 display feature table.

Change-Id: I748fc9d982f87f2cc763b793aa40f657214bcad4
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/103734
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: Rfd6b20cabaa323fe550ef6b9116293bfd77dab84

6 years agovideo: tegra: dc: Change the definitions in display feature table.
Kevin Huang [Tue, 22 May 2012 00:16:01 +0000]
video: tegra: dc: Change the definitions in display feature table.

Change-Id: I13f0f7502aea7f43b2ddff12e9664c22a1d9bd21
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/103210
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 1f4ccee135b9729ec09eceaddd1b573ea7366d15)
Reviewed-on: http://git-master/r/103733
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: Ra13be73c61fe0688c731b8ef5efb49850243cc17

6 years agoRevert "Revert "video: tegra: update nvmap_alloc_handle interface""
Varun Wadekar [Thu, 28 Jun 2012 10:49:21 +0000]
Revert "Revert "video: tegra: update nvmap_alloc_handle interface""

This reverts commit df472be5a4668fab1af46e74c38017cd36570e47 as it is
necessary for Android to boot on dev-chips.

Change-Id: I0bcf71f5a824a03eaa98bc1f5a1877942cd89bf3
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R9615227f4b79495d41a8f3abcc4a7f95d69af0c5

6 years agovideo: tegra: dsi: Ganged mode even-odd implementation
Animesh Kishore [Wed, 16 May 2012 18:03:33 +0000]
video: tegra: dsi: Ganged mode even-odd implementation

Adding support for even-odd flavour of ganged mode

Bug 944115

Change-Id: I7eca4fa5495615ea0c4878da075fa62a82194e37
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/102871
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: Rc2c55492b7f7a517890a92215708d1635a482b34

6 years agovideo: tegra: dc: Use pre-existing feature table
Prashant Malani [Tue, 15 May 2012 20:01:01 +0000]
video: tegra: dc: Use pre-existing feature table

change t114 feature table to use one defined for
t30. Prevents build break.

Change-Id: I6c1ed54b5cae8016a7e2ef37113418293ec13b56
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/102641
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R5782f75b7776359dc2b1f77db48ba4891209ee9c

6 years agovideo: tegra: dsi: Ganged mode sol delay
Animesh Kishore [Thu, 10 May 2012 14:35:21 +0000]
video: tegra: dsi: Ganged mode sol delay

Remove hard coded sol delay with proper calculation.

Bug 944115

Change-Id: I82ecddf68b06dba8615eacd9922a16a07889d0a0
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/101788
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: Re252bc3131622c78f93573b58717aef3a80ac6b3

6 years agovideo: tegra: dsi: Implement ganged mode
Animesh Kishore [Fri, 27 Apr 2012 11:20:02 +0000]
video: tegra: dsi: Implement ganged mode

Change comprises of:
1. ganged mode framework
2. ganged mode left-right symmetric

Bug 944115

Change-Id: Iaaeb5a843dfcfefc0d07e1d13a1684f540138ccb
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/99396
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R6098c974d39d64849ea7791fce3c40750fa3e2f1

6 years agovideo: tegra: dsi: 4 lane support
Animesh Kishore [Mon, 9 Apr 2012 05:37:22 +0000]
video: tegra: dsi: 4 lane support

Max mipi lanes supported is now 4. Adding support for the same.

Change-Id: Ie45637e782d38099e0a32b6dd55e4e77aef1b485
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/95284
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R174ff4b1ea5fa0bdefd32dbf8d6e7581044b2f30

6 years agovideo: tegra: dsi: Fix pad configuration
Animesh Kishore [Fri, 6 Apr 2012 06:10:27 +0000]
video: tegra: dsi: Fix pad configuration

Fixing pad setting for dsi.

Change-Id: I422db0ffc9c4bdc458ff26dd1c1b610ef8d5054f
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/95017
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rcc966fea0772badb82cf218339adcdbc0d2f3a2d

6 years agovideo: tegra: dc: Remove the delay while reading out crc checksum for sim
Chao Xu [Wed, 28 Mar 2012 18:44:05 +0000]
video: tegra: dc: Remove the delay while reading out crc checksum for sim

Change-Id: If6193bb74299f809f60e3edaddafd7e181b3719d
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/93026
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rbc8a27d12e567ab9984a322f6e31c58cd1ba918e

6 years agovideo: tegra: dsi: Free the hook-up between DC and DSI.
Kevin Huang [Wed, 28 Mar 2012 20:42:16 +0000]
video: tegra: dsi: Free the hook-up between DC and DSI.

Bug 943032

Change-Id: Ibdb0ae5dfcf06275aae732728f7397e7600b7984
Reviewed-on: http://git-master/r/93004
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Tested-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>

Rebase-Id: Re91487d56b765772478eb85ecb8adbc65f574cab

6 years agovideo: tegra: dsi2lvds: fix build errors
Jon Mayo [Fri, 16 Mar 2012 01:17:35 +0000]
video: tegra: dsi2lvds: fix build errors

fix compile issues with commit 9e0856edad6c6057cbe61d5fee6c99cfd8024253
add Kconfig support to make this an optional build.

Bug 927505

Change-Id: I75743e6458b1321cfa9c1976893a0a00c34443ae
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/90464
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R3d6434188e09365f28306de1c6e468a0c0db40ca

6 years agovideo: tegra: dsi2lvds: Implement driver
Animesh Kishore [Mon, 13 Feb 2012 16:40:54 +0000]
video: tegra: dsi2lvds: Implement driver

Brings up the bridge chip.
Configuration for:
1. clock settings
2. dsi dual channel
3. lvds single channel
4. video settings

Bug 927505

Change-Id: I8d7902db26f380d20459ee4f665e55dffd00b673
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/78783
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R2819bcacfb70e99ea205f5edc5d7fabbbbae254a

6 years agovideo: tegra: dsi2lvds: Implement driver init
Animesh Kishore [Tue, 17 Jan 2012 18:37:43 +0000]
video: tegra: dsi2lvds: Implement driver init

Register the dsi2lvds bridge as i2c slave.
Initialize the driver.
Implement driver destroy sequence.

Bug 927505

Change-Id: Icd060a89e8cddf789a1c3ac9679b280b10049ad2
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/78782
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R0599034a69947b755620b47873f650a60ff18423

6 years agoarm: tegra: nvmap: Add TSEC heap flag
Vidya Sagar [Mon, 12 Mar 2012 19:29:07 +0000]
arm: tegra: nvmap: Add TSEC heap flag

Bug 917349

Change-Id: Ib29d3df73742e4973b35821b54d94858d015b6bd
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/89555
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R5bce0af7d78947e7cd30b77ac7920a2806901432

6 years agovideo: tegra: dc: Adjust pitch alignment
Amit Kamath [Tue, 13 Mar 2012 06:24:31 +0000]
video: tegra: dc: Adjust pitch alignment

Pitch alignment made same as one used in bootloader.

Bug 941808

Change-Id: I3cd83e6219aef2396ff7ee52b9af9ec145b15822
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/89674
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R8baf58fc1c554fe601de9b06958dd92a082d6985

6 years agovideo: tegra: lvds: dsi2lvds bridge driver framework
Animesh Kishore [Wed, 7 Mar 2012 09:49:58 +0000]
video: tegra: lvds: dsi2lvds bridge driver framework

In tegra11x lvds is driven by dsi via dsi2lvds bridge chip.

Bug 927505

Change-Id: Ic3304ef3ac22d6976d0d841e6ac183272a3a796b
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/78781
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R376c85d88b6934bfbdd302257c1c3f441b2e8c88

6 years agovideo: tegra: host: fix compilation issues
Varun Wadekar [Mon, 25 Jun 2012 12:58:59 +0000]
video: tegra: host: fix compilation issues

Change-Id: Ia3f4e331c564d93ed8ab7c679b1276bd6af1a98a
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R2746c411d74719079a96d98dd10372e092a11126

6 years agovideo: tegra: host: Add config option for timeout
Terje Bergstrom [Tue, 29 May 2012 10:54:54 +0000]
video: tegra: host: Add config option for timeout

Add configuration variable for default timeout for clients. Set it to
30s for silicon and infinity for simulation.

Change-Id: I08c1fd234f738c4919adfe482dfc50948dc2f862
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/105331
(cherry picked from commit ae49f447dffadcafb5f72bfbd4d206cc88730a06)
Reviewed-on: http://git-master/r/108270
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R1e27e90eba2e560e14e4fd4f50ed7b90e8eb6e3b

6 years agovideo: tegra: host: Abstract nvmap support
Terje Bergstrom [Thu, 31 May 2012 12:04:53 +0000]
video: tegra: host: Abstract nvmap support

Abstract nvmap support to one file, and use it via function pointers
from other parts of nvhost.

Bug 965206

Change-Id: Icd98e5959045eccfb0d2ee1d48ee151102004279
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/105665
(cherry picked from commit b08927a712005ae3f6941e59f530b7896ac5f407)

Conflicts:

drivers/video/tegra/host/host1x/host1x_intr.c

Change-Id: I435b003698cd191fa6fe70cb666bf660e792a1ad
Reviewed-on: http://git-master/r/108519
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: Ref22fa42c8a45e500cdd4e7f40183d1d2799ad0c

6 years agovideo: tegra: host: Abstract nvmap for Tegra11
Terje Bergstrom [Tue, 12 Jun 2012 12:53:03 +0000]
video: tegra: host: Abstract nvmap for Tegra11

Adjust gr3d, tsec and msenc to use new abstract memory API.

Bug 965206

Change-Id: Icd8ab2d7895c346c9da521bf0c5ae533c2355319
Reviewed-on: http://git-master/r/108269
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R8b7f497ea4ca677424ddd01fdabf5cb010eba668

6 years agovideo: tegra: host: Initialize host1x generic irq
Terje Bergstrom [Mon, 4 Jun 2012 10:16:34 +0000]
video: tegra: host: Initialize host1x generic irq

Initialize host1x generic irq at bootup.

Bug 971602

Change-Id: I03fb426a0538c1549fdb5360166c4e4b516e75d6
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/106167
(cherry picked from commit a8cf3eec6bb3e03e3cb827c91cc82da6d0623ea9)
Reviewed-on: http://git-master/r/108267

Rebase-Id: R60f9b5803f350252a6d38aa8897cecf70f9ed7ec

6 years agovideo: tegra: host: Enable actmon interrupts
Terje Bergstrom [Fri, 1 Jun 2012 12:47:25 +0000]
video: tegra: host: Enable actmon interrupts

Add support for actmon watermark interrupts, and provide a debugfs
entry for reading number of breaches.

Bug 971602

Change-Id: I633a5c52edd8489f2c3c4635f21e652741ed85d8
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/105919
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R49d1b96dec219a497a9378acbf526e00a2a75347

6 years agovideo: tegra: dc: Add support to sequential blending.
Kevin Huang [Wed, 30 May 2012 17:10:24 +0000]
video: tegra: dc: Add support to sequential blending.

Add support to different blenders.

Bug 962353

Change-Id: Ie9530969a11dd0c329012aa54b90e3e62765c44c
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/102406
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit

Rebase-Id: R98b3510aab3c9e3fc2645903a1269a8d179bd300

6 years agovideo: tegra: host: Add actmon support
Terje Bergstrom [Thu, 19 Apr 2012 06:45:11 +0000]
video: tegra: host: Add actmon support

Add support for configuring and enabling 3D actmon. Also add a
debugfs entry tegra_host/3d_actmon_avg for reading the current
average.

Bug 971602

Change-Id: I68299120ad90acfc8631784e1120c52cbcd42b11
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/97549
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rf063e73419ce4234cb3fa1b601787a9889425560

6 years agovideo: tegra: host: Use nvmap_handle_ref in Tegra11
Terje Bergstrom [Sat, 26 May 2012 07:43:42 +0000]
video: tegra: host: Use nvmap_handle_ref in Tegra11

Replace usage of nvmap_handle with nvmap_handle_ref to conform with
new nvhost memory management.

Bug 965206

Change-Id: I6333c1cfb5dfd7be7736e382f70f8b043397cd82
Reviewed-on: http://git-master/r/104865
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Reviewed-by: Jin Qian <jqian@nvidia.com>

Rebase-Id: R9d7daaed82c993fa7476f8547ee34e8e17b534e3

6 years agovideo: tegra: host: Fix build breaks
Prashant Malani [Thu, 24 May 2012 02:44:26 +0000]
video: tegra: host: Fix build breaks

Remove references to non-existent fields in
nvhost_device structs, remove duplicate
function, update nvhost_driver usage.

Change-Id: Icff7868f582d370a60edb9409763972b07d48763
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/104304
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R4a07250cb67ff78b47695e06b7b510648096bbb6

6 years agovideo: tegra: host: Tegra11 function ptrs to driver
Terje Bergstrom [Mon, 21 May 2012 10:30:19 +0000]
video: tegra: host: Tegra11 function ptrs to driver

Move Tegra11 function pointers from nvhost_device to the driver.

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

Rebase-Id: Rb6fa19b3fd273f3e1ee39ebef63e84a82a6da6b9

6 years agoARM: tegra: nvmap: build Fix
Pradeep Kumar [Mon, 21 May 2012 13:37:24 +0000]
ARM: tegra: nvmap: build Fix

nvmap.h path has been changed to linux/ from mach/

Change-Id: I6972edbd4f2f79b25ef97f39c4b40144dd586dc4
Signed-off-by: Pradeep Kumar <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/103649
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>

6 years agovideo: tegra: host: Tegra11 to use dynamic channels
Terje Bergstrom [Mon, 21 May 2012 06:01:49 +0000]
video: tegra: host: Tegra11 to use dynamic channels

Adjust Tegra11 to use the new dynamic channel allocation APIs.

Change-Id: I25d562f00c1ee950bb0249c974494f07138a359a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/103549
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>

Rebase-Id: R0e65fb86fa279bc74051a2edef518ff0d5d835f6

6 years agovideo: tegra: host: Remove Tegra11 ops from master
Terje Bergstrom [Tue, 15 May 2012 05:26:20 +0000]
video: tegra: host: Remove Tegra11 ops from master

Adjust Tegra11 code to the fact that chip_ops were removed from
nvhost_master.

Change-Id: I5d2438fc369cd8e10cf504300293a8d5d246dd15
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>

Conflicts:

drivers/video/tegra/host/chip_support.c
drivers/video/tegra/host/t114/t114.c

Change-Id: Iceb4e79540c63ea52a1eeaecfe2d1e0fc7a24cff
Reviewed-on: http://git-master/r/102640
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Tested-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Ra7975020ff7d6002a9383fd50efd1360ba983e0c

6 years agovideo: tegra: host: Add context switch to trace dump
Prashant Malani [Tue, 15 May 2012 17:45:23 +0000]
video: tegra: host: Add context switch to trace dump

Add context switch to the ftrace dump.

Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/101523
(cherry picked from commit c74aee528eb8c0bb018f732d3d1e1c7e692149ad)

Conflicts:

drivers/video/tegra/host/nvhost_cdma.c

Change-Id: I794ebc4ccf0746b86dd58160e4c28816771fac9a
Reviewed-on: http://git-master/r/102637
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Tested-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Radfa9feb0d7427bceb1da64966f711b7c5a10132

6 years agovideo: tegra: host: Adjust Tegra11 3D context switching
Wei Sun [Tue, 24 Apr 2012 23:30:50 +0000]
video: tegra: host: Adjust Tegra11 3D context switching

remove 0xe30, 0x127, 0x7e1, 0x7f9, 0x90b, 0xe41, 0x413
change the size for 0x207
add 0x410, 0x414~0x41a, 0x545, 0x547, 0x907,
0xe50~0xe80, 0x770~0x77f
change the 0x800 to indirect
use 0xc10 instead of 0x905

bug 930456
bug 955371
bug 962360
bug 978638

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

Rebase-Id: R4bf25f893be0940dd8f392efa04b7717fb29c110

6 years agovideo: tegra: host: Don't set host1x rate to maximum
Alex Frid [Sat, 28 Apr 2012 05:07:43 +0000]
video: tegra: host: Don't set host1x rate to maximum

Currently host1x clock rate is always set by nvhost driver to maximum
possible, and then clock framework
- on Tegra2 clips host1x request to fixed 108MHz rate
- on Tegra3 ignores driver request; host1x always rides graphics bus
at 1/2 of bus rate

On Tegra11 we plan to honor driver request, while keeping graphics bus
rate at least 2x of host1x rate. It means that nvhost driver should
have a reasonable host1x scaling policy. For now, set default host1x
rate to 108MHz to maintain backward compatibility with Tegra2 and
Tegra3.

Change-Id: I8e8496736a097762dc02d135d3f4e6b981378683
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/99533
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

Rebase-Id: Rd9586b23b4be52217f8a75a29282dd40abbb1e4b

6 years agovideo: tegra: host: Move Tegra11 IO mem to drivers
Terje Bergstrom [Thu, 12 Apr 2012 12:37:03 +0000]
video: tegra: host: Move Tegra11 IO mem to drivers

Move Tegra11 IO memory resources to drivers. This is a follow-up
to a similar change for Tegra2 and Tegra3.

Change-Id: I0b560a20388edf20e87e5512ae9f1393c3864dfe
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/96129
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

Rebase-Id: R4ae615ccbec080c7d8d7f4561a509b6ac22ffaf8

6 years agovideo: tegra: host: Make MSENC and TSEC shared access
Terje Bergstrom [Thu, 22 Mar 2012 10:42:12 +0000]
video: tegra: host: Make MSENC and TSEC shared access

Allow multiple accesses to MSENC and TSEC.

Change-Id: I92c3f0573ed186bd081b8093fa1c162452872343
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/91762
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shashank Garg <sgarg@nvidia.com>
Tested-by: Shashank Garg <sgarg@nvidia.com>

Rebase-Id: R334f383c95431f9d5ab155e22ce8a1790391e56a

6 years agovideo: tegra: host: Initialize Tegra11 drivers
Terje Bergstrom [Wed, 21 Mar 2012 16:33:38 +0000]
video: tegra: host: Initialize Tegra11 drivers

Driver registration mechanism was changed to split host1x and
client module drivers from each other. Implement the same split
to Tegra11.

Bug 958141

Change-Id: I42ebca9b7254d0ecb2eec5d6c694dac2c601605d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/91543

Rebase-Id: R571350c0e610e54e5a295828bdbe31048537b2a5

6 years agovideo: tegra: host: Handle non-existent nvhost devices gracefully
Scott Williams [Wed, 21 Mar 2012 22:59:09 +0000]
video: tegra: host: Handle non-existent nvhost devices gracefully

Don't panic when an nvhost device doesn't exist. Not all SoCs will
have every device.

Change-Id: Id4b673316655f53a10e0ea3162da2a2fc4c5d47b
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/91635

Rebase-Id: Ra926d3ef03d95285a8750c4a05763eaafd89368b

6 years agovideo: tegra: Update Tegra11 modules for nvmap_alloc()
Scott Williams [Wed, 21 Mar 2012 19:41:05 +0000]
video: tegra: Update Tegra11 modules for nvmap_alloc()

Update GR3D, TSEC, and MSENC to new nvmap_alloc() calling conventions.

Change-Id: If0f85820d1edf2bd2a2b2acb7dd68bdebf116bb2
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/91604
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: Ra2fba302164445acc0bf8d5ccac89f50b022b4e5

6 years agovideo: tegra: host: Adjust Tegra11 3D context handler
Terje Bergstrom [Fri, 16 Mar 2012 20:06:54 +0000]
video: tegra: host: Adjust Tegra11 3D context handler

Context handler was refactored. This patch adjusts Tegra11 to follow
the same structure.

Change-Id: I1f2888c23bdd794f8925e4252b0a811d861ba822
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/90692
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R9ec43379f6a110b438b434b67613e709f78426c8

6 years agovideo: tegra: host: Update GPU context save/restore
Terje Bergstrom [Thu, 8 Mar 2012 08:04:30 +0000]
video: tegra: host: Update GPU context save/restore

Some GSHIM registers, and a GPU register do not exist in Tegra11.
Remove usage of them in the context save sequence.

Bug 9511627

Change-Id: I577713d84bd5d97813f41ddb6e342f414e1f29be
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/88785

Rebase-Id: Rb2487d172cc3fde5e4a63c0c29c5958564576bf9

6 years agovideo: tegra: host: Add MSENC and TSEC IO ranges
Terje Bergstrom [Wed, 7 Mar 2012 13:24:20 +0000]
video: tegra: host: Add MSENC and TSEC IO ranges

MSENC and TSEC IO ranges were lost in a recent commit for
merging tegra_grhost and host1x devices. This adds them back.

Change-Id: Ica63ec8d452e828c3f3c3b37e617de28d6c55db2
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/88337

Rebase-Id: R6b25278d672c5d64efc8fd44bae171208d66f059

6 years agovideo: tegra: host: Add TSEC firmware upload
Terje Bergstrom [Fri, 10 Feb 2012 10:12:20 +0000]
video: tegra: host: Add TSEC firmware upload

Add TSEC firmware upload.

Bug 839970

Change-Id: I8fca9ad6d33dcf7832c1b67d6d6444e39e4e2991
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/83123
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>

6 years agovideo: tegra: dc: remove registers that do not exist for tegra11x
Chao Xu [Mon, 13 Feb 2012 20:04:08 +0000]
video: tegra: dc: remove registers that do not exist for tegra11x

Change-Id: I7dcd48881a41060eb9802a17cfb2ec815db7b32c
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/83535
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R94a8b3bfd5584029cbf5cc9ab3dc572645203897

6 years agovideo: tegra: host: Add module ids to Tegra11x
Terje Bergstrom [Wed, 11 Jan 2012 11:08:50 +0000]
video: tegra: host: Add module ids to Tegra11x

T20 and T30 have added references to IO mem resources in
nvhost_device. Add the references to Tegra11x, and add the
MSENC resource in tegra_grhost_resources.

Change-Id: I6d58a1f99fcbb2fcf744fbf4f35ac6ab039c903d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/79000
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R8d16b67a0bae92bfa96efe077fce430b10dbdb39

6 years agovideo: tegra: Post-merge fixups
Scott Williams [Tue, 31 Jan 2012 18:33:15 +0000]
video: tegra: Post-merge fixups

Change-Id: I14be2989c9c8bccffe48b9bdf762e576e28bdb15
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/78489
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jin Qian <jqian@nvidia.com>

Rebase-Id: Rc7b7f81db95e66c80d3fe37ce1134ed25386f11f

6 years agovideo: tegra: host: Access nvhost_master via drvdata
Jin Qian [Tue, 24 Jan 2012 20:56:53 +0000]
video: tegra: host: Access nvhost_master via drvdata

Use standard drvdata interface for storing and accessing nvhost_master.

Reviewed-on: http://git-master/r/77110
Tested-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
(cherry picked from commit 09adc88c6a22f1c6d970a04e95d555a8cb316c5a)

Change-Id: I7d20789d988d1c945313b8cad77f04b971b239c0
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/78488
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jin Qian <jqian@nvidia.com>

Rebase-Id: R1704087246d674d7d4a9d814cf108e0140616a1b

6 years agovideo: tegra: host: Tegra11x 3D support
Scott Williams [Fri, 27 Jan 2012 21:53:25 +0000]
video: tegra: host: Tegra11x 3D support

Add support for context switch for Tegra11x 3D unit.

Bug 839973

Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/57220
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
(cherry picked from commit aafea7c82885d16b350336036813b3863509de58)

Change-Id: I2f65840077a250f0348e9d3bfa8d37c237e9d0a5
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/77873
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Mark Stadler <mastadler@nvidia.com>

Rebase-Id: R56a4c7bf1bf4bbe66e2d513acaf8acb8c7d91596

6 years agovideo: tegra: host: Add Tegra11x host1x initialization
Terje Bergstrom [Tue, 30 Aug 2011 13:18:30 +0000]
video: tegra: host: Add Tegra11x host1x initialization

Bug 870789

Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/57222
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
(cherry picked from commit 89699d6d6632bd82eafeadb80845d064cdcaf6c0)

Change-Id: Ib36fbfedbc06474b742909cf51be7e3beae32cc6
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/77872
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Mark Stadler <mastadler@nvidia.com>

Rebase-Id: R2da0a872b745a953c379be50356b35df001f1c5d

6 years agovideo: tegra: nvsd: Add Tegra11x DIDIM support
Kevin Huang [Wed, 11 Jan 2012 01:13:37 +0000]
video: tegra: nvsd: Add Tegra11x DIDIM support

Add support for new features of Tegra11x DIDIM:
- Programmable SD proc control
- K limit
- Programmable SD window
- Soft clipping
- Smooth K

Bug 892479

Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/60295
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit b7cde1778aaec8baa7aecb08fbe913492d5dba04)

Change-Id: Iace4541718fb1cccefcdcfab464cde91117c7700
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/77923
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: R314ba7ed51fb077f8f7885cd028df02478d31c86

6 years agovideo: tegra: dc: Add CMU support
Kevin Huang [Wed, 9 Nov 2011 02:13:21 +0000]
video: tegra: dc: Add CMU support

Bug 895232

Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/69255
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
(cherry picked from commit 2a3516bf6c3af8c9ca9168149fb4f4e3503b2557)

Change-Id: Ib9957626fbd64b8c2144edda532f2dbe2add2f22
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/77922
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: Redae9eba320ad392f94bb6ed00bb66ee6a556357

6 years agovideo: tegra: nvmap: Disable inner cacheable handling with LPAE
Scott Williams [Mon, 24 Oct 2011 21:50:02 +0000]
video: tegra: nvmap: Disable inner cacheable handling with LPAE

The cache protection attributes are different with LPAE enabled.
Disable inner cacheable handling with LPAE enable to avoid build
errors.

BUG 892578

Reviewed-on: http://git-master/r/60016
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Jeff Smith <jsmith@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit b167cf834c62a66d350fed232e8d5913561a8985)

Change-Id: I0e9d3de4b13bb4934c68cc36331b31070ccc962f
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/77918
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: Rd4957f80d2f12a4e67003ce57a3167f8bd1cc756

6 years agoARM: tegra: curacao: Add support for DSI
Scott Williams [Thu, 26 Jan 2012 18:51:28 +0000]
ARM: tegra: curacao: Add support for DSI

Adding:
- Platform data for dsi driver
- Panel specific support
- Remove lvds support

Bug 837129

Reviewed-on: http://git-master/r/55926
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
(cherry picked from commit f754059c2c5e088f7df500aec49b3e759f32644f)

Change-Id: Ia9e518a3e7297e38b375fd11a9a26efae131012e
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/77600
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Mark Stadler <mastadler@nvidia.com>

6 years agovideo: tegra: dsi: Fix phy timing for FPGA platforms
Animesh Kishore [Thu, 1 Dec 2011 11:35:14 +0000]
video: tegra: dsi: Fix phy timing for FPGA platforms

Max frequency supported by FPGAs is less than default frequency
so use the lesser frequency on FPGA platforms.

Bug 837129

Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/67663
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
(cherry picked from commit 2c54568b334413d0cbe62430c2bdef38e32a042b)

Change-Id: Idfe331c0349ffa05f6960223117b2a0eca263770
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/77599
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Mark Stadler <mastadler@nvidia.com>

Rebase-Id: R8059adae8c7024a8c2bbee14a7b26eee9bd3f4e2

6 years agovideo: tegra: dsi: config pad settings
Scott Williams [Thu, 26 Jan 2012 18:41:49 +0000]
video: tegra: dsi: config pad settings

Configure new pad registers for dsi controller.

Bug 837129

Reviewed-on: http://git-master/r/55720
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 07fbe146ba58ce860fadb9ad5876f2579a16b324)

Change-Id: Icf03606af8f908b6b85614209b9ff241d7ca59f3
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/77598
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Mark Stadler <mastadler@nvidia.com>

Rebase-Id: R4625323bf8ffe37e713c07150a02202218e8ec0d

6 years agoARM: tegra: fix compilation issues for T3/T2
Varun Wadekar [Fri, 22 Jun 2012 09:24:14 +0000]
ARM: tegra: fix compilation issues for T3/T2

Change-Id: Ie88869a7f78098575eb5a8ffdf171674f352364f
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agounknown changes
Dan Willemsen [Tue, 18 Dec 2012 19:45:34 +0000]
unknown changes

6 years agovideo: tegra: nvmap: Change function declaration order.
Krishna Reddy [Tue, 22 May 2012 18:36:03 +0000]
video: tegra: nvmap: Change function declaration order.

Change function declaration order to avoid multiple
CONFIG_TEGRA_NVMAP #ifdef's.

Change-Id: Icb10380f8da4b8037b90e787f961a28e8528814f
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/103990
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R71740b8904983d5e718fd006dba1d3775904f660

6 years agonvmap: Use linux conventions.
Krishna Reddy [Tue, 22 May 2012 18:19:37 +0000]
nvmap: Use linux conventions.

Avoid multiple CONFIG_TEGRA_NVMAP ifdefs.

Change-Id: Ic186a8203d8b2291d3d39ce8b612b33bee16f531
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/103937
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R348f104a0b954c398606ed9c6c4ca778cabb9577

6 years agovideo: tegra: clean-up warnings and code style
Jon Mayo [Tue, 13 Mar 2012 01:42:28 +0000]
video: tegra: clean-up warnings and code style

fix some build warnings and bad code style.

Change-Id: I907296ce0e5437dfd6acd0b2b3c119b6dbde7b1c
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/89634
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R77627d42da861182a4e7722fb64f092534761963

6 years agovideo: tegra: host: Access nvhost_master via drvdata
Terje Bergstrom [Mon, 2 Jan 2012 09:14:26 +0000]
video: tegra: host: Access nvhost_master via drvdata

Use standard drvdata interface for storing and accessing nvhost_master.

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

Change-Id: I191987c8f6d313a6ede9b59f723269cb6a197e8a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/76815
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: R9555121c261bb258978a517ea6120cfede4e921c

6 years agoarm: tegra: nvmap: Veirfy the handle during conversion.
Krishna Reddy [Wed, 11 Jan 2012 01:14:43 +0000]
arm: tegra: nvmap: Veirfy the handle during conversion.

Verify the handle during conversion from user space to kernel space.

Change-Id: I7cfcc791a792f20b2df195719e28a245ba820b4e
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/74467
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R14b3f9ee5a4c89d8084e4e2e505a5f4aa50c87e3

6 years agovideo: tegra: host: Move device data to nvhost_device
Terje Bergstrom [Thu, 29 Dec 2011 14:03:51 +0000]
video: tegra: host: Move device data to nvhost_device

Move all device data from nvhost_channeldesc, nvhost_moduledesc and
nvhost_module to nvhost_device. nvhost_devices are also assigned into
a hierarchy to prepare for implementation of runtime power management.

Change-Id: I1e18daae8fe538086cd1f453d316e0f73e9d7d92
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/72844
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Reviewed-on: http://git-master/r/74560
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: Rf91ddb3562aa236e894bb165e5ae4401335144ef

6 years agoarm: tegra: nvmap: Prepare nvmap api's to support Ion.
Krishna Reddy [Mon, 19 Dec 2011 23:51:27 +0000]
arm: tegra: nvmap: Prepare nvmap api's to support Ion.

Prepare nvmap api's to be able to use Ion Memory Manger.

Change-Id: Ie7de2c4afc491290d61e8545667ffa477af32d8b
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/71112
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: Rbdf2f975a9aeae4f6eb13cf263f6ca6955b9572b

6 years agotegra: HDMI: add underscan capability exposure via sysfs
Victor Ryabukhin [Wed, 7 Dec 2011 06:16:47 +0000]
tegra: HDMI: add underscan capability exposure via sysfs

TVs/monitors which do not support underscan will crop HDMI picture.
Underscan information might be needed in userspace to adjust HDMI
resolution so that the picture will be shown correctly on such devices.

Bug 911580
Bug 912187

Change-Id: I1eec810d860e13dafef895cb85b32fd8187a4e02
Signed-off-by: Victor Ryabukhin <vryabukhin@nvidia.com>
Reviewed-on: http://git-master/r/68616
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R6c4675ccc4e3bb2c984cdd1d6cc917cd318ec17e

6 years agovideo: tegra: hdmi: Add support to HDMI test in driver.
Kevin Huang [Tue, 25 Oct 2011 22:29:23 +0000]
video: tegra: hdmi: Add support to HDMI test in driver.

Test function is invoked by hdmi test module to test DC1, HDMI and
EDID modules.

Bug 834332

Reviewed-on: http://git-master/r/56482
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Tested-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 8a2ec9a20d88db2f96e17cb7136d81560b989542)

Change-Id: I196802fda78a753391298b0c3b6874cedbf1e197
Reviewed-on: http://git-master/r/60467
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Tested-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R2fb40403527aff9b5ca312df475420c7015c53f5

6 years agodriver: video: terga: dc: fix switch class dependencies
Mursalin Akon [Thu, 15 Sep 2011 18:09:18 +0000]
driver: video: terga: dc: fix switch class dependencies

Mark the dependencies of dc driver on switch class explicit,
using proper pre-processors.

Bug 877239

Change-Id: Ie5931aaf4f279e6379b85a00a30bd3cb910614d0
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/55774
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R229bab237a55cacd22f5071eaca1a60503fdbb0d

6 years agovideo: tegra: add modeset switch to trigger uevents
Dan Willemsen [Thu, 10 Feb 2011 08:42:20 +0000]
video: tegra: add modeset switch to trigger uevents

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

Rebase-Id: Ra9c6d91a0cb402b3b660e417a87480b36933a92f

6 years agotegra : HDMI: hdmi hot plug detection modification
Minwuk Lee [Thu, 20 Jan 2011 21:54:40 +0000]
tegra : HDMI: hdmi hot plug detection modification

When tegra_dc_hdmi_detect is triggered with high HPD Interrupt,
but there's no previous trigger of low HPD interrupt,
by some specific HW design,
then, there's no switch change, no hotplug_handling is getting
called because 1=>1 change do nothing in switch_set_state.
Add this change for safe operation.

Bug 779317

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

Rebase-Id: R329952d27a0f27a997489452d47f31b68dbe98bb

6 years agovideo: tegra: add hdmi switch_dev for hotplug notifications
Erik Gilling [Mon, 18 Oct 2010 22:38:22 +0000]
video: tegra: add hdmi switch_dev for hotplug notifications

Change-Id: I0454179633835d35367bc5c28513319e3aa6a069
Signed-off-by: Erik Gilling <konkers@android.com>

Rebase-Id: R61736ef876094c7dce727c9b1854524f2a009496

6 years agoHACK: handle DC IRQ when off gracefully
Dan Willemsen [Thu, 14 Jul 2011 20:13:53 +0000]
HACK: handle DC IRQ when off gracefully

Change-Id: I613ad237bda9845c928b27b96db227e484b95f7d
Reviewed-on: http://git-master/r/41077
Tested-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rbc20d94729500157b45207bac4ab0d4340297af2

6 years agovideo: tegra: dc: blank windows on shutdown
Jon Mayo [Tue, 5 Jun 2012 19:57:54 +0000]
video: tegra: dc: blank windows on shutdown

Clear out all overlays and disable DC on .shutdown

Change-Id: I4bc78fddb0ed8bd621733df191f305ecb279e3f7
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/106549
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R44859366fa63d277c0464ee520f42921efb4bb6d

6 years agovideo: tegra: dc: new file for bandwidth calc
Jon Mayo [Fri, 1 Jun 2012 18:56:04 +0000]
video: tegra: dc: new file for bandwidth calc

Move bandwidth calculation logic into its own file.

Change-Id: I57f58a6399805eede8783fea922c6f07dcbd54cb
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/106291
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

Rebase-Id: R26879e48e855c6114cc17f1f68bfbcee255ccfcc