Solved KMS does not load

Hello, I have just installed FreeBSD 9.3 with KDE and tried to enable 3D acceleration on AMD Radeon 6250 through adding these firmwares to /boot/loader.conf:

Code:
2  1 0xffffffff81812000 26b8  radeonkmsfw_PALM_pfp.ko
3  1 0xffffffff81815000 2aa8  radeonkmsfw_PALM_me.ko
4  1 0xffffffff81818000 2138  radeonkmsfw_SUMO_rlc.ko

However, when I boot I get a blank screen for a while and then appears KDM, I log in and I see that the proper firmwares haven't loaded. Anybody knows what I do wrong?
 
It seems like everyone who tries to load the firmware manually has trouble. The drivers load the firmware automatically, so try removing all of those entries from /boot/loader.conf first.
 
Greetings, Jo20. I don't suppose you could post the relevent part(s) from dmesg(8) (/var/run/dmesg.boot), could you? In fact, it might be just as well to post it all. That way, you could see what the kernel thinks you have, and what it does about it.

All the best.

--Chris
 
Hello, I have just installed FreeBSD 9.3 with KDE and tried to enable 3D acceleration on AMD Radeon 6250 through adding these firmwares to /boot/loader.conf:

Code:
2 1 0xffffffff81812000 26b8 radeonkmsfw_PALM_pfp.ko
3 1 0xffffffff81815000 2aa8 radeonkmsfw_PALM_me.ko
4 1 0xffffffff81818000 2138 radeonkmsfw_SUMO_rlc.ko

These are exactly the same firmware files my Radeon HD 6310 uses. Without further details what goes wrong on your machine: For me radeonkms did NOT work when loaded (along with the firmware) from loader.conf. Using the radeon driver for Xorg, the modules get auto-loaded and then it works fine. See DRI not working, AMD E 300 with Radeon HD 6310.
 
Greetings, Jo20. I don't suppose you could post the relevent part(s) from dmesg(8) (/var/run/dmesg.boot), could you? In fact, it might be just as well to post it all. That way, you could see what the kernel thinks you have, and what it does about it.

All the best.

--Chris

Of course I can!

Code:
Copyright (c) 1992-2014 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.3-RELEASE #0 r268512: Thu Jul 10 23:44:39 UTC 2014
  root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
