Bug 88799

Summary: radeon: Scrambled graphics on iMac 21.5" Late 2009 Radeon Mobility HD 4670
Product: DRI Reporter: John Paul Adrian Glaubitz <glaubitz>
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Screenshot of the scrambled display on the iMac 21.5" Late 2009
none
Another screenshot with better contrast showing the graphics problem with the Radeon HD 4670
none
Xorg.0.log file when the Radeon driver with the scrambled screen is active
none
dmesg of the iMac 21.5" with the Radeon HD 4670
none
lspci of the iMac 21.5" with the Radeon HD 4670
none
possible fix none

Description John Paul Adrian Glaubitz 2015-01-26 11:01:20 UTC
Created attachment 112830 [details]
Screenshot of the scrambled display on the iMac 21.5" Late 2009

Hello!

I recently did a fresh install of Debian Jessie on a late 2009 Apple iMac 21.5" which has an ATI Radeon Mobility HD 4670 (model: A1311).

The video display on this machine looks scrambled, particularly, one can see the framebuffer four times on the display as if looking at an overview of four virtual desktops with extremely low contrast and no color. The image of each these views is basically white but visible with the bare eye.

I am attaching a screenshot for reference as well as the appropriate logs files. More specs on the machine can be found in this Debian installation report [1].

Cheers,
Adrian

> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776215
Comment 1 John Paul Adrian Glaubitz 2015-01-26 12:17:06 UTC
Created attachment 112831 [details]
Another screenshot with better contrast showing the graphics problem with the Radeon HD 4670
Comment 2 John Paul Adrian Glaubitz 2015-01-26 12:18:09 UTC
Created attachment 112832 [details]
Xorg.0.log file when the Radeon driver with the scrambled screen is active
Comment 3 John Paul Adrian Glaubitz 2015-01-26 12:18:43 UTC
Created attachment 112833 [details]
dmesg of the iMac 21.5" with the Radeon HD 4670
Comment 4 John Paul Adrian Glaubitz 2015-01-26 12:18:59 UTC
Created attachment 112834 [details]
lspci of the iMac 21.5" with the Radeon HD 4670
Comment 5 Alex Deucher 2015-01-26 15:26:23 UTC
Is this a regression?  If so can you narrow down what component and bisect?
Comment 6 John Paul Adrian Glaubitz 2015-03-19 13:46:48 UTC
(In reply to Alex Deucher from comment #5)
> Is this a regression?  If so can you narrow down what component and bisect?

I just tried the rather old kernel version 3.2.65 which shows the same problem, so I'd guess it's not a regression but never worked on this particular iMac. I also tested with 3.19.1 with the same results.

Anything else I could look into?

Cheers,
Adrian
Comment 7 Alex Deucher 2015-03-19 13:53:30 UTC
Created attachment 114471 [details] [review]
possible fix

Does the attached patch help?  This may break UVD.
Comment 8 John Paul Adrian Glaubitz 2015-03-19 14:48:25 UTC
(In reply to Alex Deucher from comment #7)
> Created attachment 114471 [details] [review] [review]
> possible fix
> 
> Does the attached patch help?  This may break UVD.

No, I'm afraid not. The problem remains.

Tested with Linus' current tree as of today, thus 4.0.0-rc4, with your suggested patch applied.

Adrian
Comment 9 John Paul Adrian Glaubitz 2015-03-19 15:02:08 UTC
(In reply to John Paul Adrian Glaubitz from comment #8)
> Tested with Linus' current tree as of today, thus 4.0.0-rc4, with your
> suggested patch applied.

Btw, I noticed that radeon_card_posted() is called twice during boot as I added a simple printk to verify I am actually using a patched version of the module.

[   10.850854] [drm] radeon kernel modesetting enabled.
[   10.852183] checking generic (c0010000 7e9000) vs hw (c0000000 10000000)
[   10.852185] fb: switching to radeondrmfb from simple
[   10.853431] Console: switching to colour dummy device 80x25
[   10.853827] [drm] initializing kernel modesetting (RV730 0x1002:0x9488 0x106B:0x00B6).
[   10.853844] [drm] register mmio base: 0xD0220000
[   10.853847] [drm] register mmio size: 65536
[   10.853855] This is a patched version of Linux 4.0
[   10.859513] scsi 6:0:0:0: Direct-Access     APPLE    SD Card Reader   1.00 PQ: 0 ANSI: 0
[   10.859713] sd 6:0:0:0: Attached scsi generic sg2 type 0
[   10.861916] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[   10.994432] Adding 8191996k swap on /dev/sda3.  Priority:-1 extents:1 across:8191996k FS
[   11.022231] snd_hda_intel 0000:00:08.0: enabling device (0000 -> 0002)
[   11.022566] ACPI: PCI Interrupt Link [LAZA] enabled at IRQ 20
[   11.022615] snd_hda_intel 0000:00:08.0: Disabling MSI
[   11.025137] input: Apple Computer, Inc. IR Receiver as /devices/pci0000:00/0000:00:04.0/usb3/3-5/3-5:1.0/0003:05AC:8242.0001/input/input5
[   11.080431] appleir 0003:05AC:8242.0001: input,hiddev0,hidraw0: USB HID v1.11 Device [Apple Computer, Inc. IR Receiver] on usb-0000:00:04.0-5/input0
[   11.134529] ATOM BIOS: 113
[   11.134548] This is a patched version of Linux 4.0
[   11.134550] [drm] GPU not posted. posting now...
[   11.137246] radeon 0000:02:00.0: VRAM: 256M 0x0000000000000000 - 0x000000000FFFFFFF (256M used)
[   11.137253] radeon 0000:02:00.0: GTT: 1024M 0x0000000010000000 - 0x000000004FFFFFFF
[   11.137258] [drm] Detected VRAM RAM=256M, BAR=256M
[   11.137261] [drm] RAM width 128bits DDR
[   11.137328] [TTM] Zone  kernel: Available graphics memory: 2024472 kiB
[   11.137332] [TTM] Initializing pool allocator
[   11.137339] [TTM] Initializing DMA pool allocator
[   11.137374] [drm] radeon: 256M of VRAM memory ready
[   11.137378] [drm] radeon: 1024M of GTT memory ready.
[   11.137392] [drm] Loading RV730 Microcode
[   11.277356] input: Apple, Inc Apple Keyboard as /devices/pci0000:00/0000:00:06.1/usb2/2-2/2-2.2/2-2.2:1.0/0003:05AC:0221.0002/input/input6
[   11.336211] apple 0003:05AC:0221.0002: input,hidraw1: USB HID v1.11 Keyboard [Apple, Inc Apple Keyboard] on usb-0000:00:06.1-2.2/input0
[   11.336927] input: Apple, Inc Apple Keyboard as /devices/pci0000:00/0000:00:06.1/usb2/2-2/2-2.2/2-2.2:1.1/0003:05AC:0221.0003/input/input7
[   11.392201] apple 0003:05AC:0221.0003: input,hidraw2: USB HID v1.11 Device [Apple, Inc Apple Keyboard] on usb-0000:00:06.1-2.2/input1
[   11.407371] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:06.0/usb4/4-4/4-4:1.0/0003:046D:C077.0004/input/input8
[   11.407489] hid-generic 0003:046D:C077.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:06.0-4/input0
[   11.506123] [drm] External GPIO thermal controller with fan control
[   11.506991] [drm] radeon: dpm initialized

Is this normal behavior?

Adrian
Comment 10 Alex Deucher 2015-03-19 15:06:28 UTC
(In reply to John Paul Adrian Glaubitz from comment #9)
> 
> Is this normal behavior?

yes, there are several places where we check to see if the card is posted or not.
Comment 11 Martin Peres 2019-11-19 09:01:21 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/580.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.