Bug 222031 - x11-drivers/xf86-video-ati: No accelerated rendering
Summary: x11-drivers/xf86-video-ati: No accelerated rendering
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-03 17:16 UTC by Alexander Klein
Modified: 2018-10-28 09:55 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments
Output of devinfo (11.71 KB, text/plain)
2017-09-09 11:37 UTC, Alexander Klein
no flags Details
Output of pciconf (8.24 KB, text/plain)
2017-09-09 11:38 UTC, Alexander Klein
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Klein 2017-09-03 17:16:44 UTC
I have a fresh install of 11.0/amd64 on a Fujitsu FUTRO S550-2, and for one reason or another, accelerated rendering does not work.

The system is the following:

% uname -a

FreeBSD Fujitsu-TCL 11.0-RELEASE-p12 FreeBSD 11.0-RELEASE-p12 #0: Wed Aug  9 10:03:39 UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64


I load the drivers in loader.conf, but this does not seem to be related to the problem, as removing the relevant lines does nothing to remedy the problem:

% cat loader.conf 
loader_logo="beastie"

if_urtwn_load="YES"

linux_load="YES"

radeonkmsfw_RS690_cp_load="YES"
radeonkms_load="YES"


Here are the relevant messages from /var/log/messages, note the "*ERROR* radeon: ring test failed"-message:

Sep  3 18:24:48 Fujitsu-TCL kernel: vgapci0: <VGA-compatible display> port 0x9000-0x90ff mem 0xf0000000-0xf7ffffff,0xf8200000-0xf820ffff,0xf8100000-0xf81fffff irq 18 a
t device 5.0 on pci1
Sep  3 18:24:48 Fujitsu-TCL kernel: drmn0: <ATI Radeon RS690 X1270 IGP> on vgapci0
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] RADEON_IS_PCI
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] initializing kernel modesetting (RS690 0x1002:0x791F 0x1734:0x111D).
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] register mmio base: 0xF8200000
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] register mmio size: 65536
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon_atrm_get_bios: ===> Try ATRM...
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon_atrm_get_bios: IGP card detected, skipping this method...
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon_acpi_vfct_bios: ===> Try VFCT...
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon_acpi_vfct_bios: Get "VFCT" ACPI table
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon_acpi_vfct_bios: Failed to get "VFCT" table: AE_NOT_FOUND
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] igp_read_bios_from_vram: ===> Try IGP's VRAM...
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] igp_read_bios_from_vram: VRAM base address: 0xf0000000
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] igp_read_bios_from_vram: Map address: 0xfffff800f0000000 (262144 bytes)
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] igp_read_bios_from_vram: Incorrect BIOS signature: 0x0000
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon_read_bios: ===> Try PCI Expansion ROM...
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon_read_bios: Map address: 0xfffff800000c0000 (131072 bytes)
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] ATOM BIOS: FSC
Sep  3 18:24:48 Fujitsu-TCL kernel: drmn0: info: VRAM: 128M 0x0000000038000000 - 0x000000003FFFFFFF (128M used)
Sep  3 18:24:48 Fujitsu-TCL kernel: drmn0: info: GTT: 512M 0x0000000040000000 - 0x000000005FFFFFFF
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] Driver supports precise vblank timestamp query.
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] MSI enabled 1 message(s)
Sep  3 18:24:48 Fujitsu-TCL kernel: drmn0: info: radeon: using MSI.
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon: irq initialized.
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] Detected VRAM RAM=128M, BAR=128M
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] RAM width 128bits DDR
Sep  3 18:24:48 Fujitsu-TCL kernel: [TTM] Zone  kernel: Available graphics memory: 439956 kiB
Sep  3 18:24:48 Fujitsu-TCL kernel: [TTM] Initializing pool allocator
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon: 128M of VRAM memory ready
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon: 512M of GTT memory ready.
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] GART: num cpu pages 131072, num gpu pages 131072
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon: 1 quad pipes, 1 z pipes initialized.
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] PCIE GART of 512M enabled (table at 0x000000000365B000).
Sep  3 18:24:48 Fujitsu-TCL kernel: drmn0: info: WB enabled
Sep  3 18:24:48 Fujitsu-TCL kernel: drmn0: info: fence driver on ring 0 use gpu addr 0x0000000040000000 and cpu addr 0x0xfffff8000254b000
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] Loading RS690/RS740 Microcode
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon: ring at 0x0000000040001000
Sep  3 18:24:48 Fujitsu-TCL kernel: error: [drm:pid0:r100_ring_test] *ERROR* radeon: ring test failed (scratch(0x15E4)=0xCAFEDEAD)
Sep  3 18:24:48 Fujitsu-TCL kernel: error: [drm:pid0:r100_cp_init] *ERROR* radeon: cp isn't working (-22).
Sep  3 18:24:48 Fujitsu-TCL kernel: drmn0: error: failed initializing CP (-22).
Sep  3 18:24:48 Fujitsu-TCL kernel: drmn0: error: Disabling GPU acceleration
Sep  3 18:24:48 Fujitsu-TCL kernel: error: [drm:pid0:r100_cp_fini] *ERROR* Wait for CP idle timeout, shutting down CP.
Sep  3 18:24:48 Fujitsu-TCL kernel: error: [drm:pid0:r100_cp_disable] *ERROR* Failed to wait GUI idle while programming pipes. Bad things might happen.
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon: cp finalized
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] radeon_device_init: Taking over the fictitious range 0xf0000000-0xf8000000

