6 years agovideo: tegra: dc: fix boot issue with HDMI
Deepak Nibade [Thu, 16 Aug 2012 11:58:51 +0000]
video: tegra: dc: fix boot issue with HDMI

Set default mode for probe and resume to enable initialization of dc.1
Skipping this initialization results in hard system hang.

bug 1030415

Change-Id: Icd8fe08a7803490117ed20caf0185f5cd4fb0d0b
Reviewed-on: http://git-master/r/124001
(cherry picked from commit 50fa5e50b74a0534d7524fb6d7dcaa65b2e6e74c)
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/126782
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R7b426c33d965b19ed980a57f95127de7b4dd845a

6 years agovideo: tegra: nvmap: Add config to fill page pools at init.
Krishna Reddy [Mon, 23 Jul 2012 22:23:52 +0000]
video: tegra: nvmap: Add config to fill page pools at init.

This config option allows disabling page pool fill during page pool init
and avoids increase in boottime.

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

Rebase-Id: Rb04f856ef314f3d4844dec002113126bdd47620a

6 years agovideo: tegra: dc: move set default videomode out of _tegra_dc_enable.
Marvin Zhang [Fri, 3 Aug 2012 00:03:21 +0000]
video: tegra: dc: move set default videomode out of _tegra_dc_enable.

Set default videomode happens during probe and resume. _tegra_dc_enable
is also called during hotplug, setting default videomode there causes
hdcp test failure.

Bug 991805

Reviewed-on: http://git-master/r/121052
(cherry picked from commit 7d4e0461a88b8cf638963e69829274824fecc38b)
Change-Id: Ic71ca4df54a2c7f4a6cb2b56143cd86f718bd39e
Signed-off-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-on: http://git-master/r/121981
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R3f455bfff477412a7c74d04f73d4f4530b8850a6

6 years agovideo: tegra: host: Use unsigned integer in sysfs
Terje Bergstrom [Wed, 29 Aug 2012 05:16:09 +0000]
video: tegra: host: Use unsigned integer in sysfs

Sync point values are unsigned, but sysfs creates the text
representation as signed. Correct to use unsigned representation.

Bug 1039058

Change-Id: I96de13952eeeba9510bae179a036459ddee18dcd
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/128075
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Michal Pecio <mpecio@nvidia.com>

Rebase-Id: R3e086ffc8341ce986eb92b002e4c4df1b32f130c

6 years agovideo: tegra: nvmap: wrap fast_cache_maint_outer inside its CONFIG
Varun Wadekar [Fri, 31 Aug 2012 04:33:37 +0000]
video: tegra: nvmap: wrap fast_cache_maint_outer inside its CONFIG

Use CONFIG_NVMAP_OUTER_CACHE_MAINT_BY_SET_WAYS to define
fast_cache_maint_outer().

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

Rebase-Id: R7a0847c2f5a09beb9696b5d7ba27c427cd22a482

6 years agovideo: tegra: host: Disable irq when clock gating
Terje Bergstrom [Wed, 22 Aug 2012 06:16:51 +0000]
video: tegra: host: Disable irq when clock gating

Disable host1x interrupts when clock gating host1x. This fixes a race
where host1x interrupt was raised at the same time when host1x clock
is turned off.

Bug 1031724

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

Rebase-Id: R30fa1ac93d340131c90b4fa8ca068575f0200201

6 years agovideo: tegra: fb: Default stride from HW
Christopher Freeman [Tue, 28 Aug 2012 00:36:15 +0000]
video: tegra: fb: Default stride from HW

This patch adds:

1.  line_stride value is honored in fb_set_par routine
2.  Hardware value for line_stride is used in fb_register

Bug 1025739

Change-Id: Ic37c4c90911c2c70e74b8d5609f3b32b521772ff
Signed-off-by: Christopher Freeman <cfreeman@nvidia.com>
Reviewed-on: http://git-master/r/127690
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R6f5b0292e5b9ab888cb3a9f4bba998f22edcf3a5

6 years agovideo: tegra: cardhu: Default bpp from hardware
Christopher Freeman [Fri, 24 Aug 2012 21:04:29 +0000]
video: tegra: cardhu: Default bpp from hardware

This patch adds:

1. A kernel config option that hints to DC driver
to use the current value of the color depth
register as the default for initializing the FB
driver.

2. Checks to see if DC is enabled before reading
off the color depth register in tegra_dc_probe.

Change-Id: I852cc1328fcf42f33052f46b86d753e691744329
Signed-off-by: Christopher Freeman <cfreeman@nvidia.com>
Reviewed-on: http://git-master/r/127297
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: nvmap: implement full L2 clean/flush
Kirill Artamonov [Tue, 12 Jun 2012 16:00:58 +0000]
video: tegra: nvmap: implement full L2 clean/flush

When allocation is bigger than L2 size it is more optimal to
flush or writeback whole L2 instead of doing maintenance
for each allocated page.

bug 983964

Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Change-Id: Ieaa70875b92920567ad7cd75eca6eac8197f46de
Reviewed-on: http://git-master/r/108511
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R4ba88341b16dae9169611c3cafffe5ea2d84f8be

6 years agoRevert "video: tegra: hdcp: Fix Locking Issue"
Matt Wagner [Thu, 23 Aug 2012 18:32:31 +0000]
Revert "video: tegra: hdcp: Fix Locking Issue"

This reverts commit 51f746421b73f8f378bd7908b35fd6c79687e239.

Bug 1030468
Bug 1030415

Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Change-Id: If9b5febd812e84848913431dcaf0bdefc518e5d1
Reviewed-on: http://git-master/r/126948
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R8da23eeb506f301852948a10bca745a1faa3fd95

6 years agoRevert "video: tegra: hdcp: Add Missing Lock"
Matt Wagner [Thu, 23 Aug 2012 18:31:53 +0000]
Revert "video: tegra: hdcp: Add Missing Lock"

This reverts commit 77c8da0aa18fad9e33fd8b1afb2013b1a476d74e.

Bug 1030468
Bug 1030415

Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Change-Id: I2b85159dfcfc40b3a3632dc1300c729e0977a18f
Reviewed-on: http://git-master/r/126946
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R0201f08911c667e9dedcfeb7f5cc6543f6a41e61

6 years agotegra: dc: Fix div by zero in frame time computation.
Raghavendra VK [Mon, 27 Aug 2012 18:00:12 +0000]
tegra: dc: Fix div by zero in frame time computation.

- Set frame duration to 0 in NULL modeset.

bug 1039104

Change-Id: I2b7d5a8a7c1748d8d582505946014e002326cbee
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/127603
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R46793c4eae68c60a976767ef7b5f8b4ebe5194a7

6 years agovideo: tegra: dc: Add support to sequential blending
Kevin Huang [Mon, 27 Aug 2012 08:14:38 +0000]
video: tegra: dc: Add support to sequential blending

Change-Id: I9fcef4544e934fb59c55968484059e938e82da43
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/126943
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

