Commit Graph

1801 Commits

Author SHA1 Message Date
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
Zhenyu Wang d341e41c86 Clear shadow memory after allocation 2008-01-24 10:40:18 +08:00
Zhenyu Wang 88a1041c53 Fix i830 block handler wrap
which was observed in rotation crash with stack overflow.
2008-01-24 10:36:06 +08:00
Andreas Stawinoga db0a7c569e Samsung Q45 has no TV output 2008-01-24 08:51:09 +08:00
Zhenyu Wang f54bba7600 Add missing i830M and 845G pci ids info 2008-01-22 00:48:23 +08:00
Julien Cristau 633dbd2821 Bug 14032: i810, set default depth to 16
X fails to start without an xorg.conf on i810, because the default depth set by
the server (32) is not supported by the driver.  I think the driver should
default to 16 bits (it supports 24, but when I tested it that didn't seem to
work very well, and dri is disabled at 24 bits depth anyway) instead of letting
the server use 32 and failing later on.
2008-01-17 22:34:21 +08:00
Jesse Barnes 4fec18e07f Turn on backlight when LVDS panel is powered up
In some configurations, the LVDS may be off at startup along with the
backlight.  So when turning the LVDS on for the first time, we may also need to
set the backlight to a non-zero value.  So try to use the saved value if
possible, but if it's zero, make the backlight full brightness when turning on
the LVDS.

Note that this is slightly sub-optimal for configurations where zero is a valid backlight brightness.

Fixes fdo bz #13958.
2008-01-11 10:28:59 -08:00
Jesse Barnes b5cf8faf81 Remove unnecessary quirk code in CRT probing
Since we return early in the CRTC DPMS code, keeping the pipes & clocks
enabled, this code is no longer necessary.  As an added bonus, VGA connections
should be reported correctly even when the pipe A quirk is active.

Updates fix for fdo bz #11432.
2008-01-10 14:25:18 -08:00
Jesse Barnes 3c22ed633b Add pipe A force enable quirk
On some platforms, the firmware may read & write GPU registers on lid close,
suspend/resume time or during various SMM events.  If one of the graphics pipes
is disabled at that time, the GPU may hang due to the programming dependencies
of the various registers.

This patch adds a quirk to force the driver to keep pipe A enabled if
necessary, through user configuration in xorg.conf or via a platform specific
quirk.  Leaving the pipe enabled comes at a power cost however, so the quirk
should only be enabled when strictly necessary.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=11432.
2008-01-09 09:47:38 -08:00
Zhenyu Wang d3b41bcf23 Disable frame buffer compression on new chipset now. 2008-01-09 21:28:25 +08:00
Zhenyu Wang 2f0c0427dc Update PIPELINE_SELECT instruction and surface state format for new chipset 2008-01-09 21:27:42 +08:00
Zhenyu Wang 139e9affdd GTT access change for new integrated graphics device 2008-01-09 21:26:57 +08:00
Zhenyu Wang 4f288ff2d1 Add new integrated graphics chipset ids 2008-01-09 21:25:47 +08:00
Zhenyu Wang f089942689 Change origin i965G_1 to chipset market name G35. 2008-01-07 09:13:00 +08:00
Jesse Barnes 71143200ed Don't modify low bit of BLC_PWM_CTL when using combo backlight control
On some platforms, the low bit of BLC_PWM_CTL is wired as a 'max brightness'
flag, rather than a regular part of the backlight duty cycle.  So when in the
combo mode, divide the total number of backlight levels available by two
(tossing one bit) and adjust the programming in the set_brightness routine.

Note that platforms with this behavior may need quirks added so that they work
by default.
2008-01-04 15:01:25 -08:00
hulifox008 b434bf4029 Fix copy'n'paste-o in unused airlied i2c code. 2008-01-04 02:46:54 -08:00
Jesse Barnes f2ffc0f6e0 Fix compilation error when not using DRI
This patch complements 88f8b688e2 which
added uint64_t typed variables to avoid unsigned long overflows in
32-bit architectures but didn't include <stdint.h> with the required
definition.

When XF86DRI and _XF86DRI_SERVER_ are defined this header gets
indirectly included through "i830_dri.h", thanks to "i830_common.h"
which masquerades this problem as released in 2.1.0 and that manifests
with :

In file included from i810_driver.c:88:
i830.h:137: error: expected specifier-qualifier-list before 'uint64_t'
i830.h:240: error: expected specifier-qualifier-list before 'uint64_t'

