• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

drm-next-kmod and 11.2-RELEASE

Maccraft123

Member


Messages: 21

#1
Hello,

I have a problem with drm-next-kmod and mine GPU, Radeon RX 460
Currently I am running with xf86-video-vesa driver and software rendering
Dmesg output:
Code:
Copyright (c) 1992-2017 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 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017
    root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
VT(vga): resolution 640x480
CPU: AMD Phenom(tm) 9650 Quad-Core Processor (2300.06-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x100f23  Family=0x10  Model=0x2  Stepping=3
  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=0x802009<SSE3,MON,CX16,POPCNT>
  AMD Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x7ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS>
  SVM: NP,NAsids=64
  TSC: P-state invariant
real memory  = 6442450944 (6144 MB)
avail memory = 6174670848 (5888 MB)
Event timer "LAPIC" quality 100
ACPI APIC Table: <041311 APIC1110>
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)
random: unblocking device.
ioapic0 <Version 1.1> irqs 0-23 on motherboard
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
Timecounter "TSC-low" frequency 1150029737 Hz quality 800
random: entropy device external interface
kbd1 at kbdmux0
netmap: loaded module
module_register_init: MOD_LOAD (vesa, 0xffffffff80f5b220, 0) error 19
nexus0
vtvga0: <VT VGA driver> on motherboard
cryptosoft0: <software crypto> on motherboard
acpi0: <041311 RSDT1110> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed00fff irq 2,8 on acpi0
Timecounter "HPET" frequency 25000000 Hz quality 950
attimer0: <AT timer> port 0x40-0x43 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x2008-0x200b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pcib0: _OSC returned error 0x10
pci0: <ACPI PCI bus> on pcib0
pci0: <memory, RAM> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> port 0x2f00-0x2fff at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <memory, RAM> at device 1.2 (no driver attached)
pci0: <processor> at device 1.3 (no driver attached)
pci0: <memory, RAM> at device 1.4 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xfbd7e000-0xfbd7efff irq 22 at device 2.0 on pci0
usbus0 on ohci0
usbus0: 12Mbps Full Speed USB v1.0
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfbd7fc00-0xfbd7fcff irq 23 at device 2.1 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
usbus1: 480Mbps High Speed USB v2.0
ohci1: <OHCI (generic) USB controller> mem 0xfbd7d000-0xfbd7dfff irq 20 at device 4.0 on pci0
usbus2 on ohci1
usbus2: 12Mbps Full Speed USB v1.0
ehci1: <EHCI (generic) USB 2.0 controller> mem 0xfbd7f800-0xfbd7f8ff irq 21 at device 4.1 on pci0
usbus3: EHCI version 1.0
usbus3 on ehci1
usbus3: 480Mbps High Speed USB v2.0
atapci0: <nVidia nForce MCP77 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 6.0 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
hdac0: <NVIDIA MCP78 HDA Controller> mem 0xfbd78000-0xfbd7bfff irq 22 at device 7.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 8.0 on pci0
pci1: <ACPI PCI bus> on pcib1
ath0: <Atheros 9220> mem 0xfbef0000-0xfbefffff irq 19 at device 6.0 on pci1
ath0: [HT] enabling HT modes
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 stream STBC transmit enabled
ath0: [HT] 2 RX streams; 2 TX streams
ath0: Enabling register serialisation
ath0: AR9220 mac 128.2 RF5133 phy 13.0
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0
ahci0: <NVIDIA MCP77 AHCI SATA controller> port 0xd480-0xd487,0xd400-0xd403,0xd080-0xd087,0xd000-0xd003,0xcc00-0xcc0f mem 0xfbd76000-0xfbd77fff irq 23 at device 9.0 on pci0
ahci0: AHCI v1.20 with 6 3Gbps ports, Port Multiplier supported
ahci0: quirks=0x200<NOAA>
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich5: <AHCI channel> at channel 5 on ahci0
nfe0: <NVIDIA nForce MCP77 Networking Adapter> port 0xc880-0xc887 mem 0xfbd7c000-0xfbd7cfff,0xfbd7f400-0xfbd7f4ff,0xfbd7f000-0xfbd7f00f irq 20 at device 10.0 on pci0
miibus0: <MII bus> on nfe0
e1000phy0: <Marvell 88E1111 Gigabit PHY> PHY 1 on miibus0
e1000phy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
nfe0: Using defaults for TSO: 65518/35/2048
nfe0: Ethernet address: 00:24:8c:6b:5d:50
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 16.0 on pci0
pci2: <ACPI PCI bus> on pcib2
vgapci0: <VGA-compatible display> port 0xe000-0xe0ff mem 0xd0000000-0xdfffffff,0xcfe00000-0xcfffffff,0xfbf80000-0xfbfbffff irq 16 at device 0.0 on pci2
vgapci0: Boot video device
hdac1: <ATI (0xaae0) HDA Controller> mem 0xfbffc000-0xfbffffff irq 17 at device 0.1 on pci2
pcib3: <ACPI PCI-PCI bridge> irq 17 at device 19.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> irq 18 at device 20.0 on pci0
pci4: <ACPI PCI bus> on pcib4
acpi_button0: <Power Button> on acpi0
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: cannot reserve I/O port range
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Timecounters tick every 1.000 msec
nvme cam probe device init
hdacc0: <VIA VT1708S_0 HDA CODEC> at cad 0 on hdac0
hdaa0: <VIA VT1708S_0 Audio Function Group> at nid 1 on hdacc0
pcm0: <VIA VT1708S_0 (Analog 7.1+HP/2.0)> at nid 28,34,25,35,29 and 26,31,30,27 on hdaa0
pcm1: <VIA VT1708S_0 (Rear-panel Digital)> at nid 32 on hdaa0
pcm2: <VIA VT1708S_0 (Rear-panel Digital)> at nid 33 on hdaa0
hdacc1: <NVIDIA MCP78 HDA CODEC> at cad 3 on hdac0
hdaa1: <NVIDIA MCP78 Audio Function Group> at nid 1 on hdacc1
pcm3: <NVIDIA MCP78 (Digital)> at nid 5 on hdaa1
hdacc2: <ATI R6xx HDA CODEC> at cad 0 on hdac1
hdaa2: <ATI R6xx Audio Function Group> at nid 1 on hdacc2
pcm4: <ATI R6xx (HDMI)> at nid 3 on hdaa2
pcm5: <ATI R6xx (HDMI)> at nid 5 on hdaa2
pcm6: <ATI R6xx (HDMI)> at nid 7 on hdaa2
pcm7: <ATI R6xx (HDMI)> at nid 9 on hdaa2
pcm8: <ATI R6xx (HDMI)> at nid 11 on hdaa2
ugen0.1: <nVidia OHCI root HUB> at usbus0
ugen1.1: <nVidia EHCI root HUB> at usbus1
ugen2.1: <nVidia OHCI root HUB> at usbus2
ugen3.1: <nVidia EHCI root HUB> at usbus3
uhub0: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
uhub2: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
uhub3: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
uhub1: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ada0 at ahcich2 bus 0 scbus4 target 0 lun 0
ada0: <WDC WD5000BPVT-22HXZT3 01.01A01> ATA8-ACS SATA 2.x device
ada0: Serial Number WD-WX41C32R2460
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 476940MB (976773168 512 byte sectors)
ada0: quirks=0x1<4K>
Trying to mount root from ufs:/dev/ada0s1a [rw]...
uhub0: 6 ports with 6 removable, self powered
uhub2: 6 ports with 6 removable, self powered
uhub1: 6 ports with 6 removable, self powered
uhub3: 6 ports with 6 removable, self powered
KLD drm.ko: depends on kernel - not available or version mismatch
linker_load_file: Unsupported file type
KLD amdgpu.ko: depends on drmn - not available or version mismatch
linker_load_file: Unsupported file type
ugen2.2: <SEM USB Keyboard> at usbus2
ukbd0 on uhub2
ukbd0: <SEM USB Keyboard, class 0/0, rev 1.10/1.10, addr 2> on usbus2
kbd2 at ukbd0
ugen0.2: <A4TECH USB Device> at usbus0
ukbd1 on uhub0
ukbd1: <A4TECH USB Device, class 0/0, rev 1.10/2.74, addr 2> on usbus0
kbd3 at ukbd1
wlan0: Ethernet address: 94:0c:6d:c5:15:87
wlan0: link state changed to UP
nfe0: link state changed to DOWN
uhid0 on uhub2
uhid0: <SEM USB Keyboard, class 0/0, rev 1.10/1.10, addr 2> on usbus2
ums0 on uhub0
ums0: <A4TECH USB Device, class 0/0, rev 1.10/2.74, addr 2> on usbus0
ums0: 16 buttons and [XYZ] coordinates ID=0
 

