FreeBSDDesktop / DEPRECATED-freebsd-base-graphics

Fork of FreeBSD's base repository to work on graphics-stack-related projects
Other
49 stars 13 forks source link

RX480 regression #158

Open gldisater opened 7 years ago

gldisater commented 7 years ago

Previously (late may) amdgpu would load and would have frequent flickers and errors reported in console, now kldload amdgpu reports it failed to all of the polaris10 firmware files and then the kernel panics 30seconds later.

markjdb commented 7 years ago

Please show the kernel panic message and backtrace.

gldisater commented 7 years ago

https://flic.kr/p/WJGrPB

markjdb commented 7 years ago

Thanks. I pushed a change to drm-next which I think will address this - could you give it a try?

gldisater commented 7 years ago

That fixed the panic https://flic.kr/p/WJJ2HX

markjdb commented 7 years ago

So the attach is still failing? Please show the full dmesg.

gldisater commented 7 years ago

$ dmesg 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 12.0-CURRENT #11 71830e622af(drm-next): Fri Jul 14 19:28:19 EDT 2017 gldisater@current:/usr/obj/usr/src-fbsd-base-graphics/sys/GENERIC_DRM amd64 FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0) WARNING: WITNESS option enabled, expect reduced performance. VT(efifb): resolution 1920x1080 CPU: AMD Ryzen 7 1700 Eight-Core Processor (2994.44-MHz K8-class CPU) Origin="AuthenticAMD" Id=0x800f11 Family=0x17 Model=0x1 Stepping=1 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=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> AMD Features2=0x35c233ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX> Structured Extended Features=0x209c01a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA> XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES> SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768 TSC: P-state invariant, performance statistics real memory = 17179869184 (16384 MB) avail memory = 16536436736 (15770 MB) Event timer "LAPIC" quality 100 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs FreeBSD/SMP: 1 package(s) x 8 core(s) x 2 hardware threads random: unblocking device. ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has valid Length but zero Address: 0x0000000000000000/0x1 (20170531/tbfadt-796) ioapic0: Changing APIC ID to 17 ioapic1: Changing APIC ID to 18 ioapic0 <Version 2.1> irqs 0-23 on motherboard ioapic1 <Version 2.1> irqs 24-55 on motherboard random: entropy device external interface [ath_hal] loaded kbd1 at kbdmux0 netmap: loaded module module_register_init: MOD_LOAD (vesa, 0xffffffff80c02630, 0) error 19 random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" nexus0 cryptosoft0: on motherboard acpi0: on motherboard ACPI Error: Needed [Integer/String/Buffer], found [Region] 0xfffff800049cc180 (20170531/exresop-549) ACPI Exception: AE_AML_OPERAND_TYPE, Could not execute arguments for [IOB2] (Region) (20170531/nsinit-549) acpi0: Power Button (fixed) cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 cpu4: on acpi0 cpu5: on acpi0 cpu6: on acpi0 cpu7: on acpi0 cpu8: on acpi0 cpu9: on acpi0 cpu10: on acpi0 cpu11: on acpi0 cpu12: on acpi0 cpu13: on acpi0 cpu14: on acpi0 cpu15: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 hpet0: 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 0x808-0x80b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached) pcib1: at device 1.3 on pci0 pci1: on pcib1 xhci0: <XHCI (generic) USB 3.0 controller> mem 0xfe7a0000-0xfe7a7fff irq 32 at device 0.0 on pci1 xhci0: 32 bytes context size, 64-bit DMA usbus0 on xhci0 ahci0: mem 0xfe780000-0xfe79ffff irq 33 at device 0.1 on pci1 ahci0: AHCI v1.31 with 8 6Gbps ports, Port Multiplier supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ahcich4: at channel 4 on ahci0 ahcich5: at channel 5 on ahci0 pcib2: irq 34 at device 0.2 on pci1 pci2: on pcib2 pcib3: irq 32 at device 0.0 on pci2 pci3: on pcib3 re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xf000-0xf0ff mem 0xfe604000-0xfe604fff,0xfe600000-0xfe603fff irq 32 at device 0.0 on pci3 re0: Using 1 MSI-X message re0: Chip rev. 0x54000000 re0: MAC rev. 0x00100000 miibus0: 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: 88:d7:f6:7d:ea:68 re0: netmap queues/slots: TX 1/256, RX 1/256 pcib4: irq 33 at device 1.0 on pci2 pci4: on pcib4 pcib5: irq 33 at device 0.0 on pci4 pci5: on pcib5 pcib6: irq 32 at device 4.0 on pci2 pci6: on pcib6 pcib7: at device 3.1 on pci0 pci7: on pcib7 vgapci0: port 0xe000-0xe0ff mem 0xe0000000-0xefffffff,0xf0000000-0xf01fffff,0xfe900000-0xfe93ffff irq 54 at device 0.0 on pci7 vgapci0: Boot video device hdac0: <ATI (0xaaf0) HDA Controller> mem 0xfe960000-0xfe963fff irq 55 at device 0.1 on pci7 pcib8: at device 7.1 on pci0 pci8: on pcib8 pci8: at device 0.0 (no driver attached) pci8: <encrypt/decrypt> at device 0.2 (no driver attached) xhci1: <XHCI (generic) USB 3.0 controller> mem 0xfe300000-0xfe3fffff irq 37 at device 0.3 on pci8 xhci1: 64 bytes context size, 64-bit DMA usbus1 on xhci1 pcib9: at device 8.1 on pci0 pci9: on pcib9 pci9: at device 0.0 (no driver attached) ahci1: mem 0xfe808000-0xfe808fff irq 42 at device 0.2 on pci9 ahci1: AHCI v1.31 with 1 6Gbps ports, Port Multiplier supported with FBS ahcich10: at channel 2 on ahci1 hdac1: <AMD (0x1457) HDA Controller> mem 0xfe800000-0xfe807fff irq 43 at device 0.3 on pci9 isab0: at device 20.3 on pci0 isa0: on isab0 acpi_button0: on acpi0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: 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 ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec hdacc0: at cad 0 on hdac0 usbus0: 5.0Gbps Super Speed USB v3.0 usbus1: 5.0Gbps Super Speed USB v3.0 hdaa0: 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 pcm4: <ATI R6xx (HDMI)> at nid 11 on hdaa0 pcm5: <ATI R6xx (HDMI)> at nid 13 on hdaa0 hdacc1: at cad 0 on hdac1 hdaa1: at nid 1 on hdacc1 pcm6: <Realtek ALC887 (Rear Analog)> at nid 20 and 24,26 on hdaa1 pcm7: <Realtek ALC887 (Front Analog)> at nid 27 and 25 on hdaa1 pcm8: <Realtek ALC887 (Internal Digital)> at nid 17 on hdaa1 ugen0.1: <0x1022 XHCI root HUB> at usbus0 uhub0: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 ugen1.1: <0x1022 XHCI root HUB> at usbus1 uhub1: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: <OCZ INTREPID 3700 1.5.1.0A> ACS-2 ATA SATA 3.x device ada0: Serial Number A22IN061525000098 ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 457862MB (937703088 512 byte sectors) ada1 at ahcich10 bus 0 scbus4 target 0 lun 0 ada1: ACS-2 ATA SATA 3.x device ada1: Serial Number 14300CCE3B0F ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 228936MB (468862128 512 byte sectors) ada1: quirks=0x2 SMP: AP CPU #15 Launched! SMP: AP CPU #13 Launched! SMP: AP CPU #14 Launched! SMP: AP CPU #11 Launched! SMP: AP CPU #6 Launched! SMP: AP CPU #5 Launched! SMP: AP CPU #1 Launched! SMP: AP CPU #9 Launched! SMP: AP CPU #7 Launched! SMP: AP CPU #12 Launched! SMP: AP CPU #8 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #3 Launched! SMP: AP CPU #4 Launched! SMP: AP CPU #10 Launched! Timecounter "TSC-low" frequency 1497221925 Hz quality 1000 WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from zfs:zroot/ROOT/drm-next []... Root mount waiting for: usbus1 usbus0 uhub1: 8 ports with 8 removable, self powered uhub0: 22 ports with 22 removable, self powered ugen1.2: at usbus1 ugen0.2: at usbus0 ukbd0 on uhub0 ukbd0: <Logitech G500, class 0/0, rev 2.00/58.02, addr 1> on usbus0 kbd2 at ukbd0 Root mount waiting for: usbus0 ugen0.3: <Microsoft Natural Ergonomic Keyboard 4000> at usbus0 ukbd1 on uhub0 ukbd1: <Microsoft Natural Ergonomic Keyboard 4000, class 0/0, rev 2.00/1.73, addr 2> on usbus0 kbd3 at ukbd1 re0: link state changed to DOWN re0: link state changed to UP ums1 on uhub0 ums1: <Logitech G500, class 0/0, rev 2.00/58.02, addr 1> on usbus0 uhid0 on uhub1 uhid0: <SADES Electronics Inc. SADES Hammer, class 0/0, rev 1.10/1.00, addr 1> on usbus1 ums1: 16 buttons and [XYZT] coordinates ID=0 uhid1 on uhub0 uhid1: <Microsoft Natural Ergonomic Keyboard 4000, class 0/0, rev 2.00/1.73, addr 2> on usbus0 [drm] Initialized [drm] amdgpu kernel modesetting enabled. [drm:drm_pci_init] drmn0: on vgapci0 [drm:drm_get_pci_dev] vgapci0: child drmn0 requested pci_enable_io vgapci0: child drmn0 requested pci_enable_io [drm:drm_minor_register] [drm:drm_minor_register] new minor registered 64 [drm:drm_minor_register] [drm:drm_minor_register] new minor registered 128 [drm:drm_minor_register] [drm:drm_minor_register] new minor registered 0 [drm] initializing kernel modesetting (POLARIS10 0x1002:0x67DF 0x0000:0x0000 0xC7). [drm] register mmio base: 0xFE900000 [drm] register mmio size: 262144 [drm] doorbell mmio base: 0xF0000000 [drm] doorbell mmio size: 2097152 [drm] probing gen 2 caps for device 1002:67df = 440903/e [drm] probing mlw for device 1002:67df = 440903 [drm] UVD is enabled in VM mode [drm] VCE enabled in VM mode [drm:amdgpu_get_bios] ATOMBIOS detected ATOM BIOS: 67DFHB.15.50.0.0.AS20 [drm:amdgpu_atom_allocate_fb_scratch] atom firmware requested 007fffe0 32kb [drm] GPU post is not needed [drm:gmc_v8_0_init_microcode] amdgpu/polaris10_mc.bin: could not load firmware image, error 2 amdgpu/polaris10_mc.bin: could not load firmware image, error 2 Zone kernel: Available graphics memory: 8342008 kiB Zone dma32: Available graphics memory: 2097152 kiB [TTM] Initializing pool allocator drmn0: VRAM: 8192M 0x0000000000000000 - 0x00000001FFFFFFFF (8192M used) drmn0: GTT: 8146M 0x0000000200000000 - 0x00000003FD27DFFF [drm] Detected VRAM RAM=8192M, BAR=256M [drm] RAM width 256bits GDDR5 [drm] amdgpu: 8192M of VRAM memory ready [drm] amdgpu: 8146M of GTT memory ready. [drm] GART: num cpu pages 2085502, num gpu pages 2085502 [drm] PCIE GART of 8146M enabled (table at 0x0000000000040000). [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] Driver supports precise vblank timestamp query. [drm:drm_irq_install] irq=54 [drm] amdgpu: irq initialized. Can't find requested voltage id in vdd_dep_on_sclk table! amdgpu: powerplay initialized [drm] Connector DP-1: get mode from tunables: [drm] - kern.vt.fb.modes.DP-1 [drm] - kern.vt.fb.default_mode [drm:drm_sysfs_connector_add] adding "DP-1" to sysfs [drm:drm_dp_aux_register_devnode] drm_dp_aux_dev: aux [(null)] registered as minor 0 [drm] Connector DP-2: get mode from tunables: [drm] - kern.vt.fb.modes.DP-2 [drm] - kern.vt.fb.default_mode [drm:drm_sysfs_connector_add] adding "DP-2" to sysfs [drm:drm_dp_aux_register_devnode] drm_dp_aux_dev: aux [(null)] registered as minor 1 [drm] Connector HDMI-A-1: get mode from tunables: [drm] - kern.vt.fb.modes.HDMI-A-1 [drm] - kern.vt.fb.default_mode [drm:drm_sysfs_connector_add] adding "HDMI-A-1" to sysfs [drm] Connector HDMI-A-2: get mode from tunables: [drm] - kern.vt.fb.modes.HDMI-A-2 [drm] - kern.vt.fb.default_mode [drm:drm_sysfs_connector_add] adding "HDMI-A-2" to sysfs [drm] Connector DVI-D-1: get mode from tunables: [drm] - kern.vt.fb.modes.DVI-D-1 [drm] - kern.vt.fb.default_mode [drm:drm_sysfs_connector_add] adding "DVI-D-1" to sysfs [drm] AMDGPU Display Connectors [drm] Connector 0: [drm] DP-1 [drm] HPD1 [drm] DDC: 0x486c 0x486c 0x486d 0x486d 0x486e 0x486e 0x486f 0x486f [drm] Encoders: [drm] DFP1: INTERNAL_UNIPHY1 [drm] Connector 1: [drm] DP-2 [drm] HPD5 [drm] DDC: 0x4874 0x4874 0x4875 0x4875 0x4876 0x4876 0x4877 0x4877 [drm] Encoders: [drm] DFP2: INTERNAL_UNIPHY1 [drm] Connector 2: [drm] HDMI-A-1 [drm] HPD6 [drm] DDC: 0x4868 0x4868 0x4869 0x4869 0x486a 0x486a 0x486b 0x486b [drm] Encoders: [drm] DFP3: INTERNAL_UNIPHY2 [drm] Connector 3: [drm] HDMI-A-2 [drm] HPD4 [drm] DDC: 0x4870 0x4870 0x4871 0x4871 0x4872 0x4872 0x4873 0x4873 [drm] Encoders: [drm] DFP4: INTERNAL_UNIPHY2 [drm] Connector 4: [drm] DVI-D-1 [drm] HPD3 [drm] DDC: 0x487c 0x487c 0x487d 0x487d 0x487e 0x487e 0x487f 0x487f [drm] Encoders: [drm] DFP5: INTERNAL_UNIPHY [drm:gfx_v8_0_init_microcode] amdgpu/polaris10_pfp.bin: could not load firmware image, error 2 amdgpu/polaris10_pfp.bin: could not load firmware image, error 2 amdgpu/polaris10_me.bin: could not load firmware image, error 2 amdgpu/polaris10_me.bin: could not load firmware image, error 2 amdgpu/polaris10_ce.bin: could not load firmware image, error 2 amdgpu/polaris10_ce.bin: could not load firmware image, error 2 amdgpu/polaris10_rlc.bin: could not load firmware image, error 2 amdgpu/polaris10_rlc.bin: could not load firmware image, error 2 amdgpu/polaris10_mec.bin: could not load firmware image, error 2 amdgpu/polaris10_mec.bin: could not load firmware image, error 2 amdgpu/polaris10_mec2.bin: could not load firmware image, error 2 amdgpu/polaris10_mec2.bin: could not load firmware image, error 2 drmn0: fence driver on ring 0 use gpu addr 0x0000000200000008, cpu addr 0x0xfffff80058e1c008 drmn0: fence driver on ring 1 use gpu addr 0x0000000200000018, cpu addr 0x0xfffff80058e1c018 drmn0: fence driver on ring 2 use gpu addr 0x0000000200000028, cpu addr 0x0xfffff80058e1c028 drmn0: fence driver on ring 3 use gpu addr 0x0000000200000038, cpu addr 0x0xfffff80058e1c038 drmn0: fence driver on ring 4 use gpu addr 0x0000000200000048, cpu addr 0x0xfffff80058e1c048 drmn0: fence driver on ring 5 use gpu addr 0x0000000200000058, cpu addr 0x0xfffff80058e1c058 drmn0: fence driver on ring 6 use gpu addr 0x0000000200000068, cpu addr 0x0xfffff80058e1c068 drmn0: fence driver on ring 7 use gpu addr 0x0000000200000078, cpu addr 0x0xfffff80058e1c078 drmn0: fence driver on ring 8 use gpu addr 0x0000000200000088, cpu addr 0x0xfffff80058e1c088 [drm:sdma_v3_0_init_microcode] amdgpu/polaris10_sdma.bin: could not load firmware image, error 2 amdgpu/polaris10_sdma.bin: could not load firmware image, error 2 amdgpu/polaris10_sdma1.bin: could not load firmware image, error 2 amdgpu/polaris10_sdma1.bin: could not load firmware image, error 2 drmn0: fence driver on ring 9 use gpu addr 0x0000000200000098, cpu addr 0x0xfffff80058e1c098 drmn0: fence driver on ring 10 use gpu addr 0x00000002000000a8, cpu addr 0x0xfffff80058e1c0a8 amdgpu/polaris10_uvd.bin: could not load firmware image, error 2 amdgpu/polaris10_uvd.bin: could not load firmware image, error 2 [drm] Found UVD firmware Version: 1.69 Family ID: 16 drmn0: fence driver on ring 11 use gpu addr 0x0000000001086140, cpu addr 0x0xfffff800e1086140 amdgpu/polaris10_vce.bin: could not load firmware image, error 2 amdgpu/polaris10_vce.bin: could not load firmware image, error 2 [drm] Found VCE firmware Version: 52.4 Binary ID: 3 drmn0: fence driver on ring 12 use gpu addr 0x00000002000000c8, cpu addr 0x0xfffff80058e1c0c8 drmn0: fence driver on ring 13 use gpu addr 0x00000002000000d8, cpu addr 0x0xfffff80058e1c0d8 amdgpu/polaris10_smc.bin: could not load firmware image, error 2 amdgpu/polaris10_smc.bin: could not load firmware image, error 2 [drm:amdgpu_ucode_print_smc_hdr] SMC [drm:amdgpu_ucode_print_common_hdr] size_bytes: 130052 [drm:amdgpu_ucode_print_common_hdr] header_size_bytes: 36 [drm:amdgpu_ucode_print_common_hdr] header_version_major: 1 [drm:amdgpu_ucode_print_common_hdr] header_version_minor: 0 [drm:amdgpu_ucode_print_common_hdr] ip_version_major: 7 [drm:amdgpu_ucode_print_common_hdr] ip_version_minor: 2 [drm:amdgpu_ucode_print_common_hdr] ucode_version: 0x013353e6 [drm:amdgpu_ucode_print_common_hdr] ucode_size_bytes: 129796 [drm:amdgpu_ucode_print_common_hdr] ucode_array_offset_bytes: 256 [drm:amdgpu_ucode_print_common_hdr] crc32: 0x5f242192 [drm:amdgpu_ucode_print_smc_hdr] ucode_start_addr: 131072 [AVFS] Something is broken. See log! failed to send message 254 ret is 0

