Solved problem with amd apu vega8 vga card

Hi all, I'm newbie for FreeBSD, i have some experience for linux.

first time i installd FreeBSD 12.1 stable and installed drm-kmod and gpu-firmware, but drm driver did not reconize the vag card.
after that i search a lot in google and bing. i found that someone use freebsd-current to reconize the vga card successfully.

and then i installd FreeBSD Current, and instealled the drm-kmow and gpu-frireware . it's work to reconize the vga card.


this is dmesg :

Code:
  AMD Extended Feature Extensions ID EBX=0x1007<CLZERO,IRPerf,XSaveErPtr,IBPB>
  SVM: (disabled in BIOS) NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
  TSC: P-state invariant, performance statistics
real memory  = 17179869184 (16384 MB)
avail memory = 14388916224 (13722 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <HPQOEM 8589    >
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 hardware threads
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
random: unblocking device.
ioapic0: Changing APIC ID to 33
ioapic1: Changing APIC ID to 34
ioapic0 <Version 2.1> irqs 0-23
ioapic1 <Version 2.1> irqs 24-55
Launching APs: 4 1 6 7 3 5 2
Timecounter "TSC" frequency 2096124933 Hz quality 1000
random: entropy device external interface
WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 13.0.
kbd1 at kbdmux0
000.000051 [4336] netmap_init               netmap: loaded module
[ath_hal] loaded
nexus0
efirtc0: <EFI Realtime Clock>
efirtc0: registered as a time-of-day clock, resolution 1.000000s
cryptosoft0: <software crypto>
acpi0: <HPQOEM SLIC-BPC>
Firmware Error (ACPI): Could not resolve symbol [\134_SB.PCI0.LPC0.EC0], AE_NOT_FOUND (20200110/dswload2-312)
ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20200110/psobject-372)
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
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
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 350
Event timer "HPET1" frequency 14318180 Hz quality 350
Event timer "HPET2" frequency 14318180 Hz quality 350
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
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> at device 1.3 on pci0
pci1: <ACPI PCI bus> on pcib1
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0x3300-0x33ff mem 0xf0914000-0xf0914fff,0xf0900000-0xf0903fff at device 0.0 on pci1
re0: Using 1 MSI-X message
re0: ASPM disabled
re0: Chip rev. 0x50000000
re0: MAC rev. 0x00200000
miibus0: <MII bus> on re0
rgephy0: <RTL8251/8153 1000BASE-T media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: f8:b4:6a:e6:97:19
re0: netmap queues/slots: TX 1/256, RX 1/256
pci1: <simple comms, UART> at device 0.1 (no driver attached)
pci1: <simple comms, UART> at device 0.2 (no driver attached)
pci1: <serial bus> at device 0.3 (no driver attached)
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xf0918000-0xf0918fff,0xf0910000-0xf0913fff at device 0.4 on pci1
ehci0: pre-2.0 USB revision (ignored)
usbus0: EHCI version 1.0
usbus0 on ehci0
usbus0: 480Mbps High Speed USB v2.0
pcib2: <ACPI PCI-PCI bridge> at device 1.4 on pci0
pci2: <ACPI PCI bus> on pcib2
pci2: <network> at device 0.0 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> at device 1.7 on pci0
pci3: <ACPI PCI bus> on pcib3
nvme0: <Generic NVMe Device> mem 0xf0700000-0xf0703fff at device 0.0 on pci3
pcib4: <ACPI PCI-PCI bridge> at device 8.1 on pci0
pci4: <ACPI PCI bus> on pcib4
vgapci0: <VGA-compatible display> port 0x2000-0x20ff mem 0xe0000000-0xefffffff,0xf0000000-0xf01fffff,0xf0600000-0xf067ffff at device 0.0 on pci4
hdac0: <ATI (0x15de) HDA Controller> mem 0xf06c8000-0xf06cbfff at device 0.1 on pci4
pci4: <encrypt/decrypt> at device 0.2 (no driver attached)
xhci0: <XHCI (generic) USB 3.0 controller> mem 0xf0200000-0xf02fffff at device 0.3 on pci4
xhci0: 64 bytes context size, 64-bit DMA
xhci0: Unable to map MSI-X table 
usbus1 on xhci0
usbus1: 5.0Gbps Super Speed USB v3.0
xhci1: <XHCI (generic) USB 3.0 controller> mem 0xf0300000-0xf03fffff at device 0.4 on pci4
xhci1: 64 bytes context size, 64-bit DMA
xhci1: Unable to map MSI-X table 
usbus2 on xhci1
usbus2: 5.0Gbps Super Speed USB v3.0
pci4: <multimedia> at device 0.5 (no driver attached)
hdac1: <AMD (0x15e3) HDA Controller> mem 0xf06c0000-0xf06c7fff at device 0.6 on pci4
pci4: <old, non-VGA display device> at device 0.7 (no driver attached)
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_button1: <Sleep Button> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz1: <Thermal Zone> on acpi0
acpi_tz2: <Thermal Zone> on acpi0
acpi_tz3: <Thermal Zone> on acpi0
acpi_tz4: <Thermal Zone> on acpi0
acpi_tz5: <Thermal Zone> on acpi0
Firmware Error (ACPI): AE_AML_PACKAGE_LIMIT, Index (0x000000005) is beyond end of object (length 0x5) (20200110/exoparg2-569)
ACPI Error: Aborting method \134_TZ.GETP due to previous error (AE_AML_PACKAGE_LIMIT) (20200110/psparse-689)
ACPI Error: Aborting method \134_TZ.CHGZ._CRT due to previous error (AE_AML_PACKAGE_LIMIT) (20200110/psparse-689)
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]
WARNING: Device "psm" is Giant locked and may be deleted before FreeBSD 13.0.
psm0: model Synaptics Touchpad, device ID 0
acpi_tz6: <Thermal Zone> on acpi0
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Timecounters tick every 1.000 msec
Obsolete code will be removed soon: random(9) is the obsolete Park-Miller LCG from 1988
Firmware Error (ACPI): AE_AML_PACKAGE_LIMIT, Index (0x000000005) is beyond end of object (length 0x5) (20200110/exoparg2-569)
ACPI Error: Aborting method \134_TZ.GTTP due to previous error (AE_AML_PACKAGE_LIMIT) (20200110/psparse-689)
ACPI Error: Aborting method \134_TZ.CHGZ._TMP due to previous error (AE_AML_PACKAGE_LIMIT) (20200110/psparse-689)
Firmware Error (ACPI): AE_AML_PACKAGE_LIMIT, Index (0x000000005) is beyond end of object (length 0x5) (20200110/exoparg2-569)
ACPI Error: Aborting method \134_TZ.GTTP due to previous error (AE_AML_PACKAGE_LIMIT) (20200110/psparse-689)
ACPI Error: Aborting method \134_TZ.CHGZ._TMP due to previous error (AE_AML_PACKAGE_LIMIT) (20200110/psparse-689)
ugen1.1: <0x1022 XHCI root HUB> at usbus1
ugen0.1: <(0x10ec) EHCI root HUB> at usbus0
ugen2.1: <0x1022 XHCI root HUB> at usbus2
uhub0 on usbus2
uhub1 on usbus1
uhub0: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus2
uhub2 on usbus0
uhub1: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1
uhub2: <(0x10ec) EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
nvd0: <HP SSD EX920 1TB> NVMe namespace
nvd0: 976762MB (2000409264 512 byte sectors)
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
pcm1: <ATI R6xx (HDMI)> at nid 5 on hdaa0
pcm2: <ATI R6xx (HDMI)> at nid 7 on hdaa0
pcm3: <ATI R6xx (HDMI)> at nid 9 on hdaa0
hdacc1: <Realtek (0x0215) HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek (0x0215) Audio Function Group> at nid 1 on hdacc1
pcm4: <Realtek (0x0215) (Internal Analog)> at nid 20 and 18 on hdaa1
pcm5: <Realtek (0x0215) (Right Analog)> at nid 33 and 25 on hdaa1
Trying to mount root from ufs:/dev/nvd0p9 [rw]...
WARNING: WITNESS option enabled, expect reduced performance.
uhub0: 3 ports with 3 removable, self powered
uhub1: 8 ports with 8 removable, self powered
uhub2: 1 port with 1 removable, self powered
[drm] amdgpu kernel modesetting enabled.
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
[drm] initializing kernel modesetting (RAVEN 0x1002:0x15D8 0x103C:0x8589 0xD2).
[drm] register mmio base: 0xF0600000
[drm] register mmio size: 524288
[drm] add ip block number 0 <soc15_common>
[drm] add ip block number 1 <gmc_v9_0>
[drm] add ip block number 2 <vega10_ih>
[drm] add ip block number 3 <psp>
[drm] add ip block number 4 <gfx_v9_0>
[drm] add ip block number 5 <sdma_v4_0>
[drm] add ip block number 6 <powerplay>
[drm] add ip block number 7 <dm>
[drm] add ip block number 8 <vcn_v1_0>
ugen2.2: <vendor 0x05e3 USB2.0 Hub> at usbus2
uhub3 on uhub0
uhub3: <vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/60.60, addr 1> on usbus2
uhub3: MTT enabled
drmn0: successfully loaded firmware image with name: amdgpu/picasso_gpu_info.bin
ugen1.2: <RAPOO Rapoo 2.4G Wireless Device> at usbus1
ukbd0 on uhub1
ukbd0: <RAPOO Rapoo 2.4G Wireless Device, class 0/0, rev 2.00/1.10, addr 1> on usbus1
kbd2 at ukbd0
uhub3: 4 ports with 0 removable, self powered
drmn0: successfully loaded firmware image with name: amdgpu/picasso_sdma.bin
[drm] VCN decode is enabled in VM mode
[drm] VCN encode is enabled in VM mode
[drm] VCN jpeg decode is enabled in VM mode
pci_is_thunderbolt_attached not implemented -- see your local kernel hacker
ATOM BIOS: SWBRT48929.001
[drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
drmn0: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
drmn0: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
drmn0: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
Failed to add WC MTRR for [0x60000000-0xdfffffff]: -22; performance may suffer
[drm] Detected VRAM RAM=2048M, BAR=2048M
[drm] RAM width 128bits DDR4
[TTM] Zone  kernel: Available graphics memory: 7288956 kiB
[TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[TTM] Initializing pool allocator
[drm] amdgpu: 2048M of VRAM memory ready
[drm] amdgpu: 3072M of GTT memory ready.
i_size_write not implemented -- see your local kernel hacker
[drm] GART: num cpu pages 262144, num gpu pages 262144
[drm] PCIE GART of 1024M enabled (table at 0x000000F4007E9000).
get_nr_swap_pages not implemented -- see your local kernel hacker
ugen1.3: <SAMSUNG SAMSUNGAndroid> at usbus1
drmn0: successfully loaded firmware image with name: amdgpu/picasso_asd.bin
ugen2.3: <vendor 0x8087 product 0x0025> at usbus2
drmn0: successfully loaded firmware image with name: amdgpu/picasso_pfp.bin
ugen2.4: <vendor 0x06cb product 0x00b7> at usbus2
drmn0: successfully loaded firmware image with name: amdgpu/picasso_me.bin
drmn0: successfully loaded firmware image with name: amdgpu/picasso_ce.bin
drmn0: successfully loaded firmware image with name: amdgpu/picasso_rlc.bin
drmn0: successfully loaded firmware image with name: amdgpu/picasso_mec.bin
drmn0: successfully loaded firmware image with name: amdgpu/picasso_mec2.bin
sched_setscheduler not implemented -- see your local kernel hacker
i_size_write not implemented -- see your local kernel hacker
[drm] use_doorbell being set to: [true]
drmn0: successfully loaded firmware image with name: amdgpu/raven_dmcu.bin
drmn0: successfully loaded firmware image with name: amdgpu/picasso_vcn.bin
[drm] Found VCN firmware Version: 1.73 Family ID: 18
[drm] PSP loading VCN firmware
[drm] reserve 0x400000 from 0xf400b00000 for PSP TMR SIZE
pm_runtime_mark_last_busy not implemented -- see your local kernel hacker
[drm] DM_PPLIB: values for Invalid clock
[drm] DM_PPLIB:     400000 in kHz
[drm] DM_PPLIB:     933000 in kHz
[drm] DM_PPLIB:     1067000 in kHz
[drm] DM_PPLIB:     1200000 in kHz
[drm] DM_PPLIB: values for Invalid clock
[drm] DM_PPLIB:     300000 in kHz
[drm] DM_PPLIB:     600000 in kHz
[drm] DM_PPLIB:     626000 in kHz
[drm] DM_PPLIB:     654000 in kHz
[drm] Display Core initialized with v3.2.08!
[drm] Connector eDP-1: get mode from tunables:
[drm]   - kern.vt.fb.modes.eDP-1
[drm]   - kern.vt.fb.default_mode
[drm] SADs count is: -2, don't need to read it
[drm] Connector DP-1: get mode from tunables:
[drm]   - kern.vt.fb.modes.DP-1
[drm]   - kern.vt.fb.default_mode
[drm] Connector DP-2: get mode from tunables:
[drm]   - kern.vt.fb.modes.DP-2
[drm]   - kern.vt.fb.default_mode
[drm] Connector DP-3: get mode from tunables:
[drm]   - kern.vt.fb.modes.DP-3
[drm]   - kern.vt.fb.default_mode
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] Driver supports precise vblank timestamp query.
[drm] VCN decode and encode initialized successfully(under DPG Mode).
[drm] fb mappable at 0x60F00000
[drm] vram apper at 0x60000000
[drm] size 8294400
[drm] fb depth is 24
[drm]    pitch is 7680
WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 13.0.
VT: Replacing driver "efifb" with new "fb".
taskqueue_drain with the following non-sleepable locks held:
exclusive sleep mutex vtdev (vtdev) r = 0 (0xffffffff818e6320) locked @ /usr/src/sys/dev/vt/vt_core.c:2804
stack backtrace:
#0 0xffffffff80c317f1 at witness_debugger+0x71
#1 0xffffffff80c32810 at witness_warn+0x430
#2 0xffffffff80c248e9 at taskqueue_drain+0x39
#3 0xffffffff82dc15f3 at vt_kms_postswitch+0x73
#4 0xffffffff80a2b3bf at vt_fb_init+0xff
#5 0xffffffff80a3259d at vt_replace_backend+0x11d
#6 0xffffffff80a2b4c3 at vt_fb_attach+0x13
#7 0xffffffff82dc20f3 at linux_register_framebuffer+0x623
#8 0xffffffff82d9c47b at __drm_fb_helper_initial_config_and_unlock+0x31b
#9 0xffffffff82b16d2e at amdgpu_fbdev_init+0xee
#10 0xffffffff82b0d6b2 at amdgpu_device_init+0x1dc2
#11 0xffffffff82b22577 at amdgpu_driver_load_kms+0xd7
#12 0xffffffff82d8fc1e at drm_dev_register+0x17e
#13 0xffffffff82b1604a at amdgpu_pci_probe+0x18a
#14 0xffffffff82df61b5 at linux_pci_attach+0x575
#15 0xffffffff80bfec1a at device_attach+0x3ca
#16 0xffffffff80bfe7c0 at device_probe_and_attach+0x70
#17 0xffffffff80c006d8 at bus_generic_driver_added+0x68
Sleeping on "tq_drain" with the following non-sleepable locks held:
exclusive sleep mutex vtdev (vtdev) r = 0 (0xffffffff818e6320) locked @ /usr/src/sys/dev/vt/vt_core.c:2804
stack backtrace:
#0 0xffffffff80c317f1 at witness_debugger+0x71
#1 0xffffffff80c32810 at witness_warn+0x430
#2 0xffffffff80bd1588 at _sleep+0x58
#3 0xffffffff80c249ab at taskqueue_drain+0xfb
#4 0xffffffff82dc15f3 at vt_kms_postswitch+0x73
#5 0xffffffff80a2b3bf at vt_fb_init+0xff
#6 0xffffffff80a3259d at vt_replace_backend+0x11d
#7 0xffffffff80a2b4c3 at vt_fb_attach+0x13
#8 0xffffffff82dc20f3 at linux_register_framebuffer+0x623
#9 0xffffffff82d9c47b at __drm_fb_helper_initial_config_and_unlock+0x31b
#10 0xffffffff82b16d2e at amdgpu_fbdev_init+0xee
#11 0xffffffff82b0d6b2 at amdgpu_device_init+0x1dc2
#12 0xffffffff82b22577 at amdgpu_driver_load_kms+0xd7
#13 0xffffffff82d8fc1e at drm_dev_register+0x17e
#14 0xffffffff82b1604a at amdgpu_pci_probe+0x18a
#15 0xffffffff82df61b5 at linux_pci_attach+0x575
#16 0xffffffff80bfec1a at device_attach+0x3ca
#17 0xffffffff80bfe7c0 at device_probe_and_attach+0x70
pm_runtime_mark_last_busy not implemented -- see your local kernel hacker
lock order reversal: (Giant after non-sleepable)
 1st 0xffffffff818e6320 vtdev (vtdev) @ /usr/src/sys/dev/vt/vt_core.c:2804
 2nd 0xffffffff81802480 Giant (Giant) @ /usr/src/sys/kern/kern_synch.c:227
stack backtrace:
#0 0xffffffff80c317f1 at witness_debugger+0x71
#1 0xffffffff80c31566 at witness_checkorder+0xad6
#2 0xffffffff80ba4564 at __mtx_lock_flags+0x94
#3 0xffffffff80bd1896 at _sleep+0x366
#4 0xffffffff80c249ab at taskqueue_drain+0xfb
#5 0xffffffff82dc15f3 at vt_kms_postswitch+0x73
#6 0xffffffff80a2b3bf at vt_fb_init+0xff
#7 0xffffffff80a3259d at vt_replace_backend+0x11d
#8 0xffffffff80a2b4c3 at vt_fb_attach+0x13
#9 0xffffffff82dc20f3 at linux_register_framebuffer+0x623
#10 0xffffffff82d9c47b at __drm_fb_helper_initial_config_and_unlock+0x31b
#11 0xffffffff82b16d2e at amdgpu_fbdev_init+0xee
#12 0xffffffff82b0d6b2 at amdgpu_device_init+0x1dc2
#13 0xffffffff82b22577 at amdgpu_driver_load_kms+0xd7
#14 0xffffffff82d8fc1e at drm_dev_register+0x17e
#15 0xffffffff82b1604a at amdgpu_pci_probe+0x18a
#16 0xffffffff82df61b5 at linux_pci_attach+0x575
#17 0xffffffff80bfec1a at device_attach+0x3ca
start FB_INFO:
type=11 height=1080 width=1920 depth=32
cmsize=16 size=8294400
pbase=0x60f00000 vbase=0xfffff80060f00000
name=drmn0 flags=0x0 stride=7680 bpp=32
cmap[0]=0 cmap[1]=7f0000 cmap[2]=7f00 cmap[3]=c4a000
end FB_INFO
drmn0: fb0: amdgpudrmfb frame buffer device
i_size_write not implemented -- see your local kernel hacker
drmn0: ring gfx uses VM inv eng 0 on hub 0
drmn0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
drmn0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
drmn0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
drmn0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
drmn0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
drmn0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
drmn0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
drmn0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
drmn0: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
drmn0: ring sdma0 uses VM inv eng 0 on hub 1
drmn0: ring vcn_dec uses VM inv eng 1 on hub 1
drmn0: ring vcn_enc0 uses VM inv eng 4 on hub 1
drmn0: ring vcn_enc1 uses VM inv eng 5 on hub 1
drmn0: ring vcn_jpeg uses VM inv eng 6 on hub 1
[drm] Initialized amdgpu 3.27.0 20150101 for drmn0 on minor 0
lo0: link state changed to UP
ugen1.3: <SAMSUNG SAMSUNGAndroid> at usbus1 (disconnected)
ugen1.3: <SAMSUNG SAMSUNGAndroid> at usbus1
re0: link state changed to DOWN
Firmware Error (ACPI): AE_AML_PACKAGE_LIMIT, Index (0x000000005) is beyond end of object (length 0x5) (20200110/exoparg2-569)
ACPI Error: Aborting method \134_TZ.GTTP due to previous error (AE_AML_PACKAGE_LIMIT) (20200110/psparse-689)
ACPI Error: Aborting method \134_TZ.CHGZ._TMP due to previous error (AE_AML_PACKAGE_LIMIT) (20200110/psparse-689)
iwm0: <Intel(R) Dual Band Wireless AC 9260> mem 0xf0800000-0xf0803fff at device 0.0 on pci2
iwm0: hw rev 0x320, fw ver 34.3125811985.0, address d4:d2:52:72:ae:1b
intsmb0: <AMD FCH SMBus Controller> at device 20.0 on pci0
smbus0: <System Management Bus> on intsmb0
ums0 on uhub1
ums0: <RAPOO Rapoo 2.4G Wireless Device, class 0/0, rev 2.00/1.10, addr 1> on usbus1
ums0: 5 buttons and [XYZ] coordinates ID=0


and there are card0 and render128 in the /dev/dri.

i use the Xorg -configure to generate xorg.conf , it prompt that "amdgpu kms drm report modsetting isn't supported "
but i can run startx to enter x windows.

my rc.conf:
Code:
clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="Raffeale"
local_unbound_enable="YES"
moused_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"

#linux_enable="YES"
kld_list="amdgpu
gnome_enable="YES""
gdm_enable="YES"
kern_securelevel_enable="NO"
#kern_securelevel="2"
firewall_enable="YES"
firewall_type="client"
dbus_enable="YES"
hald_enable="YES"


I have already installed xfree86-video-amdgpu driver. I can find it in /usr/local/lib/xorg/modules/drivers/

I don't why I can't use the amdgpu_drv.so

How to solve the problem.
 
my Xorg.log
Code:
[    14.846] 
X.Org X Server 1.18.4
Release Date: 2016-07-19
[    14.846] X Protocol Version 11, Revision 0
[    14.846] Build Operating System: FreeBSD 13.0-CURRENT amd64 
[    14.846] Current Operating System: FreeBSD Raffeale 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r357002: Thu Jan 23 04:35:00 UTC 2020     [email]root@releng1.nyi.freebsd.org[/email]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
[    14.846] Build Date: 26 January 2020  02:37:52AM
[    14.846]  
[    14.846] Current version of pixman: 0.38.4
[    14.846]     Before reporting problems, check [URL]http://wiki.x.org[/URL]
    to make sure that you have the latest version.
[    14.846] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    14.846] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 30 14:15:33 2020
[    14.848] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[    14.849] (==) No Layout section.  Using the first Screen section.
[    14.849] (==) No screen section available. Using defaults.
[    14.849] (**) |-->Screen "Default Screen Section" (0)
[    14.849] (**) |   |-->Monitor "<default monitor>"
[    14.849] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[    14.849] (==) Automatically adding devices
[    14.849] (==) Automatically enabling devices
[    14.849] (==) Not automatically adding GPU devices
[    14.849] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    14.852] (==) FontPath set to:
    /usr/local/share/fonts/misc/,
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    /usr/local/share/fonts/Type1/,
    /usr/local/share/fonts/100dpi/,
    /usr/local/share/fonts/75dpi/,
    catalogue:/usr/local/etc/X11/fontpath.d
