NetBSD Problem Report #56714

From www@netbsd.org  Mon Feb 14 16:26:44 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D781F1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 14 Feb 2022 16:26:44 +0000 (UTC)
Message-Id: <20220214162642.7B5501A923C@mollari.NetBSD.org>
Date: Mon, 14 Feb 2022 16:26:42 +0000 (UTC)
From: oskar@fessel.org
Reply-To: oskar@fessel.org
To: gnats-bugs@NetBSD.org
Subject: Radeon acceleration not working with   SAPPHIRE AMD FIREPRO 2270 x1
X-Send-Pr-Version: www-1.0

>Number:         56714
>Category:       kern
>Synopsis:       Radeon acceleration not working with   SAPPHIRE AMD FIREPRO 2270 x1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 14 16:30:01 +0000 2022
>Last-Modified:  Mon Mar 20 17:25:02 +0000 2023
>Originator:     Jan-Hinrich Fessel
>Release:        NetBSD 9.99.92 (GENERIC) #0: Sun Dec 12 05:08:10 CET 2021
>Organization:
>Environment:
NetBSD 9.99.92 (GENERIC) #0: Sun Dec 12 05:08:10 CET 2021

>Description:
Thcard works, but acceleration is not possible:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018, 2019, 2020, 2021 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 9.99.92 (GENERIC) #0: Sun Dec 12 05:08:10 CET 2021
	root@dweezil.lessef.de:/hurz/obj/sys/arch/amd64/compile/GENERIC