Rebase-Id: R73c7799e4790227488101edb2aece976b812ae30

6 years agovideo: tegra: host: fix integer overflows
Tuomas Tynkkynen [Fri, 24 Aug 2012 12:14:45 +0000]
video: tegra: host: fix integer overflows

job_size() calculates the size of a job structure based on a struct
passed as a ioctl parameter. This calculation was not checked for
overflow.

Bug 1038551

Change-Id: I13d087dbd5aad5fef1c5d13ceb23e50f565acf95
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/127185
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

Rebase-Id: Rc4ff83c107ca4237e74d0b397e047b046065e08a

6 years agovideo: tegra: nvmap: fix handle usecount tracking
Tuomas Tynkkynen [Wed, 15 Aug 2012 14:54:38 +0000]
video: tegra: nvmap: fix handle usecount tracking

A handle's usecount used to be incremented once during the mmap ioctl,
and decremented when the mapping is closed by the kernel. However, that
fails if a mapping cloned, for example if the mapping was split due to
a munmap, or (presumably) during fork, as the decrement will then happen
for each cloned mapping.

Therefore increment the usecount when a mapping is opened.
Also fix a BUG_ON() that would have caught this bug, if it wouldn't
have done the check by checking if the unsigned usecount field is
less than zero.

Bug 1033981

Change-Id: I72ac9361a19e44f91ffd6b1126f4632e0f7b6726
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/123710
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: R7db2dcd3ce4520f617328a7f4e493e74f71646d6

6 years agoarm: tegra: pluto: Add LH500WX1 LG panel support
Animesh Kishore [Mon, 27 Aug 2012 09:28:43 +0000]
arm: tegra: pluto: Add LH500WX1 LG panel support

5" 720x1280 LG panel

Bug 1028791

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

6 years agovideo: tegra: host: Host1x tickcount
Terje Bergstrom [Thu, 23 Aug 2012 06:18:23 +0000]
video: tegra: host: Host1x tickcount

Add support for host1x tick counters. Adds under debugfs entries
that export the tickcount, which is global, and stallcount and
xfercount which are per channel counters.

The counters are reset when host1x loses power.

Bug 1036465

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

Rebase-Id: Re7f33cf67504692baaac9ee2d2b85234904d07c7

6 years agovideo: tegra: host: add Tegra path to firmware
Ken Adams [Thu, 17 May 2012 15:34:32 +0000]
video: tegra: host: add Tegra path to firmware

This change coalesces paths for nvhost devices which request firmware.
And it allows a path to be prefixed to them based upon nvhost's
runtime determintion of the chip/SOC.

Change-Id: I2852e1f02f337538e2537934d99db1b45658ccdb
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/125061
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rb64a5b4dcaa7c6c6864cebc9f0d9290114a84c21

6 years agovideo: tegra: host: Read TSEC key
Terje Bergstrom [Fri, 10 Aug 2012 11:34:18 +0000]
video: tegra: host: Read TSEC key

Read TSEC encrypted key from command line, and patch it in front of
the TSEC firmware.

Bug 969164

Change-Id: I396e7780362b92dca0c18f2ace5fefd825dd84c5
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/122664
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R2a003ac408bb886f98e48f2cea1e1fb65d0bd8ed

6 years agovideo: tegra: dc: Fix timestamp sim build
Jeff Smith [Thu, 23 Aug 2012 18:58:30 +0000]
video: tegra: dc: Fix timestamp sim build

bug 1021221

Change-Id: Ic7b69a19f7baecb8768179d34bdf94bae81969ee
Signed-off-by: Jeff Smith <jsmith@nvidia.com>
Reviewed-on: http://git-master/r/126952
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>

Rebase-Id: Re821f365590b369de3fbe13e3c75c0fd20f4d2f9

6 years agovideo: tegra: host: Clear intr list at intr_put
Terje Bergstrom [Wed, 22 Aug 2012 12:03:07 +0000]
video: tegra: host: Clear intr list at intr_put

Process wait list when removing a waiter. This clears the interrupt
once it is no longer needed.

Bug 1031724

Change-Id: Ifb46672f70c8bbd6359d0a8aeaac0d718a5394b2
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/125230
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R2cb44216c9e2081028560aa09fe9a83f4d4ab66c

6 years agovideo: tegra: dc: Make framebuffer console init OK
Mark Zhang [Fri, 17 Aug 2012 05:31:37 +0000]
video: tegra: dc: Make framebuffer console init OK

Update framebuffer's modelist after we changed it's fb_var_screeninfo.
This makes sure the framebuffer console can be inited successfully.
During framebuffer console init, it'll check whether the var info of
the framebuffer is consistent with the modelist.
Unsuccessful init of framebuffer console driver makes VT driver
doesn't work in right way.

Bug 996992

Signed-off-by: Mark Zhang <markz@nvidia.com>
Change-Id: I96a1db1f389be75dcba48b20447cf1510ad3768b
Reviewed-on: http://git-master/r/107866
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shashank Sharma <shashanks@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R19bcbdf30d0911f5150448af1e676f37c8e76777

6 years agovideo: tegra: host: Fix freeing a ERR_PTR value
Tuomas Tynkkynen [Mon, 20 Aug 2012 14:26:16 +0000]
video: tegra: host: Fix freeing a ERR_PTR value

nvhost_3dctx_alloc_common correctly checks the return value of an
allocator function, and attempts to perform cleanup. However, this
particular allocation API returns ERR_PTR values in case of failure,
which then gets passed to the deallocation function, causing a crash.

Also, the return value of that allocator API is checked with IS_ERR
in some places, and with IS_ERR_OR_NULL in others. For consistency
and avoiding surprises if the allocation implementation changes,
use IS_ERR_OR_NULL in all places.

Bug 1035878

Change-Id: I65ce97e11f9712b2e9630b38183f6e70bc14b254
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/124657
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

Rebase-Id: R155ae839713bd752a551ba74fb97e552ccc6d5bb

6 years agovideo: tegra: host: Fix crash if allocation fails
Tuomas Tynkkynen [Thu, 16 Aug 2012 16:56:51 +0000]
video: tegra: host: Fix crash if allocation fails

nvhost_module_remove_client assumes that a client structure
to be freed exists in the linked list. However, if an allocation fails
in nvhost_module_add_client, no client structure is allocated, and
during cleanup, nvhost_module_remove_client would then attempt
to free an invalid pointer.

Bug 1034729

Change-Id: Ie1a641071b86f8246951e9be824a6003f14b04b6
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/124096
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: Rd8cbe1c2b6217b0fb5306cb2031d33f7d6b91d14

6 years agovideo: tegra: host: Enable 3D power gating
Terje Bergstrom [Tue, 14 Aug 2012 08:01:39 +0000]
video: tegra: host: Enable 3D power gating

Enable power gating for Tegra11 gr3d.

Bug 971602

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

