tech-x11 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Intel X4500 (G41) and drm



Hi all,

I have an ASUS P5QPL-AM board using the Intel G41 chipset with Intel
X4500 onboard graphics.  At first i915drm did not recognize this chip,
but after adding the PCI ID (8086:2E32) to a few places in
sys/external/bsd/drm/dist and disabling drm's AGP support I was able
to get that driver to load correctly:

i915drm0 at vga0: Intel G41
i915drm0: Initialized i915 1.6.0 20080730

My problem now is that the xf86-video-intel driver seems to insist on
using AGP to set up this card, even though this motherboard doesn't
have any AGP support at all.  Loading drm is fine, but then it barfs
allocating memory.  /var/log/Xorg.0.log shows:

(EE) GARTInit: Unable to open /dev/agpgart (Device not configured)
(EE) intel(0): /dev/agpgart is either not available, or no memory is
available for allocation.  Please enable agpgart
.(WW) intel(0): VideoRam reduced to 32760 KB (page aligned - was 32763 KB)
(WW) intel(0): DRI2 requires UXA
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: drmOpenMinor returns 9
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
(II) [drm] DRM interface version 1.2
(II) [drm] DRM open master succeeded.
(II) intel(0): [drm] Using the DRM lock SAREA also for drawables.
(II) intel(0): [drm] framebuffer mapped by ddx driver
(II) intel(0): [drm] added 1 reserved context for kernel
(II) intel(0): X context handle = 0x3
(II) intel(0): [drm] installed DRM signal handler
(**) intel(0): Framebuffer compression disabled
(**) intel(0): Tiling enabled
(==) intel(0): VideoRam: 32760 KB
(II) intel(0): Attempting memory allocation with tiled buffers.
(EE) intel(0): AGP GART support is either not available or cannot be used.
        Make sure your kernel has agpgart support or has
        the agpgart module loaded.
(II) intel(0): Tiled allocation failed.
(II) intel(0): Attempting memory allocation with untiled buffers.
(EE) intel(0): AGP GART support is either not available or cannot be used.
        Make sure your kernel has agpgart support or has
        the agpgart module loaded.
(II) intel(0): Untiled allocation failed.
(II) intel(0): Couldn't allocate 3D memory, disabling DRI.
(II) intel(0): Attempting memory allocation with untiled buffers.
(EE) intel(0): AGP GART support is either not available or cannot be used.
        Make sure your kernel has agpgart support or has
        the agpgart module loaded.
(II) intel(0): Untiled allocation failed.
(EE) intel(0): Couldn't allocate video memory

What am I doing wrong?  I have /dev/agpgart (linked to /dev/agp0) and
agp support in my kernel, but the driver never loads ("dmesg | grep
agp" shows nothing).

Here is "pcictl pci0 list" in case that's of use:

000:00:0: Intel product 0x2e30 (host bridge, revision 0x03)
000:02:0: Intel product 0x2e32 (VGA display, revision 0x03)
000:27:0: Intel 82801GB/GR High Definition Audio Controller
(multimedia, subclass 0x03, revision 0x01)
000:28:0: Intel 82801GB/GR PCI Express Port #1 (PCI bridge, revision 0x01)
000:28:1: Intel 82801GB/GR PCI Express Port #2 (PCI bridge, revision 0x01)
000:29:0: Intel 82801GB/GR USB UHCI Controller (USB serial bus, revision 0x01)
000:29:1: Intel 82801GB/GR USB UHCI Controller (USB serial bus, revision 0x01)
000:29:2: Intel 82801GB/GR USB UHCI Controller (USB serial bus, revision 0x01)
000:29:3: Intel 82801GB/GR USB UHCI Controller (USB serial bus, revision 0x01)
000:29:7: Intel 82801GB/GR USB EHCI Controller (USB serial bus,
interface 0x20, revision 0x01)
000:30:0: Intel 82801BA Hub-PCI Bridge (PCI bridge, interface 0x01,
revision 0xe1)
000:31:0: Intel 82801GB/GR LPC Interface Bridge (ISA bridge, revision 0x01)
000:31:1: Intel 82801GB/GR IDE Controller (IDE mass storage, interface
0x8a, revision 0x01)
000:31:2: Intel 82801GB/GR SATA Controller (IDE mass storage,
interface 0x8f, revision 0x01)

Thanks in advance.

-Henry Bent


Home | Main Index | Thread Index | Old Index