** Also affects: libdrm (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: xserver-xorg-video-ati (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to libdrm in Ubuntu.
https://bugs.launchpad.net/bugs/2021907

Title:
  Black display on boot and Mobility Radeon HD 4670 related freezes and
  crashes on iMac 11,2

Status in libdrm package in Ubuntu:
  New
Status in linux package in Ubuntu:
  Confirmed
Status in xserver-xorg-video-ati package in Ubuntu:
  New

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://github.com/haikarainen/light); but that
  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 0x000000000014C000).
  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:00:00:00:a0(SET FEATURES) filtered out
  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:00:00:00:a0(SET FEATURES) filtered out
  ata1.00: ACPI cmd ef/10:03:00:00:00:a0(SET FEATURES) filtered out
  ata1.00: supports DRM functions and may not be fully accessible
  ata1.00: configured for UDMA/133
  ata2.00: ACPI cmd ef/10:03:00:00:00:a0(SET FEATURES) filtered out
  ata2.00: configured for UDMA/100
  firewire_core 0000:05:00.0: rediscovered device fw0
  [drm] ib test on ring 5 succeeded
  [drm:radeon_dp_link_train [radeon]] *ERROR* displayport link status failed
  [drm:radeon_dp_link_train [radeon]] *ERROR* clock recovery failed
  [drm:radeon_dp_link_train [radeon]] *ERROR* displayport link status failed
  [drm:radeon_dp_link_train [radeon]] *ERROR* clock recovery failed
  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(NETDEV_CHANGE): wls1: link becomes ready

  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_cs_ib_fill [radeon]] *ERROR* Failed to get ib !
  [drm:radeon_cs_ib_fill [radeon]] *ERROR* Failed to get ib !
  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_GRBM_STATUS      = 0xA27314A1
  radeon 0000:01:00.0:   R_008014_GRBM_STATUS2     = 0x00000102
  radeon 0000:01:00.0:   R_000E50_SRBM_STATUS      = 0x200000C0
  radeon 0000:01:00.0:   R_008674_CP_STALLED_STAT1 = 0x04000000
  radeon 0000:01:00.0:   R_008678_CP_STALLED_STAT2 = 0x00010002
  radeon 0000:01:00.0:   R_00867C_CP_BUSY_STAT     = 0x00008486
  radeon 0000:01:00.0:   R_008680_CP_STAT          = 0x80818647
  radeon 0000:01:00.0:   R_00D034_DMA_STATUS_REG   = 0x44C83D57
  radeon 0000:01:00.0: R_008020_GRBM_SOFT_RESET=0x00007F6B
  radeon 0000:01:00.0: SRBM_SOFT_RESET=0x00000100
  radeon 0000:01:00.0:   R_008010_GRBM_STATUS      = 0x00003028
  radeon 0000:01:00.0:   R_008014_GRBM_STATUS2     = 0x00000002
  radeon 0000:01:00.0:   R_000E50_SRBM_STATUS      = 0x200000C0
  radeon 0000:01:00.0:   R_008674_CP_STALLED_STAT1 = 0x00000000
  radeon 0000:01:00.0:   R_008678_CP_STALLED_STAT2 = 0x00000000
  radeon 0000:01:00.0:   R_00867C_CP_BUSY_STAT     = 0x00000000
  radeon 0000:01:00.0:   R_008680_CP_STAT          = 0x00000000
  radeon 0000:01:00.0:   R_00D034_DMA_STATUS_REG   = 0x44C83D57
  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 0x000000000014C000).
  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_dp_link_train [radeon]] *ERROR* displayport link status failed
  [drm:radeon_dp_link_train [radeon]] *ERROR* clock recovery failed
  [drm] ib test on ring 0 succeeded in 0 usecs
  [drm] ib test on ring 3 succeeded in 0 usecs
  [drm:uvd_v1_0_ib_test [radeon]] *ERROR* radeon: fence wait timed out.
  [drm:radeon_ib_ring_tests [radeon]] *ERROR* radeon: failed testing IB on ring 
5 (-110).

  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/gpu/drm/ttm/ttm_bo.c:409 
