On Tue, Oct 15, 2019 at 12:40:10PM +1100, Jonathan Gray wrote:
> On Mon, Oct 14, 2019 at 08:10:36PM +0200, Sebastien Marie wrote:
> > Hi,
> > 
> > I recently tested OpenBSD on a system with a "ATI Radeon Vega", and I have
> > problem on initialization: the system hangs.
> > 
> > If I disable amdgpu* it boots fine.
> > 
> > Here the dmesg of the system without firmware installed (it permits to have
> > amdgpu* enabled and a responsive system for grabbing dmesg).
> > 
> > I should be able to get a serial ddb once I figured how to plug a serial 
> > port on
> > the connector on the mainboard if it helps.
> 
> Yes, serial is needed for diagnosing such problems.
> 
> dmesg with firmware present
> trace/ps etc if it is in ddb
> or send a break over serial to enter ddb with ddb.console=1 then get trace/ps
> 

now with proper serial.

>> OpenBSD/amd64 BOOT 3.45
boot>
booting hd0a:/bsd: 12875080+3068936+340000+0+708608 
[984036+128+1014288+741985]=0x12d44e0
entry point at 0xffffffff81001000
[ using 2741472 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2019 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.6-current (GENERIC.MP) #8: Wed Oct 16 09:06:31 CEST 2019
    semarie@olaf.local:/home/semarie/sys/arch/amd64/compile/GENERIC.MP
real mem = 14941466624 (14249MB)
avail mem = 14475665408 (13805MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.2 @ 0xe6cc0 (23 entries)
bios0: vendor American Megatrends Inc. version "P2.00" date 03/04/2019
bios0: ASRock A320M-HDV R4.0
acpi0 at bios0: ACPI 6.0
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT SSDT SSDT SSDT MCFG AAFT HPET UEFI SSDT 
CRAT CDIT SSDT SSDT WSMT SSDT
acpi0: wakeup devices GPP0(S4) GPP2(S4) GPP3(S4) GPP4(S4) GPP5(S4) GPP6(S4) 
GP17(S4) XHC0(S4) XHC1(S4) GP18(S4) PS2K(S4) GPP1(S4) PTXH(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon 220GE with Radeon Vega Graphics, 3394.28 MHz, 17-11-00
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
8-way L2 cache, 4MB 64b/line 16-way L3 cache
cpu0: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon 220GE with Radeon Vega Graphics, 3393.60 MHz, 17-11-00
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu1: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
8-way L2 cache, 4MB 64b/line 16-way L3 cache
cpu1: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 3 pa 0xfec00000, version 21, 24 pins
ioapic1 at mainbus0: apid 4 pa 0xfec01000, version 21, 32 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf8000000, bus 0-63
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (GPP0)
acpiprt2 at acpi0: bus -1 (GPP2)
acpiprt3 at acpi0: bus -1 (GPP3)
acpiprt4 at acpi0: bus -1 (GPP4)
acpiprt5 at acpi0: bus -1 (GPP5)
acpiprt6 at acpi0: bus -1 (GPP6)
acpiprt7 at acpi0: bus 56 (GP17)
acpiprt8 at acpi0: bus 57 (GP18)
acpiprt9 at acpi0: bus 21 (GPP1)
acpicpu0 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS
acpicpu1 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS
acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB
"AMDI0030" at acpi0 not configured
"AMDIF030" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
cpu0: 3394 MHz: speeds: 3400 2300 1600 MHz
pci0 at mainbus0 bus 0
ksmn0 at pci0 dev 0 function 0 "AMD AMD64 17h/1xh Root Complex" rev 0x00
pchb0 at pci0 dev 1 function 0 "AMD AMD64 17h PCIE" rev 0x00
ppb0 at pci0 dev 1 function 2 "AMD AMD64 17h/1xh PCIE" rev 0x00: msi
pci1 at ppb0 bus 21
xhci0 at pci1 dev 0 function 0 vendor "AMD", unknown product 0x43bc rev 0x02: 
msi, xHCI 1.10
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
ahci0 at pci1 dev 0 function 1 vendor "AMD", unknown product 0x43b8 rev 0x02: 
msi, AHCI 1.3.1
ahci0: port busy after first PMP probe FIS
ahci0: port busy after first PMP probe FIS
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, LDLC, R083> t10.ATA_LDLC_03302219C0199_
sd0: 228936MB, 512 bytes/sector, 468862128 sectors, thin
ppb1 at pci1 dev 0 function 2 vendor "AMD", unknown product 0x43b3 rev 0x02
pci2 at ppb1 bus 22
ppb2 at pci2 dev 4 function 0 "AMD 300 Series PCIE" rev 0x02: msi
pci3 at ppb2 bus 27
ppb3 at pci2 dev 6 function 0 "AMD 300 Series PCIE" rev 0x02: msi
pci4 at ppb3 bus 29
ppb4 at pci2 dev 7 function 0 "AMD 300 Series PCIE" rev 0x02: msi
pci5 at ppb4 bus 30
re0 at pci5 dev 0 function 0 "Realtek 8168" rev 0x15: RTL8168H/8111H (0x5400), 
msi, address 70:85:c2:d6:76:a4
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
pchb1 at pci0 dev 8 function 0 "AMD AMD64 17h PCIE" rev 0x00
ppb5 at pci0 dev 8 function 1 "AMD AMD64 17h/1xh PCIE" rev 0x00
pci6 at ppb5 bus 56
amdgpu0 at pci6 dev 0 function 0 "ATI Radeon Vega" rev 0xcb
drm0 at amdgpu0
amdgpu0: msi
azalia0 at pci6 dev 0 function 1 "ATI Radeon Vega HD Audio" rev 0x00: msi
azalia0: no supported codecs
ccp0 at pci6 dev 0 function 2 "AMD AMD64 17h/1xh Crypto" rev 0x00
xhci1 at pci6 dev 0 function 3 "AMD AMD64 17h/1xh xHCI" rev 0x00: msi, xHCI 1.10
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
xhci2 at pci6 dev 0 function 4 "AMD AMD64 17h/1xh xHCI" rev 0x00: msi, xHCI 1.10
usb2 at xhci2: USB revision 3.0
uhub2 at usb2 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
azalia1 at pci6 dev 0 function 6 "AMD AMD64 17h/1xh HD Audio" rev 0x00: apic 4 
int 30
azalia1: codecs: Realtek/0x0887
audio0 at azalia1
ppb6 at pci0 dev 8 function 2 "AMD AMD64 17h/1xh PCIE" rev 0x00
pci7 at ppb6 bus 57
ahci1 at pci7 dev 0 function 0 "AMD FCH AHCI" rev 0x61: msi, AHCI 1.3.1
scsibus2 at ahci1: 32 targets
"AMD FCH SMBus" rev 0x61 at pci0 dev 20 function 0 not configured
pcib0 at pci0 dev 20 function 3 "AMD FCH LPC" rev 0x51
pchb2 at pci0 dev 24 function 0 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb3 at pci0 dev 24 function 1 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb4 at pci0 dev 24 function 2 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb5 at pci0 dev 24 function 3 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb6 at pci0 dev 24 function 4 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb7 at pci0 dev 24 function 5 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb8 at pci0 dev 24 function 6 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb9 at pci0 dev 24 function 7 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: SVM/RVI
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (6bb7ffab3d187e8c.a) swap on sd0b dump on sd0b
initializing kernel modesetting (RAVEN 0x1002:0x15DD 0x1002:0x15DD 0xCB).
[drm] register mmio base: 0xFCC00000
[drm] register mmio size: 524288
[drm] probing pcie caps for device 56:0:0 0x1002:0x15dd = 3/e
[drm] probing pcie caps for device 0:8:1 0x1022:0x15db = 3/e
[drm] probing pcie width for device 0:8:1 0x1022:0x15db = 700d03
[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 <powerplay>
[drm] add ip block number 5 <dm>
[drm] add ip block number 6 <gfx_v9_0>
[drm] add ip block number 7 <sdma_v4_0>
[drm] add ip block number 8 <vcn_v1_0>
[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
[drm] BIOS signature incorrect 20 7
[drm] BIOS signature incorrect 20 7
[drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 
9-bit
drm: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
drm: GART: 1024M 0x000000F500000000 - 0x000000F53FFFFFFF
[drm] Detected VRAM RAM=2048M, BAR=2048M
[drm] RAM width 64bits DDR4
[drm] GART: num cpu pages 262144, num gpu pages 262144
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 0 use gpu 
addr 0x000000f500400040, cpu addr 0x0xfffffd83ae40e040
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 1 use gpu 
addr 0x000000f5004000c0, cpu addr 0x0xfffffd83ae40e0c0
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 2 use gpu 
addr 0x000000f500400140, cpu addr 0x0xfffffd83ae40e140
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 3 use gpu 
addr 0x000000f5004001c0, cpu addr 0x0xfffffd83ae40e1c0
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 4 use gpu 
addr 0x000000f500400240, cpu addr 0x0xfffffd83ae40e240
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 5 use gpu 
addr 0x000000f5004002c0, cpu addr 0x0xfffffd83ae40e2c0
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 6 use gpu 
addr 0x000000f500400340, cpu addr 0x0xfffffd83ae40e340
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 7 use gpu 
addr 0x000000f5004003c0, cpu addr 0x0xfffffd83ae40e3c0
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 8 use gpu 
addr 0x000000f500400440, cpu addr 0x0xfffffd83ae40e440
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 9 use gpu 
addr 0x000000f5004004e0, cpu addr 0x0xfffffd83ae40e4e0
[drm] use_doorbell being set to: [true]
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 10 use gpu 
addr 0x000000f500400560, cpu addr 0x0xfffffd83ae40e560
[drm] Found VCN firmware Version: 1.73 Family ID: 18
[drm] PSP loading VCN firmware
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 11 use gpu 
addr 0x000000f5004005e0, cpu addr 0x0xfffffd83ae40e5e0
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 12 use gpu 
addr 0x000000f500400660, cpu addr 0x0xfffffd83ae40e660
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 13 use gpu 
addr 0x000000f5004006e0, cpu addr 0x0xfffffd83ae40e6e0
drm:pid0:amdgpu_fence_driver_start_ring *DEBUG* fence driver on ring 14 use gpu 
addr 0x000000f500400760, cpu addr 0x0xfffffd83ae40e760
[drm] DM_IRQ
[drm] Don't have set_crtc_timing for v1
[drm] DM_PPLIB: values for Invalid clock
[drm] DM_PPLIB:  400000 in kHz
[drm] DM_PPLIB:  933000 in kHz
[drm] DM_PPLIB:  1200000 in kHz
[drm] DM_PPLIB:  1333000 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
[BANDWIDTH_CALCS]:sr_exit_time: f ns
sr_enter_plus_exit_time: f ns
urgent_latency: f ns
write_back_latency: f ns
percent_of_ideal_drambw_received_after_urg_latency: f %
max_request_size: 256 bytes
dcfclkv_max0p9: f kHz
dcfclkv_nom0p8: f kHz
dcfclkv_mid0p72: f kHz
dcfclkv_min0p65: f kHz
max_dispclk_vmax0p9: f kHz
max_dispclk_vnom0p8: f kHz
max_dispclk_vmid0p72: f kHz
max_dispclk_vmin0p65: f kHz
max_dppclk_vmax0p9: f kHz
max_dppclk_vnom0p8: f kHz
max_dppclk_vmid0p72: f kHz
max_dppclk_vmin0p65: f kHz
socclk: f kHz
fabric_and_dram_bandwidth_vmax0p9: f MB/s
fabric_and_dram_bandwidth_vnom0p8: f MB/s
fabric_and_dram_bandwidth_vmid0p72: f MB/s
fabric_and_dram_bandwidth_vmin0p65: f MB/s
phyclkv_max0p9: f kHz
phyclkv_nom0p8: f kHz
phyclkv_mid0p72: f kHz
phyclkv_min0p65: f kHz
downspreading: f %
round_trip_ping_latency_cycles: 128 DCFCLK Cycles
urgent_out_of_order_return_per_channel: 256 Bytes
number_of_channels: 1
vmm_page_size: 4096 Bytes
dram_clock_change_latency: f ns
return_bus_width: 0 Bytes
[BANDWIDTH_CALCS]:rob_buffer_size_in_kbyte: f
det_buffer_size_in_kbyte: f
dpp_output_buffer_pixels: f
opp_output_buffer_lines: f
pixel_chunk_size_in_kbyte: f
pte_enable: 6
pte_chunk_size: 2 kbytes
meta_chunk_size: 2 kbytes
writeback_chunk_size: 2 kbytes
odm_capability: 13
dsc_capability: 13
line_buffer_size: 589824 bits
max_line_buffer_lines: 12
is_line_buffer_bpp_fixed: 13
line_buffer_fixed_bpp: 39
writeback_luma_buffer_size: 12 kbytes
writeback_chroma_buffer_size: 8 kbytes
max_num_dpp: 4
max_num_writeback: 2
max_dchub_topscl_throughput: 4 pixels/dppclk
max_pscl_tolb_throughput: 2 pixels/dppclk
max_lb_tovscl_throughput: 4 pixels/dppclk
max_vscl_tohscl_throughput: 4 pixels/dppclk
max_hscl_ratio: f
max_vscl_ratio: f
max_hscl_taps: 8
max_vscl_taps: 8
pte_buffer_size_in_requests: 42
dispclk_ramping_margin: f %
under_scan_factor: f %
max_inter_dcn_tile_repeaters: 0
can_vstartup_lines_exceed_vsync_plus_back_porch_lines_minus_one: 8
bug_forcing_luma_and_chroma_request_to_same_size_fixed: 13
dcfclk_cstate_latency: 13
[HW_AUDIO]:AUDIO:read_indirect_azalia_reg: index: 86  data: 408289520
[HW_AUDIO]:AUDIO:read_indirect_azalia_reg: index: 86  data: 408289520
[HW_AUDIO]:AUDIO:read_indirect_azalia_reg: index: 86  data: 408289520
[HW_AUDIO]:AUDIO:read_indirect_azalia_reg: index: 86  data: 408289520
[drm] DC: create_links: connectors_num: physical:4, virtual:0
[drm] Connector[0] description:signal 4
[drm] Connector[1] description:signal 4
[drm] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for 
connector index:2! type 0 expected 3
[drm] Connector[3] description:signal 32
[drm] REG_WAIT taking a while: 2ms in mpc1_assert_idle_mpcc line:103
[drm] Power gated front end 0
[drm] Power down front end 0
[drm] Power gated front end 1
[drm] Power down front end 1
[drm] Power gated front end 2
[drm] Power down front end 2
[HW_AUDIO]:AUDIO:read_indirect_azalia_reg: index: 84  data: 0
[HW_AUDIO]:AUDIO:write_indirect_azalia_reg: index: 84  data: 1
[HW_AUDIO]:AUDIO:write_indirect_azalia_reg: index: 84  data: 0
[drm] Display Core initialized
[drm] Display Core initialized with v3.1.59!
[drm] amdgpu: freesync_module init done 0xffff8000009cad80.
[drm] amdgpu_dm_connector_init()
[drm] link=0, dc_sink_in=0x0 is now Disconnected prev_sink=0x0 dpcd same=1 edid 
same=0
[drm] DCHPD: connector_id=0: dc_sink didn't change.
[drm] amdgpu_dm_connector_init()
[drm] link=1, dc_sink_in=0x0 is now Disconnected prev_sink=0x0 dpcd same=1 edid 
same=0
[drm] DCHPD: connector_id=1: dc_sink didn't change.
[drm] amdgpu_dm_connector_init()
uvm_fault(0xffffffff82011010, 0x18, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      dc_link_aux_transfer+0x85:      movq    0x18(%r14),%rax
ddb{0}> trace
dc_link_aux_transfer(ffff80000013c400,0,ffffffff822db9ad,ffffffff822dbb30,1,0) 
at dc_link_aux_transfer+0x85
dm_dp_aux_transfer(ffff800000a838a0,ffffffff822db9a8) at dm_dp_aux_transfer+0xdc
drm_dp_dpcd_access(ffff800000a838a0,9,0,ffffffff822dbb30,1) at 
drm_dp_dpcd_access+0x8d
drm_dp_dpcd_read(ffff800000a838a0,0,ffffffff822dbb30,10) at 
drm_dp_dpcd_read+0x45
dm_helpers_dp_read_dpcd(ffff800000a33000,ffff800000a79800,0,ffffffff822dbb30,10)
 at dm_helpers_dp_read_dpcd+0x43
core_link_read_dpcd(ffff800000a79800,0,ffffffff822dbb30,10) at 
core_link_read_dpcd+0x2d
retrieve_link_cap(ffff800000a79800) at retrieve_link_cap+0x40
dc_link_detect(ffff800000a79800,0) at dc_link_detect+0x99e
dm_hw_init(ffff80000036d000) at dm_hw_init+0xa96
amdgpu_device_init(ffff80000036d000,ffff80000037b000,ffff80000037b018,20016) at 
amdgpu_device_init+0x1159
amdgpu_attachhook(ffff80000036d000) at amdgpu_attachhook+0x3b
config_process_deferred_mountroot() at config_process_deferred_mountroot+0x6b
main(0) at main+0x745
end trace frame: 0x0, count: -13
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 64142  193005      0      0  2     0x14200                vcn_jpeg
 54629  128082      0      0  2     0x14200                vcn_enc1
 16020  379228      0      0  2     0x14200                vcn_enc0
 84563  153660      0      0  7     0x14200                vcn_dec
  3366  163465      0      0  3     0x14280  drmweti       sdma0
 64043   56090      0      0  3     0x14280  drmweti       comp_1.3.1
 83232  225371      0      0  3     0x14280  drmweti       comp_1.2.1
 90695  333728      0      0  3     0x14280  drmweti       comp_1.1.1
 77998   95270      0      0  3     0x14280  drmweti       comp_1.0.1
 42211  171751      0      0  3     0x14280  drmweti       comp_1.3.0
 68549  308997      0      0  3     0x14280  drmweti       comp_1.2.0
 11692  290846      0      0  3     0x14280  drmweti       comp_1.1.0
 45616    4231      0      0  3     0x14280  drmweti       comp_1.0.0
 88610  315057      0      0  3     0x14280  drmweti       gfx
 23059  231683      0      0  3     0x14200  bored         ttm_swap
 86850  180806      0      0  3     0x14200  pgzero        zerothread
  1338  485441      0      0  3     0x14200  aiodoned      aiodoned
 93261   16636      0      0  2     0x14200                update
 62133  175261      0      0  3     0x14200  cleaner       cleaner
 19902  397814      0      0  3     0x14200  reaper        reaper
 25336  513328      0      0  3     0x14200  pgdaemon      pagedaemon
 81351  516718      0      0  3     0x14200  bored         crynlk
 84599  128379      0      0  3     0x14200  bored         crypto
 88270  400780      0      0  3     0x14200  bored         drmtskl
 74482  200301      0      0  3     0x14200  bored         drmlwq
 15480  189514      0      0  3     0x14200  bored         drmlwq
 50688  299952      0      0  3     0x14200  bored         drmlwq
 97853  323506      0      0  3     0x14200  bored         drmlwq
 75950  418390      0      0  3     0x14200  bored         drmubwq
 66486  383633      0      0  3     0x14200  bored         drmubwq
 89822  293033      0      0  3     0x14200  bored         drmubwq
 71145  305772      0      0  3     0x14200  bored         drmubwq
 64370  504985      0      0  3     0x14200  bored         drmwq
 39346   51158      0      0  3     0x14200  bored         drmwq
 97076  424427      0      0  3     0x14200  bored         drmwq
 52920  302771      0      0  3     0x14200  bored         drmwq
 42535  321078      0      0  3     0x14200  usbtsk        usbtask
 17862  225349      0      0  3     0x14200  usbatsk       usbatsk
 12847  284789      0      0  3     0x14200  bored         sensors
 24598  424642      0      0  3  0x40014200  acpi0         acpi0
 59611  310198      0      0  3  0x40014200                idle1
 82538   58712      0      0  3     0x14200  bored         softnet
 68531  394853      0      0  3     0x14200  bored         systqmp
 95342   33893      0      0  3     0x14200  bored         systq
 30716  352102      0      0  2  0x40014200                softclock
 74248   17109      0      0  3  0x40014200                idle0
 71317  200025      0      0  3     0x14200  bored         smr
     1  204917      0      0  3           0  initexec      swapper
*    0       0     -1      0  7     0x10200                swapper
ddb{0}> show registers
rdi               0xffff80000013c400
rsi               0xffff800000a7a160
rbp               0xffffffff822db950    end+0xdb950
rbx                                0
rdx               0xffffffff822db9ad    end+0xdb9ad
rcx                              0x3
rax               0xffff80000013ac00
r8                               0x1
r9                                 0
r10               0x7062f3ca2acfab00
r11               0x3e407104fc025f99
r12               0xffffffff822dbb30    end+0xdbb30
r13                              0x1
r14                                0
r15                                0
rip               0xffffffff81c3ed35    dc_link_aux_transfer+0x85
cs                               0x8
rflags                       0x10282    __ALIGN_SIZE+0xf282
rsp               0xffffffff822db8b0    end+0xdb8b0
ss                              0x10
dc_link_aux_transfer+0x85:      movq    0x18(%r14),%rax
ddb{0}> show proc
PROC (swapper) pid=0 stat=onproc
    flags process=10000<SYSTEM> proc=200<SYSTEM>
    pri=17, usrpri=62, nice=20
    forw=0xffffffffffffffff, list=0x0,0xffff80001afb5648
    process=0xffffffff82010a70 user=0xffffffff822d6000, 
vmspace=0xffffffff82011010
    estcpu=12, cpticks=51, pctcpu=0.94
    user=0, sys=78, intr=1
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim Kern Lim
         devbuf  2647   3930K    3930K  78643K      3732        0        0
            pcb    13      8K       8K  78643K        13        0        0
         rtable    17      0K       0K  78643K        19        0        0
         ifaddr    21      6K       6K  78643K        21        0        0
       counters    39     33K      33K  78643K        39        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes     5      0K       0K  78643K         8        0        0
      UFS quota     1     32K      32K  78643K         1        0        0
      UFS mount     4     36K      36K  78643K         4        0        0
            shm     2      1K       1K  78643K         2        0        0
         VM map     2      0K       0K  78643K         2        0        0
            sem     2      0K       0K  78643K         2        0        0
        dirhash     3      0K       0K  78643K         3        0        0
           ACPI  6263    750K     760K  78643K     18543        0        0
           proc     5     13K      13K  78643K         5        0        0
    NFS srvsock     1      0K       0K  78643K         1        0        0
     NFS daemon     1     16K      16K  78643K         1        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
        pagedep     1      8K       8K  78643K         1        0        0
       inodedep     1     32K      32K  78643K         1        0        0
         newblk     1      0K       0K  78643K         1        0        0
        VM swap     7   1306K    1306K  78643K         7        0        0
       UVM aobj     1      2K       2K  78643K         1        0        0
            USB    29     28K      28K  78643K        35        0        0
     USB device    12      1K       1K  78643K        12        0        0
        memdesc     1      4K       4K  78643K         1        0        0
    crypto data     1      1K       1K  78643K         1        0        0
            NDP     3      0K       0K  78643K         3        0        0
           temp    25   3520K    3522K  78643K        76        0        0
      SYN cache     2     16K      16K  78643K         2        0        0
            DRM   488    718K     719K  78643K       579        0        0
ddb{0}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache    128       20    0        0     1     0     1     1     0     8    0
dirhash    1024       4    0        0     1     0     1     1     0     8    0
dino1pl    128       14    0        0     1     0     1     1     0     8    0
ffsino     240       14    0        0     1     0     1     1     0     8    0
nchpl      144       13    0        0     1     0     1     1     0     8    0
uvmvnodes   72       21    0        0     1     0     1     1     0     8    0
vnodes     208       21    0        0     2     0     2     2     0     8    0
namei      1024      10    0       10     1     0     1     1     0     8    1
percpumem   16       30    0        0     1     0     1     1     0     8    0
idrpl       32       51    0        0     1     0     1     1     0     8    0
drmobjpl   1112      46    0        0     4     0     4     4     0     8    0
xhcixfer   240      108    0      105     1     0     1     1     0     8    0
scxspl     192      197    0      197     1     0     1     1     0     8    1
sigapl     432        1    0        0     1     0     1     1     0     8    0
fdescpl    424        2    0        0     1     0     1     1     0     8    0
ucredpl     96        1    0        0     1     0     1     1     0     8    0
processpl  864       48    0        0     6     0     6     6     0     8    0
procpl     632       48    0        0     4     0     4     4     0     8    0
mbufpl     256        3    0        0     1     0     1     1     0     8    0
bufpl      256       94    0        0     6     0     6     6     0     8    0
dma4096    4096       1    0        1     1     0     1     1     0     8    1
dma512     512        6    0        5     1     0     1     1     0     8    0
dma256     256       10    0       10     1     0     1     1     0     8    1
dma128     128        2    0        2     1     0     1     1     0     8    1
dma64       64       10    0       10     1     0     1     1     0     8    1
dma32       32        9    0        9     1     0     1     1     0     8    1
dma16       16       28    0       28     1     0     1     1     0     8    1
uaddrrnd    24        2    0        0     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24        2    0        0     1     0     1     1     0     8    0
vmmpekpl   168      126    0       68     3     0     3     3     0     8    0
vmmpepl    168        1    0        0     1     0     1     1     0   357    0
vmsppl     272        1    0        0     1     0     1     1     0     8    0
pdppl      4096       1    0        0     1     0     1     1     0     8    0
pvpl        32    17555    0      118   141     0   141   141     0   265    0
pmappl     200        1    0        0     1     0     1     1     0     8    0
extentpl    40      128    0       78     1     0     1     1     0     8    0
phpool     112       16    0        0     1     0     1     1     0     8    0
ddb{0}> boot reboot
rebooting...


Thanks.
-- 
Sebastien Marie

Reply via email to