gcc version 4.2.1 20070831 patched [FreeBSD]
CPU: AMD C-50 Processor (997.52-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x500f10  Family = 0x14  Model = 0x1  Stepping = 0
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x802209<SSE3,MON,SSSE3,CX16,POPCNT>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x35ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,IBS,SKINIT,WDT>
  TSC: P-state invariant, performance statistics
real memory  = 2147483648 (2048 MB)
avail memory = 1762238464 (1680 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <ACRSYS ACRPRDCT>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 4
ioapic0 <Version 2.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <ACRSYS ACRPRDCT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 550
Event timer "HPET1" frequency 14318180 Hz quality 450
atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x3> port 0x62,0x66 on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x4000-0x40ff mem 0x80000000-0x8fffffff,0x90400000-0x9043ffff irq 18 at device 1.0 on pci0
vgapci0: Boot video device
hdac0: <ATI (0x1314) HDA Controller> mem 0x90444000-0x90447fff irq 19 at device 1.1 on pci0
ahci0: <AMD SB7x0/SB8x0/SB9x0 AHCI SATA controller> port 0x4118-0x411f,0x4124-0x4127,0x4110-0x4117,0x4120-0x4123,0x4100-0x410f mem 0x9044c000-0x9044c3ff irq 19 at device 17.0 on pci0
ahci0: AHCI v1.20 with 2 3Gbps ports, Port Multiplier supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ohci0: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0x9044b000-0x9044bfff irq 18 at device 18.0 on pci0
usbus0 on ohci0
ehci0: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0x9044a000-0x9044a0ff irq 17 at device 18.2 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
ohci1: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0x90449000-0x90449fff irq 18 at device 19.0 on pci0
usbus2 on ohci1
ehci1: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0x90448000-0x904480ff irq 17 at device 19.2 on pci0
usbus3: EHCI version 1.0
usbus3 on ehci1
hdac1: <ATI SB600 HDA Controller> mem 0x90440000-0x90443fff irq 16 at device 20.2 on pci0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
pcib1: <ACPI PCI-PCI bridge> at device 20.4 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 21.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 21.2 on pci0
pci6: <ACPI PCI bus> on pcib3
alc0: <Atheros AR8151 v2.0 PCIe Gigabit Ethernet> port 0x2000-0x207f mem 0x90200000-0x9023ffff irq 18 at device 0.0 on pci6
alc0: 11776 Tx FIFO, 12032 Rx FIFO
alc0: Using 1 MSI message(s).
miibus0: <MII bus> on alc0
atphy0: <Atheros F1 10/100/1000 PHY> PHY 0 on miibus0
atphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
alc0: Ethernet address: 1c:75:08:fa:87:51
pcib4: <ACPI PCI-PCI bridge> at device 21.3 on pci0
pci7: <ACPI PCI bus> on pcib4
ath0: <Atheros 9287> mem 0x90100000-0x9010ffff irq 19 at device 0.0 on pci7
ath0: AR9287 mac 384.2 RF5133 phy 15.15
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
orm0: <ISA Option ROM> at iomem 0xce800-0xcf7ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: cannot reserve I/O port range
acpi_throttle0: <ACPI CPU Throttling> on cpu0
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Timecounters tick every 1.000 msec
hdacc0: <ATI R6xx HDA CODEC> at cad 0 on hdac0
hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0
pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
hdacc1: <Conexant CX20584 HDA CODEC> at cad 0 on hdac1
hdaa1: <Conexant CX20584 Audio Function Group> at nid 1 on hdacc1
pcm1: <Conexant CX20584 (Analog)> at nid 31 and 26 on hdaa1
pcm2: <Conexant CX20584 (Right Analog)> at nid 25 and 27 on hdaa1
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 480Mbps High Speed USB v2.0
ugen0.1: <ATI> at usbus0
uhub0: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <ATI> at usbus1
uhub1: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen2.1: <ATI> at usbus2
uhub2: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <ATI> at usbus3
uhub3: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <ST9500325AS 0001SDM1> ATA-8 SATA 2.x device
ada0: Serial Number 5VEGBV23
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad4
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
SMP: AP CPU #1 Launched!
cd0: <Slimtype DVD A  DS8A5SH XA15> Removable CD-ROM SCSI-0 device
cd0: Serial Number 010120146391
cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
Timecounter "TSC" frequency 997521934 Hz quality 800
uhub0: 5 ports with 5 removable, self powered
uhub2: 5 ports with 5 removable, self powered
Root mount waiting for: usbus3 usbus1
Root mount waiting for: usbus3 usbus1
uhub1: 5 ports with 5 removable, self powered
uhub3: 5 ports with 5 removable, self powered
Root mount waiting for: usbus3 usbus1
ugen3.2: <ALi Corporation> at usbus3
ugen0.2: <Newmen1300> at usbus0
ukbd0: <Newmen1300 MOUSE, class 0/0, rev 1.10/11.10, addr 2> on usbus0
kbd2 at ukbd0
ums0: <Newmen1300 MOUSE, class 0/0, rev 1.10/11.10, addr 2> on usbus0
ums0: 5 buttons and [XYZT] coordinates ID=1
Root mount waiting for: usbus3
ugen3.3: <Generic> at usbus3
umass0: <Bulk-In, Bulk-Out, Interface> on usbus3
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:2:0:-1: Attached to scbus2
Trying to mount root from ufs:/dev/ada0p2 [rw]...
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <Generic- Multi-Card 1.00> Removable Direct Access SCSI-0 device
da0: Serial Number 20090516388200000
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
da0: quirks=0x2<NO_6_BYTE>
 
Sorry for not appearing lately (too much work!). I have to say a few more things about the problem:
  • /etc/x11/ is empty; this happens with every *BSD I've tried.
  • I have made a reinstall (I had some accidents :oops:) and this time I didn't install Xorg from ports, I don't know if that matters.
 
xorg.conf is usually not needed. If it is, the correct location for it on FreeBSD is /usr/local/etc/X11 (hier(7)).

In theory, using either ports or packages should work the same as long as they are the most recent version. If you install ports or packages from the install DVD, they are not the most recent, just what was available when the release was created.

The radeon driver is part of x11-drivers/xf86-video-ati.

Can you verify that you do not have the firmware loading in /boot/loader.conf any more?
 
Again, xorg.conf is not created automatically, and is usually not needed. In other words, most systems are better off without it.

One more time: have you removed any KMS firmware loading from /boot/loader.conf?
 
Again, xorg.conf is not created automatically, and is usually not needed. In other words, most systems are better off without it.

One more time: have you removed any KMS firmware loading from /boot/loader.conf?

Yes, I have removed them. The reason I insist in xorg.conf is because I've read that it has to be configured in order for Compiz to work.
 
X starts normally; the only problem is OpenGL and 3D acceleration. If these get fixed then Compiz should work.
 
Okay, good. What document says xorg.conf is required for Compiz? Have you tried it without xorg.conf?
 
Of course I can!

Code:
Copyright (c) 1992-2014 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
[...]

I don't see any messages from radeonkms in there ... could you please try dmesg | grep dri after X started?
Also, grep DRI /var/log/Xorg.0.log could be helpful.
 
I don't see any messages from radeonkms in there ... could you please try dmesg | grep dri after X started?
Also, grep DRI /var/log/Xorg.0.log could be helpful.

Code:
drmn0: info: fence driver on ring 0 use gpu addr 0x0000000010000c00 and cpu addr 0x0xfffffe0019abac00
drmn0: info: fence driver on ring 3 use gpu addr 0x0000000010000c0c and cpu addr 0x0xfffffe0019abac0c
 
That article is from 2008 and Nvidia-specific.

Why did you choose FreeBSD 9?

Please put /var/log/Xorg.0.log somewhere on the web (like www.pastebin.com) and post a link to it.

OK, you have right, the article is old. I advise it because I don't know how exactly different is Compiz in FreeBSD from other Linux distros I've used.
I use FreeBSD 9x only for sysinstall; it makes things easier. :)

This is the output from xorg.0.log.
 
Looks good. Driver is loaded correctly, GLX and DRI2 available. Not sure what the problem is, but it is not the Xorg configuration.

There must be a problem: Windows in KDE look thrashed in movement and desktop effects using OpenGL (including the OpenGL itself) cannot be enabled. Also the firmware never gets loaded; when I give kldstat | grep radeonkmsfw the firmwares are there.
 
Back
Top