summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-06-17Some cosmetics.upstream-lenny-with-frc-patchesThomas Hilber
Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-06-06Support for HDMI 1600x1200 50Hz interlaced resolution.Thomas Hilber
- now supports HDMI 1600x1200 50Hz interlaced resolution - adjustment control now operates at lower speed which is still fairly sufficient Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-06-06Some cosmetics and option to configure field/frame timing log output.Thomas Hilber
- field/frame timing log output now configurable per SF_Debug Xserver option - odd numbers will output a status line every second - even numbers will only spawn a line if a given value is exceeded either drift or by sync point or by both Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-06-06Improved field timing debug support.Thomas Hilber
Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-06-02Add new scheduling option.Thomas Hilber
- new scheduling option added Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-06-02fast processors require additional delay of 32usecsThomas Hilber
- fast processors require additional delay of 32usecs where we wait for even field to pass - white space fixes/indentation Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-06-02[BUG FIX] delay until field update deadline must be delayed further by SHIFTVThomas Hilber
Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-05-31Rewrite for improved D945GSEJT support.Thomas Hilber
- the intel part of the patch did undergo a major rewrite for improved D945GSEJT support - full compatibility to prior intel hardware maintained - in the course of that the debug facility has been improved Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-05-31Include support for Intel D945GSEJT (Johnstown) and ASUS Eee PC 701 4G.Thomas Hilber
- support for Intel D945GSEJT (Johnstown) included - support for Asus Eee PC 701 included Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-05-31now automatically raises Xserver sched prio for single processor systemsThomas Hilber
(affects radeon + intel systems) Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-05-31New options for xorg.conf and start with disconnected monitor.Thomas Hilber
- introduced new xorg.conf options for both intel and radeon FRC patches - FRC (aka sync_fields) switch (default on) - process priority (default 0) - FRC debug output (default off) - intel Xserver now starts even with disconnected monitor Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-05-31Add frame rate control.Thomas Hilber
- Full functionality of Radeon based original patch now ported to recent Intel graphics hardware. This includes support for i945G chipsets as found on EEE PCs and D945GCLF[2] boards. - Exploits some special features of i945G chipsets like vertical phase registers and fine tuning of vertical scaling. This enables us to compensate for interference effects observed when driving modern digital displays through a SCART interface. Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2009-05-31[coding style] Correct indentation.Thomas Hilber
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Thomas Hilber <sparkie@lowbyte.de>
2008-06-17Fix compiling with server master in LVDS backlight patchZhenyu Wang
(cherry picked from commit 289790c0467d27e96b537598a6589fc6a36da8b8)
2008-06-16Fix maximum backlight issueLukas Hejtmanek
(cherry picked from commit 4c4ef27779aebf4df90b6233de05be2bb972de4c)
2008-06-12Fix compiler warning when disable xvmc configZhenyu Wang
2008-06-12Set up/restore PWRCTXA from enter/leavevt not server start/exit.Eric Anholt
This should improve behavior in the presence of VT switching, but also avoids a crash on X exit from writing the register after unmapping mmio.
2008-06-12Two more Dell quirksBryce Harrington
fd.o #16160 (cherry picked from commit 231a302013981cc597ba09ee89b367c8ab56e8ba)
2008-06-12Fix TV programming: add vblank wait after TV_CTL writesJesse Barnes
Fxies FDO bug #14000; we need to wait for vblank after writing TV_CTL or followi ng "DPMS on" calls may not actually enable the output. (cherry picked from commit 1142be53eb8d2ee8a9b60ace5d49f0ba27332275)
2008-06-12Fix TV out connection type detectionRobert Lowery
Make sure we wait for vblank when using the TV DAC to detect the connection type. Fixes FDO bug #14000. (cherry picked from commit 64a8f2433d7774d06119793b57cec6d3be6389c1) (cherry picked from commit e4e61e8c97c585993b4b69b86350b3987178a47e)
2008-06-12Move debug clock printout from ErrorF to X_INFO.Eric Anholt
(cherry picked from commit bff180e6cac4452ef491c81855eb12bfa03d0bf3)
2008-06-12Remove SVG_WORK_CONTROL init.Eric Anholt
The bit set is now reserved -- used to be a workaround for early revisions. (cherry picked from commit ad459b21b7de4a79552ac155803d5930432fb84b)
2008-06-12Initialize clock gating from EnterVT and save/restore it appropriately.Eric Anholt
2008-06-12Move BIOS scratch register setup to EnterVT instead of PreInit.Eric Anholt
We want these to always be set when our driver's in control. They are already appropriately save/restored at leave/entervt. (cherry picked from commit 8061e5ac27a5f61f940bccc940be922999cc1d3f)
2008-06-12Remove gratuitous wait_ring_idle after I830Sync. Syncing implies that.Eric Anholt
(cherry picked from commit b61cb9283185eb5211e84eb7d8e68beea607c2eb)
2008-06-12Remove duplicated i830_stop_ring()/SetHWOperatingState() in EnterVT().Eric Anholt
(cherry picked from commit adb4f5a5e826e584ab212d23fc8d474c3e7bb8e8)
2008-06-12Replace a couple of wait-for-ring-idles with a single function to do so.Eric Anholt
(cherry picked from commit 7e51384c973a96366b02ea646392c43574674111)
2008-06-12Just remove the mprotect kludge.Eric Anholt
Besides not being #ifdef __linux__ed as requested, some linux kernels break in exciting new ways when you try to mprotect from PROT_NONE back to PROT_READ|PROT_WRITE. Yes, there are bugs in the code we're calling in a bug-exploiting bug workaround. If you want this workaround for the original bug exposed when moving to libpciaccess, it's already in libpciaccess. (cherry picked from commit 65306cdd71dad71e4ca7229764f81a0880dd70bf)
2008-06-12Set SDVO sync polarity to default on 965Hong Liu
Fix fd.o bug 15766 (cherry picked from commit beb72ae5aa053303f5cc419e9c9d7c6db964f160)
2008-06-12xvmc: a little cleanupZhenyu Wang
Also safe check context size to not exceed surface max.
2008-06-12xvmc: remove unused dri drawableZhenyu Wang
(cherry picked from commit 96955003557686469c7ae9f7d42620d2851e6fad)
2008-06-12Fixup power saving registersJesse Barnes
Update clock gating disable bits to match docs and allocate a power context memory area so that newer chips can save state and power down the render unit. (cherry picked from commit 89bb53cc7a853d88fc34a0ca65ae2b6227a8dd24)
2008-06-12Disable a bunch of clock gating disables on IGD_GM, which doesn't need them.Eric Anholt
Besides our driver having fallen through to the GM965 path for RENCLK_GATE_D1, the BIOS was turning some of these on. It may be relevant for previous platforms as well to zero out the fields that should be zero in the other registers. (cherry picked from commit 552a1b824db31a234d7c5cb71057ed0e0ce64477)
2008-06-12Define DEFFILEMODE for OS'es that don't have itAlan Coopersmith
(cherry picked from commit 165c0865d849b7d280a3a119fe9ae0ad34637df0)
2008-05-26Fix typo in xvmc block destroyShuang He
2008-05-20Revert "Add FIFO watermark regs to register dumper"Zhenyu Wang
This reverts commit 0c00a638ef57aa9d6a3047176b0bfad733f781f0. Those FIFO watermark regs are 945-ish, and cause problem on G35. (cherry picked from commit 740a73dad1d9a9b0ebf1cc7d6f2a056abad57aaf)
2008-05-14Panel fitting: fix letterbox modesJesse Barnes
In full_aspect mode, we try to preserve the aspect ratio by adding either top & bottom or left & right borders. In the letterbox case (top & bottom borders) we were miscalculating the top border which led to programming a bad mode. Fix the calculation and bug #15559. (cherry picked from commit 5103e5a39a4869a714b8a59da8bf51ecc8c65e4f)
2008-05-14Only use FOURCC_XVMC when INTEL_XVMC is definedKeith Packard
The XVMC code uses a magic FOURCC code to signal frame updates, but that code is only defined when the XVMC code is used. (cherry picked from commit 18ef4158e5574bfc6621b268821532f13e261d13)
2008-05-14Skip copying on FOURCC_XVMC surfacesKeith Packard
(cherry picked from commit 6366e4de540c4713cbc8402c89516464bbdc35b9)
2008-05-12Revert last HP 965GM pipe A quirkZhenyu Wang
Seems not resolve the issue (fdo bug #15885). (cherry picked from commit f280c50dd5d29c5717adc6da2368363cb3d0adbb)
2008-05-10More Pipe A force quirksBryce Harrington
(cherry picked from commit d91d9e6a2f2ba18b35cb6fd7bc3fe8bc617eb44f)
2008-05-09Implement option to ignore external fixed mode settingsMike Isely
The Intel xorg driver tries mightily to determine the native fixed panel mode settings for the LVDS output. It does this through various means, including scanning video BIOS tables, and noticing if the pipe in question has already been set up by somebody else (and adopting those timings). This strategy works well for say a laptop where the LCD panel is an integral part of the machine. But for other applications where the display is unrelated to the system's BIOS or other software, then the BIOS will likely have no clue how to configure the LVDS output. Worse still, the BIOS can simply "get it wrong", leaving the pipe misconfigured. Unfortunately the Intel driver can potentially notice this, adopt the same settings, leaving a messed up display. All of this complexity normally happens independently, behind the scenes, from the mode timings that might otherwise be specified by the user. This driver has a concept of fixed, i.e. "native" mode, and then user-specified mode. If the corresponding resolutions between those concepts don't match, then the driver in theory will arrange for scaling to take place while adhering to the actual native mode of the panel. Said another way, if the user says 800x600 but the driver mistakenly (see above) thinks the native mode is 640x480, then 640x480 is the mode set with scaling to an 800x600 frame buffer. If the driver gets the wrong native mode, then the result is a miserable mess with no way for the user to override what the driver thinks is right. This patch provides a means to override the driver. This implements a new driver option, "LVDSFixedMode" which defaults to true (the normal, probe-what-I-need behavior). However when set to false, then all the guessing is skipped and the driver will assume no fixed, i.e. "native" mode for the display device. Instead with this option set to false, the driver will directly set the timings specified by the user, providing an escape hatch for situations where the driver can't correctly figure out the right mode. Under most scenarios of course, this option should not be needed. But in situations where the Intel video BIOS is hopelessly fouled up related to the LVDS output, this option provides the escape hatch for the user to get a working display in spite of the BIOS situation. Signed-off-by: Mike Isely <isely@pobox.com> (cherry picked from commit 9f324860431ff8199a78d19bbaa74046e1476b89)
2008-05-08Save/restore cursor registersJesse Barnes
There are lots of good reasons for doing this, one of them is fdo bug #11305. (cherry picked from commit 33f033cbf346c13a687e469e8879579fcd5bb2fb)
2008-05-08Use I830FALLBACK when check pitch for debugZhenyu Wang
(cherry picked from commit a7188b1f2dd9a69fa7daefe478d283735226f9f3)
2008-05-07Bug #15807: Fix use of the ring while VT-switched, hit by fast user switching.Eric Anholt
The fix for flushing at blockhandler with no DRI on 965 was broken and would try to flush the chip even when the driver wasn't in control of the VT. Hilarity ensued. (cherry picked from commit 36ec93300926084fb2951d69b001e4c67bc6ff79)
2008-05-07Add FIFO watermark regs to register dumperJesse Barnes
(cherry picked from commit 0c00a638ef57aa9d6a3047176b0bfad733f781f0)
2008-05-07Only check xvmc lib when xvmc is enabled.Zhenyu Wang
Don't check xvmc lib if user has already wanted to disable it. Fix fdo bug #15762. (cherry picked from commit c81a4687fca80bf7367d7f0e9a00a6a09737c5bb)
2008-05-07More quirks from ubuntu/dellBryce Harrington
(cherry picked from commit be746a90a87d7a9807fa4243493e7e4d48f7f1c0)
2008-05-07Add a new quirk for BIOSes that reprogram regs at lid close/open timeJesse Barnes
Dell Latitude D500s seem to have this problem. At lid close/open, the DSPABASE reg gets reset to 0, so we either need to keep the framebuffer at offset 0 or make sure we reprogram the CRTCs after the lid opens again. Since we can't make sure the former is always true (buffer resize, etc.), this patch adds a quirk to reset the modes at lid open time. Fixes FDO bug #14890. (cherry picked from commit a0ced923bb793aa22e6bfbeeec0888d3b42ce176)
2008-05-07Use new xf86RotateFreeShadow function to clean up shadow buffers.Keith Packard
This simply moves code from the driver up into the X server; use it where available. (cherry picked from commit fff17b9d1b58cb53032d153094826dd306836d59)