Rebase-Id: R0406d48248d2bf87b213cb3d881e541ffa4d4b30

6 years agovideo: tegra: host: Abstract actmon support
Terje Bergstrom [Tue, 14 Aug 2012 07:42:50 +0000]
video: tegra: host: Abstract actmon support

Abstract actmon support behind chip_support. This will make the
actmon code adhere to the correct register layout.

Initialization of actmon now happens from gr3d driver. This allows
initializing and deinitializing actmon when gr3d is power gated. The
consequence is that the avg value must be readable even when there
are no channels open to gr3d.

Bug 971602

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

Rebase-Id: Ra49ae42266d17a667e64d1eb5ef5d519e149739f

6 years agovideo: tegra: dc: Add timestamp support
Raghavendra VK [Sat, 4 Aug 2012 04:25:43 +0000]
video: tegra: dc: Add timestamp support

bug 1021221

Change-Id: Ifbe007de5bdeafaa15a0b3f2a138086045eba160
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/118179
(cherry picked from commit 74be8d4e7210d7bcea0d55565a7cbb06d6cc960e)
Reviewed-on: http://git-master/r/121087
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Morell <rmorell@nvidia.com>

Rebase-Id: Rb22545c11c94fee8c3e50538ece85f5d2fdd02c2

6 years agovideo: tegra: nvmap: Fix overflow in nvmap_heap
Tuomas Tynkkynen [Mon, 13 Aug 2012 12:43:31 +0000]
video: tegra: nvmap: Fix overflow in nvmap_heap

do_heap_alloc locates a suitable free block from a nvmap heap given a
size and alignment. Unfortunately, if a heap block happens to be
smaller than the alignment passed to the function, an integer overflow
will occur, and a block that's too small gets accidentally returned.

Bug 1032642

Change-Id: Ic650c520409134d753e968f62f144ddeb065ccc7
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/123076
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: R34de4da1a547ed1eb35d54bb7b1499142b80008a

6 years agovideo: tegra: nvmap: Add sanity checks for page pools.
Krishna Reddy [Wed, 1 Aug 2012 22:15:21 +0000]
video: tegra: nvmap: Add sanity checks for page pools.

Check return code for set_page_array_* calls.

Change-Id: Ie62ac78b82321939d5bd9d2a636d72dadea50d28
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/123544

Rebase-Id: R024c9e99f9d01f4503aa2921ccfa9fe15f074a3a

6 years agovideo: tegra: nvmap: fix input check in mmap ioctl
Tuomas Tynkkynen [Tue, 31 Jul 2012 14:49:49 +0000]
video: tegra: nvmap: fix input check in mmap ioctl

nvmap_map_into_caller_ptr takes a memory handle from usermode
and adds a memory mapping for the handle. However, the handle
is not checked for being allocated. An unallocated handle
would cause a kernel panic later on from a NULL dereference.

Change-Id: I73987b097a0c843b913660445e8bd1b4755dac61
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/119689
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R89c594f354ed5f75979b0f96e50cd391cdb48681

6 years agovideo: tegra: dc: disuse notifier
Ilan Aelion [Fri, 10 Aug 2012 19:53:10 +0000]
video: tegra: dc: disuse notifier

Due to issues with rcu notifiers on secureos, modifying dc flip
notifications to use a simple callback instead.

Bug 1028850

Change-Id: Iebf2a6d64d7316e3df2b88444201f9f9a29698c5
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/123103
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

6 years agovideo: tegra: host: Fix leak in 3D register read
Terje Bergstrom [Wed, 15 Aug 2012 09:12:16 +0000]
video: tegra: host: Fix leak in 3D register read

When 3D register is read, and we need to do a context switch, the old
context reference is incremented, but it never gets decremented. Fix
by using nvhost_job_get_hwctx() to acquire the reference.

Bug 1031746

Change-Id: Ic72637cb2399f960e2297733bfe45e585a8ec180
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/123678
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
GVS: Gerrit_Virtual_Submit

Rebase-Id: R49fdb8d9e28dc267da43ff34e571aac854b59b32

6 years agovideo: tegra: host: Fix actmon initialization
Terje Bergstrom [Tue, 14 Aug 2012 08:18:13 +0000]
video: tegra: host: Fix actmon initialization

Actmon was initialized with incorrect parameters.

* Hardware adds one to sample period, so initialize it to zero instead of 1
* We don't use consecutive breaches interrupt, so don't initialize it
* Monitor was not activated

Bug 971602

Change-Id: I50a521e38b1bc044dd742e02f708a24f531ee8d4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/123305
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andrew Howe <ahowe@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

Rebase-Id: Rd78c99540356456d26eac3a0d33f720ccf783c47

6 years agovideo: tegra: nvmap: Call page_to_pfn once
Hiroshi Doyu [Fri, 10 Aug 2012 08:12:19 +0000]
video: tegra: nvmap: Call page_to_pfn once

Change to call page_to_pfn once, small optimization.

Change-Id: I38ce3f91d52a11403470b09b5b40597966fcb5ea
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/122628
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rddc1263fc9eb1dd3ed8bf2074018470eda9cdfc9

6 years agovideo: tegra: nvmap: Add support for zeroed pages
Alex Waterman [Wed, 1 Aug 2012 18:02:30 +0000]
video: tegra: nvmap: Add support for zeroed pages

Add support to alloc zeroed pages for user space alloc requests. Also
define a config option to force userspace allocation requests to be
zeroed.

Change-Id: I75d3b2bc36e808f1470b423578ec4cba99e0f967
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/122549
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R9c046d09715b252696f4b97e9187ca3aaa553561

6 years agovideo: tegra: host: Disable host1x irqs at suspend
Terje Bergstrom [Mon, 13 Aug 2012 12:06:23 +0000]
video: tegra: host: Disable host1x irqs at suspend

host1x interrupts have been left on at suspend due to using wrong
constant for the interrupt register. Disable host1x interrupts at
suspend.

Change-Id: I915fc4e663e6ad90fccacff6fb223c5080e21fcd
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/123055
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andrew Howe <ahowe@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R7604e8bd1d2d9771c36aa43c0bae8cb44f500be4

6 years agovideo: tegra: hdcp: Add Missing Lock
Matt Wagner [Fri, 10 Aug 2012 18:43:35 +0000]
video: tegra: hdcp: Add Missing Lock

Lock was missing around one state set, so we add it here.

Bug 1024031

Change-Id: Iab013fff7e8519e8bcc91e84a5ca7cd6e6e783da
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/122802
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R5f56f5fde012ee95bfe4c601205b6d03fe3faeda

6 years agovideo: tegra: host: Fix section mismatches
Terje Bergstrom [Fri, 3 Aug 2012 11:29:11 +0000]
video: tegra: host: Fix section mismatches

nvhost context related functions were in init section, even though
they are called from non-init functions.

Bug 1022681