failed to send pre message 14a ret is 0

failed to send message 14a ret is 0

failed to send pre message 5d ret is 0

failed to send message 5d ret is 0

failed to send pre message 109 ret is 0

failed to send message 109 ret is 0

failed to send pre message 62 ret is 0

failed to send message 62 ret is 0

failed to send pre message 18f ret is 0

failed to send message 18f ret is 0

failed to send pre message 301 ret is 0

failed to send message 301 ret is 0

failed to send pre message 109 ret is 0

failed to send message 109 ret is 0

failed to send pre message 14e ret is 0

failed to send message 14e ret is 0

failed to send pre message 150 ret is 0

failed to send message 150 ret is 0

failed to send pre message 136 ret is 0

failed to send message 136 ret is 0

failed to send pre message 53 ret is 0

failed to send message 53 ret is 0

failed to send pre message 169 ret is 0

failed to send message 169 ret is 0

failed to send pre message 185 ret is 0

failed to send message 185 ret is 0

failed to send pre message 187 ret is 0

failed to send message 187 ret is 0

failed to send pre message 188 ret is 0

failed to send message 188 ret is 0

failed to send pre message 10a ret is 0

failed to send message 10a ret is 0

failed to send pre message 305 ret is 0

failed to send message 305 ret is 0

failed to send pre message 26a ret is 0