total memory = 32687 MB
avail memory = 31648 MB
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
RTC BIOS diagnostic error 0xbd<clock_battery,config_unit,memory_size,fixed_disk,invalid_time>
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
efi: systbl at pa bd7cdf18
mainbus0 (root)
ACPI: RSDP 0x00000000BDEFE014 000024 (v02 HPQOEM)
ACPI: XSDT 0x00000000BDEC2188 0000D4 (v01 HPQOEM SLIC-WKS 00000000      01000013)
ACPI: FACP 0x00000000BDEED000 0000F4 (v05 HPQOEM SLIC-WKS 00000000 HP   00000001)
ACPI: DSDT 0x00000000BDEC9000 0209E4 (v02 HPQOEM 802F     00000000 INTL 20121018)
ACPI: FACS 0x00000000BDE5A000 000040
ACPI: SSDT 0x00000000BDEFC000 000108 (v02 HP     ShmTable 00000001 INTL 20121018)
ACPI: TCPA 0x00000000BDEFB000 000032 (v02 HPQOEM EDK2     00000002      01000013)
ACPI: SSDT 0x00000000BDEFA000 00038A (v02 HPQOEM Tpm2Tabl 00001000 INTL 20121018)
ACPI: TPM2 0x00000000BDEF9000 000034 (v03 HPQOEM EDK2     00000002      01000013)
ACPI: UEFI 0x00000000BDE6A000 000042 (v01 HPQOEM EDK2     00000002      01000013)
ACPI: CELI 0x00000000BDEF8000 000028 (v03 HPQOEM EDK2     00000002      01000013)
ACPI: SSDT 0x00000000BDEF2000 0051FA (v02 SaSsdt SaSsdt   00003000 INTL 20121018)
ACPI: SSDT 0x00000000BDEF1000 0005B1 (v01 Intel  PerfTune 00001000 INTL 20121018)
ACPI: MSDM 0x00000000BDEF0000 000055 (v03 HPQOEM SLIC-WKS 00000000 HP   00000001)
ACPI: SLIC 0x00000000BDEEF000 000176 (v01 HPQOEM SLIC-WKS 00000001 HP   00000001)
ACPI: WSMT 0x00000000BDEEE000 000028 (v01 HPQOEM 802F     00000001 HP   00000001)
ACPI: HPET 0x00000000BDEEC000 000038 (v01 HPQOEM 802F     00000001 HP   00000001)
ACPI: APIC 0x00000000BDEEB000 0000BC (v01 HPQOEM 802F     00000001 HP   00000001)
ACPI: MCFG 0x00000000BDEEA000 00003C (v01 HPQOEM 802F     00000001 HP   00000001)
ACPI: SSDT 0x00000000BDEC8000 00019A (v02 HPQOEM Sata0Ide 00001000 INTL 20121018)
ACPI: SSDT 0x00000000BDEC7000 000729 (v01 HPQOEM PtidDevc 00001000 INTL 20121018)
ACPI: SSDT 0x00000000BDEC6000 000E73 (v02 CpuRef CpuSsdt  00003000 INTL 20121018)
ACPI: DMAR 0x00000000BDEC5000 000070 (v01 INTEL  SKL      00000001 INTL 00000001)
ACPI: ASF! 0x00000000BDEC4000 0000A5 (v32 HPQOEM  UYA     00000001 TFSM 000F4240)
ACPI: FPDT 0x00000000BDEC3000 000044 (v01 HPQOEM EDK2     00000002      01000013)
ACPI: BGRT 0x00000000BDEFD000 000038 (v01 HPQOEM EDK2     00000002      01000013)
ACPI: 8 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x20, 120 pins
x2APIC available but disabled by DMAR table
cpu0 at mainbus0 apid 0
cpu0: Use lfence to serialize rdtsc
cpu0: CPU base freq 3800000000 Hz
cpu0: CPU max freq 4200000000 Hz
cpu0: TSC freq CPUID 3792000000 Hz
cpu0: Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz, id 0x906e9
cpu0: node 0, package 0, core 0, smt 0
cpu1 at mainbus0 apid 2
cpu1: Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz, id 0x906e9
cpu1: node 0, package 0, core 1, smt 0
cpu2 at mainbus0 apid 4
cpu2: Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz, id 0x906e9
cpu2: node 0, package 0, core 2, smt 0
cpu3 at mainbus0 apid 6
cpu3: Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz, id 0x906e9
cpu3: node 0, package 0, core 3, smt 0
cpu4 at mainbus0 apid 1
cpu4: Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz, id 0x906e9
cpu4: node 0, package 0, core 0, smt 1
cpu5 at mainbus0 apid 3
cpu5: Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz, id 0x906e9
cpu5: node 0, package 0, core 1, smt 1
cpu6 at mainbus0 apid 5
cpu6: Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz, id 0x906e9
cpu6: node 0, package 0, core 2, smt 1
cpu7 at mainbus0 apid 7
cpu7: Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz, id 0x906e9
cpu7: node 0, package 0, core 3, smt 1
acpi0 at mainbus0: Intel ACPICA 20210930
acpi0: X/RSDT: OemId <HPQOEM,SLIC-WKS,00000000>, AslId <    ,01000013>
acpi0: MCFG: segment 0, bus 0-255, address 0x00000000e0000000
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFFB5DAFC51D348 00037F (v02 PmRef  Cpu0Cst  00003001 INTL 20121018)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFFB5DAF8335808 000768 (v02 PmRef  Cpu0Ist  00003000 INTL 20121018)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFFB5D3FEF42808 0005AA (v02 PmRef  ApIst    00003000 INTL 20121018)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFFB5D3FEE8ACC8 000119 (v02 PmRef  ApCst    00003000 INTL 20121018)
acpi0: SCI interrupting at int 9
acpi0: fixed power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 24000000 Hz quality 2000
acpiec0 at acpi0 (H_EC, PNP0C09-1): not present
acpiec1 at acpi0 (EC0, PNP0C09-1): io 0x62,0x66
acpiwmi0 at acpi0 (WMIB, PNP0C14-1): ACPI WMI Interface
acpiwmibus at acpiwmi0 not configured
acpiwmi1 at acpi0 (WMIV, PNP0C14-2): ACPI WMI Interface
wmihp0 at acpiwmi1: HP WMI mappings
FWHD (INT0800) at acpi0 not configured
attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53 irq 0
pckbc1 at acpi0 (PS2K, HPQ8001) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (PS2M, PNP0F13) (aux port): irq 12
acpibut0 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
acpibut1 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
acpiwmi2 at acpi0 (WMIS, PNP0C14-3): ACPI WMI Interface
acpiwmibus at acpiwmi2 not configured
PEPD (INT33A1) at acpi0 not configured
tpm0 at acpi0 (TPM, MSFT0101): mem 0xfed40000-0xfed44fff
tpm0: device 0x001b15d1 rev 0x16
ACPI: Enabled 3 GPEs in block 00 to 7F
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: Intel Core 7G (H, Server or Workstation) Host Bridge, DRAM (rev. 0x05)
xhci0 at pci0 dev 20 function 0: Intel 100 Series xHCI (rev. 0x31)
xhci0: 64-bit DMA
xhci0: interrupting at msi0 vec 0
xhci0: xHCI version 1.0
usb0 at xhci0: USB revision 3.0
usb1 at xhci0: USB revision 2.0
Intel 100 Series Thermal (miscellaneous DASP, revision 0x31) at pci0 dev 20 function 2 not configured
Intel 100 Series MEI 1 (miscellaneous communications, revision 0x31) at pci0 dev 22 function 0 not configured
puc0 at pci0 dev 22 function 3: Intel 100 Series KT (com)
com2 at puc0 port 0 (16550-compatible): ioaddr 0x4040, interrupting at ioapic0 pin 19
com2: ns16550a, 16-byte FIFO
ahcisata0 at pci0 dev 23 function 0: Intel Z170 AHCI (rev. 0x31)
ahcisata0: 64-bit DMA
ahcisata0: AHCI revision 1.31, 4 ports, 32 slots, CAP 0xef34ff43<EMS,PSC,SSC,PMD,SAM,ISS=0x3=Gen3,SCLO,SAL,SALP,SSS,SSNTF,SNCQ,S64A>
ahcisata0: interrupting at msi1 vec 0
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
atabus2 at ahcisata0 channel 2
atabus3 at ahcisata0 channel 3
ppb0 at pci0 dev 27 function 0: Intel 100 Series PCIe (rev. 0xf1)
ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x4 @ 8.0GT/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
nvme0 at pci1 dev 0 function 0: Samsung Electronics (3rd vendor ID) product a80a (rev. 0x00)
nvme0: NVMe 1.3
nvme0: for admin queue interrupting at msix2 vec 0
nvme0: Samsung SSD 980 PRO 1TB, firmware 3B2QGXA7, serial S5GXNF0R930575H
nvme0: for io queue 1 interrupting at msix2 vec 1 affinity to cpu0
nvme0: for io queue 2 interrupting at msix2 vec 2 affinity to cpu1
nvme0: for io queue 3 interrupting at msix2 vec 3 affinity to cpu2
nvme0: for io queue 4 interrupting at msix2 vec 4 affinity to cpu3
nvme0: for io queue 5 interrupting at msix2 vec 5 affinity to cpu4
nvme0: for io queue 6 interrupting at msix2 vec 6 affinity to cpu5
nvme0: for io queue 7 interrupting at msix2 vec 7 affinity to cpu6
nvme0: for io queue 8 interrupting at msix2 vec 8 affinity to cpu7
ld0 at nvme0 nsid 1
ld0: 931 GB, 121601 cyl, 255 head, 63 sec, 512 bytes/sect x 1953525168 sectors
ppb1 at pci0 dev 28 function 0: Intel 100 Series PCIe (rev. 0xf1)
ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 8.0GT/s
ppb1: link is x1 @ 2.5GT/s
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
radeon0 at pci2 dev 0 function 0: ATI Technologies FirePro 2270 (rev. 0x00)
hdaudio0 at pci2 dev 0 function 1: HD Audio Controller
hdaudio0: interrupting at msi3 vec 0
hdaudio0: HDA ver. 1.0, OSS 1, ISS 0, BSS 0, SDO 1, 64-bit
hdafg0 at hdaudio0: vendor 1002 product aa01
hdafg0: HDMI00 2ch: Digital Out [Jack]
hdafg0: 2ch/0ch 32000Hz 44100Hz 48000Hz PCM16 AC3
ppb2 at pci0 dev 28 function 4: Intel 100 Series PCIe (rev. 0xf1)
ppb2: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x4 @ 8.0GT/s
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled
nvme1 at pci3 dev 0 function 0: Samsung Electronics (3rd vendor ID) product a808 (rev. 0x00)
nvme1: NVMe 1.3
nvme1: for admin queue interrupting at msix4 vec 0
nvme1: Samsung SSD 970 EVO 1TB, firmware 2B2QEXE7, serial S467NX0M803159B
nvme1: for io queue 1 interrupting at msix4 vec 1 affinity to cpu0
nvme1: for io queue 2 interrupting at msix4 vec 2 affinity to cpu1
nvme1: for io queue 3 interrupting at msix4 vec 3 affinity to cpu2
nvme1: for io queue 4 interrupting at msix4 vec 4 affinity to cpu3
nvme1: for io queue 5 interrupting at msix4 vec 5 affinity to cpu4
nvme1: for io queue 6 interrupting at msix4 vec 6 affinity to cpu5
nvme1: for io queue 7 interrupting at msix4 vec 7 affinity to cpu6
nvme1: for io queue 8 interrupting at msix4 vec 8 affinity to cpu7
ld1 at nvme1 nsid 1
ld1: 931 GB, 121601 cyl, 255 head, 63 sec, 512 bytes/sect x 1953525168 sectors
ppb3 at pci0 dev 29 function 0: Intel 100 Series PCIe (rev. 0xf1)
ppb3: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x4 @ 8.0GT/s
ppb3: link is x4 @ 5.0GT/s
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled
bnx0 at pci4 dev 0 function 0: Broadcom NetXtreme II BCM5709 1000Base-T
bnx0: Ethernet address e8:39:35:bf:ca:3c
bnx0: ASIC BCM5709 C0 (0x57092003)
bnx0: PCIe x4 5GT/s
bnx0: B/C (5.2.2); Bufs (RX:2;TX:2); Flags ()
bnx0: Coal (RX:6,6,18,18; TX:20,20,80,80)
brgphy0 at bnx0 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bnx0: interrupting at ioapic0 pin 16
bnx1 at pci4 dev 0 function 1: Broadcom NetXtreme II BCM5709 1000Base-T
bnx1: Ethernet address e8:39:35:bf:ca:3e
bnx1: ASIC BCM5709 C0 (0x57092003)
bnx1: PCIe x4 5GT/s
bnx1: B/C (5.2.2); Bufs (RX:2;TX:2); Flags ()
bnx1: Coal (RX:6,6,18,18; TX:20,20,80,80)
brgphy1 at bnx1 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8
brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bnx1: interrupting at ioapic0 pin 17
pcib0 at pci0 dev 31 function 0: Intel C236 LPC (rev. 0x31)
Intel 100 Series PMC (miscellaneous memory, revision 0x31) at pci0 dev 31 function 2 not configured
hdaudio1 at pci0 dev 31 function 3: HD Audio Controller
hdaudio1: interrupting at msi5 vec 0
hdaudio1: HDA ver. 1.0, OSS 9, ISS 7, BSS 0, SDO 1, 64-bit
hdafg1 at hdaudio1: vendor 10ec product 0221
hdafg1: DAC00 2ch: Speaker [Built-In]
hdafg1: DAC01 2ch: Speaker [Jack], HP Out [Jack]
hdafg1: ADC02 2ch: Line In [Jack], Mic In [Jack]
hdafg1: 2ch/2ch 44100Hz 48000Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg1: playback, capture, full duplex, independent
audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
ichsmb0 at pci0 dev 31 function 4: Intel 100 Series SMBus (rev. 0x31)
ichsmb0: interrupting at ioapic0 pin 16
iic0 at ichsmb0: I2C bus
wm0 at pci0 dev 31 function 6: I219 LM (2) Ethernet Connection (rev. 0x31)
wm0: interrupting at msi6 vec 0
wm0: PCI-Express bus
wm0: 4096 words FLASH, version 0.8.4
wm0: Ethernet address 18:60:24:87:18:55
wm0: 0x6a4080<FLASH,PCIE,ASF_FIRM,AMT,WOL,EEE>
ihphy0 at wm0 phy 2: i217 10/100/1000 media interface, rev. 6
ihphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
isa0 at pcib0
pcppi0 at isa0 port 0x61
spkr1 at pcppi0: PC Speaker
wsbell at spkr1 not configured
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
attimer1: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: FFH, lat   1 us, pow  1000 mW
acpicpu0: C2: FFH, lat 151 us, pow   200 mW
acpicpu0: C3: FFH, lat 256 us, pow   200 mW
acpicpu0: P0: FFH, lat  10 us, pow 72000 mW, 3801 MHz, turbo boost
acpicpu0: P1: FFH, lat  10 us, pow 72000 mW, 3800 MHz
acpicpu0: P2: FFH, lat  10 us, pow 66145 mW, 3600 MHz
acpicpu0: P3: FFH, lat  10 us, pow 61191 mW, 3400 MHz
acpicpu0: P4: FFH, lat  10 us, pow 56425 mW, 3200 MHz
acpicpu0: P5: FFH, lat  10 us, pow 49260 mW, 2900 MHz
acpicpu0: P6: FFH, lat  10 us, pow 44929 mW, 2700 MHz
acpicpu0: P7: FFH, lat  10 us, pow 40138 mW, 2500 MHz
acpicpu0: P8: FFH, lat  10 us, pow 36144 mW, 2300 MHz
acpicpu0: P9: FFH, lat  10 us, pow 32318 mW, 2100 MHz
acpicpu0: P10: FFH, lat  10 us, pow 28643 mW, 1900 MHz
acpicpu0: P11: FFH, lat  10 us, pow 24566 mW, 1700 MHz
acpicpu0: P12: FFH, lat  10 us, pow 19331 mW, 1400 MHz
acpicpu0: P13: FFH, lat  10 us, pow 16209 mW, 1200 MHz
acpicpu0: P14: FFH, lat  10 us, pow 13237 mW, 1000 MHz
acpicpu0: P15: FFH, lat  10 us, pow 10403 mW,  800 MHz
acpicpu0: T0: I/O, lat   1 us, pow     0 mW, 100 %
acpicpu0: T1: I/O, lat   1 us, pow     0 mW,  88 %
acpicpu0: T2: I/O, lat   1 us, pow     0 mW,  76 %
acpicpu0: T3: I/O, lat   1 us, pow     0 mW,  64 %
acpicpu0: T4: I/O, lat   1 us, pow     0 mW,  52 %
acpicpu0: T5: I/O, lat   1 us, pow     0 mW,  40 %
acpicpu0: T6: I/O, lat   1 us, pow     0 mW,  28 %
acpicpu0: T7: I/O, lat   1 us, pow     0 mW,  16 %
coretemp0 at cpu0: thermal sensor, 1 C resolution, Tjmax=100
acpicpu1 at cpu1: ACPI CPU
coretemp1 at cpu1: thermal sensor, 1 C resolution, Tjmax=100
acpicpu2 at cpu2: ACPI CPU
coretemp2 at cpu2: thermal sensor, 1 C resolution, Tjmax=100
acpicpu3 at cpu3: ACPI CPU
coretemp3 at cpu3: thermal sensor, 1 C resolution, Tjmax=100
acpicpu4 at cpu4: ACPI CPU
acpicpu5 at cpu5: ACPI CPU
acpicpu6 at cpu6: ACPI CPU
acpicpu7 at cpu7: ACPI CPU
cpu0: CPU base freq 3800000000 Hz
cpu0: CPU max freq 4200000000 Hz
cpu0: TSC freq CPUID 3792000000 Hz
cpu0: TSC freq calibrated 3792005000 Hz
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "TSC" frequency 3792005000 Hz quality 3000
uhub0 at usb0: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
uhub0: 10 ports with 10 removable, self powered
uhub1 at usb1: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
uhub1: 16 ports with 16 removable, self powered
ld0: GPT GUID: 6f442b61-ad54-4585-a4d9-3466475bd0aa
ld1: GPT GUID: 048741ec-28fb-4a88-9ec6-21837a607601
dk0 at ld0: "8f45743c-9919-4142-9ebd-f11f3c2e34fa", 262144 blocks at 2048, type: msdos
dk1 at ld0: "3f28e3a2-2bcc-4cb5-b02b-e6e61415c8d1", 4194304 blocks at 264192, type: ffs
dk2 at ld0: "4313afe5-f955-4b33-80f3-4251efd2148d", 133953536 blocks at 4458496, type: swap
dk3 at ld1: "09ed0d9a-a209-459f-a6c5-feee0dd4721b", 262144 blocks at 2048, type: msdos
dk4 at ld1: "b69a9def-4635-4b6e-83f6-b74676b93cdd", 4194304 blocks at 264192, type: ffs
dk5 at ld1: "c2bd914d-4934-4aaf-9563-4a8d45263d3b", 133953536 blocks at 4458496, type: swap
dk6 at ld1: "8df6f05d-c8b5-4d92-8c49-66e3c60b42c7", 1815111055 blocks at 138414080, type: zfs
IPsec: Initialized Security Association Processing.
aes: Intel AES-NI
chacha: x86 SSE2 ChaCha
uhidev0 at uhub1 port 14 configuration 1 interface 0
uhidev0: vendor 1241 (0x1241) product 1203 (0x1203), rev 2.00/2.30, addr 1, iclass 3/1
ukbd0 at uhidev0
wskbd0 at ukbd0: console keyboard
uhidev1 at uhub1 port 14 configuration 1 interface 1
uhidev1: vendor 1241 (0x1241) product 1203 (0x1203), rev 2.00/2.30, addr 1, iclass 3/0
uhidev1: 2 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=3, output=0, feature=0
ahcisata0 port 0: PHY offline
ahcisata0 port 2: PHY offline
ahcisata0 port 1: PHY offline
ahcisata0 port 3: PHY offline
boot device: ld0
root on dk1 dumps on dk2
root file system type: ffs
kern.module.path=/stand/amd64/9.99.92/modules
kern info: [drm] initializing kernel modesetting (CEDAR 0x1002:0x68F2 0x1002:0x0126).
kern info: [drm] register mmio base: 0xd4100000
kern info: [drm] register mmio size: 131072
kern info: ATOM BIOS: CEDAR
radeon0: info: VRAM: 512M 0x0000000000000000 - 0x000000001FFFFFFF (512M used)
radeon0: info: GTT: 1024M 0x0000000020000000 - 0x000000005FFFFFFF
kern info: [drm] Detected VRAM RAM=200M, BAR=256M
kern info: [drm] RAM width 64bits DDR
Zone  kernel: Available graphics memory: 11081336 kiB
Zone   dma32: Available graphics memory: 2097152 kiB
kern info: [drm] radeon: 512M of VRAM memory ready
kern info: [drm] radeon: 1024M of GTT memory ready.
kern info: [drm] Loading CEDAR Microcode
kern info: [drm] Internal thermal controller with fan control
kern info: [drm] radeon: dpm initialized
kern info: [drm] GART: num cpu pages 262144, num gpu pages 262144
kern info: [drm] PCIE GART of 1024M enabled (table at 0x000000000025E000).
radeon0: info: WB enabled
radeon0: info: fence driver on ring 0 use gpu addr 0x0000000020000c00 and cpu addr 0x0xffffb5d400bf9c00
radeon0: info: fence driver on ring 3 use gpu addr 0x0000000020000c0c and cpu addr 0x0xffffb5d400bf9c0c
radeon0: info: fence driver on ring 5 use gpu addr 0x000000000005c418 and cpu addr 0x0xffff90827295c418
kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
kern info: [drm] Driver supports precise vblank timestamp query.
radeon0: info: radeon: MSI limited to 32-bit
radeon0: info: radeon: using MSI.
allocated pic msi7 type edge pin 0 level 6 to cpu1 slot 2 idt entry 98
radeon0: interrupting at msi7 vec 0 (radeon0)
kern info: [drm] radeon: irq initialized.
kern info: [drm] ring test on 0 succeeded in 1 usecs
kern error: [drm:(/hurz/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_r600_dma.c:274)r600_dma_ring_test] *ERROR* radeon: ring 3 test failed (0xCAFEDEAD)
radeon0: autoconfiguration error: error: disabling GPU acceleration
kern info: [drm] Radeon Display Connectors
kern info: [drm] Connector 0:
kern info: [drm]   DP-1
kern info: [drm]   HPD3
kern info: [drm]   DDC: 0x6460 0x6460 0x6464 0x6464 0x6468 0x6468 0x646c 0x646c
kern info: [drm]   Encoders:
kern info: [drm]     DFP1: INTERNAL_UNIPHY1
kern info: [drm] Connector 1:
kern info: [drm]   DP-2
kern info: [drm]   HPD1
kern info: [drm]   DDC: 0x6450 0x6450 0x6454 0x6454 0x6458 0x6458 0x645c 0x645c
kern info: [drm]   Encoders:
kern info: [drm]     DFP2: INTERNAL_UNIPHY
kern info: [drm] Connector 2:
kern info: [drm]   DVI-I-1
kern info: [drm]   HPD2
kern info: [drm]   DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c
kern info: [drm]   Encoders:
kern info: [drm]     DFP3: INTERNAL_UNIPHY1
kern info: [drm]     CRT2: INTERNAL_KLDSCP_DAC2
kern info: [drm] Connector 3:
kern info: [drm]   DVI-I-2
kern info: [drm]   HPD4
kern info: [drm]   DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c
kern info: [drm]   Encoders:
kern info: [drm]     DFP4: INTERNAL_UNIPHY
kern info: [drm]     CRT1: INTERNAL_KLDSCP_DAC1
radeondrmkmsfb0 at radeon0
radeondrmkmsfb0: framebuffer at 0xc045f000, size 1680x1050, depth 32, stride 6912
warning: /hurz/src/sys/external/bsd/drm2/dist/drm/radeon/radeon_evergreen.c:4620: Can't enable IRQ/MSI because no handler is installed
wsdisplay0 at radeondrmkmsfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)