Maccraft123

Member


Messages: 21

#2
System was installed yesterday, just installed XOrg, SLiM and Xfce.
Specs:
GPU: AMD Radeon RX 460(Polaris)
CPU: AMD Phenom X4 9650(4x2,3GHz)
Motherboard: ASUS M4N78 PRO
RAM: 6GB DDR2
Screen: 1366x768@60Hz
 

Maccraft123

Member


Messages: 21

#4
I can't get it amdgpu module to run,
I have drm-next-kmod compiled(had to edit Makefiles)
When I try to kldload amdgpu it outputs:
kldload: an error occurred while loading the module. Please check dmesg(8) for more details.
Dmesg shows then:
Code:
KLD amdgpu.ko: depends on drmn - not available or version mismatch
linker_load_file: Unsupported file type
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 6,125
Messages: 27,000

#8
There's a reason why the port has version checks, they only work on 11.2 and higher. FreeBSD 11.1 and lower are missing a few vital kernel changes.
 

scottro

Daemon

Thanks: 401
Messages: 1,179

#10
11.2-RELEASE is already out. I'm not sure about FreeBSD-update but if you checkout source from <yoursvnserver>/base/releng/11.2 it will build 11.2-RELEASE
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 6,125
Messages: 27,000

#11
Yeah, there's no official notice yet (they're waiting for the mirrors to catch-up) but it should be available already.