failed to send message 26a ret is 0

failed to send pre message 209 ret is 0

failed to send message 209 ret is 0

failed to send pre message 206 ret is 0

failed to send message 206 ret is 0

failed to send pre message 5b ret is 0

failed to send message 5b ret is 0

failed to send pre message 205 ret is 0

failed to send message 205 ret is 0

failed to send pre message 20a ret is 0

failed to send message 20a ret is 0 [drm:gfx_v8_0_ring_test_ring] amdgpu: ring 0 test failed (scratch(0xC040)=0xCAFEDEAD) [drm:amdgpu_init] hw_init of IP block failed -22 drmn0: amdgpu_init failed

failed to send pre message 133 ret is 0

failed to send message 133 ret is 0 DPM is not running right now, no need to disable DPM!

failed to send pre message 261 ret is 0

failed to send message 261 ret is 0

failed to send pre message 261 ret is 0

failed to send message 261 ret is 0

failed to send pre message 261 ret is 0

failed to send message 261 ret is 0

failed to send pre message 261 ret is 0

failed to send message 261 ret is 0

failed to send pre message 261 ret is 0

failed to send message 261 ret is 0

failed to send pre message 261 ret is 0

failed to send message 261 ret is 0

failed to send pre message 261 ret is 0

failed to send message 261 ret is 0