[...]
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] Radeon Display Connectors
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] Connector 0:
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]   DVI-I-1
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]   HPD2
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]   DDC: 0x7e40 0x7e60 0x7e44 0x7e64 0x7e48 0x7e68 0x7e4c 0x7e6c
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]   Encoders:
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]     CRT1: INTERNAL_KLDSCP_DAC1
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]     DFP2: INTERNAL_DDI
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] Connector 1:
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]   HDMI-A-1
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]   DDC: 0x7e40 0x7e50 0x7e44 0x7e54 0x7e48 0x7e58 0x7e4c 0x7e5c
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]   Encoders:
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]     DFP3: INTERNAL_LVTM1
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] Connector DVI-I-1: get mode from tunables:
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]   - kern.vt.fb.modes.DVI-I-1
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]   - kern.vt.fb.default_mode
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] Connector HDMI-A-1: get mode from tunables:
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]   - kern.vt.fb.modes.HDMI-A-1
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]   - kern.vt.fb.default_mode
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] fb mappable at 0xF0040000
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] vram apper at 0xF0000000
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] size 5242880
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] fb depth is 24
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm]    pitch is 5120
Sep  3 18:24:48 Fujitsu-TCL kernel: fbd0 on drmn0
Sep  3 18:24:48 Fujitsu-TCL kernel: VT: Replacing driver "vga" with new "fb".
Sep  3 18:24:48 Fujitsu-TCL kernel: info: [drm] Initialized radeon 2.29.0 20080528 for drmn0 on minor 0
Sep  3 18:24:48 Fujitsu-TCL kernel: vgapci0: Boot video device


I found an old problem reported for SUSE with very similar symptoms, which may or may not be related to this problem:

https://forums.opensuse.org/showthread.php/450218-openSUSE-11-3-RS690-*ERROR*-radeon-ring-test-failed
Comment 1 Alexander Klein 2017-09-09 11:36:25 UTC
Just to be absolutely sure that the problem is not related to the driver being loaded too early, I removed the line from /boot/loader.conf, and instead load the driver in /etc/rc.conf via kld_list now, but nothing changed.
Comment 2 Alexander Klein 2017-09-09 11:37:57 UTC
Created attachment 186194 [details]
Output of devinfo
Comment 3 Alexander Klein 2017-09-09 11:38:31 UTC
Created attachment 186195 [details]
Output of pciconf
Comment 4 Alexander Klein 2017-09-17 15:52:54 UTC
Having upgraded the machine to 11.1 along with installing 2GB of RAM, things have changed a bit:

Every once in a while, 3D-acceleration will work, albeit not reliably, and the status may change upon every boot.

There is an option in the BIOS for setting the "UMA Frame Buffer Size", which has no obvious influence on the problem. I tried Auto, 128MB, 256MB and a few others, but acceleration enabling was flakey, no matter what.
Comment 5 Niclas Zeising freebsd_committer freebsd_triage 2018-08-02 20:54:19 UTC
Is this still relevant?  Can you try on FreeBSD 11.2 (or current) and graphics/drm-stable-kmod?
Comment 6 Niclas Zeising freebsd_committer freebsd_triage 2018-10-28 09:55:33 UTC
Feedback timeout