Patch from Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
2008-01-03 11:16:15 -08:00
Zhenyu Wang a03aca101d xvmc: setup driver info for XvMCGetDRInfo request
User don't need to have XvMCConfig file then, if ld.so can
find libIntelXvMC.so in ld path.
2008-01-02 14:11:31 +08:00
Zhenyu Wang 0fd769b588 xvmc: add context id info in debug/trace 2008-01-02 13:57:23 +08:00
Nanhai Zou 83d304c61a TV: fix 576p refresh rate 2008-01-02 10:50:44 +08:00
Zhenyu Wang a2bb2afd24 xvmc: move drmOpen earlier
remove wrong comments
2007-12-28 15:52:12 +08:00
Joakim 96246c27cb Aopen Minipc 965GM LVDS quirk 2007-12-27 17:09:02 +08:00
Zhenyu Wang 666e01bd42 xvmc: add info in intel.man 2007-12-26 09:51:09 +08:00
Zhenyu Wang e75d0c20e3 xvmc: make XvMC default on 2007-12-26 09:37:34 +08:00
Zhenyu Wang ed9ff6f30f xvmc: consolidate put surface interfaces
Make surface list track like context list, and move
generic PutSurface code out of i915. So MC driver just
needs to fill specific the command params, and we can
get one single type of intel xvmc command to issue,
ddx driver's put_image_size got removed.

Fix last commit with missing XvMCContext assignment.

Fix priv_data free with apropriate X11 XFree.
2007-12-25 08:32:47 +08:00
Zhenyu Wang f0ced5edae xvmc: store XvMCContext pointer instead of context_id in internal ctx list 2007-12-24 10:53:57 +08:00
Zhenyu Wang 216ad73987 xvmc: add disable xvmc build support
Move xvmc source files under XVMC config
2007-12-20 13:39:32 +08:00
Zhenyu Wang a811ca3065 xvmc: handle surface create/destory in generic code 2007-12-20 13:08:07 +08:00
Zhenyu Wang 5f961f2831 xvmc: move dri context handling to generic code
Use XvMCContext's context_id for dri context handling instead
of driver private id. Remove unnecessary field for i915 private
structs.
2007-12-20 12:51:06 +08:00
Zhenyu Wang 73827e7835 Merge branch 'master' into xvmc 2007-12-19 22:47:02 +08:00
Jesse Barnes f69b48fe24 Unconditionally restore pipe configuration
This is a partial fix for #13196, which covers both leaving pipes disabled at
server exit time and problems with restoring the pipe configuration on certain
chipsets.  It restores the pipe configuration unconditionally (previously we
made sure the PLL was running and we weren't in VGA mode) but also adds some
additional PLL settle time to the PLL register write paths.
2007-12-18 18:10:33 -08:00
Michel Dänzer 4757a218d7 Always set pPriv->buf to NULL after freeing the memory it pointed to.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=13108 .
2007-12-18 19:37:46 +01:00
Adam Jackson 5cbb411011 i830_sdvo_mode_valid: Fix return values to match what we actually check. 2007-12-13 15:10:43 -05:00
Jesse Barnes e03bc385e9 Add cscope files to .gitignore 2007-12-11 13:28:01 -08:00
Jesse Barnes e720ae4476 CRT hotplug detection improvements
Patch from Hong Liu.

Fixup CRT detection by making sure the pipe is enabled before CRT
detection actually occurs.  Fixes bugs Hong was seeing on G35 and other
machines.
2007-12-10 13:00:14 -08:00
Dave Airlie d9df93578b ivch: fails on address mismatch as I seem to get this on my 865 system 2007-12-10 16:41:44 +10:00
Zhenyu Wang cd6f83519c Fix tv quirk for Dell Latitude X1
which is actually 915GM, reported by
Andreas Schildbach <andreas@schildbach.de>
2007-12-10 05:51:32 +08:00
Zhenyu Wang 13ec9c8141 exa: fix rendering issue on some 855GM laptops
This trys to initialize more 3d states on i830 like mesa
code, which fixes exa rendering failure for some 855GM users.
2007-12-09 00:52:13 +08:00
Jesse Barnes e2d9fd6425 Describe output properties in more detail
Add descriptions for LVDS and TV output properties and also mention the EDID
property a new output configuration section.
2007-12-07 16:30:46 -08:00
Jesse Barnes 6f92200db3 Fix backlight setting save/restore
We need to save the current backlight value at LVDS init time, as well as when
we change the DPMS setting.  Also, since 0 is a valid backlight value, don't
set the backlight value to maximum at startup if the value happens to be zero.

These fixes should make the backlight user experience much more consistent and
hopefully less frustrating.
2007-12-05 08:10:17 -08:00