[    14.852] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[    14.852] (II) The server relies on devd to provide the list of input devices.
    If no devices become available, reconfigure devd or disable AutoAddDevices.
[    14.853] (II) Loader magic: 0x42b010
[    14.853] (II) Module ABI versions:
[    14.853]     X.Org ANSI C Emulation: 0.4
[    14.853]     X.Org Video Driver: 20.0
[    14.853]     X.Org XInput driver : 22.1
[    14.853]     X.Org Server Extension : 9.0
[    14.853] (--) PCI:*(0:4:0:0) 1002:15d8:103c:8589 rev 210, Mem @ 0xe0000000/268435456, 0xf0000000/2097152, 0xf0600000/524288, I/O @ 0x00002000/256, BIOS @ 0x????????/65536
[    14.853] (II) LoadModule: "glx"
[    14.854] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    14.862] (II) Module glx: vendor="X.Org Foundation"
[    14.862]     compiled for 1.18.4, module version = 1.0.0
[    14.862]     ABI class: X.Org Server Extension, version 9.0
[    14.862] (==) AIGLX enabled
[    14.863] (==) Matched ati as autoconfigured driver 0
[    14.863] (==) Matched modesetting as autoconfigured driver 1
[    14.863] (==) Matched scfb as autoconfigured driver 2
[    14.863] (==) Matched vesa as autoconfigured driver 3
[    14.863] (==) Assigned the driver to the xf86ConfigLayout
[    14.863] (II) LoadModule: "ati"
[    14.864] (WW) Warning, couldn't open module ati
[    14.864] (II) UnloadModule: "ati"
[    14.864] (II) Unloading ati
[    14.864] (EE) Failed to load module "ati" (module does not exist, 0)
[    14.864] (II) LoadModule: "modesetting"
[    14.864] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[    14.865] (II) Module modesetting: vendor="X.Org Foundation"
[    14.865]     compiled for 1.18.4, module version = 1.18.4
[    14.865]     Module class: X.Org Video Driver
[    14.865]     ABI class: X.Org Video Driver, version 20.0
[    14.865] (II) LoadModule: "scfb"
[    14.865] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[    14.865] (II) Module scfb: vendor="X.Org Foundation"
[    14.865]     compiled for 1.18.4, module version = 0.0.4
[    14.865]     ABI class: X.Org Video Driver, version 20.0
[    14.865] (II) LoadModule: "vesa"
[    14.865] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[    14.866] (II) Module vesa: vendor="X.Org Foundation"
[    14.866]     compiled for 1.18.4, module version = 2.4.0
[    14.866]     Module class: X.Org Video Driver
[    14.866]     ABI class: X.Org Video Driver, version 20.0
[    14.866] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    14.866] (II) scfb: driver for wsdisplay framebuffer: scfb
[    14.866] (II) VESA: driver for VESA chipsets: vesa
[    14.866] (--) Using syscons driver with X support (version 2.0)
[    14.866] (++) using VT number 9

