Commit Graph

94 Commits

Author SHA1 Message Date
Eric Anholt 9291828a56 Add new mobile Sandybridge PCI IDs. 2010-02-23 17:09:25 -08:00
Eric Anholt 3c71f98b9e Add initial defines and probing for Sandybridge 2010-02-23 17:09:20 -08:00
Chris Wilson 83626aba35 uxa-glyphs: Enable TILING_X on glyph caches.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-01-08 19:21:31 +00:00
Chris Wilson 37f631d669 Revert "uxa-glyphs: Enable TILING_X on glyph caches."
This reverts commit 3f11bbec42.

For unknown reasons, enabling tiling for the glyph cache is causing
glyph corruption both across suspend and resume and VT switching, on a
wide range of chipsets (reports include both i8xx and gm45)

This strongly suggests that we are handling tiling, or updates to tiled
buffers, incorrectly across i915_gem_idle(). However, until we can find
the root cause, we want to fix this regression before the next stable
release, so simply revert this patch. :(

Fixes:
  [Bug 25406] fonts garbled after resuming from suspend since 6729b508
  http://bugs.freedesktop.org/show_bug.cgi?id=25406

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2009-12-10 08:54:46 +00:00
Chris Wilson 3f11bbec42 uxa-glyphs: Enable TILING_X on glyph caches.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2009-11-30 00:58:05 +00:00
Daniel Vetter d0e08fe611 Kill some more #defines only needed for User-Modesetting
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-11-05 14:22:59 -08:00
Eric Anholt af27a3a0a5 Rename the xf86 screen private from pScrn to scrn. 2009-10-08 15:34:09 -07:00
Eric Anholt cc5d3ba3c3 Rename the screen private from I830Ptr pI830 to intel_screen_private *intel.
This is the beginning of the campaign to remove some of the absurd use of
Hungarian in the driver.  Not that I don't like Hungarian, but I don't need
to know that pI830 is a pPointer.
2009-10-08 15:34:09 -07:00
Eric Anholt b9b159c498 Remove UMS support.
At this point, the only remaining feature regressions should be the lack of
overlay support (about to land), and the need to update the XVMC code to work
in the presence of KMS.

Acked-by: Keith Packard <keithp@keithp.com> (in principle)
Acked-by: Carl Worth <cworth@cworth.org> (in principle)
2009-10-06 16:22:31 -07:00
Zhenyu Wang ce10b5b6fc Add B43 chipset support
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-09-08 00:56:34 +08:00
Zhenyu Wang 4f40b33ef4 Add new chipsets PCI ids
Desktop and mobile version of new chipsets are added.
Also do memory config like Intel 4 series chipset.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-10 10:24:51 +08:00
Adam Jackson 704771f1c5 Remove useless loader symbol lists. 2009-05-28 15:03:45 -04:00
Kristian Høgsberg a90cab4320 Remove a handful of pointless comments
CVS keywords, comments about how the source was once reformatted,
and the ad-hoc changelog comment in in i830_driver.c
2009-04-28 13:27:53 -04:00
Eric Anholt e5133a94dc unifdef LIBPCIACCESS and XSERVER_LIBPCIACCESS.
Depending on new server means these are always present.
2009-04-27 17:05:59 -07:00
Alan Coopersmith b8ca146b06 Fix UXA to build with Sun compilers (use __func__ instead of __FUNCTION__)
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-24 16:04:13 -07:00
Eric Anholt b2d7928f19 Use a static inline to replace if (0) to an unused stub function. 2009-04-21 15:25:58 -07:00
Shaohua Li f53bdad141 Intel video driver patch
This is the intel video driver patch for a new chip, which is G33-like
and has some clocking setting related register changes. This patch adds
the pci id and DPLx/FPx register changes.

The gtt tool should just work to me, as the chip hasn't any changes
against G33 on this side.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-02-26 14:47:04 -08:00
Kristian Høgsberg 2013799b20 Un-revert the I915_SETPARAM_NUM_USED_FENCES commit reverted by accident.
Oops, my bad.  Reverted 8d4bc36fae
since my kernel doesn't yet have the new param, committed
the revert by accident.
2009-02-02 11:51:50 -05:00
Kristian Høgsberg 127330bfd5 Fix last-minute "cleanup" that broke the patch. 2009-02-02 11:27:51 -05:00
Jesse Barnes 8d4bc36fae Support tiled back/depth on 915-class hardware with DRI2.
Set alignments, tile settings and flags correctly in the 2D driver to support
tiled rendering.  UXA's create pixmap function currently assumes the worst
about the alignment constraints; that should probably be fixed.  Some of the
1M alignment fixes could probably be done more cleanly as well.
2009-01-27 14:33:43 -08:00
Zou Nan hai ec7fd3d1b4 Merge branch '965-xvmc'
Conflicts:

	src/common.h
	src/i830_hwmc.c
	src/i830_video.c
2008-11-27 10:48:09 +08:00
Zhenyu Wang 5cbf1e7271 Make IS_GM45 into IS_G4X define
Those are identical that using one define is much clear.
And it can also apply fixes for GM45 too, which is missing with
origin define.
2008-11-06 09:46:54 +08:00
Keith Packard 8304b405e0 Eliminate INT10 call to get BIOS contents
libpciaccess (and the old X server PCI code as well) provides a function to
get the ROM contents. Code to use that was already present in the driver and
used if the INT10 function failed. Skip the INT10 and just use libpciaccess
as that eliminates several module loads and scary use of vm86.

Signed-off-by: Keith Packard <keithp@keithp.com>
2008-10-01 16:39:01 -07:00
Zou Nan hai baec75a56d [965-xvmc] 965q indirect media data workaround 2008-09-28 11:18:40 +08:00
Zhenyu Wang ec17c88a0e Add support for G41 chipset
G41 is another 4 series chipset like G45/43.
2008-09-11 16:14:47 +08:00
Jesse Barnes b1aef6f63c Initial port of kernel modesetting from old intel-kernelmode branch
Thanks airlied!
2008-08-08 11:54:18 -07:00
Zhenyu Wang 77ed3d7600 Don't program dsparb on new Intel chip
On new chip, DSPARB is controlled by hardware only.
2008-07-31 13:13:45 +08:00
Zhenyu Wang a34a4e3f64 Fix official name for GM45 chipset 2008-07-03 01:03:14 +08:00
Zhenyu Wang 989ec9e8a6 xvmc: Don't copy on xvmc surface in PutImage
As xvmc rendering result has already been in fb, we shouldn't
do extra copy on it. Although special care is required for i915
xvmc surface pitch alignment, which must be at least 1KB aligned.
So video display function should take it into acount instead of
always setting Y pitch to be double of U/V pitch.
2008-06-28 19:15:57 +08: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
Zhenyu Wang 1cfe769c74 Add support for Intel 4 series chipsets. 2008-06-17 12:39:28 -07:00
Eric Anholt abf11a274e Separate i810 and i830 ring macros out into separate files.
I want to hack on i830 for changing it into a compat path for batchbuffer
without having to worry about the i810 stuff getting broken.
2008-03-12 16:12:28 -07:00
Eric Anholt 9a62d3b598 Remove i830+ driver's use of CARD*/INT* types for great justice.
Several uses are actually left, which are determined by the X Server
interfaces we're implementing.
2008-03-11 12:07:52 -07:00
Jesse Barnes 5915c75422 Enable hardware overlay on 965
Based on Maxim Levitsky's patch for the same.  Many thanks to Maxim for
discovering that this features still works in recent hardware!
2008-03-07 13:18:09 -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
Zhenyu Wang f54bba7600 Add missing i830M and 845G pci ids info 2008-01-22 00:48:23 +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
Michel Dänzer 3fbbd0afde Fix build against pre-pci-rework xserver. 2007-08-28 17:48:20 +02:00
Keith Packard daada59b5f Change IS_Ixxx tests to work with or without libpciaccess.
libpciaccess has a new structure that holds the PCI identifier data; borrow
macros from the mga driver to work with either the old xf86-specific
structure or the new libpciaccess structure.
2007-08-26 22:32:39 -07:00
Zhenyu Wang b1af2c0e01 Fix device id info for 945GME, 965GME
which do have new host bridge ids
2007-07-20 15:18:48 +08:00
Wang Zhenyu 404fd47573 Enable overlay on G33 class chipsets
Which have to use gfx vm offset fot setup overlay regs.
2007-06-06 11:01:48 +08:00
Wang Zhenyu f4c05973d3 Add support for the G33, Q33, and Q35 chipsets.
These chipsets require that the hardware status page be referenced by an offset
in the GTT rather than a physical memory address, so the X Server allocates it
rather than the DRM.
2007-06-05 11:34:22 -07:00
Wang Zhenyu 0984c1fc09 Add pci ids for 945GME 2007-05-31 10:19:31 +08:00
Wang Zhenyu 88ee25ebad Add pci ids for 965GME/GLE chip 2007-05-31 10:19:31 +08:00
Eric Anholt a4f1a7872f Allow physical-memory allocations within stolen memory.
Because stolen memory happens to be a contiguous block of high system memory,
we can just read the GTT entries for it to get physical addresses for our
allocations there if needed.  This reduces fragmentation of the aperture space,
and will often reclaim up to 7 MB of memory that had been left unused since the
simplified aperture manager was put in place, but without reintroducing the
complexities of the old aperture manager.
2007-04-30 19:15:24 -07:00
Wang Zhenyu 0a612e7115 Merge branch 'master' of git://proxy.ims.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
Conflicts:

	src/i830_display.c

Change LVDS output and postread like upstream. This might
need to be retested on 965GM LVDS.
2007-03-20 11:34:40 +08:00
Eric Anholt 5135b3a79f Use a POSTING_READ(reg) macro instead of using the (void)INREG(reg) pattern. 2007-03-13 16:59:38 -07:00
Keith Packard 81722a21d2 Remove usage of 'shadow' module. Use xf86CrtcScreenInit.
With the new mode setting code, rotation is handled outside of the driver,
so the old usage of the 'shadow' module is no longer needed. Code to
initialize the crtc structures has been moved out of the driver and into the
modes code.
2007-03-06 23:17:55 -08:00
Keith Packard 0fa3d4f51b Merge branch 'modesetting' into crestline 2007-03-03 21:02:17 -08:00