Commit Graph

101 Commits

Author SHA1 Message Date
kettenis
d9a335dd99 Revert previous commit; the "blt" codepath is obviously not tested very well
and makes X crash.
2015-12-03 22:36:46 +00:00
kettenis
0929ee3ac4 Partly disable acceleration on Broadwell. The inteldrm(4) driver fails to
restore something properly after resume which makes the render ring get stuck.
By defaulting to the "blt" acceleration method we avoid the use of this ring
and the machine remains usable after resume.

People who really want full 2D acceleration can still override the acceleration
method in their xorg.conf.

ok jsg@
2015-11-15 15:33:57 +00:00
jsg
ee66b4b1ec sna/gen8: Clamp URB allocations for GT3
From Chris Wilson in
7a9bdadd71730adc5266bc6758982abec5917b93

Fixes rendering problems on Broadwell GT3 (Iris 6100/Iris Pro 6200)
Tested by Thomas Weinbrenner on bugs@
2015-11-02 04:11:01 +00:00
matthieu
7f9fd3b14c Merge upstream commit to support xserver 1.17 2015-08-23 17:53:51 +00:00
matthieu
d031df2719 Update to xf86-video-intel 2.99.916
Fixes a display bug seenby ajacoutot@, ok jsg@ and kettenis@.
newer X.Org (2.99.917 or master) version cause corruption on older
machines (X40, i965), probably caused by a bug in our kernel,
under investigation by kettenis@.
2015-04-12 19:41:54 +00:00
jsg
af3873fce2 Build xf86-video-intel with --enable-kms-only. The i810/i815 UMS code
builds but won't work as the X server stopped supporting XAA multiple
major releases ago.  Furthermore it requires the userland AGP interface
that was removed from the kernel with 5.6.  These devices should work
fine with the vesa driver.

ok kettenis@
2014-12-15 13:17:34 +00:00
matthieu
24fb6f100a Update to xf86-video-intel 2.99.910 (aka 3.0RC10) tested by jsg@ and me. 2014-02-14 19:38:40 +00:00
matthieu
845ad2935c regen 2014-02-03 15:59:42 +00:00
matthieu
a46a9e0e0d Bump revisions of XvMC libs 2014-02-03 15:57:56 +00:00
matthieu
f6224eae74 Update to xf86-video-intel 2.99.909
Tested by jsg@, kettenis@ and myself on a wide range of intel cards.
2014-02-03 15:54:42 +00:00
jsg
a9f7b7bce8 Enable hardware acceleration on haswell again.
Seems to work with the kernel changes I've just committed
on a desktop with hd 4600, and matthieu's haswell ult with hd 4400.
2013-11-11 03:16:50 +00:00
jsg
ec2836f36d disable blit acceleration on haswell for now
seems to mitigate some hangs seen by weerd@ and matthieu@
2013-09-10 03:10:31 +00:00
guenther
9a4b5cd1f6 Adjust the shared-lib versions for the intel driver to match the
versions expected by the time_t bump, this time done correctly

ok matthieu@
2013-08-15 03:34:19 +00:00
matthieu
acee5d3c07 Repair guenther's damage that I didn't ok. 2013-08-13 18:52:10 +00:00
guenther
655d680966 Bump the major to match the 64bit time_t change 2013-08-13 08:24:46 +00:00
kettenis
d890a3469b Add an OpenBSD-specific implementation of backlight control that uses the
appropriate wscons ioctls.

ok matthieu@
2013-03-19 20:47:22 +00:00
matthieu
aae4813ec8 regen 2013-03-19 07:32:33 +00:00
matthieu
07f2f0a5ae Update to xf86-video-intel 2.20.19.
A recent kernel with kernel modesetting support is required.
Thanks to jsg@ and kettenis@ for their work.
2013-03-18 18:38:18 +00:00
matthieu
07ce5c5054 Repair the legacy i810 driver. Problem reported and fix
successfully tested by schwarze@
2013-02-14 15:15:37 +00:00
jsg
d6d6af1958 Several changes to resolve screen corruption sometimes seen with dpms
on ivy bridge, mostly based on upstream drm code:

- remove a workaround which was in itself causing issues
- switch the order of disabling fdi rx & tx
- disable DPLL_SEL when disabling the crtc
- add a few extra delays

Most of this concerns the gen5+ crtc disable function, and thanks
to a bunch of testers this is known to still work fine on gen 5/6/7.