freebsd-update -r 11.2-RELEASE upgrade
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 6,125
Messages: 27,000

#14
Restore the port first (undo your changes), and rebuild it. Your currently installed version is linked to 11.1 and may cause further problems because of it.
 

scottro

Daemon

Thanks: 401
Messages: 1,179

#18
It may need some special setup. If you've left the forums you won't see this, but if you run pkg info -D drm-next-kmod you get some information about adding users to the video group and and lines to /etc/rc.conf. (I'm not at all familiar with the AMD cards, so don't know if that's your problem.)

It can be frustrating when compared to Linux, as driver support and documentation are often lacking or out of date. The drm-next-stuff is relatively new and aimed at the just released 11.2-RELEASE so the various how tos by individual users aren't out there yet.
 

scottro

Daemon

Thanks: 401
Messages: 1,179

#25
For me, living in NYC

Code:
cd /usr
svnlite co https://svn0.us-east.freebsd.org/base/releng/11.2 /usr/src
The svnlite program comes with the system, and does things such as svn checkout (the co).

The next part is which svn server you're using, for me on the east coast of the US, that's closest, you can look for FreeBSD svn mirrors. The next part, /base/releng/11.2 is the source code you want and the /usr/src means that's where you'll be putting what you checked out.

The wonkity.com site has a good article on using it to update the entire system at http://www.wonkity.com/~wblock/docs/html/buildworld.html but in this case, it isn't necessary, you just want the source code in /usr/src so that the port can use it.
 
Top