Change-Id: Ie85e9dd3f19873aec4153e34c7bffa19f40d37fa
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/120884
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R13da04c72502f2fcc1738b3e8920bb54f8dba7ff

6 years agovideo: tegra: nvmap: fix usermode input validation
Tuomas Tynkkynen [Tue, 31 Jul 2012 12:01:04 +0000]
video: tegra: nvmap: fix usermode input validation

nvmap_pin_ids accepts a list of handles to pin, which are passed
directly from usermode when called from nvmap_ioctl_pinop.

However, if invalid handles are passed in, the function might
still access them as valid handles, and cause a crash.

Bug 1023954

Change-Id: I6b98a2ef448bb496be7d569ddd4fb516fc399cba
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/119667
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

Rebase-Id: R234111489639953b4059bf0a6c78fce3a51301a0

6 years agovideo: tegra: dc: Set interface ctrl to default
Animesh Kishore [Thu, 9 Aug 2012 12:17:33 +0000]
video: tegra: dc: Set interface ctrl to default

No parallel display client on t11x.
Serial display client need default settings.

Bug 1017715

Change-Id: Icf00be597ce7833e10f32b1c3d247ec12eaf9f6e
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/122430
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R27162aa5d99d624d057b8b7903a0d0058acaee91

6 years agovideo: tegra: nvmap: Skip unnecessary loop for tegra_iommu_free_vm()
Hiroshi Doyu [Wed, 8 Aug 2012 12:36:49 +0000]
video: tegra: nvmap: Skip unnecessary loop for tegra_iommu_free_vm()

dma_unmap_page() can take bigger length than PAGE_SIZE.

Change-Id: If0e3e8cc2a358af4737334804e769100cb415823
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/122426
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: R99ab70030006f5898332a3d735de833b9457d157

6 years agovideo: tegra: host: invalidate FDC before context save
Nuno Subtil [Tue, 7 Aug 2012 05:11:01 +0000]
video: tegra: host: invalidate FDC before context save

Invalidate the FDC before submitting the context
save pushbuffer to ensure cache coherency across
both GPU cores.

Bug 1020291

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

Change-Id: I43ffee6a77122b4f2fe17f063dc6756c501e59c7
Reviewed-on: http://git-master/r/122323
Tested-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Donghan Ryu <dryu@nvidia.com>

Rebase-Id: Re1ddf3e7fdd1c93f7bd0efe7ac04b7d3da5214ec

6 years agovideo: tegra: hdcp: Fix Locking Issue
Matt Wagner [Thu, 2 Aug 2012 22:49:50 +0000]
video: tegra: hdcp: Fix Locking Issue

Locking in nvhdcp was set up in such a way that we couldn't
change the state of the HDMI plug while negotiating the HDCP connection.

Another lock was added that is only taken when the state of the plug or
hdcp session are changed.  This enables correct failure if the plug is removed
during negotiation.

Bug 1024031

Reviewed-on: http://git-master/r/120546
(cherry picked from commit 51f746421b73f8f378bd7908b35fd6c79687e239)

Change-Id: Id9a9b09f2cd03a1b51e7334391f35fc076a1e1dd
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/121399
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: Rbe2988d8b235501874f49c07844e70f5b26a2cdd

6 years agovideo: tegra: dynamic tsec, msenc firmware name
Ken Adams [Mon, 30 Jul 2012 19:50:11 +0000]
video: tegra: dynamic tsec, msenc firmware name

Allows msenc and tsec choose different versions of the firmware at runtime.
For bug 980258

Change-Id: Ie34dddb23417ce3b21f0097e50dc47349b5f6aaa
Reviewed-on: http://git-master/r/116802
Reviewed-by: Ken Adams <kadams@nvidia.com>
Tested-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shashank Garg <sgarg@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

Rebase-Id: Rae46042107d76eb15f3f1ce39786ffd9e9695e58

6 years agovideo: tegra: hdmi: cleanup error handling in init
Gaurav Batra [Wed, 1 Aug 2012 19:28:51 +0000]
video: tegra: hdmi: cleanup error handling in init

In case tegra_dc_init fails, this change will prevent unbalanced call
to dc->out_ops->disable().

Also mark tegra_dc_io_end in case tegra_dc_controller_enable
fails, this is required to not stop device from going into suspend mode.

Bug 1003874

Change-Id: I5af6b46fc50e1ae8e54f9f4eb8540d751364fed7
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/120108
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R5e03f056282299076d5f6ad40c584e65f5c51e8a

6 years agovideo: tegra: host: use strcmp in nvhost_bus_match
Mayuresh Kulkarni [Tue, 24 Jul 2012 07:17:24 +0000]
video: tegra: host: use strcmp in nvhost_bus_match

- replace the usage of strncmp with strcmp in
nvhost_bus_match()
- strncmp was needed when we had device name as
<name.ip-version>. but now the device name is <name>
which matches with the driver name.
- multiple devices get bind with the same driver using
id_table which uses .version field as an index in id_table

Change-Id: If0b6f0ee18626d5e7ff801b8515ef5168069c3f2
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/117953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

Rebase-Id: Ra859ad8ff5c414f63a528ac775c093def89acf3a

6 years agovideo: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:46:06 +0000]
video: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ib183b75f73df1a141f1dfdbc330369da838b24b9
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118086
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

Rebase-Id: R2b4ea5b17104298a8b15c2f723d61796fab5cf83

6 years agovideo: tegra: dc: suppress underflow warning
Jay Cheng [Mon, 30 Jul 2012 23:30:14 +0000]
video: tegra: dc: suppress underflow warning

change printk to trace_printk

Bug 995270

Change-Id: I71caadb76f6101f377e44ad3f3dc24ede0a099d5
Signed-off-by: Jay Cheng <jacheng@nvidia.com>

Rebase-Id: R2619ef69c6cd3397d71f9043d931e8bf22211999

6 years agovideo: tegra: nvmap: Fix two integer overflows.
Tuomas Tynkkynen [Mon, 30 Jul 2012 09:40:45 +0000]
video: tegra: nvmap: Fix two integer overflows.

nvmap_ioctl_pinop kmalloc's a temporary buffer, whose length is directly
given by ioctl parameter from usermode. The total size of the buffer
is not checked for overflow, which will cause a kernel panic with some
inputs.

Also, a sizeof() is applied to wrong type when calculating the amount
of bytes to copy from userspace.

nvmap_map_into_caller_ptr attempts to validate that the memory range
to be mapped is correct, but integer overflow can cause the check to
fail. This will lead to mapping wrong pages from the allocated
handle later on, when the page fault handler gets called.

Bug 1025502

Change-Id: I71a09c40c209dba9c5b37c3912e92a81e6f87e80
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>

Rebase-Id: Re91191ff7a8b7f0b93a43e170b5ec0513cdf02a4

6 years agovideo: tegra: dsi: Fix host HS transmission
Animesh Kishore [Wed, 25 Jul 2012 11:55:39 +0000]
video: tegra: dsi: Fix host HS transmission