[    14.921] (**) modeset(0): claimed PCI slot 4@0:0:0
[    14.921] (II) modeset(0): using default device
[    14.921] (WW) Falling back to old probe method for scfb
[    14.921] scfb trace: probe start
[    14.921] scfb trace: probe done
[    14.921] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    14.922] (II) modeset(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[    14.922] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    14.922] (==) modeset(0): RGB weight 888
[    14.922] (==) modeset(0): Default visual is TrueColor
[    14.922] (II) Loading sub module "glamoregl"
[    14.922] (II) LoadModule: "glamoregl"
[    14.922] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
[    14.937] (II) Module glamoregl: vendor="X.Org Foundation"
[    14.937]     compiled for 1.18.4, module version = 1.0.0
[    14.937]     ABI class: X.Org ANSI C Emulation, version 0.4
[    14.937] (II) glamor: OpenGL accelerated X.org driver based.
[    15.247] (II) glamor: EGL version 1.5:
[    15.259] (II) modeset(0): glamor initialized
[    15.260] (II) modeset(0): Output eDP-1 has no monitor section
[    15.260] (II) modeset(0): Output DP-1 has no monitor section
[    15.260] (II) modeset(0): Output DP-2 has no monitor section
[    15.260] (II) modeset(0): Output DP-3 has no monitor section
[    15.261] (II) modeset(0): EDID for output eDP-1
[    15.261] (II) modeset(0): Manufacturer: AUO  Model: 5d2d  Serial#: 0
[    15.261] (II) modeset(0): Year: 2018  Week: 0
[    15.261] (II) modeset(0): EDID Version: 1.4
[    15.261] (II) modeset(0): Digital Display Input
[    15.261] (II) modeset(0): 8 bits per channel
[    15.261] (II) modeset(0): Digital interface is DisplayPort
[    15.261] (II) modeset(0): Max Image Size [cm]: horiz.: 29  vert.: 17
[    15.261] (II) modeset(0): Gamma: 2.20
[    15.261] (II) modeset(0): No DPMS capabilities specified
[    15.261] (II) modeset(0): Supported color encodings: RGB 4:4:4 
[    15.261] (II) modeset(0): First detailed timing is preferred mode
[    15.261] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[    15.261] (II) modeset(0): Display is continuous-frequency
[    15.261] (II) modeset(0): redX: 0.645 redY: 0.330   greenX: 0.292 greenY: 0.607
[    15.261] (II) modeset(0): blueX: 0.154 blueY: 0.057   whiteX: 0.313 whiteY: 0.329
[    15.261] (II) modeset(0): Manufacturer's mask: 0
[    15.261] (II) modeset(0): Supported detailed timing:
[    15.261] (II) modeset(0): clock: 142.6 MHz   Image Size:  293 x 165 mm
[    15.261] (II) modeset(0): h_active: 1920  h_sync: 1978  h_sync_end 2020 h_blank_end 2080 h_border: 0
[    15.261] (II) modeset(0): v_active: 1080  v_sync: 1083  v_sync_end 1088 v_blanking: 1142 v_border: 0
[    15.261] (II) modeset(0): Supported detailed timing:
[    15.261] (II) modeset(0): clock: 95.1 MHz   Image Size:  293 x 165 mm
[    15.261] (II) modeset(0): h_active: 1920  h_sync: 1978  h_sync_end 2020 h_blank_end 2080 h_border: 0
[    15.261] (II) modeset(0): v_active: 1080  v_sync: 1083  v_sync_end 1088 v_blanking: 1142 v_border: 0
[    15.261] (II) modeset(0): Unknown vendor-specific block 2
[    15.261] (II) modeset(0): EDID (in hex):
[    15.261] (II) modeset(0):     00ffffffffffff0006af2d5d00000000
[    15.261] (II) modeset(0):     001c0104a51d1178032ea5a5544a9b27
[    15.261] (II) modeset(0):     0e505400000001010101010101010101
[    15.261] (II) modeset(0):     010101010101b43780a070383e403a2a
[    15.261] (II) modeset(0):     350025a510000018232580a070383e40
[    15.261] (II) modeset(0):     3a2a350025a510000018000000000000
[    15.261] (II) modeset(0):     00000000000000000000000000000002
[    15.261] (II) modeset(0):     001430ff123cc8320614c8202020001a
[    15.261] (II) modeset(0): Printing probed modes for output eDP-1
[    15.261] (II) modeset(0): Modeline "1920x1080"x60.0  142.60  1920 1978 2020 2080  1080 1083 1088 1142 -hsync -vsync (68.6 kHz eP)
[    15.261] (II) modeset(0): Modeline "1920x1080"x40.0   95.07  1920 1978 2020 2080  1080 1083 1088 1142 -hsync -vsync (45.7 kHz e)
[    15.261] (II) modeset(0): Modeline "1680x1050"x60.0  142.60  1680 1978 2020 2080  1050 1083 1088 1142 -hsync -vsync (68.6 kHz e)
[    15.261] (II) modeset(0): Modeline "1280x1024"x60.0  142.60  1280 1978 2020 2080  1024 1083 1088 1142 -hsync -vsync (68.6 kHz e)
[    15.261] (II) modeset(0): Modeline "1440x900"x60.0  142.60  1440 1978 2020 2080  900 1083 1088 1142 -hsync -vsync (68.6 kHz e)
[    15.261] (II) modeset(0): Modeline "1280x800"x60.0  142.60  1280 1978 2020 2080  800 1083 1088 1142 -hsync -vsync (68.6 kHz e)
[    15.261] (II) modeset(0): Modeline "1280x720"x60.0  142.60  1280 1978 2020 2080  720 1083 1088 1142 -hsync -vsync (68.6 kHz e)
[    15.261] (II) modeset(0): Modeline "1024x768"x60.0  142.60  1024 1978 2020 2080  768 1083 1088 1142 -hsync -vsync (68.6 kHz e)
[    15.261] (II) modeset(0): Modeline "800x600"x60.0  142.60  800 1978 2020 2080  600 1083 1088 1142 -hsync -vsync (68.6 kHz e)
[    15.261] (II) modeset(0): Modeline "640x480"x60.0  142.60  640 1978 2020 2080  480 1083 1088 1142 -hsync -vsync (68.6 kHz e)
[    15.261] (II) modeset(0): EDID for output DP-1
[    15.261] (II) modeset(0): EDID for output DP-2
[    15.261] (II) modeset(0): EDID for output DP-3
[    15.261] (II) modeset(0): Output eDP-1 connected
[    15.261] (II) modeset(0): Output DP-1 disconnected
[    15.261] (II) modeset(0): Output DP-2 disconnected
[    15.261] (II) modeset(0): Output DP-3 disconnected
[    15.261] (II) modeset(0): Using exact sizes for initial modes
[    15.261] (II) modeset(0): Output eDP-1 using initial mode 1920x1080 +0+0
[    15.261] (II) modeset(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[    15.261] (==) modeset(0): DPI set to (96, 96)
[    15.261] (II) Loading sub module "fb"
[    15.261] (II) LoadModule: "fb"
[    15.262] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[    15.263] (II) Module fb: vendor="X.Org Foundation"
[    15.263]     compiled for 1.18.4, module version = 1.0.0
[    15.263]     ABI class: X.Org ANSI C Emulation, version 0.4
[    15.263] (II) UnloadModule: "scfb"
[    15.263] (II) Unloading scfb
[    15.263] (II) UnloadModule: "vesa"
[    15.263] (II) Unloading vesa
[    15.263] (==) Depth 24 pixmap format is 32 bpp
[    15.273] (==) modeset(0): Backing store enabled
[    15.273] (==) modeset(0): Silken mouse enabled
[    15.273] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    15.275] (==) modeset(0): DPMS enabled
[    15.275] (EE) modeset(0): [DRI2] No driver mapping found for PCI device 0x1002 / 0x15d8
[    15.275] (EE) modeset(0): Failed to initialize the DRI2 extension.
[    15.304] (--) RandR disabled
[    15.319] (II) AIGLX: Screen 0 is not DRI2 capable
[    15.319] (EE) AIGLX: reverting to software rendering
[    15.323] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[    15.323] (II) AIGLX: Loaded and initialized swrast
[    15.323] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    15.386] (II) modeset(0): Setting screen physical size to 508 x 285
[    15.492] (II) config/devd: probing input devices...
[    15.492] (II) config/devd: adding input device (null) (/dev/kbdmux)
[    15.492] (II) LoadModule: "kbd"
[    15.492] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[    15.493] (II) Module kbd: vendor="X.Org Foundation"
[    15.493]     compiled for 1.18.4, module version = 1.9.0
[    15.493]     Module class: X.Org XInput Driver
[    15.493]     ABI class: X.Org XInput driver, version 22.1
[    15.493] (II) Using input driver 'kbd' for 'kbdmux'
[    15.493] (**) kbdmux: always reports core events
[    15.493] (**) kbdmux: always reports core events
[    15.493] (**) Option "Protocol" "standard"
[    15.493] (**) Option "XkbRules" "base"
[    15.493] (**) Option "XkbModel" "pc105"
[    15.493] (**) Option "XkbLayout" "us"
[    15.493] (**) Option "config_info" "devd:kbdmux"
[    15.493] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[    15.508] (II) config/devd: kbdmux is enabled, ignoring device ukbd0
[    15.508] (II) config/devd: kbdmux is enabled, ignoring device atkbd0
[    15.509] (II) config/devd: adding input device (null) (/dev/sysmouse)
[    15.509] (II) LoadModule: "mouse"
[    15.509] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[    15.509] (II) Module mouse: vendor="X.Org Foundation"
[    15.509]     compiled for 1.18.4, module version = 1.9.3
[    15.510]     Module class: X.Org XInput Driver
[    15.510]     ABI class: X.Org XInput driver, version 22.1
[    15.510] (II) Using input driver 'mouse' for 'sysmouse'
[    15.510] (**) sysmouse: always reports core events
[    15.510] (**) Option "Device" "/dev/sysmouse"
[    15.510] (==) sysmouse: Protocol: "Auto"
[    15.510] (**) sysmouse: always reports core events
[    15.510] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[    15.510] (**) sysmouse: ZAxisMapping: buttons 4 and 5
[    15.510] (**) sysmouse: Buttons: 5
[    15.510] (**) Option "config_info" "devd:sysmouse"
[    15.510] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[    15.510] (**) sysmouse: (accel) keeping acceleration scheme 1
[    15.510] (**) sysmouse: (accel) acceleration profile 0
[    15.510] (**) sysmouse: (accel) acceleration factor: 2.000
[    15.510] (**) sysmouse: (accel) acceleration threshold: 4
[    15.510] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[    15.510] (II) sysmouse: SetupAuto: protocol is SysMouse
[    15.510] (II) config/devd: device /dev/ums0 already opened
[    15.510] (II) config/devd: device /dev/psm0 already opened
[    17.079] (II) modeset(0): EDID vendor "AUO", prod id 23853
[    17.079] (II) modeset(0): Printing DDC gathered Modelines:
[    17.079] (II) modeset(0): Modeline "1920x1080"x0.0  142.60  1920 1978 2020 2080  1080 1083 1088 1142 -hsync -vsync (68.6 kHz eP)
[    17.079] (II) modeset(0): Modeline "1920x1080"x0.0   95.07  1920 1978 2020 2080  1080 1083 1088 1142 -hsync -vsync (45.7 kHz e)
[    19.019] (II) modeset(0): EDID vendor "AUO", prod id 23853
[    19.019] (II) modeset(0): Printing DDC gathered Modelines:
[    19.019] (II) modeset(0): Modeline "1920x1080"x0.0  142.60  1920 1978 2020 2080  1080 1083 1088 1142 -hsync -vsync (68.6 kHz eP)
[    19.019] (II) modeset(0): Modeline "1920x1080"x0.0   95.07  1920 1978 2020 2080  1080 1083 1088 1142 -hsync -vsync (45.7 kHz e)
[    32.201] (II) modeset(0): EDID vendor "AUO", prod id 23853
[    32.201] (II) modeset(0): Printing DDC gathered Modelines:
[    32.201] (II) modeset(0): Modeline "1920x1080"x0.0  142.60  1920 1978 2020 2080  1080 1083 1088 1142 -hsync -vsync (68.6 kHz eP)
[    32.201] (II) modeset(0): Modeline "1920x1080"x0.0   95.07  1920 1978 2020 2080  1080 1083 1088 1142 -hsync -vsync (45.7 kHz e)
[  1524.915] (II) modeset(0): EDID vendor "AUO", prod id 23853
[  1524.915] (II) modeset(0): Printing DDC gathered Modelines:
[  1524.915] (II) modeset(0): Modeline "1920x1080"x0.0  142.60  1920 1978 2020 2080  1080 1083 1088 1142 -hsync -vsync (68.6 kHz eP)
[  1524.915] (II) modeset(0): Modeline "1920x1080"x0.0   95.07  1920 1978 2020 2080  1080 1083 1088 1142 -hsync -vsync (45.7 kHz e)
 
