Commit Graph

1611 Commits

Author SHA1 Message Date
Dave Airlie 13ae79b415 fixup pciaccess version detect 2008-03-07 08:04:37 +10:00
Jesse Barnes be08b61540 Implement new get_property feature for backlight control
This should keep the backlight value reported by xrandr --prop & xbacklight
consistent with changes by other software in the system (like the hotkey driver
or kernel backlight driver).
2008-03-06 13:58:07 -08:00
Zhenyu Wang 502e41f6df remove extra dri checking
And directRenderingDisabled already has config check result.
2008-03-06 19:32:29 +08:00
Zhenyu Wang ea58d66cf7 No ring, no sync 2008-03-06 19:31:33 +08:00
Jesse Barnes c823fb00a2 Pull chipset detection out of PreInit into its own function 2008-03-06 19:29:22 +08:00
Jesse Barnes 6b16cee078 Account for FBC LL cache in memory reservation
When we reserve memory (memory that won't be managed by the kernel) make
sure to reserve space for the FBC LL cache as well.
2008-03-06 19:27:42 +08:00
Jesse Barnes 6f04d02471 Move MTRR fixup to its own routine 2008-03-06 19:27:07 +08:00
Jesse Barnes 750beb9232 Refactor memory allocation into a separate function
This simplifies the memory allocation code and fixes a number of bugs.
Prior to this change, some flags may have been set after memory
allocation occurred, meaning they had no effect.  It should also make
the allocation logic clearer.
2008-03-06 19:24:47 +08:00
Zhenyu Wang d466b25d09 Really print adjusted_mode for mode debug 2008-03-05 13:39:08 +08:00
Hong Liu d767eabe53 Fix DPLL programming in CRTC mode set
The following patch fixes the display problem on internal development machines.
The code in commit 3c22ed633b (Jesse's force pipe
A enable patch) broke DPLL programming.  Moving the DPLL set back up in the
function solves the problem.

Fix for internal bug #309.
2008-03-04 13:28:50 -08:00
Jesse Barnes 4936e09702 Change FBC idle mode back to default
Use the "immediate idle" mode for FBC.  Rather than waiting for the current
compression pass to finish before signalling to the CPU that it's idle, this
mode should stop any current compression pass and tell the CPU that the GPU is
idle right away.

Seems to fix #13326.
2008-03-04 08:59:23 -08:00
Zhenyu Wang 02a3b80ee8 Bug 14591: comment out MI_DISPLAY_POWER_DOWN as for 965GM only 2008-02-29 13:36:59 +08:00
Peng Li ea7c7d088e HP Compaq 6730s has no TV output 2008-02-27 11:56:55 +08:00
Mark Kettenis fdc25cb0ca Bug #14649: Fix build if pciaccess headers are not with other xorg headers.
We failed to include the pciaccess header flags in our build.  Even if the
server was to include those flags for us, it would leave us broken for the
tools-only case, and it's easier to just put the flags everywhere so we avoid
future copy'n'paste mistakes.
2008-02-26 17:26:50 -08:00
Eric Anholt e55d86f654 Fix SDVO I2C access on Mac Mini in EFI mode.
The GMBUS was being left in SDVO pin access mode, which blocked our bit-banging
access to those pins.  Thanks to Peter Jones for quick debugging turnaround
in getting this fixed.
2008-02-26 13:25:20 -08:00
Julien Cristau 6935c732c3 Look for src/{modes,parser} in $srcdir, not in objdir
This makes the detection work in case configure is run from another directory.
2008-02-26 11:27:10 +01:00
Zhenyu Wang 66cdccb021 Fix overlay rotation
Track current covered crtc rotation in port's private,
and fix overlay rotation transform to be against crtc mode
coordinate.
2008-02-25 14:29:09 +08:00
Jesse Barnes 975d7833bc Add quirk for DVO channel selection
Some machines want DVOA, some DVOB.  We can use this quirk to differentiate
them until we come up with a better solution.  Patch from Hong Liu.

Fixes #13722.
2008-02-22 11:41:25 -08:00
Jesse Barnes 33802b6ee3 Add pipe A force enable quirk for ThinkPad X40
ThinkPad X40s need this quirk or they'll crash frequently.

Fixes #14521.
2008-02-21 08:43:34 -08:00
Jesse Barnes 444984a578 Remove side effects from VGA debug code
The VGA register dumping code was leaving ARX in data mode rather than index
mode, which could cause problems for later software accessing AR* registers.
Fix it to make sure it's in index mode when we're done.

Fixes #14434.
2008-02-21 08:37:42 -08:00
Jesse Barnes 28049540d8 Fix DSP*CNTR restoration
When checking which pipe a given plane was associated with, we weren't properly
masking the pipe selection bits.  Fixes #14481 and should allow the driver to
work with vesafb again.
2008-02-20 13:08:27 -08:00
Zhenyu Wang 293120bfc4 Don't leak memory if no DMI info is provided by kernel 2008-02-19 21:13:45 +08:00
Zhenyu Wang cdc5cb7c3d Fix last 8XX clock's p2 value commit
My fault to change Hong's origin patch reversely.
2008-02-19 08:51:53 +08:00
Zhenyu Wang be0591880f Fix Lenovo X60 TV quirk
Z61 has same subsys ids with X60, but does have one S-video
TV out. Use DMI info instead to quirk TV on X60, X60s.
2008-02-18 14:35:06 +08:00
Zhenyu Wang d5e564c5f2 Add DMI info for i830 quirks
Linux kernel has CONFIG_DMIID to export dmi info
through sysfs.
2008-02-18 14:32:32 +08:00
Keith Packard 4a42b01f5e Decode DSPCLK_GATE, dump PIPE*STAT, MI_MODE, MI_DISPLAY_POWER_DOWN, MI_ARB_STATE, MI_RDRET_STATE, ECOSKPD 2008-02-16 18:16:37 -08:00
Zhenyu Wang 6633135598 Bug #14440: fix stolen mem size mask on i830M
For i830M stolen mem size mask should always be 0x70.
Use 0xF0 for later chipsets should be ok, so behavior is
identical to kernel agp.
2008-02-15 13:20:22 +08:00
Eric Anholt 8c8ca16120 Add a little program to output the stepping information for several chipsets. 2008-02-08 11:54:49 -08:00
Jesse Barnes f5896dcd1f Add CACHE_MODE_0 register to dump output 2008-02-07 11:56:28 -08:00
Jesse Barnes d59eaa8b1e Only disable FBC if registers are available
The call to disable FBC should only occur if the FBC feature is actually
present or we may end up hanging on a read from a non-existent register.
2008-02-06 09:35:43 -08:00
Jesse Barnes 83a071e2c0 Fix build warnings on 64 bit
Use PRIx32 for printing CARD32 types, and PRIx64 for portably printing uint64_t
types.  Requires the addition of a new include, inttypes.h, to work.  Hope C99
is ok with everybody...
2008-02-05 17:09:19 -08:00
Jesse Barnes abf4b0cafa Only enable FBC if one pipe is active
Some chips can't support FBC if multiple pipes are active.  So if more than one
pipe is on or we're going from one->two pipes enabled, make sure FBC is
disabled.

Intended to fix 13418, 13326, 13152.
2008-02-05 13:30:51 -08:00
liuhong f79a585d57 xf86-video-intel: fix ivch using wrong dvo register
We use the wrong DVO output register for ivch which is used for DVO LVDS.
Vbios enables DVOB and driver never touches it, so everything seems
working correctly now.
2008-02-05 13:06:58 -08:00
Jesse Barnes cabed67b6a Program FBC fence offset register
Just a partial fix for some of the FBC issues people have been seeing.  The
other half is to disable FBC if both pipes are running.
2008-02-05 11:36:24 -08:00
Zhenyu Wang 332587081f Fix last commit on i8xx debug p2 value 2008-02-05 10:34:55 +08:00
Hong Liu 2d18a299cf Fix PLL reference clk debug dump 2008-02-05 09:10:48 +08:00
Hong Liu 9536515d77 Allow non-strict free order for bo_list 2008-02-05 09:06:14 +08:00
Hong Liu 11de831cb7 Bug 10584: Mac Mini EDID data assigned to TMDS output
EDID data for TMDS output got from crt should be applied
to TMDS output on mac mini.
2008-02-05 08:58:44 +08:00
Hong Liu 9532757113 Bug 10773: fix i8xx pll p2 value in i830_crtc_clock_get()
Also fix debug dump, slightly modified to use macro instead.
2008-02-04 17:14:23 +08:00
Paulo Cesar Pereira de Andrade be1b568bc2 Make sure symbols used by other modules are public.
These symbols must be explicitly exported, otherwise if compiled with
hidden symbols, LoaderSymbol (and dlopen) will fail to find them.
2008-02-01 16:28:14 -08:00
Mark Kettenis cc1031a834 Bug #14246: Fix biuld on OpenBSD. 2008-01-31 21:02:48 -08:00
Eric Anholt b1e1c7cd99 Add detail on different units to intel_idle. 2008-01-30 23:09:50 -08:00
Zhenyu Wang aa3ac79759 Don't crash if SW cursor
In case of device option or hw cursor allocation fails.
2008-01-31 18:26:46 +08:00
Jesse Barnes 2e43bec873 Frame buffer compression support on new chipset 2008-01-30 18:59:12 +08:00
Zhenyu Wang bf629466a4 hardware status page initialization rework
Order hardware status page setup more reasonable after
all memory bound, in case new chipset requires non-stolen
page and that could be bound then.

Also clean up drm irq handler install function, and put
first install in starting stage later than status page setup,
so we won't make device cry for uninitialized status page.
2008-01-30 18:55:20 +08:00
Zhenyu Wang 04032dad28 Wrap up chipsets which needs graphics address for status page
Also add support on new chipset.
2008-01-30 18:52:32 +08:00
Keith Packard b9c3fa79d9 Add intel_idle to measure GPU load ratio.
Samples GPU idle register to detect when the GPU is busy; prints out the
number of busy samples per 100 total samples once per second.
2008-01-30 01:02:16 +11:00
Erik Andren 5d9e67aec3 Clevo M720R has no TV-out 2008-01-25 11:06:01 +08:00
Zhenyu Wang 6bf53eb48f Set vtSema before EnterVT
Which was missing in our ScreenInit and initial EnterVT.
This not only causes failure in initial rotation with TTM,
as we won't bind in rotate_mem alloc in this case, and hide
another bug that we call randr12 function in I830LoadPalete
before we call xf86RandR12Init.
2008-01-25 17:00:09 +08:00
Julien Cristau 94a18fa1f8 Don't build reg_dumper if we don't have pciaccess 0.10.0
The pci_device_map_range() function was added in libpciaccess 0.10.0, and
is used by the reg_dumper tool.  Don't try to build it if we have an older
libpciaccess.
Also make sure that util-macros >= 1.1.3 is available when running autoconf,
because it's required for the PACKAGE_VERSION_* macros.
2008-01-24 15:24:40 +01:00