failed to send pre message 261 ret is 0

failed to send message 261 ret is 0

failed to send pre message 261 ret is 0

failed to send message 261 ret is 0

failed to send pre message 261 ret is 0

failed to send message 261 ret is 0 [TTM] Finalizing pool allocator Zone kernel: Used memory at exit: 816 kiB Zone dma32: Used memory at exit: 816 kiB [drm] amdgpu: ttm finalized drmn0: Fatal error during GPU init [drm] amdgpu: finishing device. [TTM] Memory type 2 has not been initialized drmn0: linux_pci_attach failed! -22device_attach: drmn0 attach returned 22 [drm] Module unloaded Warning: memory type drm_driver leaked memory on destroy (3 allocations, 48 bytes leaked). Warning: memory type idr leaked memory on destroy (1 allocations, 16 bytes leaked). Warning: memory type lkpifw leaked memory on destroy (1 allocations, 32 bytes leaked). Warning: memory type idr leaked memory on destroy (5 allocations, 2560 bytes leaked). Warning: memory type linux leaked memory on destroy (554 allocations, 85136 bytes leaked). Warning: memory type linuxcurrent leaked memory on destroy (19 allocations, 2240 bytes leaked).

markjdb commented 7 years ago

I'm not seeing any such problems with an RX460. Could you bisect a bit? I suggest trying 620ce8b40109~ to start.