Fixing host transmission with HS enabled.

Bug 999141

Change-Id: I9dcc5282971830865dacf16dbbbebf4096aeb00e
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/118315
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R5196c97acd4b9382c5ca7ebedfd9e5bb1e7cd779

6 years agovideo: tegra: host: use fps in 3dfs by default
Ilan Aelion [Tue, 17 Jul 2012 16:19:04 +0000]
video: tegra: host: use fps in 3dfs by default

enable using frame rate information in 3d frequency scaling by default

Bug 991589

Change-Id: I410c86e3a56ddf00610133333dd518b4f46aa9ec
Reviewed-on: http://git-master/r/116867
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: Rd8d8a7a0a66881342df47bac806be32a6e8dc3a3

6 years agovideo: tegra: host: adding throughput hint in 3dfs
Ilan Aelion [Mon, 16 Jul 2012 23:31:57 +0000]
video: tegra: host: adding throughput hint in 3dfs

adding support for using a throughput hint given by the tegra-gfx misc
device in the 3d scaling code. If throughput hint usage is enabled and
the latest throughput hint is recent enough (less than 1 second old),
the throughput hint is used to control 3d frequency scaling. Otherwise
the existing idle time percentage estimate is used.

Bug 991589

Change-Id: I68893e5ce7ef922b95ce5f5b3664eb8e1fdd4027
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/116866
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

6 years agomisc: tegra-throughput: adding throughput dev node
Ilan Aelion [Thu, 28 Jun 2012 00:58:11 +0000]
misc: tegra-throughput: adding throughput dev node

Creates a miscdev at /dev/tegra-throughput which gl will use to set a
target frame rate. In addition it receives notifications from dc on
flip events. On each notification the percentage ratio of the actual
frame time to the target frame time is calculated. In subsequent
changes this ratio will be reported to other modules as a throughput
hint.

Bug 991589

Change-Id: Ieaa2b2755b63d2d071de31e3ef819d4c3b51a956
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/116865
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agovideo: tegra: nvmap: Add support PLATFORM_IOMMUABLE
Hiroshi DOYU [Mon, 19 Mar 2012 09:53:49 +0000]
video: tegra: nvmap: Add support PLATFORM_IOMMUABLE

nvmap supports both w/ PLATFORM_IOMMUABLE and w/o PLATFORM_IOMMUABLE.

Change-Id: Icc0b4025ef067787a3ea449a17d53e714d3ef607
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/120019
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: R4d90ce82e078e16d6e3e8fe13f4e912a37814df5

6 years agovideo: tegra: host: fix section mismatched
Peter De Schrijver [Thu, 19 Jul 2012 13:10:08 +0000]
video: tegra: host: fix section mismatched

setup_save,setup_save_regs and setup_save_ram_nasty are referenced by
the corresponding context initialization handlers which are not in the __init
section. Hence they can't be part of the __init section.

Change-Id: Ib974439c5793f8f0fe57103807fc91317b505f0c
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/117059
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Rf7f65e310ebe8f8a3ee394acf9d772953575cad2

6 years agovideo: tegra: nvmap: Set PAGELIST_VMALLOC_MIN size correct
Krishna Reddy [Wed, 18 Jul 2012 21:59:51 +0000]
video: tegra: nvmap: Set PAGELIST_VMALLOC_MIN size correct

page list array size greater than PAGE_SIZE should use vmalloc.

Change-Id: Ic03668ba7ff716bfb3cc08aaef5f86214ee0a9df
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/116875
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit ddacaacd2a9fff10187e026eaa0d898694eeb95f)
Reviewed-on: http://git-master/r/118194

Rebase-Id: R3e1f86a3368af5748cf4fd83bd31643c6e3d252f

6 years agovideo: tegra: dc: synchronize dsi clock-gating
Rakesh Iyer [Thu, 19 Jul 2012 19:44:08 +0000]
video: tegra: dc: synchronize dsi clock-gating

The one shot thread will clock gate the modules periodically. This will ensure
relevant paths in dc driver have an active dc clock and dsi host.

Bug 1013172

Change-Id: Ibb505e35044f31405c06cb9fa0d6fdf78aafd4a6
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/117137
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R2e928fd856cbf8f810b5fad09358df868d20c8ff

6 years agovideo: tegra: host: fix memory leak in ctx save
Mayuresh Kulkarni [Tue, 17 Jul 2012 10:33:21 +0000]
video: tegra: host: fix memory leak in ctx save

- host1x_save_context() explicitly updated the ref count on context
- with the re-factoring of nvhost_job code, nvhost_job_alloc()
takes a ref count on context
- this caused the explicit ref count in host1x_save_context()
redundant and lead to memory leak. hence remove it

Bug 1015924

Change-Id: Id18c74412e8659b60288700972690d1b895de4c1
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/116409
(cherry picked from commit c98d0cfbbdacdda8e540b5d9e0d513e279b3b2f5)
Reviewed-on: http://git-master/r/117326
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R4d53d54a256da73fe3e38b88ddd1490efbcd9b26

6 years agovideo: tegra: 2d: reset 2d clock to minimum
Bharat Nihalani [Mon, 23 Jul 2012 05:28:47 +0000]
video: tegra: 2d: reset 2d clock to minimum

This was accidently reverted to be set to max with commit 9774bbe31a.
With 2d clock at max, there is a hit on video power numbers.

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

Rebase-Id: Rf88832dde10a189167b1f949dfdf609ceb627141

6 years agovideo: tegra: dsi: Implement dcs video + host
Animesh Kishore [Wed, 11 Jul 2012 12:25:28 +0000]
video: tegra: dsi: Implement dcs video + host

Send host commands to panel during vertical blanking
of a frame. Implementation is generic enough to
handle both long and short packets.

Bug 1009863

Change-Id: I9a80641df2d8b67eb3649d220c028543b246a5f3
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/114990
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R0b499255990d3d88e1e5eba694879e86d486056a

6 years agotegra: dc: fix build errors
Seshendra Gadagottu [Fri, 27 Jul 2012 00:51:23 +0000]
tegra: dc: fix build errors

Fixed compilation erros with CONFIG_TEGRA_DC enable:
1. Unused variables in dc.c and board-curacao-panel.c
2. Merge issue related to window.c

Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Change-Id: I087b6f15b68ef5fa9739c84dc3abc81db7d7b9d2
Reviewed-on: http://git-master/r/118821
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: nvmap: Add missing newline in kernel messages
Hiro Sugawara [Tue, 12 Jun 2012 20:23:50 +0000]
ARM: tegra: nvmap: Add missing newline in kernel messages

Change-Id: I96547276254c2d3c02d7b43f8eeb2ba6255e3c7d
Signed-off-by: Hiro Sugawara <hsugawara@nvidia.com>
Reviewed-on: http://git-master/r/118147
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

Rebase-Id: R9b74ae4306912d38f2685ef4f716de213399eaa5