ok kettenis@ matthieu@
2013-02-01 11:09:26 +00:00
sobrado
c7c3d2e810 example should conform to constraint on section identifiers.
ok matthieu@
2013-01-22 21:37:09 +00:00
martynas
70cf9f81f9 Remove annoying is lvds, is crt debug stuff. OK jsg@. 2013-01-15 06:31:43 +00:00
matthieu
ae98b909ab Regen autotools files once more.
Apparently previous version was generated with some of my local changes
to use /usr/bin/libtool. This is causiing problems with the XvMC libs
shared libraries versions.
2013-01-03 15:00:26 +00:00
matthieu
a68216fe34 - sync the "legacy" i810 driver, used only on true i810 and i815
chipsets to the one in recent intel driver from X.Org.

- remove one of the output probe method in i830PreInit(). This method is
  calling functions that are normally forbidden in PreInit(). With
  xserver 1.13 this causes a fatal error at run time.

Tested by bluhm@, nick@ and shadchin@ back in september.
2012-12-19 21:19:48 +00:00
jsg
f5929fd67d Recent thinkpads try to set a backlight value one greater than the
maximum causing backlight control to be disabled.  Limit the backlight
values to the maximum so xbacklight will work.

Backlight control via the brightness buttons won't yet work as
that likely requires opregion/acpi bits.

Tested by jcs@ jasper@ phessler@ naddy@ and Amarendra Godbole
ok phessler@ kettenis@
2012-12-13 01:23:08 +00:00
matthieu
26135f75ee Check return value of I830MapMMIO().
Allows the server to fail with a useful error message instead of
segfaulting later, like reported by Alexei Malinin on misc@.
2012-12-02 17:59:25 +00:00
jsg
e9cb1c0fcd Make the hdmi modesetting code handle multiple display pipes.
Problem noticed by by rivo nurges and blambert@ after ivy bridge
support enabled multiple pipes for pch devices.

Fix based on what the upstream drm code does and
tested by rivo nurges, blambert@ and sthen@

ok kettenis@
2012-10-20 03:01:40 +00:00
jsg
97f5e30128 Add basic support for ivy bridge and fix several cases of register
access not being adjusted for the pch split, one of which prevented
multiple display pipes from working.  The third pipe on ivy bridge
remains disabled for now.

ok kettenis@ thanks to everyone who tested
2012-10-06 03:51:23 +00:00
kettenis
0c85c873e1 Improve hack to restore text mode on ironlake/sandy bridge.
tested by many
ok jsg@, deraadt@
2012-09-17 12:41:15 +00:00
matthieu
10ad330859 regen 2012-09-09 21:14:26 +00:00
matthieu
00e6140ee7 Add compat-api.h. 1st step to get this version of the intel driver
working with xserver 1.13.
2012-09-09 21:13:06 +00:00
matthieu
075b81cb95 Link libIntelXvMC.so to pthread-stubs, not pthreads.
Needed by future matthew@ patch.
2012-06-24 20:43:25 +00:00
matthieu
f4b3420bb7 Don't unload sub-modules in xserver 1.12. Its implementation is broken.
xf86UnloadSubModule() was a no-op in earlier versions.
2012-06-07 20:48:44 +00:00
matthieu
78d8060203 One more fix for new vgaHW ABI. 2012-05-06 10:38:50 +00:00
matthieu
f252027f1e Fix for new vgaHW ABI. 2012-05-06 09:24:42 +00:00
oga
563a654b98 Mostly fix rotation in the intel driver.
Since recent(ish) changes we can allocate roatated framebuffers with tiling.
This was not taken into account. Fix this for the most part:
1) i830_display_tiled needs to check tiling on rotated buffers too.
2) PipeSetBase needs to not only set offset to 0 for roated shadow buffers, it
also needs to 0 DSPTILEOFF x/y too.

There seems to be a remaining issue with damage or similar causing some latency
on rotated screens, I have not managed to find this yet.

Tested by sereral on tech@ ok matthieu a couple of weeks ago (his mail slipped
though the cracks, hence late commit).
2012-03-13 22:44:44 +00:00
matthieu
16bbf25500 Explicitely disable DRI on SandyBridge and above chipsets. It doesn't
work anyways, so prevent X from crashing. ok oga@
2012-01-31 07:47:28 +00:00
kettenis
13f8f43bf4 Add support for Sandy Bridge. Not perfect yet. Most notably 3D acceleration
is completely absent, and playing video doesn't work yet.  But support for
"normal" 2D stuff is pretty solid and it is really nice to be able to use
my laptop at the panel's native resolution and be able to suspend and resume
the machine.

