NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/59257: Radeon R100 troubles
>Number: 59257
>Category: kern
>Synopsis: Radeon R100 troubles
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Apr 06 22:00:00 +0000 2025
>Originator: Ali
>Release: 10.1
>Organization:
>Environment:
NetBSD aquali.lan 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
I am trying to run X11 on NetBSD i386 on a laptop with an ATI Radeon IGP320M graphics card (approximately from 2002).
I can get it to work with the "radeon" driver, but that requires manually entering DDB (through "boot -d") and setting "w radeon_pci_ignore_r100_r200 0".
I'm asking for a build-time option (something like "option RADEON_R100_R200") that I can just set in my kernel config instead of manually typing "w radeon_pci_ignore_r100_r200 0" in on every boot.
Using "radeondrm" instead doesn't work with the X11 from the distribution sets. It needs the X11 from pkgsrc with 'x11/xf86-video-ati6' (also from pkgsrc). According to https://www.x.org/wiki/radeon/, version 7 of xf86-video-ati removed support for UMS. If the radeondrm driver only can use UMS, then I assume that's why it doesn't with the distribution X11.
So "radeon" both works better on my hardware and doesn't require installing obsolete X11 modules from pkgsrc.
There is still the issue that the ring test fails and GPU acceleration is turned off (see [ 5.660226] in the attached dmesg). But the system is usable (and faster then "radeondrm" somehow) even in this state.
---
Here is dmesg output when booting after "w radeon_pci_ignore_r100_r200 0":
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[ 1.000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[ 1.000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[ 1.000000] 2024
[ 1.000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.000000] The Regents of the University of California. All rights reserved.
[ 1.000000] NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024
[ 1.000000] mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/i386/compile/GENERIC
[ 1.000000] total memory = 446 MB
[ 1.000000] avail memory = 414 MB
[ 1.000000] timecounter: Timecounters tick every 10.000 msec
[ 1.000000] Kernelized RAIDframe activated
[ 1.000000] timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
[ 1.000004] mainbus0 (root)
[ 1.000004] cpu0 at mainbus0
[ 1.000004] ACPI Error: AE_BAD_PARAMETER, Thread 3243113152 could not acquire Mutex [ACPI_MTX_Tables] (0x2) (20221020/utmutex-326)
[ 1.000004] cpu0: Use cpuid to serialize rdtsc
[ 1.000004] cpu0: mobile AMD Athlon (tm) 1800+ , id 0x680
[ 1.000004] cpu0: node 0, package 0, core 0, smt 0
[ 1.000004] cpu0: searching errata for cpu revision 0x00000780
[ 1.000004] pci0 at mainbus0 bus 0: configuration mode 1
[ 1.000004] pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
[ 1.000004] pchb0 at pci0 dev 0 function 0: ATI Technologies product cab0 (rev. 0x13)
[ 1.000004] agp at pchb0 not configured
[ 1.000004] ppb0 at pci0 dev 1 function 0: ATI Technologies product 700f (rev. 0x01)
[ 1.000004] pci1 at ppb0 bus 1
[ 1.000004] pci1: i/o space, memory space enabled
[ 1.000004] radeon0 at pci1 dev 5 function 0: ATI Technologies Radeon IGP320M (U1) 4336 (rev. 0x00)
[ 1.000004] radeon0: autoconfiguration error: unable to reserve VGA registers for i386 radeondrmkms hack
[ 1.000004] ohci0 at pci0 dev 2 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
[ 1.000004] ohci0: interrupting at irq 11
[ 1.000004] ohci0: OHCI version 1.0, legacy support
[ 1.000004] usb0 at ohci0: USB revision 1.0
[ 1.000004] Acer Labs product 5457 (modem communications) at pci0 dev 3 function 0 not configured
[ 1.000004] aceride0 at pci0 dev 4 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc4)
[ 1.000004] aceride0: bus-master DMA support present
[ 1.000004] aceride0: using PIO transfers above 137GB as workaround for 48bit DMA access bug, expect reduced performance
[ 1.000004] aceride0: primary channel configured to compatibility mode
[ 1.000004] aceride0: primary channel interrupting at irq 14
[ 1.000004] atabus0 at aceride0 channel 0
[ 1.000004] aceride0: secondary channel configured to compatibility mode
[ 1.000004] aceride0: secondary channel interrupting at irq 15
[ 1.000004] atabus1 at aceride0 channel 1
[ 1.000004] alipm0 at pci0 dev 6 function 0: 74KHz clock
[ 1.000004] iic0 at alipm0: I2C bus
[ 1.000004] pcib0 at pci0 dev 7 function 0: Acer Labs M1533 PCI-ISA Bridge (rev. 0x00)
[ 1.000004] autri0 at pci0 dev 8 function 0: Acer Labs M5451 AC-Link Controller Audio Device (rev. 0x02)
[ 1.000004] autri0: interrupting at irq 11
[ 1.000004] autri0: ac97: Avance Logic ALC202 codec; headphone, 20 bit DAC, 18 bit ADC, Realtek 3D
[ 1.000004] audio0 at autri0: playback, capture, full duplex, independent
[ 1.000004] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
[ 1.000004] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
[ 1.000004] midi0 at autri0: 4DWAVE MIDI UART
[ 1.000004] rtk0 at pci0 dev 9 function 0: Realtek 8139 10/100BaseTX (rev. 0x10)
[ 1.000004] rtk0: interrupting at irq 11
[ 1.000004] rtk0: Ethernet address 00:02:3f:b1:49:c2
[ 1.000004] rlphy0 at rtk0 phy 7: Realtek internal PHY
[ 1.000004] rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
[ 1.000004] fwohci0 at pci0 dev 10 function 0: VIA Technologies VT6306 IEEE 1394 Host Controller (rev. 0x46)
[ 1.000004] fwohci0: interrupting at irq 5
[ 1.000004] fwohci0: OHCI version 1.0 (ROM=1)
[ 1.000004] fwohci0: No. of Isochronous channels is 8.
[ 1.000004] fwohci0: EUI64 00:02:3f:2a:27:00:0b:a0
[ 1.000004] fwohci0: Phy 1394a available S400, 3 ports.
[ 1.000004] fwohci0: Link S400, max_rec 2048 bytes.
[ 1.000004] ieee1394if0 at fwohci0: IEEE1394 bus
[ 1.000004] fwip0 at ieee1394if0: IP over IEEE1394
[ 1.000004] fwohci0: Initiate bus reset
[ 1.000004] cbb0 at pci0 dev 11 function 0: ENE Technology CB1420 CardBus Controller (rev. 0x01)
[ 1.000004] cbb1 at pci0 dev 11 function 1: ENE Technology CB1420 CardBus Controller (rev. 0x01)
[ 1.000004] ohci1 at pci0 dev 15 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
[ 1.000004] ohci1: interrupting at irq 10
[ 1.000004] ohci1: OHCI version 1.0, legacy support
[ 1.000004] usb1 at ohci1: USB revision 1.0
[ 1.000004] isa0 at pcib0
[ 1.000004] lpt0 at isa0 port 0x378-0x37b irq 7
[ 1.000004] com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, 16-byte FIFO
[ 1.000004] pckbc0 at isa0 port 0x60-0x64
[ 1.000004] pckbd0 at pckbc0 (kbd slot)
[ 1.000004] pckbc0: using irq 1 for kbd slot
[ 1.000004] wskbd0 at pckbd0: console keyboard
[ 1.000004] pms0 at pckbc0 (aux slot)
[ 1.000004] pms0: ALPS PS/2 V2 pointing device
[ 1.000004] pckbc0: using irq 12 for aux slot
[ 1.000004] wsmouse0 at pms0 mux 0
[ 1.000004] attimer0 at isa0 port 0x40-0x43
[ 1.000004] pcppi0 at isa0 port 0x61
[ 1.000004] midi1 at pcppi0: PC speaker
[ 1.000004] sysbeep0 at pcppi0
[ 1.000004] fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
[ 1.000004] attimer0: attached to pcppi0
[ 1.000004] cbb0: cacheline 0x10 lattimer 0x40
[ 1.000004] cbb0: bhlc 0x824010
[ 1.000004] cbb0: interrupting at irq 11
[ 1.000004] cardslot0 at cbb0
[ 1.000004] cardbus0 at cardslot0: bus 2
[ 1.000004] pcmcia0 at cardslot0
[ 1.000004] cbb1: cacheline 0x10 lattimer 0x40
[ 1.000004] cbb1: bhlc 0x824010
[ 1.000004] cbb1: interrupting at irq 11
[ 1.000004] cardslot1 at cbb1
[ 1.000004] cardbus1 at cardslot1: bus 3
[ 1.000004] pcmcia1 at cardslot1
[ 1.000004] powernow0 at cpu0: AMD Powernow! K7
[ 1.000004] fwohci0: BUS reset
[ 1.000004] fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
[ 1.000004] ieee1394if0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me)
[ 1.000004] ieee1394if0: bus manager 0
[ 1.000004] WARNING: system needs entropy for security; see entropy(7)
[ 1.014906] timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
[ 1.020174] fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
[ 1.020174] IPsec: Initialized Security Association Processing.
[ 1.040175] uhub0 at usb0: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[ 1.040175] uhub0: 2 ports with 2 removable, self powered
[ 1.040175] uhub1 at usb1: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[ 1.040175] uhub1: 2 ports with 2 removable, self powered
[ 4.140204] wd0 at atabus0 drive 0
[ 4.160204] wd0: <FUJITSU MHR2040AT>
[ 4.160204] wd0: drive supports 16-sector PIO transfers, LBA48 addressing
[ 4.160204] wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
[ 4.680212] wd0: 32-bit data port
[ 4.680212] wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
[ 4.690213] wd0(aceride0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
[ 4.690213] atapibus0 at atabus1: 2 targets
[ 4.700216] cd0 at atapibus0 drive 0: <QSI CD-RW/DVD-ROM SBW-161, , SX09> cdrom removable
[ 4.700216] cd0: 32-bit data port
[ 4.700216] cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
[ 4.700216] cd0(aceride0:1:0): using PIO mode 4
[ 4.700216] swwdog0: software watchdog initialized
[ 4.810214] WARNING: 1 error while detecting hardware; check system log.
[ 4.810214] boot device: wd0
[ 4.810214] root on wd0a dumps on wd0b
[ 4.860215] root file system type: ffs
[ 4.870216] kern.module.path=/stand/i386/10.1/modules
[ 4.870216] [drm] initializing kernel modesetting (RS100 0x1002:0x4336 0x1734:0x100A 0x00).
[ 4.870216] [drm] register mmio base: 0xe8500000
[ 4.870216] [drm] register mmio size: 65536
[ 4.870216] ACPI Error: AE_BAD_PARAMETER, Thread 3258963392 could not acquire Mutex [ACPI_MTX_Tables] (0x2) (20221020/utmutex-326)
[ 4.870216] ACPI Error: Mutex [ACPI_MTX_Tables] (0x2) is not acquired, cannot release (20221020/utmutex-367)
[ 4.880228] {drm:netbsd:radeon_agp_init+0x38} *ERROR* Unable to acquire AGP: -19
[ 4.880228] [drm] Forcing AGP to PCI mode
[ 4.880228] radeon0: VRAM: 64M 0x000000001C000000 - 0x000000001FFFFFFF (64M used)
[ 4.880228] radeon0: GTT: 512M 0x0000000020000000 - 0x000000003FFFFFFF
[ 4.890262] [drm] Detected VRAM RAM=40M, BAR=128M
[ 4.890262] [drm] RAM width 64bits DDR
[ 4.890262] Zone kernel: Available graphics memory: 26358 KiB
[ 4.890262] [drm] radeon: 64M of VRAM memory ready
[ 4.890262] [drm] radeon: 512M of GTT memory ready.
[ 4.890262] [drm] GART: num cpu pages 131072, num gpu pages 131072
[ 4.940213] [drm] PCI GART of 512M enabled (table at 0x00000000025C9000).
[ 4.940213] radeon0: WB disabled
[ 4.940213] radeon0: fence driver on ring 0 use gpu addr 0x0000000020000000 and cpu addr 0x0xd6c30000
[ 4.940213] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 4.940213] [drm] Driver supports precise vblank timestamp query.
[ 4.940213] radeon0: interrupting at irq 5 (radeon0)
[ 4.940213] [drm] radeon: irq initialized.
[ 4.940213] [drm] Loading R100 Microcode
[ 5.040230] [drm] radeon: ring at 0x0000000020001000
[ 5.660226] {drm:netbsd:r100_ring_test+0x2cd} *ERROR* radeon: ring test failed (scratch(0x15E4)=0xCAFEDEAD)
[ 5.660226] {drm:netbsd:r100_cp_init+0x63e} *ERROR* radeon: cp isn't working (-22).
[ 5.660226] radeon0: autoconfiguration error: error: failed initializing CP (-22).
[ 5.660226] radeon0: autoconfiguration error: error: Disabling GPU acceleration
[ 6.290239] {drm:netbsd:r100_cp_fini+0xaa} *ERROR* Wait for CP idle timeout, shutting down CP.
[ 6.290239] [drm] radeon: cp finalized
[ 6.290239] [drm] Panel ID String: 1024x768
[ 6.290239] [drm] Panel Size 1024x768
[ 6.290239] [drm] No TV DAC info found in BIOS
[ 6.290239] [drm] Radeon Display Connectors
[ 6.290239] [drm] Connector 0:
[ 6.290239] [drm] VGA-1
[ 6.290239] [drm] DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
[ 6.290239] [drm] Encoders:
[ 6.290239] [drm] CRT1: INTERNAL_DAC1
[ 6.290239] [drm] Connector 1:
[ 6.290239] [drm] LVDS-1
[ 6.290239] [drm] Encoders:
[ 6.290239] [drm] LCD1: INTERNAL_LVDS
[ 6.290239] [drm] Connector 2:
[ 6.290239] [drm] SVIDEO-1
[ 6.290239] [drm] Encoders:
[ 6.290239] [drm] TV1: INTERNAL_DAC2
[ 6.370242] radeondrmkmsfb0 at radeon0
[ 6.370242] [drm] Initialized radeon 2.50.0 20080528 for radeon0 on minor 0
[ 6.380244] radeondrmkmsfb0: framebuffer at 0xf0040000, size 1024x768, depth 32, stride 4096
[ 6.560240] wsdisplay0 at radeondrmkmsfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
[ 6.577482] wsmux1: connecting to wsdisplay0
[ 6.577482] entropy: best effort
[ 9.450281] entropy: ready
[ 9.680283] wd0: autoconfiguration error: wd_flushcache: status=0x50a8<ERROR>
[ 9.740284] wd0: autoconfiguration error: wd_flushcache: status=0x50a8<ERROR>
[ 20.750453] wsdisplay0: screen 1 added (default, vt100 emulation)
[ 20.760460] wsdisplay0: screen 2 added (default, vt100 emulation)
[ 20.760460] wsdisplay0: screen 3 added (default, vt100 emulation)
[ 20.770459] wsdisplay0: screen 4 added (default, vt100 emulation)
>How-To-Repeat:
>Fix:
For now: Add a build-time option to enable "radeon" driver for R100 graphics card.
Home |
Main Index |
Thread Index |
Old Index