6 years agovideo: tegra: dc: fix uninitialised variables
Varun Wadekar [Fri, 20 Jul 2012 12:52:57 +0000]
video: tegra: dc: fix uninitialised variables

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

Rebase-Id: Rf90ec46c89b49ce8639c473ea4f08b9d7ceb0ed6

6 years agoHACK: video: tegra30: host: report "register_sets = 2" for NvRmModuleID_3D
Varun Wadekar [Tue, 17 Jul 2012 12:49:05 +0000]
HACK: video: tegra30: host: report "register_sets = 2" for NvRmModuleID_3D

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

Rebase-Id: Rbc1eea0db1b563c017e8407a66bd0394b7098fa6

6 years agovideo: tegra: nvmap: Make IOMMU/IOVMM selectable in Kconfig
Hiroshi DOYU [Tue, 21 Feb 2012 14:47:08 +0000]
video: tegra: nvmap: Make IOMMU/IOVMM selectable in Kconfig

This patch allows nvmap to use the standard IOMMU API as its backend
engine instead of the legacy tegra IOVMM by Kconfig.

Enable TEGRA_IOMMU_{GART,SMMU} under IOMMU in config, and it
automatically disables IOVMM, instead.

Change-Id: I71112ef8072591aac4a93075623ca31c8851a960
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/114217
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: R1bb08c46e6c73989082a312bfb971848287057d3

6 years agoARM: tegra: p1852: Dual-display support for all SKUs
Dongfang Shi [Thu, 3 May 2012 23:40:49 +0000]
ARM: tegra: p1852: Dual-display support for all SKUs

Ported Peter's original change 86413 to main.

board-p1852-panel.c:
Add support for primary and secondary LVDS displays, and secondary HDMI display.

board-p1852-pinmux.c:
Add configuration for HDMI and LVDS

board-p1852.c:
board-p1852.h:
Support for determining which p1852 sku is in use

hdmi.c:If no edid retrieved, but there's a hardwired mode, enable it
(used to support HDMI->LVDS output on p1852 sku 2)

devices.c:added secondary display data.

Bug 977859
Bug 994011

Change-Id: Ide8fb6bf7dd873b1d50269fb98d7c1687e4d9073
Signed-off-by: Dongfang Shi <dshi@nvidia.com>
Reviewed-on: http://git-master/r/100438
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: fix compilation warning
Rhyland Klein [Thu, 12 Jul 2012 16:51:54 +0000]
video: tegra: fix compilation warning

Without the CONFIG_SWITCH enabled, there are multiple unused
variable warnings that get treated as error.

bug 949219

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I39512367fa4bbd3b00a435d0d7a31cfede9e712f
Reviewed-on: http://git-master/r/115428
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>

Rebase-Id: R24a1130fe1c0152fba53f57d0e2873f05a76b2cd

6 years agovideo: tegra: dc: fix build error in print_mode
Jon Mayo [Thu, 12 Jul 2012 20:29:07 +0000]
video: tegra: dc: fix build error in print_mode

Use the right number of parameters for tegra_dc_calc_fresh() when called from
print_mode(). This code is only used for debug.

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

Rebase-Id: Rd03ec952189a2a8a191b39ed2f86e8fc6c0074eb

6 years agotegra: dc: Make data output along with pixel clock.
Roger Hsieh [Tue, 3 Jul 2012 07:13:31 +0000]
tegra: dc: Make data output along with pixel clock.

After making pclk output ahead of LVDS_SHDN# , data output is later than
panel ready then caused partial black screen. Force triggered data output to
get it fixed.

Bug 972377
Bug 976081
Bug 1001434

Change-Id: Icd455d7439f622e46295158a5435286c521526aa
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/113164
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R301e7cefb87c8b7a600692f88ff7895e6b18d033

6 years agovideo: tegra: dc: consider bandwidth efficiency for tegra2
Bharat Nihalani [Tue, 26 Jun 2012 12:36:42 +0000]
video: tegra: dc: consider bandwidth efficiency for tegra2

This is similar to commit a62be5b5595ad86411ced81bceeb3d6a693426d2
pushed for rel-14 branch.

Bug 1004341

Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>

Reviewed-on: http://git-master/r/111227
(cherry-picked from fbfce3106da8dad18948103c812bdd9d45ffdd06)

Change-Id: Ib459094fd6499b3cc63bc534bf36e57dc98ce62b
Reviewed-on: http://git-master/r/114584
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

Rebase-Id: R4cd9916f4ea354cb36fd1a9f5cac9df587a07768

6 years agovideo: tegra: dc: support disp mode override via boot args
Nirav Patel [Tue, 22 May 2012 22:58:55 +0000]
video: tegra: dc: support disp mode override via boot args

Allows overidding the default disp mode without having to recompile
the kernel. Boot args can be specified in the following format:

disp_params=<rgb|hdmi|dsi>:pclk,h_active,v_active,h_ref_to_sync,
v_ref_to_sync,h_sync_width,v_sync_width,h_back_porch,v_back_porch,
h_front_porch,v_front_porch;<rgb|hdmi|dsi>:pclk,h_active,...

Bug 969088

Change-Id: Id0acf608de145493f6749d5b799d4bbb8162ba72
Signed-off-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-on: http://git-master/r/104604
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R2ac409102e0f189bf4def94373efa87e4f936377

6 years agovideo: tegra: treat compilation warning as error
Sanjay Singh Rawat [Tue, 10 Jul 2012 16:07:35 +0000]
video: tegra: treat compilation warning as error

- Adding flag to treat warning as error.
- Handled warning of unused function.

bug 949219

Change-Id: Ic6edfc28bae95b8395cbd51e80f14aa4aa663f61
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/114624
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rbbd8c43906d0e3235bef533c27fc211fda84c0be

6 years agovideo: tegra: nvmap: Introduce IOMMU backend instead of IOVMM
Hiroshi DOYU [Wed, 22 Feb 2012 12:34:08 +0000]
video: tegra: nvmap: Introduce IOMMU backend instead of IOVMM

Introduce IOMMU backend functions which use DMA API familiy
internally. Replace tegra_iovmm_*() API with arm_iommu_*iova*() and
dma_(un)map_page_(at)().

Change-Id: I0b014926ffedc12bf8f868b163982c6082d050b6
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/114216
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

Rebase-Id: R5be4c0f420325c451c155bc3979aad5be4d259c2

6 years agoARM: tegra: iovmm: Allow alloc_client to take struct device
Hiroshi DOYU [Mon, 9 Jul 2012 08:24:57 +0000]
ARM: tegra: iovmm: Allow alloc_client to take struct device

Allow tegra_iovmm_alloc_client() to take struct device * instead of
const char *name w/ __tegra_iovmm_alloc_client(). This is necessary to
support IOVMM and IOMMU simultaneously.

