Black display on boot and Mobility Radeon HD 4670 related freezes and crashes on iMac 11,2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libdrm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
xserver-xorg-video-ati (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have a mid-2010 iMac (iMac 11,2), with a Mobility Radeon HD 4670, running
Linux Mint 21.1 Xfce Edition, and it has several issues. I've decided to report
the issue here since it seems to be a kernel bug, and since Mint is based on
Ubuntu where its kernels are built, I thought it'd be wise to report here and
escalating to the LKML if necessary. Firstly, its display turns off when it
boots, unless an external display is connected, in which case both displays
work fine. But the backlight can't be controlled by typical programs
(brightness buttons don't work, and xbacklight says 'No outputs have backlight
property') apart from light (https:/
only works on kernels 5.15.*, not on 6.3.4, on that kernel only the brightness
value changes, but to no effect. Upon bootup, I can see:
uhci_hcd 0000:00:1a.0: Found HC with no IRQ. Check BIOS/PCI 0000:00:1a.0 setup!
uhci_hcd 0000:00:1a.0: init 0000:00:1a.0 fail, -19
uhci_hcd 0000:00:1d.0: Found HC with no IRQ. Check BIOS/PCI 0000:00:1d.0 setup!
uhci_hcd 0000:00:1d.0: init 0000:00:1d.0 fail, -19
at the top of the screen for a few seconds before the Mint splash screen
takes over.
The device's internal display turns off upon wake up from suspend,
giving the following output in dmesg:
PM: suspend entry (deep)
Filesystems sync: 0.020 seconds
Freezing user space processes ... (elapsed 0.002 seconds) done.
OOM killer disabled.
Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
printk: Suspending console(s) (use no_console_suspend to debug)
sd 1:0:0:0: [sda] Synchronizing SCSI cache
sd 1:0:0:0: [sda] Stopping disk
ACPI: EC: interrupt blocked
ACPI: PM: Preparing to enter system sleep state S3
ACPI: EC: event blocked
ACPI: EC: EC stopped
ACPI: PM: Saving platform NVS memory
Disabling non-boot CPUs ...
smpboot: CPU 1 is now offline
smpboot: CPU 2 is now offline
smpboot: CPU 3 is now offline
ACPI: PM: Low-level resume complete
ACPI: EC: EC started
ACPI: PM: Restoring platform NVS memory
Enabling non-boot CPUs ...
x86: Booting SMP configuration:
smpboot: Booting Node 0 Processor 1 APIC 0x1
Disabled fast string operations
CPU1 is up
smpboot: Booting Node 0 Processor 2 APIC 0x4
Disabled fast string operations
CPU2 is up
smpboot: Booting Node 0 Processor 3 APIC 0x5
Disabled fast string operations
CPU3 is up
ACPI: PM: Waking up from system sleep state S3
ACPI: EC: interrupt unblocked
ACPI: EC: event unblocked
sd 1:0:0:0: [sda] Starting disk
[drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0
[drm] PCIE GART of 1024M enabled (table at 0x000000000014C
radeon 0000:01:00.0: WB enabled
radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000010000c00
radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000010000c0c
radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x000000000005c598
debugfs: File 'radeon_ring_gfx' in directory '0' already present!
debugfs: File 'radeon_ring_dma1' in directory '0' already present!
[drm] ring test on 0 succeeded in 1 usecs
[drm] ring test on 3 succeeded in 2 usecs
debugfs: File 'radeon_ring_uvd' in directory '0' already present!
[drm] ring test on 5 succeeded in 1 usecs
[drm] UVD initialized successfully.
[drm] ib test on ring 0 succeeded in 0 usecs
[drm] ib test on ring 3 succeeded in 0 usecs
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ACPI cmd ef/10:03:
ata1.00: supports DRM functions and may not be fully accessible
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata2.00: ACPI cmd ef/10:03:
ata1.00: ACPI cmd ef/10:03:
ata1.00: supports DRM functions and may not be fully accessible
ata1.00: configured for UDMA/133
ata2.00: ACPI cmd ef/10:03:
ata2.00: configured for UDMA/100
firewire_core 0000:05:00.0: rediscovered device fw0
[drm] ib test on ring 5 succeeded
[drm:radeon_
[drm:radeon_
[drm:radeon_
[drm:radeon_
OOM killer enabled.
Restarting tasks ... done.
video LNXVIDEO:00: Restoring backlight state
PM: suspend exit
wls1: authenticate with 00:5f:67:61:e0:ba
wls1: send auth to 00:5f:67:61:e0:ba (try 1/3)
wls1: authenticated
wls1: associate with 00:5f:67:61:e0:ba (try 1/3)
wls1: RX AssocResp from 00:5f:67:61:e0:ba (capab=0x411 status=0 aid=3)
wls1: associated
IPv6: ADDRCONF(
The cursor also seems to dissapear after some use, although it remains
functional. What I mean is the "icon" for it doesn't exist anymore, but
moving the mouse around I can see some buttons display their shadows
indicating that the mouse is above them and clicking the buttons works.
Using SWcursor in Xorg "fixes" this issue, but the mouse becomes
flickery and this is obviously a sub-optimal hack.
I can consistently get the system to freeze by opening some specific websites
in Firefox: any video on yewtu.be or youtube.com, amazon.co.uk and
discord.com/app after some usage. It seems the thing they have in common is
some sort of video playback, although autoplay is off, but the system freezes
immediately once it finishes (and sometimes before it even does finish) loading
the website. What's even more strange is that local video works, using mpv for
example, and Blink based apps don't seem to suffer as much. Almost no freezes
happen with Chromium and Freetube (which is Blink-based afaik), but the system
does occasionaly freeze for several seconds, and then the internal display
turns off, but is still "functional" in the sense that windows are still
rendered on it and I can drag windows back and forth from it, but it is
completely black, when using these apps. This happens incosistently and
randomly, though. I have some errors for this experience after using Discord
for a few minutes on chromium:
radeon 0000:01:00.0: ring 0 stalled for more than 10248msec
radeon 0000:01:00.0: GPU lockup (current fence id 0x000000000000c9f0 last fence id 0x000000000000caa2 on ring 0)
radeon 0000:01:00.0: failed to get a new IB (-35)
radeon 0000:01:00.0: failed to get a new IB (-35)
[drm:radeon_
[drm:radeon_
radeon 0000:01:00.0: Saved 5686 dwords of commands on ring 0.
radeon 0000:01:00.0: GPU softreset: 0x00000019
radeon 0000:01:00.0: R_008010_
radeon 0000:01:00.0: R_008014_
radeon 0000:01:00.0: R_000E50_
radeon 0000:01:00.0: R_008674_
radeon 0000:01:00.0: R_008678_
radeon 0000:01:00.0: R_00867C_
radeon 0000:01:00.0: R_008680_CP_STAT = 0x80818647
radeon 0000:01:00.0: R_00D034_
radeon 0000:01:00.0: R_008020_
radeon 0000:01:00.0: SRBM_SOFT_
radeon 0000:01:00.0: R_008010_
radeon 0000:01:00.0: R_008014_
radeon 0000:01:00.0: R_000E50_
radeon 0000:01:00.0: R_008674_
radeon 0000:01:00.0: R_008678_
radeon 0000:01:00.0: R_00867C_
radeon 0000:01:00.0: R_008680_CP_STAT = 0x00000000
radeon 0000:01:00.0: R_00D034_
radeon 0000:01:00.0: GPU reset succeeded, trying to resume
[drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0
[drm] PCIE GART of 1024M enabled (table at 0x000000000014C
radeon 0000:01:00.0: WB enabled
radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000010000c00
radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000010000c0c
radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x000000000005c598
debugfs: File 'radeon_ring_gfx' in directory '0' already present!
debugfs: File 'radeon_ring_dma1' in directory '0' already present!
[drm] ring test on 0 succeeded in 1 usecs
[drm] ring test on 3 succeeded in 2 usecs
debugfs: File 'radeon_ring_uvd' in directory '0' already present!
[drm] ring test on 5 succeeded in 1 usecs
[drm] UVD initialized successfully.
[drm:radeon_
[drm:radeon_
[drm] ib test on ring 0 succeeded in 0 usecs
[drm] ib test on ring 3 succeeded in 0 usecs
[drm:uvd_
[drm:radeon_
The screen was garbled onto the second screen as shown in the attached
picture.
Errors from firefox irrecoverable freeze/crash (which seem to be
identical regardless of website that triggers the bug):
------------[ cut here ]------------
WARNING: CPU: 3 PID: 882 at drivers/
Modules linked in: ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs cpuid tls ccm rfcomm bnep zfs(PO) zunicode(PO) zzstd(O) zlua(O) zavl(PO) icp(PO) zcommon(PO) znvpair(PO) spl(O) intel_powerclamp coretemp snd_hda_
dm_region_hash dm_log hid_logitech_hidpp radeon i2c_algo_bit drm_ttm_helper uas ttm hid_logitech_dj hid_appleir hid_generic usbhid hid usb_storage drm_kms_helper syscopyarea sysfillrect sysimgblt ahci fb_sys_fops firewire_ohci cec libahci i2c_i801 firewire_core rc_core i2c_smbus lpc_ich crc_itu_t drm tg3 video
CPU: 3 PID: 882 Comm: Xorg Tainted: P O 5.15.0-56-generic #62-Ubuntu
Hardware name: Apple Inc. iMac11,
RIP: 0010:ttm_
Code: b8 fe ff ff e8 0e 45 03 00 49 8b 74 24 08 4c 89 ef e8 51 2a 00 00 49 8b 7c 24 98 e9 2f fd ff ff e8 72 97 e1 e0 e9 63 fd ff ff <0f> 0b e9 01 fd ff ff e8 81 95 e1 e0 e9 e2 fe ff ff be 03 00 00 00
RSP: 0018:ffffbbf602
RAX: 0000000000000001 RBX: ffffbbf602617cf0 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffa024441d1038 RDI: ffffa02445ceadd8
RBP: ffffbbf602617cb8 R08: ffffa02445ceadd8 R09: 0000000000000064
R10: 0000000000000010 R11: ffffa02452056b00 R12: ffffa02445ceadd8
R13: ffffa0245a0186f0 R14: ffffa02445ceac78 R15: ffffa02444287840
FS: 00007fe4f5961a8
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe4e9fb65b0 CR3: 0000000197610001 CR4: 00000000000206e0
Call Trace:
<TASK>
ttm_bo_
radeon_
radeon_
drm_gem_
drm_gem_
dma_buf_
__dentry_
dentry_
dput+0x137/0x180
__fput+0xf0/0x260
____fput+0xe/0x20
task_work_
do_exit+
do_group_
__x64_
do_syscall_
? exit_to_
? irqentry_
? irqentry_
? exc_page_
entry_
RIP: 0033:0x7fe4f5dbcca1
Code: Unable to access opcode bytes at RIP 0x7fe4f5dbcc77.
RSP: 002b:00007fffc3
RAX: ffffffffffffffda RBX: 00007fe4f5ee7a00 RCX: 00007fe4f5dbcca1
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: fffffffffffffc78 R09: 0000000000000000
R10: 00007fe4f5739600 R11: 0000000000000246 R12: 00007fe4f5ee7a00
R13: 0000000000000000 R14: 00007fe4f5eecee8 R15: 00007fe4f5eecf00
</TASK>
---[ end trace 0b2cbb582633a5cd ]---
Lastly, on only one bootup, I noticed semi-random artifacts in text and
icons that seemed to go away with a logout/login. Identical artifacts
seemed to appear in the exact same place on the exact same characters
wherever those characters appeared. I've attached a few photos showing
this. I've also noticed this in dmesg when the artifacts appeared:
kauditd_printk_skb: 16 callbacks suppressed
Not sure if it is related or not, but I've included this info just in
case.
All the logs and bugs have been observed on linux 5.15.0-72, but I've
also installed 6.3.4-060304 from the Ubuntu mainline kernel PPA recently
and observe similar/same bugs, and since this is quite an old code path,
I doubt it has changed much, but I can try and recreate them again with
the new kernel version if needed.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CasperMD5CheckR
CurrentDesktop: XFCE
DistroRelease: Linux Mint 21.1
InstallationDate: Installed on 2023-05-28 (2 days ago)
InstallationMedia: Linux Mint 21.1 "Vera" - Release amd64 20221217
MachineType: Apple Inc. iMac11,2
NonfreeKernelMo
Package: linux (not installed)
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: root=UUID=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 20220329.
Tags: vera
Uname: Linux 5.15.0-72-generic x86_64
UnreportableReason: This report is about a package that is not installed.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo video
_MarkForUpload: False
dmi.bios.date: 06/13/2019
dmi.bios.release: 0.1
dmi.bios.vendor: Apple Inc.
dmi.bios.version: 99.0.0.0.0
dmi.board.name: Mac-F2238AC8
dmi.board.vendor: Apple Inc.
dmi.chassis.type: 13
dmi.chassis.vendor: Apple Inc.
dmi.chassis.
dmi.modalias: dmi:bvnAppleInc
dmi.product.family: iMac
dmi.product.name: iMac11,2
dmi.product.
dmi.sys.vendor: Apple Inc.
Changed in xserver-xorg-video-ati (Ubuntu): | |
status: | New → Confirmed |
status: | Confirmed → New |
Changed in xserver-xorg-video-ati (Ubuntu): | |
status: | New → Confirmed |
Changed in libdrm (Ubuntu): | |
status: | New → Confirmed |
The following is various system info:
/proc/cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz
stepping : 5
microcode : 0x7
cpu MHz : 1596.109
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc cpuid aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt lahf_lm pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid dtherm arat flush_l1d
vmx flags : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown
bogomips : 6118.41
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz
stepping : 5
microcode : 0x7
cpu MHz : 1345.395
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc cpuid aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt lahf_lm pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid dtherm arat flush_l1d
vmx flags : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown
bogomips : 6118.41
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz
stepping : 5
microcode : 0x7
cpu MHz : 1197.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 2
apicid : 4
initial apicid : 4
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc cpuid aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt lahf_lm pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid dtherm arat flush_l1d
vmx flags : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_mu...