ttm_bo_release+0x323/0x350 [ttm]
  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_codec_cirrus 
snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi applesmc snd_hda_intel 
snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec snd_hda_core uvcvideo 
nls_iso8859_1 snd_hwdep kvm_intel kvm ath9k videobuf2_vmalloc videobuf2_memops 
videobuf2_v4l2 videobuf2_common snd_pcm intel_cstate videodev snd_seq_midi 
btusb at24 snd_seq_midi_event mc btrtl btbcm snd_rawmidi ath9k_common joydev 
btintel ath9k_hw bluetooth snd_seq ath ecdh_generic snd_seq_device ecc 
snd_timer mac80211 intel_ips input_leds apple_mfi_fastcharge snd cfg80211 
libarc4 soundcore apple_bl mac_hid sch_fq_codel msr parport_pc ppdev lp parport 
pstore_blk ramoops reed_solomon pstore_zone efi_pstore ip_tables x_tables 
autofs4 btrfs blake2b_generic xor zstd_compress raid6_pq libcrc32c dm_mirror
   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,2/Mac-F2238AC8, BIOS 99.0.0.0.0 06/13/2019
  RIP: 0010:ttm_bo_release+0x323/0x350 [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:ffffbbf602617c90 EFLAGS: 00010202
  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:  00007fe4f5961a80(0000) GS:ffffa02673cc0000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 00007fe4e9fb65b0 CR3: 0000000197610001 CR4: 00000000000206e0
  Call Trace:
   <TASK>
   ttm_bo_put+0x34/0x50 [ttm]
   radeon_bo_unref+0x1e/0x30 [radeon]
   radeon_gem_object_free+0x34/0x50 [radeon]
   drm_gem_object_free+0x1d/0x30 [drm]
   drm_gem_dmabuf_release+0x44/0x70 [drm]
   dma_buf_release+0x46/0xa0
   __dentry_kill+0x10e/0x190
   dentry_kill+0x52/0x1c0
   dput+0x137/0x180
   __fput+0xf0/0x260
   ____fput+0xe/0x20
   task_work_run+0x6d/0xb0
   do_exit+0x217/0x3c0
   do_group_exit+0x3b/0xb0
   __x64_sys_exit_group+0x18/0x20
   do_syscall_64+0x5c/0xc0
   ? exit_to_user_mode_prepare+0x88/0xb0
   ? irqentry_exit_to_user_mode+0x9/0x20
   ? irqentry_exit+0x1d/0x30
   ? exc_page_fault+0x89/0x170
   entry_SYSCALL_64_after_hwframe+0x61/0xcb
  RIP: 0033:0x7fe4f5dbcca1
  Code: Unable to access opcode bytes at RIP 0x7fe4f5dbcc77.
  RSP: 002b:00007fffc3f85998 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
  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/controlC0:  hashim     1083 F.... pulseaudio
   /dev/snd/controlC1:  hashim     1083 F.... pulseaudio
  CasperMD5CheckResult: unknown
  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
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  Package: linux (not installed)
  ProcFB: 0 radeondrmfb
  ProcKernelCmdLine: root=UUID=1b8dcf89-8d16-46e1-a89d-8d9b8fd71bc2 ro quiet 
splash initrd=boot\initrd.img-5.15.0-72-generic
  ProcVersionSignature: Ubuntu 5.15.0-72.79-generic 5.15.98
  RelatedPackageVersions:
   linux-restricted-modules-5.15.0-72-generic N/A
   linux-backports-modules-5.15.0-72-generic  N/A
   linux-firmware                             20220329.git681281e4-0ubuntu3.13
  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.version: Mac-F2238AC8
  dmi.modalias: 
dmi:bvnAppleInc.:bvr99.0.0.0.0:bd06/13/2019:br0.1:svnAppleInc.:pniMac11,2:pvr1.0:rvnAppleInc.:rnMac-F2238AC8:rvr:cvnAppleInc.:ct13:cvrMac-F2238AC8:sku:
  dmi.product.family: iMac
  dmi.product.name: iMac11,2
  dmi.product.version: 1.0
  dmi.sys.vendor: Apple Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libdrm/+bug/2021907/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to