>How-To-Repeat:
plug in this card...
>Fix:

>Audit-Trail:
From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org
Subject: re: kern/56714: Radeon acceleration not working with SAPPHIRE AMD FIREPRO 2270 x1
Date: Tue, 06 Dec 2022 13:18:55 +1100

 this is also the same problem that triggers PR#57059, which has
 a teardown issue that causes a panic afterwards.


 > kern error: [drm:(/hurz/src/sys/external/bsd/drm2/dist/drm/radeon/radeon=
 _r600_dma.c:274)r600_dma_ring_test] *ERROR* radeon: ring 3 test failed (0x=
 CAFEDEAD)

 we've recently made some progresss in understanding this problem.

 it appears to happen on UEFI boots only.  at least 3 people have
 confirmed this fixes (or breaks) their systems.

 in confirmed i was able to break it on my ryzen 3600 system by
 turning on uefi.  this systems normally runs with a serial console
 (which is not supported by the uefi on the host, hence using bios
 normally), so as part of the effort to debug this i forced the
 kernel to use serial console using these options:

 options         CONS_OVERRIDE
 options         CONSDEVNAME=3D"\"com\""
 options         CONSPEED=3D115200
 options         CONADDR=3D0x3f8

 (note that previously, CONS_OVERRIDE was not required.)

 however, this kernel boots from UEFI and *does* have working
 radeon acceleration.  eg:

 Dec  2 08:11:57 the-blessing /netbsd: [  24.6873761] {drm:netbsd:r600_dma_=
 ring_test+0x22c} *ERROR* radeon: ring 3 test failed (0xCAFEDEAD) after 100=
 000 usecs

 vs

 Dec  2 08:53:42 the-blessing /netbsd: [ 2057.8790796] [drm] ring test on 3=
  succeeded in 2 usecs


 hopefully this data point can help isolate the cause.


 .mrg.