Change-Id: I18df5001bfe0ece8f9f15b636eb11def9f228dfb
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/114215
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoHACK: video: tegra: host: add "register_sets" back
Varun Wadekar [Thu, 12 Jul 2012 11:10:26 +0000]
HACK: video: tegra: host: add "register_sets" back

Without this code, we always get "NvRmModuleGetNumInstances:
Could not read register_sets" messages when we run graphics_submit.

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

Rebase-Id: R79ab19e0c3dcfb23b3c21f8dbaca1fc5dfdc2b5a

6 years agovideo: tegra: host: t30: Add syncpt/epp in ISP ch
Songhee Baek [Fri, 6 Jul 2012 18:26:40 +0000]
video: tegra: host: t30: Add syncpt/epp in ISP ch

This change is for programming VI and EPP through ISP channel
to support RGB input and dual video capturing.

1. Added syncpt in the ISP channel to submit the channel.
2. Added epp clock to use VI2EPP for RGB capture.

Note: To use this channel, EPP should be free from 2D.

Bug 988546

Change-Id: I17fe278c9325aac2ea1e29cbaf50c8a4499d8551
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/113965
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rfe4fd0296194f9512540144aa026a6220825d92a

6 years agovideo: tegra: host: resolve compilation time warnings
Sanjay Singh Rawat [Fri, 6 Jul 2012 12:38:12 +0000]
video: tegra: host: resolve compilation time warnings

- Handled warning of, possible use of uninitialized variable and unused
function.

bug 949219

Change-Id: I0d7d345e66774f08e52a12e653a5e7aa6a7a8591
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/113905
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: Rc96dca331d0c907231055baa8e827326ce48a4b2

6 years agovideo: tegra: resolve compilation time warnings
Sanjay Singh Rawat [Fri, 6 Jul 2012 09:53:16 +0000]
video: tegra: resolve compilation time warnings

- Handled warning of unused label.

bug 949219

Change-Id: I72e22063b199562c4a4c065419c1656e3e8ff7ff
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/113880
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

Rebase-Id: R8cb3729e2ca85fadfe49f2e03ede3b50b7d442c4

6 years agovideo: tegra: dc: vblank worker
Mark Zhang [Mon, 2 Jul 2012 05:05:25 +0000]
video: tegra: dc: vblank worker

Freeze vblank worker while suspending by adding the work into
system freezewq. This eliminates a kernel panic caused by nvsd
reading brightness valuesfrom display while clock gated.

Bug 1006180
Bug 1003969
Bug 1003730

Change-Id: Ice9bfb18e5c826ae063c2b901421b1047ff9d2f0
Signed-off-by: Mark Zhang <markz@nvidia.com>
Reviewed-on: http://git-master/r/112880
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R33cb3198ef4062b475fc33e6d34dfeb0d88bb4d1

6 years agovideo: backlight: use gpio request and free apis for backlight pin
Sanjay Singh Rawat [Tue, 26 Jun 2012 10:46:56 +0000]
video: backlight: use gpio request and free apis for backlight pin

- Gpio freeing function does disabling job.
- If backlight pin is an sfio, we have to claim the gpio. So that we can use
the gpio api's to configure it as sfio.

bug 984440
bug 858120

Change-Id: I583bf4a486d2d9a6d9b78ee459b1962379eafd3b
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/109564
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: dc: split dc.c into smaller files
Jon Mayo [Tue, 26 Jun 2012 20:53:55 +0000]
video: tegra: dc: split dc.c into smaller files

Moved mode setting code into mode.c
Move window code info window.c
Moved clock related code into clock.c
Moved LUT and gamma related code into lut.c
Moved csc(color space conversion) into csc.c
Removed unnecessary static function prototypes from header.
Moved many short inline functions to dc_priv.h
Cleaned up copyright headings.
Cleaned up formatting and indent in all files.
Fixed build warnings.

Bug 870907

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

Rebase-Id: Rc7ed74e733798a26a2af94b2384c5c9f1c9a19d7

6 years agovideo: tegra: dc: Fix the false alarm of pixel clock on FPGA.
Kevin Huang [Fri, 20 Apr 2012 06:41:38 +0000]
video: tegra: dc: Fix the false alarm of pixel clock on FPGA.

Bug 971127

Change-Id: Ia4cc51aaa41338ffd9bf1182c1a34587b62687fc
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/97829
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Ra354013427eedec0aa01a22ece1075ea1069144b

6 years agotegra: dc: Workaround a simulator bug.
Chao Xu [Tue, 30 Aug 2011 16:45:10 +0000]
tegra: dc: Workaround a simulator bug.

  - Workaround the simulator issue that WIN_x_UPDATE fields are not cleared.

Change-Id: I8060a32740e7641eebefe650cee13fd49260df03
Reviewed-on: http://git-master/r/52994
Tested-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R2f813f017b8c009146c1c4a8dac80333a833e3fd

6 years agovideo: tegra: dc: Update dc for simulation.
Chao Xu [Fri, 29 Jul 2011 00:32:27 +0000]
video: tegra: dc: Update dc for simulation.

 - Enable interrupt on simulator.
 - Remove timeout for sync windows event wait.

Change-Id: I157ea100d42f4ae0b0f142d024da886b044be7ba
Reviewed-on: http://git-master/r/52993
Tested-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

Rebase-Id: R0c166f0dcb6d4ca196ca9e6d4fdfb810588c6871

6 years agovideo: tegra: Use new Tegra platform types
Yudong Tan [Mon, 27 Jun 2011 21:05:58 +0000]
video: tegra: Use new Tegra platform types

This change is needed to support three platforms, silicon,
fpga and simulation.

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

Rebase-Id: Rdd2875e5494a504dc4d2df0393bc798765a9b865

6 years agoARM: tegra: dc: Keep DC interrupts disabled on FPGA
Scott Williams [Tue, 29 Mar 2011 17:37:38 +0000]
ARM: tegra: dc: Keep DC interrupts disabled on FPGA

Ignore DC interrupts on FPGA because they are a known limitation of
FPGAs and there's nothing that can be done about them.

Original-Change-Id: I161f422082dc0b1a581209b98421888dfff6fefa
Reviewed-on: http://git-master/r/24709
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Change-Id: Id69afe129d8256abbaed726fc55387f6b23dc36d

Rebase-Id: R1059fca241305e350b4f2a7ea32d6fb1bd3924e8

6 years agotegra: dc: Don't enable display interrupt on FPGA
Scott Williams [Mon, 10 Jan 2011 21:32:23 +0000]
tegra: dc: Don't enable display interrupt on FPGA

Bug 776857

Original-Change-Id: I4b357ab66ec167f53a4112a4cd0e165dced4b947
Reviewed-on: http://git-master/r/15423
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Change-Id: I7aefe9605ec983cf73b19964b7d59c3bba3f43ef

Rebase-Id: Re9bdb6acac56cb903ab7cdc3cc9af74c67f0d79d

6 years agotegra: dc: Support non-standard FPGA display panel
Scott Williams [Mon, 10 Jan 2011 21:07:57 +0000]
tegra: dc: Support non-standard FPGA display panel