markjdb commented 7 years ago

To be clear, verify whether the revision before 620ce8b is good.

gldisater commented 7 years ago

620ce8b panics, 9042fbaaaf6 does not panic but fails to attach

markjdb commented 7 years ago

Ok. The next revision to try would be 9c9c64a8.

gldisater commented 7 years ago

Sorry for not updating you with status. I spent a couple hours last night going back through commits trying to find a spot where it worked, but I couldn't find any and got myself into a hole with mismatched world and kernel. So I blew away the boot environment for drm-next and recreated it. Found a zfs snapshot of the drm-next snapshot I found that I know was working before, but it failed and panicked the system. I concluded that my upgrade to Ryzen was involved in the issue.

To test if it was uefi and scbuf that was the issue I reinstalled with a bios only boot and forced the uefi to use legacy and now on drm-next HEAD the driver attaches. It outputs a lot of "failed to send message", but it was doing that before.

markjdb commented 7 years ago

Ah, right, that's a known issue at the moment - I should have have caught it from the dmesg. The workaround for the time being is to set hw.syscons.disable="1" in loader.conf and load amdgpu via kld_list in rc.conf. This will cause vt to avoid using the EFI framebuffer and so you won't get any console output until amdgpu sets the mode. Fixing this is on my todo list but at the moment I'm preoccupied with getting these drivers working on stock FreeBSD.