From: Onno van der Linden <o.vd.linden@quicknet.nl>
To: gnats-bugs@netbsd.org
Cc: mrg@eterna.com.au
Subject: Re: kern/56714
Date: Wed, 7 Dec 2022 20:42:29 +0100

 Another UEFI boot vs graphics accelaration data point:

 https://github.com/freebsd/drm-kmod/issues/60

 I tried the gop 640x480 workaround but that failed for me.

 Onno

From: "matthew green" <mrg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56714 CVS commit: src/sys/external/bsd/drm2/radeon
Date: Tue, 7 Mar 2023 09:47:48 +0000

 Module Name:	src
 Committed By:	mrg
 Date:		Tue Mar  7 09:47:48 UTC 2023

 Modified Files:
 	src/sys/external/bsd/drm2/radeon: radeon_pci.c

 Log Message:
 radeon: Kick out genfb on firmware framebuffer before initializing.

 this is the same change as nouveau_pci.c:1.37, and should fix at
 least PR#56714 and i thought at least another PR i can't find right
 now.  it fixes at least 2 different radeon cards for me on UEFI
 booted system.

 XXX: pullup-10 also include the original change:
    http://mail-index.netbsd.org/source-changes/2023/03/01/msg143606.html


 To generate a diff of this commit:
 cvs rdiff -u -r1.21 -r1.22 src/sys/external/bsd/drm2/radeon/radeon_pci.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56714 CVS commit: [netbsd-10] src/sys
