Commit Graph

1780 Commits

Author SHA1 Message Date
Zhenyu Wang b4d8ca8b38 xvmc: init one-time mc context once
Don't setup one-time mc context everytime, as the content is always
unchanged. And several structs got packed layout inside to ease static
state initialization.
2008-06-28 19:15:57 +08:00
Zhenyu Wang 54f3f528e4 xvmc: environ debug option support
export INTEL_XVMC_DEBUG=1
2008-06-28 19:15:57 +08:00
Zhenyu Wang 7a70508178 xvmc: formalize surface type definition
We should also carefully select surface type id.
2008-06-28 19:15:57 +08:00
Jesse Barnes 0283d22f51 Add pipea force enable quirk for HP Pavilion ze4944ea
Fixes bug #16540, thanks Bryce.
2008-06-27 13:39:31 -07:00
Jesse Barnes 08903abe4d Add pipe a force enable quirk for Lenovo T60
Fixes bug #16494.
2008-06-27 13:37:10 -07:00
Hong Liu 05df8c0b31 Fix SDVO HDMI output.
While some cards had enough initialized at startup to work already, others
required that the driver actually initialize the required AVI info frame.
2008-06-25 14:03:45 -07:00
Jesse Barnes 59f39e0ea0 Remove ErrorF debugging from modeset ioctl
Oops.
2008-06-24 11:01:46 -07:00
Jesse Barnes 1056d79809 Fix back buffer damage handler for 965+ chips
When page flipping is enabled, we need to make sure any changes to the front
buffer are reflected in the back buffer(s) or corruption might occur at page
flip time.  So make the damage handler work on 965 by adding appropriate tiling
flags and pitch adjustments.
2008-06-24 10:46:21 -07:00
Jesse Barnes 65eee25d7d Add support for keeping vblank counters sane across mode setting
The DRM supports disabling of vblank interrupts when not in use, but in order
to function properly it must also be aware of mode setting, which will reset
the frame counter to 0.  Add code to call into the DRM before and after mode
setting, so that it can account for any lost vblank events.
2008-06-24 10:46:21 -07:00
Eric Anholt 6b6be2b2a7 Fix a crash in i830_sdvo_init error paths by setting up dev_priv earlier. 2008-06-19 15:02:06 -07:00
Eric Anholt 65ad29d787 Automatically detect the presence of HDMI.
Now, SDVO is only probed if the SDVO detected bit is set.  If the SDVO probe
fails, but the detect bit is set, assume that it's an HDMI output.
2008-06-19 15:02:06 -07:00
Eric Anholt ea0d21006e Fix hdmi POSTING_READ to use the register number instead of the register value.
We won't dwell too long on how this ever worked.
2008-06-19 15:01:35 -07:00
Eric Anholt 2fa9240a3b Get HDMI output working.
HDMI, despite claiming to have pixel multiply support, actually doesn't
want it, at least in the way that SDVO did.  Disable it.

Also disable the NULL_PACKETS_DURING_VSYNC bit.  Despite the docs telling us
to set it, the output doesn't like it when you do that, and the BIOS doesn't
set it.

Also add a posting read to SDVOx setting.  Without it, half the X starts
wouldn't get anything on the screen.  (interestingly, it was every other
startup, not just a chance).
2008-06-19 15:01:35 -07:00
Eric Anholt dc8ab9d35b Set the sync active bits like we're supposed to, matching the BIOS. 2008-06-19 15:01:35 -07:00
Eric Anholt af13826ed0 Add pixel multiplier support for HDMI 2008-06-19 15:01:35 -07:00
Eric Anholt 9a05662918 The phase shift its are now reserved, and add HDMI clock limits. 2008-06-19 15:01:35 -07:00
Eric Anholt beba1dd356 Initial HDMI work. Not currently hooked up at startup. 2008-06-19 15:01:34 -07:00
Eric Anholt da58dc3b02 Add DisplayPort registers. 2008-06-19 15:01:34 -07:00
Eric Anholt 52a414d115 Remove VGA regs from debug output. 2008-06-19 15:01:34 -07:00
Eric Anholt b60bbbfd7b Add little hotplug detector app. 2008-06-19 15:01:34 -07:00
Zhenyu Wang 64fa32e2eb Add backlight kernel method support on Asus and Eeepc
Noted and tested by Evgeniy Manachkin <sfstudio@mail.ru>
for asus-laptop support, also add eeepc support.
2008-06-19 11:02:29 +08:00
Zhenyu Wang 1cfe769c74 Add support for Intel 4 series chipsets. 2008-06-17 12:39:28 -07:00
Zhenyu Wang 289790c046 Fix compiling with server master in LVDS backlight patch 2008-06-17 09:46:12 +08:00
Zhenyu Wang 66418cc99c Fix compiler warning when disable xvmc config
(cherry picked from commit df0bbdc7cbb6ff357a81ed28d12e56c9c7d643f7)
2008-06-16 02:52:56 +08:00
Shuang He 078d058658 Fix typo in xvmc block destroy
(cherry picked from commit 87ace420a34df7425641d089f71830e44fced098)
2008-06-16 02:52:40 +08:00
Lukas Hejtmanek 4c4ef27779 Fix maximum backlight issue 2008-06-16 02:49:41 +08:00
Eric Anholt 79f94ee3c4 Set up/restore PWRCTXA from enter/leavevt not server start/exit.
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-10 11:32:07 -07:00
Bryce Harrington 231a302013 Two more Dell quirks
fd.o #16160
2008-06-10 14:10:39 +08:00
Jesse Barnes 1142be53eb Fix TV programming: add vblank wait after TV_CTL writes
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.
2008-06-09 08:52:59 -07:00
Robert Lowery 64a8f2433d Fix TV out connection type detection
Make sure we wait for vblank when using the TV DAC to detect the connection
type.

