https://bugzilla.kernel.org/show_bug.cgi?id=93701
Bug ID: 93701 Summary: radeon: two "empty" pixel lines on left side of screen, rest of screen gets slightly squished Product: Drivers Version: 2.5 Kernel Version: 4.0-rc1 Hardware: All OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: Video(DRI - non Intel) Assignee: drivers_video-dri@kernel-bugs.osdl.org Reporter: frederik.hofe@gmail.com Regression: No
This happens in the current 4.0-rc1. 3.19 does not show this.
Basicly it looks like my resolution of 1920x1080 gets blitted into 1918,1080 with linear filtering somewhere before it gets on my screen.
When I take a screenshot with gimp, I get a normal 1920x1080 image without the defect.
I use a Radeon 7870 (Pitcairn) -> HDMI -> Samsung S22A350H
Also I use the padoka PPA for bleeding edge mesa/llvm drivers.
glxinfo|grep OpenGL OpenGL vendor string: X.Org OpenGL renderer string: Gallium 0.4 on AMD PITCAIRN OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.6.0-devel (padoka PPA) OpenGL core profile shading language version string: 3.30 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: OpenGL version string: 3.0 Mesa 10.6.0-devel (padoka PPA) OpenGL shading language version string: 1.30 OpenGL context flags: (none) OpenGL extensions: OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.6.0-devel (padoka PPA) OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00 OpenGL ES profile extensions:
https://bugzilla.kernel.org/show_bug.cgi?id=93701
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexdeucher@gmail.com
--- Comment #1 from Alex Deucher alexdeucher@gmail.com --- Can you bisect? Does disabling audio fix it?
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #2 from Alex Deucher alexdeucher@gmail.com --- Please attach your xorg log and dmesg output.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #3 from frederik.hofe@gmail.com --- Created attachment 168061 --> https://bugzilla.kernel.org/attachment.cgi?id=168061&action=edit dmesg
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #4 from frederik.hofe@gmail.com --- Created attachment 168071 --> https://bugzilla.kernel.org/attachment.cgi?id=168071&action=edit Xorg.0.log
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #5 from frederik.hofe@gmail.com --- Booting with radeon.audio=0 removes this phenomena.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #6 from frederik.hofe@gmail.com --- I bisected it to this change:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/patch/?id=baa...
https://bugzilla.kernel.org/show_bug.cgi?id=93701
Andy Furniss adf.lists@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adf.lists@gmail.com
--- Comment #7 from Andy Furniss adf.lists@gmail.com --- (In reply to Frederik vom Hofe from comment #6)
I bisected it to this change:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/patch/ ?id=baa7d8e451f030c049f83f943b9995620d6d6bd3
FWIW when I hit this issue I could "mend" it without using radeon.audio=0 - all I had to do was use xrandr to do something that refreshed the display eg. off then auto.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #8 from Frederik vom Hofe frederik.hofe@gmail.com --- Trying this did not fix it for me: xrandr --output HDMI-0 --off; xrandr --output HDMI-0 --auto
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #9 from Andy Furniss adf.lists@gmail.com --- Oh, OK, my testcase is a bit different from yours in that I bring up HDMI as a second screen when in X. My symptoms also slightly different in that I get a 2 pix pink line on the left outside display area and 2 pix on right are missing. Maybe different displays behave differently.
I bisected to the same commit as you.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #10 from Alex Deucher alexdeucher@gmail.com --- Do the patches here: https://bugs.freedesktop.org/show_bug.cgi?id=89327 help?
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #11 from Frederik vom Hofe frederik.hofe@gmail.com --- That patchset makes no difference for me.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #12 from Alex Deucher alexdeucher@gmail.com --- Can you try the top 7 patches on this branch? http://cgit.freedesktop.org/~agd5f/linux/log/?h=audio-fixes
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #13 from Frederik vom Hofe frederik.hofe@gmail.com --- The last patch (http://cgit.freedesktop.org/~agd5f/linux/patch/?id=71560b1f75e91b0eafdd8a11f...) does not work on 4.0-rc1:
patch -p1 < ../patchset-4.0-rc1-hdmi_2/7.patch patching file drivers/gpu/drm/radeon/atombios_encoders.c Hunk #1 succeeded at 1622 (offset -4 lines). Hunk #2 FAILED at 1721. Hunk #3 succeeded at 1730 (offset -6 lines). Hunk #4 FAILED at 2178. Hunk #5 succeeded at 2196 (offset -9 lines). 2 out of 5 hunks FAILED -- saving rejects to file drivers/gpu/drm/radeon/atombios_encoders.c.rej
Tried just the first 6 patches, but no difference on the screen.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #14 from Frederik vom Hofe frederik.hofe@gmail.com --- Ok I got the git magic working. But the audio-fixes branch still does not fix the issue for me.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #15 from Alex Deucher alexdeucher@gmail.com --- I've posted an updated audio-fixes branch that may help: http://cgit.freedesktop.org/~agd5f/linux/log/?h=audio-fixes
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #16 from Frederik vom Hofe frederik.hofe@gmail.com --- Tested the patch with v4.0rc6, makes no difference for me.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #17 from Alex Deucher alexdeucher@gmail.com --- (In reply to Frederik vom Hofe from comment #16)
Tested the patch with v4.0rc6, makes no difference for me.
Did you test all 3 patches on that branch?
http://cgit.freedesktop.org/~agd5f/linux/commit/?h=audio-fixes&id=40376b... http://cgit.freedesktop.org/~agd5f/linux/commit/?h=audio-fixes&id=b12f4b... http://cgit.freedesktop.org/~agd5f/linux/commit/?h=audio-fixes&id=e6704b...
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #18 from Frederik vom Hofe frederik.hofe@gmail.com --- Yes, I merged it via git.
Basicly this is all I have done: git pull git checkout v4.0-rc6 git checkout -b v4.0-rc6-hdmi-patch git remote add agd5f git://people.freedesktop.org/~agd5f/linux git fetch agd5f git merge agd5f/audio-fixes
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #19 from Alex Deucher alexdeucher@gmail.com --- Updated patches here: http://cgit.freedesktop.org/~agd5f/linux/log/?h=audio-fixes
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #20 from Frederik vom Hofe frederik.hofe@gmail.com --- That fixes it for me.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #21 from Frederik vom Hofe frederik.hofe@gmail.com --- Just got a 290 that shows the same phenomena since patch revert.
2d1c18bba15daf89d75ce475ecd2068f483aa12f Revert "drm/radeon: only mark audio as connected if the monitor supports it (v3)" ...
Bisected v4.1-rc5 to v4.1-rc6. Sinc v4.2-rc1 still shows the lines.
Also attaching new dmesg and Xorg log, just in case.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #22 from Frederik vom Hofe frederik.hofe@gmail.com --- Created attachment 182061 --> https://bugzilla.kernel.org/attachment.cgi?id=182061&action=edit dmesg with v4.2-rc1 and 290
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #23 from Frederik vom Hofe frederik.hofe@gmail.com --- Created attachment 182071 --> https://bugzilla.kernel.org/attachment.cgi?id=182071&action=edit Xorg.0.log with v4.2-rc1 and 290
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #24 from Alex Deucher alexdeucher@gmail.com --- Created attachment 183471 --> https://bugzilla.kernel.org/attachment.cgi?id=183471&action=edit possible fix
Does this patch fix the issue?
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #25 from Frederik vom Hofe frederik.hofe@gmail.com --- With v4.2-rc3+patch I get a black screen when the console resolution changes the first time. And my screen power led blinks like it gets no hdmi signal. So even before X starts and the pink lines show up.
alt+ctrl+del does not work. But reisub does. I have no second PC on hand right now to look at it via ssh. But that can be arranged if you need to see the dmesg output.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #183471|0 |1 is obsolete| |
--- Comment #26 from Alex Deucher alexdeucher@gmail.com --- Created attachment 183491 --> https://bugzilla.kernel.org/attachment.cgi?id=183491&action=edit possible fix
Updated patch.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #27 from Frederik vom Hofe frederik.hofe@gmail.com --- Now the same black screen happens when X starts.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #28 from Alex Deucher alexdeucher@gmail.com --- can you attach the kernel log from the black screen?
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #29 from Alex Deucher alexdeucher@gmail.com --- dmesg output.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #30 from Frederik vom Hofe frederik.hofe@gmail.com --- Created attachment 183511 --> https://bugzilla.kernel.org/attachment.cgi?id=183511&action=edit dmesg with v4.2-rc3 + 0001-drm-radeon-rework-audio-detect-v2.patch
dmesg with v4.2-rc3 + 0001-drm-radeon-rework-audio-detect-v2.patch
https://bugzilla.kernel.org/show_bug.cgi?id=93701
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #183491|0 |1 is obsolete| |
--- Comment #31 from Alex Deucher alexdeucher@gmail.com --- Created attachment 183551 --> https://bugzilla.kernel.org/attachment.cgi?id=183551&action=edit possible fix
Updated patch.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #32 from Frederik vom Hofe frederik.hofe@gmail.com --- Created attachment 183561 --> https://bugzilla.kernel.org/attachment.cgi?id=183561&action=edit dmesg with v4.2-rc3 + 0001-drm-radeon-rework-audio-detect-v3.patch
looks the same like v2
https://bugzilla.kernel.org/show_bug.cgi?id=93701
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #183551|0 |1 is obsolete| |
--- Comment #33 from Alex Deucher alexdeucher@gmail.com --- Created attachment 183571 --> https://bugzilla.kernel.org/attachment.cgi?id=183571&action=edit possible fix
Fix stupid typo.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #34 from Frederik vom Hofe frederik.hofe@gmail.com --- v4 works for me. Boots fine and no pink lines anymore.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
Hans de Goede jwrdegoede@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jwrdegoede@fedoraproject.or | |g
--- Comment #35 from Hans de Goede jwrdegoede@fedoraproject.org --- Created attachment 183611 --> https://bugzilla.kernel.org/attachment.cgi?id=183611&action=edit [PATCH for 4.1] drm/radeon: rework audio detect (v4)
Here is the "possible fix" patch backported to 4.1 (this needed some manual fixups)
I've started a Fedora kernel scratch build with this patch and asked a couple of Fedora users who are also having pink line issues to test the patch, see:
https://bugzilla.redhat.com/show_bug.cgi?id=1236337
Note sofar the 4.1 version has only been compile tested!
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #36 from Hans de Goede jwrdegoede@fedoraproject.org --- Hi,
I just got feedback from one of the reporters of: https://bugzilla.redhat.com/show_bug.cgi?id=1236337
He confirms that (the 4.1 backport) of the suggested fix works.
Regards,
Hans
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #37 from Frederik vom Hofe frederik.hofe@gmail.com --- The patch for 4.1 works for me, too.
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #38 from Hans de Goede jwrdegoede@fedoraproject.org --- Ping, what is the status on this ? With 2 positive test results for the patch it would be good to get this into 4.1.x ...
https://bugzilla.kernel.org/show_bug.cgi?id=93701
--- Comment #39 from Alex Deucher alexdeucher@gmail.com --- Already in 4.2: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d0... and 4.1: http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?...
https://bugzilla.kernel.org/show_bug.cgi?id=93701
Hans de Goede jwrdegoede@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |CODE_FIX
--- Comment #40 from Hans de Goede jwrdegoede@fedoraproject.org --- (In reply to Alex Deucher from comment #39)
Already in 4.2: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/ ?id=d0ea397e22f9ad0113c1dbdaab14eded050472eb and 4.1: http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/ ?h=linux-4.1.y&id=6f9dbb525abc7b21b76bdee6558b6e706425d1a8
Thanks, that is great, closing this bug then.
dri-devel@lists.freedesktop.org