Digging up an old post here, I'm aware of the consequences... I put my flame suit on, just in case.
This is for posterity, in case another Google pilgrim ends up here.

You're doing a few things wrong.
Your computer has a AMD Ryzen CPU with integrated graphics / GPU, a Ryzen 3xxxG series. FreeBSD 13.0-CURRENT supports this APU's GPU, FreeBSD 11.x / 12.x do not. I have a dev box with a Ryzen 3400G; I have the experience, I'm using it right now.
Remove the package "xfree86-video-amdgpu", you do not need it, is old & is legacy.

You list in your /etc/rc.conf :
#linux_enable="YES"
kld_list="amdgpu
gnome_enable="YES""

The problem is the line: kld_list="amdgpu
It is missing the trailing " , which is a typo that I think ended up with your entry of ' gnome_enable="YES"" '
Correct it with: kld_list="amdgpu"
If you need the linux kernel module, use instead: kld_list="amdgpu linux"
If you need more kernel modules, add them to the kld_list ^^^, thus kld_list="amdgpu linux module1 module2 module3" etc

If you use FreeBSD 13.0-CURRENT, the port(s) you need to install for accelerated GPU, is /usr/ports/graphics/drm-current-kmod & /usr/ports/graphics/gpu-firmware-kmod (<---the gpu-firmware-kmod is automatically built & installed when building drm-current-kmod). You will *need* the kernel sources for the method.
You can take the binary pkg route as well, simply: pkg install drm-curren-kmod (and pkg install gpu-firmware-kmod if it hadn't done so automatically)

There is absolutely *no* need to create your own xorg.conf . Don't bother with Xorg -configure, when launching X, it auto-configures on the fly. Once the DRM ports are installed, they just work immediately.
The pciids for this APU has been around since mid-2019. You may wish to install /usr/ports/misc/pciids/

The kernel modules for amdgpu (amdgpu.ko and Intel i915kms.ko, and related hardware specific extra firmware bits) are located in /boot/modules/ , which is why you can't find in /usr/local/lib/xorg/modules/drivers/

Bonus round: remove " powerd_enable="YES" " from your /etc/rc.conf and instead install /usr/ports/sysutils/powerdxx and add " powerdxx_enable="YES" " to your /etc/rc.conf .
I only use xf86-input-evdev & xf86-input-libinput from the xorg-drivers selection... I even use a very similar RAPOO keyboard too :)
 
12.2 support it,I have already installed the drivers and make a tut for everyone.
 
Back
Top