tested by some
2011-12-21 21:25:02 +00:00
matthieu
70f1880f97 regen 2011-12-14 17:00:08 +00:00
oga
b932741cf2 Some files (used for generating other stuff) that I missed in the last commit.
Oops.
2011-11-29 12:41:53 +00:00
oga
1431ee95fe Update the intel driver to a more recent version based on more recent
upsteam code.

Backporting keeping UMS changes by me, some bugfixes from kettenis@.

Has been in snapshots for a while, committed on request so we can be
sure what people are running. This is a prerequesite for sandybridge
support but has those chipsets disabled for now until the correct code
has been added.
2011-11-29 12:39:02 +00:00
matthieu
bc1d244792 Let the intel driver build with xserver >= 1.10.
Reminded by shadchin@ ok oga@
2011-09-13 19:31:42 +00:00
matthieu
be5ccdb873 Avoid dereferencing a NULL pointer during VT switches when composite
is active.

Fix confirmed to fix observed crash by dcoppa@ canacar@. ok marco@.
2011-02-11 21:01:55 +00:00
martynas
7ed4db88f1 remove annoying is lvds / is crt errorf calls
ok fgs@ matthieu@ oga@
2010-08-25 20:29:35 +00:00
oga
1cf6df0168 Update the intel driver to (mostly) a backport of 2.12.
It is missing a few commits that I have yet to verify (ones that try and
continue if we lock the gpu rendering engine and can't reset it, for
example) taht will be verified and sent out for extra testing soon.

Should contain a bunch of speedups and some correctness improvements
(though rendercheck still gives some errors that I am looking into).

This has been in snaps since the first day of c2k10, any known issues
with just this driver have (to my knowledge) been fixed since. A problem
with macbooks pointed out by otto happens with both this and the in-tree
driver and thus doesn't stop this moving forward.

As well as the 2.12 improvements, this driver also has a backport
(partially aided by the backports in RHEL 5 kindly provided by Dave
Airlie) from the kms code of modesetting support for ironlake (arrandale
and clarkdale: the IGDs build into intel nehalem cpu dies) which has
been tested on a number of chipsets. Note that Display port and eDP
displays have not yet been worked on (and probably won't until I can
find a displayport monitor), but VGA and lvds at least are known to
work, sure beats vesa.

"no objection on my side" matthieu@, prodding (as always) from princess
marco.
2010-07-18 14:47:47 +00:00
oga
c7812d078a Pull in the changes in rendering that I skipped when i backported
changes from later intel versions (after the UMS removal). 95% of this
is the xvmc reworks that makes that code even halfway sane. xvmc is now
enabled by default on 965+.

Tested by many on tech@, thanks!

ok matthieu@
2010-05-23 21:28:34 +00:00
oga
7587a41589 Disable Framebuffer Compression on 915GM and 945GM.
While this feature at best can save 05w idle power, it is very flakey. Disabling
it fixes (or at the least masks) the problem that some 915 and 945 users were
seeing where they ended up with a blank screen (it turns out that no problems
fired because everything was still working, just FBC screwed up and never
actually scanned out the framebuffer).

As some examples for reliability linux with kms has disabled fbc on these
chipsets due to some unreliability issues (especially over suspend). and the
window driver apparently also does not used it.

Tested by kettenis@, Tom Murphy, edd@ and myself.

ok matthieu@
2010-05-22 23:53:55 +00:00
oga
acc721c423 *sigh* there is always one (in this case two).
These files were missing from the last commit. (due to shuffling the cvs
diff between old driver and new one was 155246 lines, so two files isn't
that bad...)
2010-05-10 22:35:08 +00:00
oga
ec5c2469da Update the intel driver to 2.9.1 plus backports.
2.9.1 is the last version of the intel DDX that supports UMS (User
modesetting), with 2.10 onwards being purely KMS only. As such, this
driver contains backports of almost every correctness or performance
related fix to the rendering layer in later intel drivers. This driver
*REQUIRES* a GEM enabled kernel. it claims to support non-gem mode but
this is essentially unmaintained and due to the way the abstraciton
works is slow, if it works at all (it often does not). You have been
warned.

tested by many many people on tech over the last few weeks.
2010-05-10 22:32:28 +00:00
matthieu
9ac8837d36 Make it possible to build drivers with the newer proto headers. ok oga@. 2010-04-13 19:56:37 +00:00