Fixes FDO bug #14000.
2008-06-05 21:21:17 -07:00
Tomas Carnecky a993a8f3ce Fix compile error in LeaveVT 2008-06-06 10:03:23 +08:00
Eric Anholt bff180e6ca Move debug clock printout from ErrorF to X_INFO. 2008-06-05 14:55:23 -07:00
Eric Anholt ad459b21b7 Remove SVG_WORK_CONTROL init.
The bit set is now reserved -- used to be a workaround for early revisions.
2008-06-05 14:37:59 -07:00
Eric Anholt e41dc98a0a Initialize clock gating from EnterVT and save/restore it appropriately. 2008-06-05 14:37:26 -07:00
Eric Anholt 8061e5ac27 Move BIOS scratch register setup to EnterVT instead of PreInit.
We want these to always be set when our driver's in control.  They are
already appropriately save/restored at leave/entervt.
2008-06-05 14:09:45 -07:00
Eric Anholt b61cb92831 Remove gratuitous wait_ring_idle after I830Sync. Syncing implies that. 2008-06-05 13:57:54 -07:00
Eric Anholt b65f67b74f Move the remaining two lines of SetHWOperatingState to the caller. 2008-06-05 13:40:55 -07:00
Eric Anholt adb4f5a5e8 Remove duplicated i830_stop_ring()/SetHWOperatingState() in EnterVT(). 2008-06-05 13:39:08 -07:00
Eric Anholt c2e2fe4811 Move DSPARB setup into a separate function, and save/restore it at VT switch. 2008-06-05 13:24:20 -07:00
Eric Anholt 7e51384c97 Replace a couple of wait-for-ring-idles with a single function to do so. 2008-06-05 11:56:42 -07:00
Eric Anholt 65306cdd71 Just remove the mprotect kludge.
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.
2008-06-05 11:47:27 -07:00
Hong Liu beb72ae5aa Set SDVO sync polarity to default on 965
Fix fd.o bug 15766
2008-06-04 16:58:05 +08:00
Hong Liu c7fee208fd Fix DSPARB change on 965G
From the spec, only 965GM and IGD_GM have 128 FIFO entries.
With DSPARB change introduced by commit bd137a, I've got PIPE B
underrun when dual-headed on G35 platform.
2008-06-04 16:56:50 +08:00
Zhenyu Wang 64ccc8a036 xvmc: add render dump function 2008-06-04 22:30:04 +08:00
Zhenyu Wang 1729a4f29d xvmc: move block size lookup helper to generic 2008-06-04 22:25:39 +08:00
Zhenyu Wang 3cc8876db7 xvmc: a little cleanup
Also safe check context size to not exceed surface max.
2008-06-03 16:15:36 +08:00
Zhenyu Wang 9695500355 xvmc: remove unused dri drawable 2008-06-03 16:13:52 +08:00
Jesse Barnes bd137a19dc Fixup DSPARB for 855 & 945
It turns out 855 has a different DSPARB layout than 915+.  And 945+ have more
FIFO entries, so we have to allocate things differently.  So on 855 split the
FIFO evenly again between A & B planes, and do the same on 945, where we have a
larger FIFO.  Fixes an issue reported by Daniel Stone with the previous default
value.
2008-05-28 15:47:47 -07:00
Jesse Barnes 363ccc3dfb Fixup FIFO comment
What I originally checked in was a bit misleading.
2008-05-26 09:43:40 -07:00
Jesse Barnes 2e1425246c Handle display FIFOs better
Add some debug code to catch FIFO underruns, which are normally bugs (unless
they occur during mode setting) and remove any plane C FIFO allocations, since
we don't use that plane at all.  We may eventually need to be a little smarter
about this on platforms that use plane C for the popup.
2008-05-26 09:40:10 -07:00