Date: Mon, 20 Mar 2023 17:24:15 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Mar 20 17:24:15 UTC 2023

 Modified Files:
 	src/sys/dev/wscons [netbsd-10]: wsdisplay.c wsdisplayvar.h
 	src/sys/external/bsd/drm2/dist/drm/amd/amdgpu [netbsd-10]:
 	    amdgpu_gart.c
 	src/sys/external/bsd/drm2/nouveau [netbsd-10]: nouveau_pci.c
 	src/sys/external/bsd/drm2/radeon [netbsd-10]: radeon_pci.c

 Log Message:
 Pull up following revision(s) (requested by mrg in ticket #122):

 	sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c: revision 1.11
 	sys/external/bsd/drm2/nouveau/nouveau_pci.c: revision 1.37
 	sys/external/bsd/drm2/radeon/radeon_pci.c: revision 1.22
 	sys/dev/wscons/wsdisplay.c: revision 1.166
 	sys/dev/wscons/wsdisplayvar.h: revision 1.57

 amdgpu: Fix bogus loop invariant assertions in amdgpu_gart_map.
 nouveau: Kick out genfb on firmware framebuffer before initializing.

 PR kern/53126

 radeon: Kick out genfb on firmware framebuffer before initializing.
 this is the same change as nouveau_pci.c:1.37, and should fix at
 least PR#56714 and i thought at least another PR i can't find right
 now.  it fixes at least 2 different radeon cards for me on UEFI
 booted system.


 To generate a diff of this commit:
 cvs rdiff -u -r1.165 -r1.165.4.1 src/sys/dev/wscons/wsdisplay.c
 cvs rdiff -u -r1.56 -r1.56.4.1 src/sys/dev/wscons/wsdisplayvar.h
 cvs rdiff -u -r1.10 -r1.10.4.1 \
     src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c
 cvs rdiff -u -r1.36 -r1.36.4.1 \
     src/sys/external/bsd/drm2/nouveau/nouveau_pci.c
 cvs rdiff -u -r1.21 -r1.21.4.1 src/sys/external/bsd/drm2/radeon/radeon_pci.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.