Commit Graph

1557 Commits

Author SHA1 Message Date
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
Nanhai Zou 83d304c61a TV: fix 576p refresh rate 2008-01-02 10:50:44 +08:00
Joakim 96246c27cb Aopen Minipc 965GM LVDS quirk 2007-12-27 17:09: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
Jesse Barnes 4c1fa52355 Add BCM_ to backlight control method enums
Avoids polluting the global namespace with such generic terms.
2007-12-04 18:27:24 -08:00
Jesse Barnes 30d74f1b1f Use "LEGACY" backlight method if backlight control is such
This may regress the user experience a bit (fewer backlight levels) on machines
where both the LBB and native registers work, but it's better that it work for
everyone than work extra well for some and not at all for others.
2007-12-04 18:23:44 -08:00
Eric Anholt 0e554e6dd4 Remove extra have_libpciaccess=no that broke tools build with old servers. 2007-12-04 10:40:17 -08:00
Zhenyu Wang 75ef3e669d Replace ALLOCATE_LOCAL/DEALLOCATE_LOCAL with xalloc/xfree 2007-11-28 22:13:55 +08:00
Alan Hourihane 7f9cefffbf vendor is CARD8 2007-11-16 15:56:08 +00:00
Jesse Barnes 4a2b0f3403 Fix typo in 1920x1080 resolution entry 2007-11-15 18:36:54 -08:00
Jesse Barnes 04b60b6d34 Bump version to 2.2.0 2007-11-15 11:49:53 -08:00
Jesse Barnes 6eecef4fed Adjust default TV out paramaters
According to several users, a default brightness of 0 results in much better TV
output.  Improved control of these parameters will be provided by Randr1.3,
which will standardize several output properties across various chips.
2007-11-15 10:10:59 -08:00
Jesse Barnes 7552d80e36 Add 1920x1080 mode to TV out
Allows users to use 1080p modes on TV out, see bug #13034.
2007-11-15 10:07:34 -08:00
Zhenyu Wang e56c166ceb remove unnecessary i830_reg.h includes
i830_reg.h only contains 3d engine cmds for 8XX chips.
2007-11-15 18:37:57 +08:00
Zhenyu Wang 6f3de19159 Move fb compression reg definition into i810_reg.h
where we put MMIO control reg in, and shared with intel_reg_dump
program.
2007-11-15 18:33:27 +08:00
Jesse Barnes e64f492969 Backlight fixes
Open the "actual_brightness" file as read only, since we only read from it.
Also set an initial backlight_duty_cycle at init time so we don't set the
brightness to 0 at startup.
2007-11-14 16:44:34 -08:00
Jesse Barnes 53e3693ef1 Disable FBC by default on 965GM
Several people have reported that they see frequent FBC related display
corruption on 965GM, so disable it for now.  Users wanting to enable it can use
the driver option "Framebuffercompression" to override the default.
2007-11-14 16:24:56 -08:00
Jesse Barnes b2726899bc Add more FBC regs
Needed for the new debug code
2007-11-14 15:49:41 -08:00
Jesse Barnes b7bc694c6b Fix kernel get_brightness function
We need to look at "actual_brightness" rather than "brightness".  The former
contains the brightness value the kernel driver has actually set, while the
latter is merely what the user requested.
2007-11-14 15:46:57 -08:00
Jesse Barnes 9ee96ed02a Correct FBC debug message
To be consistent, it should say 'plane' rather than 'pipe'.
2007-11-14 15:44:56 -08:00
Jesse Barnes 675b9471d8 Add FBC registers to register dump output
Just for completeness.
2007-11-14 15:17:05 -08:00
Jesse Barnes a2a0821e74 Don't stop ring before restoring hw state
Some of the hw state restoration callbacks may want to use the ring for various
things like stopping video playback, so leave the ring enabled until we get
back from RestoreHWState.  Also rename the functions so that their purpose is
clearer and remove a couple of redundant lines.
2007-11-14 11:30:20 -08:00
Zhenyu Wang ad3bc0158d Don't enable fbc with XAA or tiling is off.
This slightly reworks my last fbc patch. We don't
support tiled front buffer with XAA now, so also
disable fbc on it. If tiled alloc failed, disable
fbc too.
2007-11-14 22:53:25 +08:00
Keith Packard 26194e19e1 Review PLL spreadsheet and update register ranges.
The PLL spreadsheet makes the precise register ranges allowed for each mode
quite clear, and shows a few inaccuracies in the b-spec. In particular, the
N register value may range from 1 to 6 instead of 3 to 8. This should close
the gap we've seen in the reachable frequencies.
2007-11-13 22:28:22 -08:00
Zhenyu Wang 581509321e Remove one redundant line. 2007-11-14 22:17:21 +08:00
Zhenyu Wang 8cea3c8cfa Don't setup fb compression if fb is not tiling 2007-11-14 22:17:21 +08:00
Jesse Barnes 539b669d6e Remove harmless error message
This really isn't an error in general.  If vblank pipe setup really fails for
some reason, it'll be obvious enough when the user tries to use vblank events
for something.

Patch from Hong Liu.
2007-11-13 17:59:54 -08:00
Jesse Barnes 43fbc54778 Improve backlight control
This commit fixes backlight support for several platforms.

Except on recent machines supporting the IGD OpRegion specification,
backlight control is rather platform specific.  In some cases, we can
program the native backlight control regsiters directly without any
trouble.  On others, we need to use the legacy backlight control
register.  On still others, we need a combination of the two.  And on
some platforms, none of the above will work, so we go through the
kernel backlight interface, which provides a platform specific driver
for backlight control.
2007-11-12 12:23:41 -08:00
Jesse Barnes 10988c5e6e Fix typo in PLL enable check
Check against DPLL_A instead of DPLL_B before writing PIPEACONF.

Thanks to Colin Guthrie for his sharp eyes.
2007-11-12 09:19:22 -08:00
Jesse Barnes ab2055ebb2 Add 'ret' variable to i830_allocator_init
Needed in the XF86DRI_MM case.
2007-11-09 13:55:46 -08:00