Re: Problem with enabling DRI on ATI Mobility Radeon X1350
This was much easier, that I waited :) After first build I had link_elf: symbol drm_core_ioremap_wc undefined every time I tried to kldload radeon, but it was solved by 3 additional lines in sources :) So, here is step-by-step instruction: 1) download sources $ git clone git://anongit.freedesktop.org/git/mesa/drm $ cd drm 2) edit sources # git diff diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h index 88ea4e6..122ac4a 100644 --- a/bsd-core/drmP.h +++ b/bsd-core/drmP.h @@ -1117,5 +1117,9 @@ static __inline__ void drm_core_dropmap(struct drm_map *map) { } +#ifndef drm_core_ioremap_wc +# define drm_core_ioremap_wc drm_core_ioremap +#endif + #endif /* __KERNEL__ */ #endif /* _DRM_P_H_ */ 3) install kernel modules # cd bsd-core # make make install # kldunload radeon # kldunload drm # kldload drm # kldload radeon 4) check result $ dmesg | grep drm drm0: ATI Mobility Radeon X1350 on vgapci0 vgapci0: child drm0 requested pci_enable_busmaster info: [drm] Initialized radeon 1.29.0 20080613 I haven't tried to integrate these sources in kernel, so I have only device agp in kernel config, not drm/radeondrm After that KDE starts work much faster :) But I still have problems running Compiz/Beryl... Even kompmgr fails to start with KDE, but works just fine if started manually. gelraen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem with enabling DRI on ATI Mobility Radeon X1350
Hi, I have notebook HP Compaq 6820s with ATI Mobility Radeon X1350 videocard and FreeBSD 7.0-RELEASE-p2 installed. Videocard recognized by xf86-video-ati-6.9.0: Xorg.0.log: (--) Chipset ATI Mobility Radeon X1350 found But: 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 radeon (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM [dri] Disabling DRI. Then I consulted with http://dri.freedesktop.org/wiki/DriTroubleshooting I have tried to use device drm/radeondrm compiled-in kernel and as kernel module, but videocard appears only as vgapci0, not drm0. # pciconf -lv ... [EMAIL PROTECTED]:1:0:0: class=0x03 card=0x30d7103c chip=0x71961002 rev=0x00 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'Mobility Radeon X1350' class = display subclass = VGA ... # scanpci -vv ... pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x1002 device 0x7196 ATI Technologies Inc Device unknown CardVendor 0x103c card 0x30d7 (Card unknown) STATUS0x0010 COMMAND 0x0007 CLASS 0x03 0x00 0x00 REVISION 0x00 BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x10 BASE0 0xd008 addr 0xd000 MEM PREFETCHABLE BASE1 0x4001 addr 0x4000 I/O BASE2 0xdc40 addr 0xdc40 MEM MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x10 ... Any advices? gelraen P.S.: Sorry for my bad English :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with enabling DRI on ATI Mobility Radeon X1350
On Wed, Jul 16, 2008 at 01:27:51PM +0300, gelraen wrote: Hi, I have notebook HP Compaq 6820s with ATI Mobility Radeon X1350 videocard and FreeBSD 7.0-RELEASE-p2 installed. Videocard recognized by xf86-video-ati-6.9.0: Xorg.0.log: (--) Chipset ATI Mobility Radeon X1350 found But: 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 radeon (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM [dri] Disabling DRI. Then I consulted with http://dri.freedesktop.org/wiki/DriTroubleshooting I have tried to use device drm/radeondrm compiled-in kernel and as kernel module, but videocard appears only as vgapci0, not drm0. # pciconf -lv ... [EMAIL PROTECTED]:1:0:0: class=0x03 card=0x30d7103c chip=0x71961002 rev=0x00 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'Mobility Radeon X1350' class = display subclass = VGA ... Any advices? Check if the pci ID for this card is in the file /usr/src/sys/dev/drm/drm_pciids.h. If not you could try and add it. I don't have a clue what happens if you do. It might crash your machine. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpEs659kLDvG.pgp Description: PGP signature
Re: Problem with enabling DRI on ATI Mobility Radeon X1350
Check if the pci ID for this card is in the file /usr/src/sys/dev/drm/drm_pciids.h. If not you could try and add it. I don't have a clue what happens if you do. It might crash your machine. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) /usr/src/sys/dev/drm/radeon_drv.h: enum radeon_family { CHIP_R100, CHIP_RV100, CHIP_RS100, CHIP_RV200, CHIP_RS200, CHIP_R200, CHIP_RV250, CHIP_RS300, CHIP_RV280, CHIP_R300, CHIP_R350, CHIP_RV350, CHIP_RV380, CHIP_R420, CHIP_RV410, CHIP_RS400, CHIP_LAST, }; And X.org reports something about chip R500 So, i can only wait until it will be supported? I afraid that specifying incorrect chip may not only crash system, but even cause hardware problems... gelraen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with enabling DRI on ATI Mobility Radeon X1350
On Wed, Jul 16, 2008 at 05:38:35PM +0300, gelraen wrote: Check if the pci ID for this card is in the file /usr/src/sys/dev/drm/drm_pciids.h. If not you could try and add it. I don't have a clue what happens if you do. It might crash your machine. Roland /usr/src/sys/dev/drm/radeon_drv.h: enum radeon_family { CHIP_R100, CHIP_RV100, CHIP_RS100, CHIP_RV200, CHIP_RS200, CHIP_R200, CHIP_RV250, CHIP_RS300, CHIP_RV280, CHIP_R300, CHIP_R350, CHIP_RV350, CHIP_RV380, CHIP_R420, CHIP_RV410, CHIP_RS400, CHIP_LAST, }; And X.org reports something about chip R500 So, i can only wait until it will be supported? That would probably be best. You should probably ask on the Xorg/Freedesktop mailing list for the radeon driver, or for the drm driver. I afraid that specifying incorrect chip may not only crash system, but even cause hardware problems... You could be right. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpYnMrZtoxIm.pgp Description: PGP signature
Re: Problem with enabling DRI on ATI Mobility Radeon X1350
2008/7/16 Roland Smith [EMAIL PROTECTED]: And X.org reports something about chip R500 So, i can only wait until it will be supported? That would probably be best. You should probably ask on the Xorg/Freedesktop mailing list for the radeon driver, or for the drm driver. I think, if there was working driver, it had been submitted to FreeBSD :) And i don't know, is it possible to use Linux drm driver... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with enabling DRI on ATI Mobility Radeon X1350
On Wed, Jul 16, 2008 at 07:05:15PM +0300, gelraen wrote: 2008/7/16 Roland Smith [EMAIL PROTECTED]: And X.org reports something about chip R500 So, i can only wait until it will be supported? That would probably be best. You should probably ask on the Xorg/Freedesktop mailing list for the radeon driver, or for the drm driver. I think, if there was working driver, it had been submitted to FreeBSD :) And i don't know, is it possible to use Linux drm driver... Both are essentially built from the same code, with some OS specific parts, so it wouldn't make much of a difference. If you have devel/git installed, you can check out a copy of the freedesktop.org source tree with: git clone git://anongit.freedesktop.org/git/mesa/drm This will create a directory 'drm', which contains both BSD/linux specific subdirectories as well as a 'shared-core' directory. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp1amLSC0SUA.pgp Description: PGP signature
Re: Problem with enabling DRI on ATI Mobility Radeon X1350
2008/7/16 Roland Smith [EMAIL PROTECTED]: If you have devel/git installed, you can check out a copy of the freedesktop.org source tree with: git clone git://anongit.freedesktop.org/git/mesa/drm This will create a directory 'drm', which contains both BSD/linux specific subdirectories as well as a 'shared-core' directory. Roland Thanks, I'll try... Maybe tomorrow or some later I'll report about results :) gelraen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem with Enabling DRI
Hello list, I tried to enable the nice composite features of KDE on my workstation. It seems they work, but very slow. The KERNEL contains device agp, /boot/loader.conf contains sis_load=YES and that are some interesting outputs: dmesg | grep drm outputs: drm0: SiS 630 port 0xa000-0xa07f mem 0x8800-0x8fff,0x8000-0x8001 at device 0.0 on pci1 info: [drm] AGP at 0x4000 64MB info: [drm] Initialized sis 1.1.0 20030826 grep EE /var/log/Xorg.0.log outputs: (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (II) Loading extension MIT-SCREEN-SAVER (EE) SIS(0): [dri] DRIScreenInit failed. Disabling the DRI. grep failed /var/log/Xorg.0.log outputs: (--) SIS(0): CRT2 DDC probing failed (II) SIS(0): [drm] drmSetBusid failed (6, pci::01:00.0), Permission denied (EE) SIS(0): [dri] DRIScreenInit failed. Disabling the DRI. uname -a outputs: FreeBSD vagabund.w33 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Sat Jan 20 10:31:01 CET 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 It seems that drmSetBusid causing problems, but I don't know how to resolve it. Any ideas? With regards Stevan Tiefert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with Enabling DRI
Stevan Tiefert [EMAIL PROTECTED] wrote: (II) SIS(0): [drm] drmSetBusid failed (6, pci::01:00.0), Permission denied Driver says 'Permission denied'. Try to add the following to your xorg.conf: ' Section DRI Mode 0666 EndSection ' as written in http://people.freebsd.org/~anholt/dri/install.html. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with Enabling DRI
Am Dienstag, 23. Januar 2007 14:32 schrieb [EMAIL PROTECTED]: Stevan Tiefert [EMAIL PROTECTED] wrote: (II) SIS(0): [drm] drmSetBusid failed (6, pci::01:00.0), Permission denied Driver says 'Permission denied'. Try to add the following to your xorg.conf: ' Section DRI Mode 0666 EndSection ' as written in http://people.freebsd.org/~anholt/dri/install.html. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hello, /etc/X11/xorg.conf contains already this entry. With regards Stevan Tiefert pgpulBn45Lgxp.pgp Description: PGP signature
Re: Problem with Enabling DRI
From http://dri.freedesktop.org/wiki/DriTroubleshooting: 'If it says: [drm] drmSetBusid failed (7, PCI:1:0:0), Permission denied people have said that it's because the modules were built with a different gcc version than the kernel. Make sure they are in sync. Also, dmesg output should show something about version magic mismatches if this is the case. Another possibility (for the i915/i810 chipsets) is that you have an old buggy version of the i810 driver. Be sure to upgrade to the latest and greatest.' Maybe it will help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with Enabling DRI
Am Dienstag, 23. Januar 2007 15:28 schrieb [EMAIL PROTECTED]: From http://dri.freedesktop.org/wiki/DriTroubleshooting: 'If it says: [drm] drmSetBusid failed (7, PCI:1:0:0), Permission denied people have said that it's because the modules were built with a different gcc version than the kernel. Make sure they are in sync. Also, dmesg output should show something about version magic mismatches if this is the case. Another possibility (for the i915/i810 chipsets) is that you have an old buggy version of the i810 driver. Be sure to upgrade to the latest and greatest.' Maybe it will help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hello, First: you cut pasted a solution for Linux!!! Are you sure you know what you advice??? Second: I never said anything about the intel-chipset! I have a sis-chipset! Did you really read my mail? With regards Stevan Tiefert pgpvIl8V74xoU.pgp Description: PGP signature