summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2011-03-21video: 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-03-08Revert "Revert "tegra: host: move stale wait checking into the kernel""Rebecca Schultz Zavin
This reverts commit b3cc1d84d0b962fe80fc297d2e2417c3157508b6.
2011-03-03Revert "tegra: host: move stale wait checking into the kernel"Rebecca Schultz Zavin
This reverts commit 2d49bf33f3885aab293f12d54447f66e911e3226.
2011-03-02tegra: 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-03-01usb: host: Renamed USB_TEGRA_HCD -> USB_EHCI_TEGRABenoit Goby
Change-Id: I2eec79186d6dc258caa2f3c8f3cd071222d1c5c7 Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01usb: do not force select has_ehci for tegraBenoit Goby
Change-Id: If6219a3ba9671a2c4c10b35461e1cc2ffe50ab0a Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01usb: otg: Add ulpi viewport access opsBenoit Goby
Add generic access ops for controllers with a ulpi viewport register (e.g. Chipidea based controller). Change-Id: I53d50857d4716f8df708af199ad1def1ff9d4beb Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01usb: host: tegra: Cleanup before sending upstreamBenoit Goby
Change-Id: I846d43b1ecbe6c726f024b6a0fb318d6300a3746 Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01usb: otg: tegra: Moved tegra_usb.h to include/linux/platform_dataBenoit Goby
Change-Id: I201b6476979f6e1ef8ffadb4398b99a1728f3083 Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01usb: host: Moved tegra_usb.h to include/linux/platform_dataBenoit Goby
Change-Id: Ic093d07858eb6e27aae9cd04d4c59407b5b1d76d Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01Revert "usb: host: ehci-hcd: add controller_resets_phy quirk"Benoit Goby
This reverts commit 2c7d591aa11086ba841f8712b7cee33e245b62f6. Change-Id: Ic9994dafc424e16d5d8251c287f8be65832b611b
2011-03-01serial: tegra_hsuart: Clean-up FIFO flush and set baudrate operations.Andrei Warkentin
Do necessary waits and fifo clear according to NV. Also use 115200 as the rate set while bringing-up rx dma during init, to decrease start-up time. Change-Id: I5211c75607cf2880ab2b1c22ab30f2c265534a1c Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
2011-02-28video: tegra: hdmi: enable wakeup on hotplugErik Gilling
Change-Id: Idbb3f81c3c2d8a4f7f6b76736e11dd07cdd3a413 Signed-off-by: Erik Gilling <konkers@android.com>
2011-02-28video: tegra: hdcp: move call to hdcp suspend out of atomic contextErik Gilling
Change-Id: I62a9d810637df221862898536f990eda77e50644 Signed-off-by: Erik Gilling <konkers@android.com>
2011-02-28video: 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-02-28video: 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-02-24[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-02-24[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-02-14video: tegra: add some missing mutex locking to nvhost_cdmaPrajakta Gudadhe
Change-Id: Ie4606d9a5154090274168babc110ea2d79747c05 Signed-off-by: Erik Gilling <konkers@android.com>
2011-02-14video: 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-02-11Revert "mmc: subtract boot sectors from disk size for eMMC 4.3+ devices"Colin Cross
This reverts commit 2cdc235bbeb09b2b78cd02a94ab79c265861aea9. The reverted commit incorrectly calculates the size of eMMC devices in some (all?) cases. This revert may cause problems in cases where the bootloader was bug-compatible and puts a GPT partition at the incorrect end of the eMMC device. Change-Id: Icc9ddb3d294aa2a1caeddfe8fedd2e12aa7691e1
2011-02-11Revert "mmc: fix non-arm build due to eMMC 4.3+ change"Colin Cross
This reverts commit 1c119f2c1667ea2747693f7fd2166205e1a10b09.
2011-02-08USB: ehci: tegra: Align DMA transfers to 32 bytesRobert Morell
The Tegra2 USB controller doesn't properly deal with misaligned DMA buffers, causing corruption. This is especially prevalent with USB network adapters, where skbuff alignment is often in the middle of a 4-byte dword. To avoid this, allocate a temporary buffer for the DMA if the provided buffer isn't sufficiently aligned. Signed-off-by: Robert Morell <rmorell@nvidia.com>
2011-02-08USB: HCD: Add driver hooks for (un)?map_urb_for_dmaRobert Morell
Provide optional hooks for the host controller driver to override the default DMA mapping and unmapping routines. In general, these shouldn't be necessary unless the host controller has special DMA requirements, such as alignment contraints. If these are not specified, the general usb_hcd_(un)?map_urb_for_dma functions will be used instead. Also, pass the status to unmap_urb_for_dma so it can know whether the DMA buffer has been overwritten. Finally, add a flag to be used by these implementations if they allocated a temporary buffer so it can be freed properly when unmapping. Signed-off-by: Robert Morell <rmorell@nvidia.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-02-08USB: HCD: Add usb_hcd prefix to exported functionsRobert Morell
The convention is to prefix symbols exported from the USB HCD core with "usb_hcd". This change makes unmap_urb_setup_for_dma() and unmap_urb_for_dma() consistent with that. Signed-off-by: Robert Morell <rmorell@nvidia.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-02-07video: tegra: only enable HDMI features if detected from edidErik Gilling
Change-Id: I94c5c83c25a8aa1de344339f5759953074488720 Signed-off-by: Erik Gilling <konkers@android.com>
2011-02-07video: 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-02-03video: tegra: add height/width to dc and fbErik Gilling
Change-Id: I22c280928079af04263375fce63a87776588a457 Signed-off-by: Erik Gilling <konkers@android.com>
2011-02-02video: tegra: set h/v sync polarity for HDMIErik Gilling
Change-Id: I4be0eb963c3779b9313ef94476b1589059d4aa3c Signed-off-by: Erik Gilling <konkers@android.com>
2011-02-02video: tegra: support v/h sync polarityErik Gilling
Change-Id: Ida82a70efaeadc9d5b11d8703e688063680b72a8 Signed-off-by: Erik Gilling <konkers@android.com>
2011-02-02video: tegra: correct HDMI h/vsync polairty in some modesErik Gilling
Change-Id: I0e988d1724461ff2d5bd1009f2fdc379bd154703 Signed-off-by: Erik Gilling <konkers@android.com>
2011-01-25watchdog: tegra_wdt: Several changes to watchdog driverDmitriy Gruzman
Fix not re-enabling watchdog resume if it was enabled in probe Add clearing watchdog interrupt in probe Remove tegra_wdt_set_timeout Change-Id: I8fdbb6da3eda64a85a73ed85ab979a5ee0261c37 Signed-off-by: Dmitriy Gruzman <dmitriy.gruzman@motorola.com>
2011-01-25usb: host: tegra: Request 400MHz emc clockBenoit Goby
while USB is active to eliminate all USB buffer underruns. Change-Id: I9977224601e715e950284708958be98d37b3e6b1 Signed-off-by: Nathan Connell <w14185@motorola.com>
2011-01-25usb: gadget: tegra_udc: Request 400MHz emc clockBenoit Goby
while USB is active to eliminate all USB buffer underruns. Change-Id: I7ad8ebfa2d802f91b81839e14fde906da1a0569e Signed-off-by: Nathan Connell <w14185@motorola.com>
2011-01-24video: 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-01-24video: tegra: incresase delay in underflow recoveryErik Gilling
Change-Id: I8093c83a2749c63b6ece051cc9b892d87e55fe04 Signed-off-by: Erik Gilling <konkers@android.com>
2011-01-24video: tegra: dump host state when timing out on suspendErik Gilling
Change-Id: I718fb071ac74f5a051a7d5b9fcdd782163ed48b6 Signed-off-by: Erik Gilling <konkers@android.com>
2011-01-20usb: gadget: tegra: Enable emc clock while usb is connectedBenoit Goby
Change-Id: Icb94c516a580e29b42b1899e622c9b91f8701dd2 Signed-off-by: Benoit Goby <benoit@android.com>
2011-01-20usb: host: tegra: Enable emc clock while usb is resumedBenoit Goby
Change-Id: I03a102f40134686fabbd5cfa1830816a691cf876 Signed-off-by: Benoit Goby <benoit@android.com>
2011-01-18usb: host: tegra: Fix SetPortFeature PORT_SUSPENDBenoit Goby
This fixes a regression where hubs cannot detect new devices once they have been auto-suspended. Change-Id: I4b3efcaa9634b9a912060e438527000bbc83dc32 Signed-off-by: Benoit Goby <benoit@android.com>
2011-01-18usb: host: tegra: Fix resuming low speed devices from lp0Benoit Goby
Change-Id: I9576853bbe0fae52c5c2cfab26ce8f2017077d4e Signed-off-by: Benoit Goby <benoit@android.com>
2011-01-15crypto: tegra-aes: perf: remove unnecessary polling and memsetVarun Wadekar
Change-Id: I69731fcd50933ccea73542d046c3c5d86d03fcd9 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2011-01-14video: 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-01-14video: 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-01-12video: 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-01-12video: 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-01-12crypto: tegra-aes: Hack to disable HW AES for dm-cryptKen Sumrall
The hardware aes engine is required for key management for HDCP, but since it's performance is bad, we don't want it enabled for dm-crypt. This hack changes the cra_name field so dm-crypt won't find a match, but leaves the cra_driver_name field unchanged to the device file interface will still find it. Signed-off-by: Ken Sumrall <ksumrall@android.com>
2011-01-13crypto: tegra-aes: improve encrypt/decrypt performanceVarun Wadekar
- enable/disable clocks only once per request - create a thread for handling the driver's work queue - always set vde clocks to the max before processing a request Change-Id: I935e5523e9e913c93705cc694f8a475d212c15ce Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2011-01-12video: 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-01-12crypto: tegra-aes: call INIT_COMPLETION before setting the transferVarun Wadekar
Change-Id: I368a9bf8aa1c311532e54d18a813b556576b8da1 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>