HI all, I am running FreeBSD 6.0-STABLE (of today) on a HP Pavillon (centrino based notebook with i915 graphic chipset). I am trying to use the latest drm hook for i915, but I get this error: drmsub0: <Intel i915GM> port 0x1800-0x1807 mem 0xb0080000-0xb00fffff,0xc0000000-0xcfffffff,0xb0000000-0xb003ffff irq 16 at device 2.0 on pci0 error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't initialize AGP. device_attach: drmsub0 attach returned 12 pci0: <display> at device 2.1 (no driver attached) Any idea ? I have added to my kernel: device agp # support several AGP chipsets device drm # DRM core module required by DRM drivers device i915drm # Intel i830 through i915 and my pciconf -vl shows: drmsub0@pci0:2:0: class=0x030000 card=0x3080103c chip=0x25928086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82915GM/GMS, 82910GML Integrated Graphics Device' class = display subclass = VGA none0@pci0:2:1: class=0x038000 card=0x3080103c chip=0x27928086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82915GM/GMS,82910GML Mobile Express Family Graphics Controller (??)' class = display Do I miss something ? Thanks ... -- Open WebMail Project (http://openwebmail.org)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gianmarco wrote:> HI all, > I am running FreeBSD 6.0-STABLE (of today) on a HP Pavillon (centrino based > notebook with i915 graphic chipset). > > I am trying to use the latest drm hook for i915, but I get this error: > > drmsub0: <Intel i915GM> port 0x1800-0x1807 mem > 0xb0080000-0xb00fffff,0xc0000000-0xcfffffff,0xb0000000-0xb003ffff irq 16 at > device 2.0 on pci0 > error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't initialize AGP. > device_attach: drmsub0 attach returned 12 > pci0: <display> at device 2.1 (no driver attached) > > > Any idea ? > > I have added to my kernel: > > device agp # support several AGP chipsets > device drm # DRM core module required by DRM drivers > device i915drm # Intel i830 through i915 > > and my pciconf -vl shows: > > drmsub0@pci0:2:0: class=0x030000 card=0x3080103c chip=0x25928086 > rev=0x03 hdr=0x00 > vendor = 'Intel Corporation' > device = '82915GM/GMS, 82910GML Integrated Graphics Device' > class = display > subclass = VGA > none0@pci0:2:1: class=0x038000 card=0x3080103c chip=0x27928086 rev=0x03 hdr=0x00 > vendor = 'Intel Corporation' > device = '82915GM/GMS,82910GML Mobile Express Family Graphics Controller > (??)' > class = display > > > Do I miss something ? Thanks ... >I have the same experience. But note that i915 (both agp and drm) is still in beta stage. Check this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=80396 (Problem Report kern/80396 : [agp] i915 AGP not supported). Best, Laci - -- L?szl? K?roly <laszlokaroly@tvnetwork.hu> Department of Altaic Studies Egyetem str. 2. University of Szeged H-6722 Szeged, Hungary PGP/GnuPG key: 1024D/869D81C5 Fingerprint: 1E61 3205 8F5A 87E7 1269 3396 1C63 F9FF 869D 81C5 Encrypted e-mail preferred. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDpSuiHGP5/4adgcURAvMGAJ9xH4eVDTi9diO0EFL6P46nA/T4gACfdzDG Zbmfn16b72QAyMhqk6kRt2g=ebZC -----END PGP SIGNATURE-----
Le Dimanche 18 D?cembre 2005 01:31, Gianmarco a ?crit :> I am trying to use the latest drm hook for i915, but I get this error: > > drmsub0: <Intel i915GM> port 0x1800-0x1807 mem > 0xb0080000-0xb00fffff,0xc0000000-0xcfffffff,0xb0000000-0xb003ffff irq 16 > at device 2.0 on pci0 > error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't initialize > AGP. device_attach: drmsub0 attach returned 12 > pci0: <display> at device 2.1 (no driver attached) > > > Any idea ? > > I have added to my kernel: > > device agp # support several AGP chipsets > device drm # DRM core module required by DRM drivers > device i915drm # Intel i830 through i915Just put agp, Xorg will load i915.ko. I've got the same problem. But dri does not work, Xorg seems to look for a /dev/dri/card0 and i've got only one device /dev/dri/card1 ? Xorg.log: (II) I810(0): Allocated 64 kB for the scratch buffer at 0x7fee000 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: Open failed drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: Open failed [drm] failed to load kernel module "i915"
Gianmarco <gmarco@giovannelli.it> wrote: > I am running FreeBSD 6.0-STABLE (of today) on a HP Pavillon (centrino based > notebook with i915 graphic chipset). Same here (Centrino, i915, not HP though). > I am trying to use the latest drm hook for i915, but I get this error: > > drmsub0: <Intel i915GM> port 0x1800-0x1807 mem > 0xb0080000-0xb00fffff,0xc0000000-0xcfffffff,0xb0000000-0xb003ffff irq 16 at > device 2.0 on pci0 > error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't initialize AGP. > device_attach: drmsub0 attach returned 12 > pci0: <display> at device 2.1 (no driver attached) Is there any mentioning of an AGP device (agp0) in your dmesg? If not, then that's probably the problem. It is interesting that your drmsub0 comes directly as a child of pci0. On my machine, it's a child of agp0. I get this in dmesg: agp0: <Intel 82915GM (915GM GMCH) SVGA controller> port 0x1800-0x1807 mem 0xb0080000-0xb00fffff,0xc0000000-0xcfffffff,0xb0000000-0xb003ffff irq 16 at device 2.0 on pci0 agp0: detected 7932k stolen memory agp0: aperture size is 256M drmsub0: <Intel i915GM>: (child of agp_i810.c) on agp0 info: [drm] AGP at 0xb0080000 0MB info: [drm] Initialized i915 1.2.0 20041217 pci0: <display> at device 2.1 (no driver attached) That's with RELENG_6 from yesterday (Dec. 18, 12:00 GMT). (By the way, it's normal that no driver is reported to be attached to device 2.1.) I'm using the latest Xorg development snapshot, which runs fine, including 2D acceleration, hardware cursor and XVideo extension with hardware acceleration (i.e. hardware scaler and color space conversion). No problems whatsoever. > device agp # support several AGP chipsets > device drm # DRM core module required by DRM drivers > device i915drm # Intel i830 through i915 I have the same entries in my kernel config. > and my pciconf -vl shows: > > drmsub0@pci0:2:0: class=0x030000 card=0x3080103c chip=0x25928086 rev=0x03 hdr=0x00 > vendor = 'Intel Corporation' > device = '82915GM/GMS, 82910GML Integrated Graphics Device' > class = display > subclass = VGA > none0@pci0:2:1: class=0x038000 card=0x3080103c chip=0x27928086 rev=0x03 hdr=0x00 > vendor = 'Intel Corporation' > device = '82915GM/GMS,82910GML Mobile Express Family Graphics Controller (??)' > class = display Just for comparison, this is mine: agp0@pci0:2:0: class=0x030000 card=0xc01a144d chip=0x25928086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82915GM/GMS, 82910GML Integrated Graphics Device' class = display subclass = VGA none0@pci0:2:1: class=0x038000 card=0xc01a144d chip=0x27928086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82915GM/GMS,82910GML Mobile Express Family Graphics Controller (??)' class = display Looks pretty much the same. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "I learned Java 3 years before Python. It was my language of choice. It took me two weekends with Python before I was more productive with it than with Java." -- Anthony Roberts
At 23.56 20/12/2005, you wrote: >>>>>> > error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't >>>> >>>> i915 DRM is not fully supported in -stable. You may try 7-current or >>>> this hack: ftp://213.85.11.250/pub/drm3.patch . >>> >>> I have applied the patch et voila' :-) >>> drmsub0: <Intel i915GM>: (child of agp_i810.c) on agp0 >>> info: [drm] AGP at 0xb0080000 0MB >>> info: [drm] Initialized i915 1.2.0 20041217 >>> hp:/home/gmarco> glxgears >>> ERROR: line 125, Function intelInitDriver, File intel_screen.c >> >> This looks like incompatibility between graphics/dri and xorg-server. >> See this thread: >> http://freebsd.rambler.ru/bsdmail/freebsd-x11_2005/msg00907.html >> Works for me with graphics/dri-devel and x11-server/xorg-server >> >The combination of graphics/dri-devel and x11-servers/xorg-server is not >suitable for i915gm. This chip is only supported by >x11-servers/xorg-server-snap. However it does not work well with either >graphics/dri-devel or dri from cvs (as of today). Infact I have tried all the combinations me too, but I found that plain xorg 6.8.2 doesn't work after the patch (it seems to remember it used to work before, but I can be wrong) and with the latest snapshot (903) the latest dri produces the error above resulting slover than before the patch. Any other idea/test/patch ? Let's keep fighting ... :-) Best Regards, Gianmarco Giovannelli , "Unix expert since yesterday" http://utenti.gufi.org/~gmarco/
At 12.54 21/12/2005, you wrote:>Hi. > >Alexey Popov wrote: >>> >>>>>> > error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't >>> >>>> i915 DRM is not fully supported in -stable. You may try 7-current or >>> >>>> this hack: ftp://213.85.11.250/pub/drm3.patch . >>> >>> I have applied the patch et voila' :-) >>> >>> drmsub0: <Intel i915GM>: (child of agp_i810.c) on agp0 >>> >>> info: [drm] AGP at 0xb0080000 0MB >Not sure, but I think "0MB" here is weird. > >Full output (from Gianmarco): >pci0: <ACPI PCI bus> on pcib0 >agp0: <Intel 82915GM (915GM GMCH) SVGA controller> port >0x1800-0x1807 mem >0xb0080000-0xb00fffff,0xc0000000-0xcfffffff,0xb0000000-0xb003ffff >irq 16 at device 2.0 on pci0 >agp0: detected 7932k stolen memory >agp0: aperture size is 256M >drmsub0: <Intel i915GM>: (child of agp_i810.c) on agp0 >info: [drm] AGP at 0xb0080000 0MB >info: [drm] Initialized i915 1.2.0 20041217 >pci0: <display> at device 2.1 (no driver attached) > >Aperture size 256MB should be printed here instead of 0MB. There is >three different i915gm with this bug reported: >http://freebsd.rambler.ru/bsdmail/freebsd-stable_curr/msg00003.html >I think this bug is i915gm only, but have no hardware to dig in.I reply also in this list for the people not subscribed to the x11 list :-) It seems to me that also Oliver has the same bug (0M) on his 915GM ... Any other with with centrino based 915 card can confirm this ? If someone need a tester to fix it I am ready to help. Best Regards, Gianmarco Giovannelli , "Unix expert since yesterday" http://utenti.gufi.org/~gmarco/
At 13.00 20/12/2005, dawnshade wrote: >On Tuesday 20 December 2005 11:37, Gianmarco Giovannelli wrote: >> hp:/home/gmarco> glxgears >> ERROR: line 125, Function intelInitDriver, File intel_screen.c >> libGL warning: 3D driver returned no fbconfigs. >> libGL error: InitDriver failed >> libGL error: reverting to (slow) indirect rendering >> 1024 frames in 5.0 seconds = 204.800 FPS >> 1260 frames in 5.0 seconds = 252.000 FPS >> 1267 frames in 5.0 seconds = 253.400 FPS >> >> (before patch it used to be about 600) > >try to upgrade port dri to dri-devel >I have the same situation - glxinfo shows that dri disabled, after portupgrade >-f -o graphics/dri-devel dri glxgears shown 1128.200 FPS (was ~300 and ~600 >w/o dri) Oops I don't remember about this. Can you please told me which versions (dri-devel, xorg) do you have (because I am running dri-devel !!! :-) ? Best Regards, Gianmarco Giovannelli , "Unix expert since yesterday" http://utenti.gufi.org/~gmarco/