The display panel sub-board used on FPGA platforms (panel 86)
is non-standard. It expects the Data Enable signal on the WR
pin instead of the DE pin.

Bug 776857

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

Rebase-Id: R10dec84f7cadb511245d55a6271fc171068cb8d3

6 years agovideo: tegra: dsi: 720p panel power fix
Rakesh Iyer [Wed, 20 Jun 2012 00:46:00 +0000]
video: tegra: dsi: 720p panel power fix

Send specified DC frames to 720p panel during power up/down sequencing.

Bug 997484.

Change-Id: I3927e98322ec93f68cabf635c71485b64750d7f9
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/109917
(cherry picked from commit e1d10bc056031fbc2f68101978d76317c44fc7af)
Reviewed-on: http://git-master/r/111944
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit

Rebase-Id: R6aabce4125cf89a9d08021a88a88ff52871d79bc

6 years agovideo: tegra: host: Serialize 2D jobs
Terje Bergstrom [Wed, 27 Jun 2012 06:37:05 +0000]
video: tegra: host: Serialize 2D jobs

Force serialization of 2D jobs by inserting a host wait for previous
maximum at the beginning of the job.

Bug 1002293

Change-Id: I667ad4565cc32186ea7ccf16845c68d1b1bbdf78
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/111475
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Daniel Parker <dparker@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Francis Hart <fhart@nvidia.com>

Rebase-Id: R0ab56d5198e889feda1eadd9de950e86e39a4760

6 years agovideo: tegra: nvmap: resolve compilation time warning
Sanjay Singh Rawat [Mon, 18 Jun 2012 17:51:41 +0000]
video: tegra: nvmap: resolve compilation time warning

- Grouping variables around bitwise operators for safe operation.

bug 949219

Change-Id: I8edf7fb241eb79ac07b63ab856d206fc453308f1
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/109577
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: Ra7ec3a5df8484d0a6a215998808ab208b7996a51

6 years agovideo: tegra: host: T30 uses two GPUs always
Arto Merilainen [Fri, 15 Jun 2012 13:16:32 +0000]
video: tegra: host: T30 uses two GPUs always

This patch removes the possibility to disable the second GPU of T30
using a fuse.

Change-Id: I73cd4b7bd52035322e5fc1b040ffeda6d600a90e
Reviewed-on: http://git-master/r/109434
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R694bd7b39aefd8541bb4c47b6c9a1767937e07f9

6 years agovideo: tegra: dc: Fix the check of dirty window.
Kevin Huang [Tue, 26 Jun 2012 08:27:58 +0000]
video: tegra: dc: Fix the check of dirty window.

Change-Id: I6584c856356d6be123a66731bde414e4925ffe07
Reviewed-on: http://git-master/r/111184
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R18304db4945e867aba898ded1a9eaf5576a4f927

6 years agovideo: tegra: dc: Deactivate DSI runtime when DC is idle.
Kevin Huang [Fri, 15 Jun 2012 18:09:12 +0000]
video: tegra: dc: Deactivate DSI runtime when DC is idle.

We support 3 different aggressiveness levels of disabling DSI runtime.
The larger the aggressive level is, the higher DSI power we can save.

Bug 936337

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

Rebase-Id: R23b80102507e8303c4eaec3de154df9b6ba80f6a

6 years agovideo: host: Add host to EXTRA_CFLAGS
Rhyland Klein [Fri, 22 Jun 2012 18:07:29 +0000]
video: host: Add host to EXTRA_CFLAGS

It seems with building with different tool chains, when compiling
nvhost_acm it doesn't end up with drivers/video/tegra/host in its
include path and therefore it fails to find some header files.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: Ic3d72c863d4b5e501222d21077ba9735315ec65c
Reviewed-on: http://git-master/r/110592
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

Rebase-Id: R2d94fa8e8956075886e6a8615c97f96a769cd8a4

6 years agovideo: tegra: use public APIs exposed by host1x driver
Mayuresh Kulkarni [Mon, 18 Jun 2012 07:05:40 +0000]
video: tegra: use public APIs exposed by host1x driver

Bug 961009

Change-Id: Ifdcc7bc8a40d270e70a63329f46caff541bf01e2
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/109461
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R3a993982921a5585701117175d2c2e620ace2462

6 years agovideo: tegra: dc: Support for pre power-off actions
Ken Chang [Tue, 15 May 2012 03:20:52 +0000]
video: tegra: dc: Support for pre power-off actions

Part of panel settings need to be done before/after pixel clock
is disabled. Add support for these actions to meet panel
spec.

bug 976081

Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/102542
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
(cherry picked from commit dcecdc64d4d0fd4d9f69df52c9d200dfbf1dd7fc)

Change-Id: Ibfede68d67a4815156f73c2d1cdca90f3f771755
Reviewed-on: http://git-master/r/110296
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: Rf7e4c33a9f956e74a6a24bb8dae948db91bf016f

6 years agovideo: tegra: host: add public APIs for power & syncpoint management
Mayuresh Kulkarni [Mon, 18 Jun 2012 07:05:01 +0000]
video: tegra: host: add public APIs for power & syncpoint management

- add public APIs for power & sync-point management
- all these APIs end with string _ext
- all these APIs can be found in linux/nvhost.h
- all these APIs take nvhost_device as first argument
- all these APIs are based on the fact that host1x hardware
driver is parent of all the host1x client driver
- this allows clients of host1x which are outside host1x
driver code to just include nvhost.h & use host1x driver
interfaces
- this also hides the implementation details of power &
sync-point inside host1x driver code
- move sync point ids for dc and nvavp to nvhost.h

Bug 961009

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

Rebase-Id: Re150cc840ce4132aacb9e7d8f71cbece98119e36

6 years agovideo: tegra: dc: Skip the vblank_int work if DC is disabled.
Kevin Huang [Wed, 20 Jun 2012 20:17:00 +0000]
video: tegra: dc: Skip the vblank_int work if DC is disabled.

Bug 1000789
Bug 1003730

Change-Id: I7fbd703dde2044f2790e6a9b356ef8dca89ad8f3
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/110146
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R4d5f8ea37310ec4fe0cc6fd849a4825f7defeebf

6 years agovideo: tegra: dc: force the use of new bandwidth
Jon Mayo [Wed, 20 Jun 2012 20:48:53 +0000]
video: tegra: dc: force the use of new bandwidth

During programming of a frame or at frame end, force the use of the new EMC
bandwidth instead of the previous frame's bandwidth.
Moved copy of new_bandwidth out of tegra_dc_set_latency_allowance() to match
the semantics of the rest of tegra_dc_program_bandwidth().

bug 949015

Change-Id: I881f3a2c75f3438e3bbb3208b518f15a4574bc91
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/110149
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>

Rebase-Id: Rccc1ca4f2d7553c55001f19617b96bbc2f74a1c3