summaryrefslogtreecommitdiff
path: root/drivers/video
AgeCommit message (Collapse)Author
2011-11-30video: fbmon: add HDMI dectetion to fbmod edid parsingErik Gilling
Looks for ieee registration number 0x000c03 as per HDMI spec. CEA-861-E section D.6.8. Change-Id: I6875b24c66e8754510edabcb4f9ba682a50d6ac1 Signed-off-by: Erik Gilling <konkers@android.com> Signed-off-by: Lajos Molnar <molnar@ti.com>
2011-11-30video: fbmon: Add support for CEA pixel ratios.Lajos Molnar
CEA defines multiple timings with dual timing ratios that cannot be distinguished from timings parameters. Added 2 new fb flags to specify 4:3 or 16:9 display ratios. Also added a flag that denotes CEA formats that require repeating pixels. Change-Id: I75d413babdcb4048a0ccce6548ed386ad0e52318 Signed-off-by: Lajos Molnar <molnar@ti.com>
2011-11-30video: fbmon: add remaining modes to CEA mode databaseErik Gilling
These mode are directly from the CEA-861-E spec. Change-Id: Ic29390fb8dfc4605da1f95aaee0e2e775dfc0a4a Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30Revert "video: fbmon: add HDMI dectetion to fbmod edid parsing"Erik Gilling
This reverts commit c326f06779fb6bdd7f92c3ede8d1bebbe2fafbfa.
2011-11-30video: tegra: nvmap: perform cache maintenance for rw_handleGreg Roth
Need cache maintenance on rw_handle to remove display garbage issue which happens randomly. Change-Id: I73606ae6551c0e75058e055f4a19e5f074a47004 Signed-off-by: Greg Roth <groth@nvidia.com>
2011-11-30video: tegra: add support for tiled surfacesMichael I. Gold
Change-Id: I82497fc756552740836eaa2f608fecaea409cfeb Signed-off-by: Michael I. Gold <gold@nvidia.com>
2011-11-30video: tegra: add display inversion supportAri Hirvonen
Change-Id: Ied3851e0cb801f607499493f1e552f42daa97e6b Signed-off-by: Ari Hirvonen <ahirvonen@nvidia.com>
2011-11-30video: tegra: dc: Fix introduced regression.Andrei Warkentin
Removes changes to DC reset flow. Change-Id: I491b6771c205bec7e19d4c661bb6d376ea8e25e4 Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
2011-11-30video: tegra: dc: Fix several problemsAndrei Warkentin
Resolve potential race between resume and reset Fix wmb after return Change-Id: I98ad1e713b9781d780bf93561496011bf62b86d1 Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
2011-11-30video: tegra: prevent double disable in suspendAndrei Warkentin
Prevents HDMI detect worker from re-disabling DC during suspend (after tegra_dc_suspend has disabled DC itself)/ Change-Id: I90016fb709934ab8fb5135443980898069f8071f Signed-off-by: Andrei Warkentin <andreiw@motorola.com> Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: dc: hdcp: handle the case of DEVICE_COUNT = 0 properlyPeter Zu
When HDCP repeater has no device attached, DEVICE_COUNT reports back as 0. HDCP driver should handle this case as a good case and continue downstream authentication, other than fail it. Change-Id: Ied2e46428c0247f14fbd96016cd4fdbf358f6587
2011-11-30video: tegra: fix more unplug/suspend timeout in nvhdcpErik Gilling
Change-Id: I30dfa03324eb5c4c344c62578eb808a150c80deb Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: fix unplug/suspend timeout in nvhdcpErik Gilling
If HDCP was turned off (either by unplug or suspend) the work funciton would wait the full timeout 5 * l.75s before exiting. This causes suspend to timeout and crash. Change-Id: I8eb185452ad09e34f4573874e9766c0e1cec15de Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: zero out var before calling fb_videomode_to_varErik Gilling
Change-Id: I23f01da0a7dcd62594faa828676ffb7a4bc72d9f Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: add debouncing to hdmi hotplugErik Gilling
Change-Id: Ic998e183e79faabc36d96720dcbae2640e8cf419 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: reset hdcp failure count on hotplugJon Mayo
use tegra_nvhdcp_on/tegra_nvhdcp_off in hotplug handler to clean up state machine. Change-Id: I62fe503f0628ad4b49d5d7d66fe1702122179877 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: use longer retries for hdcpJon Mayo
use 3 seconds for i2c/ddc failures on hdcp (15 attempts at 250mS each) Change-Id: Ia755c9b42d5a0d8467b68c9d334638bcb015eabd Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: attempt HDCP on DVIErik Gilling
Change-Id: If9efc63de3427f263b121e102cd0168883a236a3 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: dc: Call dvfs functionsColin Cross
Change-Id: If3cca5da2abc5e6c3671c8c23af90cd4e029db5c Signed-off-by: Colin Cross <ccross@android.com>
2011-11-30video: tegra: nvmap: remove smp_lock includeColin Cross
Change-Id: I51fe70b92f256951e68c6bbd21e6b4d6081f4731
2011-11-30video: tegra: reset hdcp failure count on hotplugErik Gilling
Change-Id: Iba5041f8428b13791004c96e6e8c2ed4dbcc37b8 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: add HOST1_SYNC regs to nvhost_debug_show dumpChris Johnson
Change-Id: I48cccf5b0df768b9cfc774803f3945f4806a62ac
2011-11-30video: tegra: cleanup debug syncpt outputChris Johnson
In debug prints for stuck WAITs differentiate WAIT_SYNCPT vs. WAIT_SYNCPT_BASE and fix some build warnings. Change-Id: Ia47375614c676a9f93216fbfaaf6856c3df42e2e Signed-off-by: Chris Johnson <cwj@nvidia.com>
2011-11-30Revert "Revert "tegra: host: move stale wait checking into the kernel""Rebecca Schultz Zavin
This reverts commit b3cc1d84d0b962fe80fc297d2e2417c3157508b6.
2011-11-30Revert "tegra: host: move stale wait checking into the kernel"Rebecca Schultz Zavin
This reverts commit 2d49bf33f3885aab293f12d54447f66e911e3226.
2011-11-30tegra: host: move stale wait checking into the kernelPrajakta Gudadhe
The kernel now receives wait tracking data (similar to gathers and relocs) and compares the current syncpt with the threshold value. If it's old, it gets a kernel mapping and rewrites the method data to use a kernel reserved syncpt that is always 0 (so trivially pops when seen by the HW). Patch has dependency to the user-space patches Submitted on behalf of: Chris Johnson <cjohnson@nvidia.com> original work by: Chris Johnson <cjohnson@nvidia.com> Change-Id: I4d4e5d3b49cab860485c4172f87247f5b4f5ea6e
2011-11-30video: tegra: hdmi: enable wakeup on hotplugErik Gilling
Change-Id: Idbb3f81c3c2d8a4f7f6b76736e11dd07cdd3a413 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: hdcp: move call to hdcp suspend out of atomic contextErik Gilling
Change-Id: I62a9d810637df221862898536f990eda77e50644 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: hdmi: fix vic detection for avi infoframeErik Gilling
typeo was causing 1080p VICs to never be populated Change-Id: Idde037cf0d4b71370cff7e65a2135b8c60a91fa0 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: de-assert reset after clocks are turned onErik Gilling
In underflow recovery, if the clocks are not enabled when the dc is brought out of reset writes to the DC will sometimes hang. Change-Id: If37de79f755196550018f94080ab2beed84ca326 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30[ARM] tegra: edid modes uninitialized on i2c failJon Mayo
fix unhandled i2c errors in tegra_edid_get_monspecs() that resulted in truncated mode lists(stale data). Change-Id: Iec7878f2a3071c5297d0569d4f1cce1c9ed48979 Reviewed-by: Jon Mayo <jmayo@nvidia.com> Tested-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Peter Zu <pzu@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Signed-off-by: Jon Mayo <jmayo@nvidia.com>
2011-11-30[ARM] tegra: hdmi nvhdcp driverJon Mayo
Device /dev/nvhdcpX is used to manage NVHDCP on framebuffer /dev/fbX. These devices are created on hdmi driver initialition when it is attached to dc. Currently only one nvhdcp device may be created. An ioctl interface is in video/nvhdcp.h Check for repeaters and store repeater info. userspace application queries this status to authenticate the connection. When authentication fails, auto-renegotiate every 1.75 seconds. Give up after 5 failed attempts, reset after hotplug or policy change. use TEGRA_DC_OUT_NVHDCP_POLICY_ON_DEMAND in tegra_dc_out.flags in board panel configuration to select a different default policy at probe. Currently only TEGRA_DC_OUT_NVHDCP_POLICY_ALWAYS_ON is supported. Change-Id: I0db66fc86096b98d2604544061721d291523de75 Reviewed-by: Jon Mayo <jmayo@nvidia.com> Tested-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Phillip Smith <psmith@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: add some missing mutex locking to nvhost_cdmaPrajakta Gudadhe
Change-Id: Ie4606d9a5154090274168babc110ea2d79747c05 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: nvmap: Fix broken optimizationkartamonov
An attempt had been made to reduce the number of pte operations while patching relocs. The optimization was incorrectly coded and was not providing the expected speedup. Credit for the find goes to Peter Pipkorn. Change-Id: Ic83b20ee470e54d5053f747dbcbdf7b038b7c7c4 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2011-11-30video: tegra: only enable HDMI features if detected from edidErik Gilling
Change-Id: I94c5c83c25a8aa1de344339f5759953074488720 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: fbmon: add HDMI dectetion to fbmod edid parsingErik Gilling
Looks for ieee registration numver 0x000c03 as per HDMI spec. Change-Id: I6875b24c66e8754510edabcb4f9ba682a50d6ac1 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: add height/width to dc and fbErik Gilling
Change-Id: I22c280928079af04263375fce63a87776588a457 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: set h/v sync polarity for HDMIErik Gilling
Change-Id: I4be0eb963c3779b9313ef94476b1589059d4aa3c Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: support v/h sync polarityErik Gilling
Change-Id: Ida82a70efaeadc9d5b11d8703e688063680b72a8 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: correct HDMI h/vsync polairty in some modesErik Gilling
Change-Id: I0e988d1724461ff2d5bd1009f2fdc379bd154703 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: nvmap: Several changes to carveout killerRebecca Schultz Zavin
-Add a module param to enable/disable carveout killer -Fix race condition in code to wait for something to free memory after firing carveout killer -Fix the check for current so we always compare task->group_leaders Change-Id: Ie030978827dce6b0fbbfa1db0d80e4abe59eaa51 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2011-11-30video: tegra: incresase delay in underflow recoveryErik Gilling
Change-Id: I8093c83a2749c63b6ece051cc9b892d87e55fe04 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: dump host state when timing out on suspendErik Gilling
Change-Id: I718fb071ac74f5a051a7d5b9fcdd782163ed48b6 Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: host: Force memory bus to full when using 2d, 3d or mpeColin Cross
Change-Id: I7138af5d26c3f406537bc4b2bc4bb052de37f7bf Signed-off-by: Colin Cross <ccross@android.com>
2011-11-30video: tegra: host: disable MPE auto-power-gateMayuresh Kulkarni
It is seen that auto-power-gate of MPE causes some issues when long run camera stress test is run. The issue manifest itself in the form of MPE sync-point not getting triggered from hardware and hence the caller who is waiting on it hangs up the system. Disabling auto-power-gate for MPE seems to resolve this issue. Original work of Jay Cheng <jacheng@nvidia.com> Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Change-Id: Iaef9f959cbc00dd715352ca637955cd2bea6f355
2011-11-30video: tegra: nvmap: Several fixes to the carveout killerRebecca Schultz Zavin
-Modify the carveout killer to only kill tasks with lower priorities than the one that's trying to allocate -After delivering a sigkill to a task, wait for something to exit and cleanup before retrying the allocation Change-Id: If62b6ed008a73fc3c347ff26735a83eee284909e Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2011-11-30video: tegra: reset default window in releaseSergey Kudakov
Change-Id: I242e9fac525472c5c20f213a6de516f95b2f6a12 Cc: Sergey Kudakov <sergey.kudakov@motorola.com> Signed-off-by: Erik Gilling <konkers@android.com>
2011-11-30video: tegra: nvmap: Don't store task struct for kernel threadsRebecca Schultz Zavin
No need to maintain a reference to the task struct if the client is a kernel thread. In this case just set the task to NULL. Change-Id: Ica4785388932f6b298eeb0da04b78b0e1cdc3a44 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2011-11-30video: tegra: work around overlay corruption on underflowsErik Gilling
Overlays can get their internal state corrupted during and underflow condition. The only way to fix this state is to reset the DC. If we get 4 consecutive frames with underflows, assume we're hosed and reset. Change-Id: Icdf61517837c8570b8de35f585075de08aa35fe7 Signed-off-by: Erik Gilling <konkers@android.com> Cc: Michael I. Gold <gold@nvidia.com>
2011-11-30video: tegra: nvmap: Add carveout killerRebecca Schultz Zavin
This change attempts to reclaim carveout memory by killing other carveout users when an allocation fails. Processes are killed in order of priority from lowest to highest, and then from largest to smallest users. Change-Id: Iee8a6f36269bc8165d691000a153dbf9f4337775 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>