Bug 96634 - cairo very slow rendering with kabini vga card
Summary: cairo very slow rendering with kabini vga card
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Acceleration/glamor (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-22 11:11 UTC by Neok
Modified: 2018-06-13 19:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg and Xorg log (74.95 KB, text/plain)
2016-06-22 11:11 UTC, Neok
no flags Details
Xorg.0.log (25.98 KB, text/plain)
2016-06-22 19:22 UTC, Neok
no flags Details
dmesg (60.69 KB, text/plain)
2016-06-22 19:22 UTC, Neok
no flags Details

Description Neok 2016-06-22 11:11:13 UTC
Created attachment 124663 [details]
dmesg and Xorg log

Hi

I have a Compulab FitPC4 computer with AMD G-Series Jaguar @2.0GHz CPU and Radeon HD 8400E GPU and latest Void Linux distro. I have noticed that rendering speed of Cairo is very much slower on this machine than on my laptop, of similar specs but different hardware. I tried various Linux distros including Debian, Arch and Mint, but all with the same problem. Then I tried a Puppy Linux LiveCD and surprisingly Cairo rendering was a lot faster. 

Eventually I found that the reason is Puppy Linux does not include KABINI firmware blobs so I tried removing these from my Void Linux installation and running it without them. The result was that the linux console went blank but I was able to log in blind and start my Xorg desktop. Sure enough, Cairo rendering became a lot faster. Unfortunately since the console goes blank, I had to reinstate the KABINI firmware and the slow down returned. The driver I use is the xf86-video-amdgpu.

I felt I should persist and eventually found that if I install the
catalyst-libs-15.12 or nvidia-libs-364.19, which replace libGL, then Cairo rendering again becomes much faster. I therefore suspect that the mesa/libGL combination slows down Cairo rendering, if KABINI firmware blobs are loaded by the system. And with the slow down comes a heavy increase in processor workload, which probably means that hardware acceleration is disabled when KABINI blobs are loaded. I attach dmesg and xorg log.
Comment 1 Alex Deucher 2016-06-22 16:56:47 UTC
The driver is not loaded in the logs attached.  Please attach a copy of your xorg log and dmesg output with the firmware installed.  Note that if you are using an initrd, you need to update that with the firmware as well.
Comment 2 Emil Velikov 2016-06-22 18:40:34 UTC
Note that closed source drivers overwrite multiple files - libGL.so and libglx.so as a bare minimum.

In the log that you've attached - the AMD Proprietary libglx.so is used, which won't work with the open source xf86-video-amdgpu or libGL (coming from mesa).
Comment 3 Neok 2016-06-22 19:22:40 UTC
Created attachment 124668 [details]
Xorg.0.log

> From: "bugzilla-daemon@freedesktop.org" <bugzilla-daemon@freedesktop.org>
>To: sounizan-neok@yahoo.com 
>Sent: Wednesday, June 22, 2016 7:56 PM
>Subject: [Bug 96634] Mesa or libGL very slow rendering with kabini vga card

>Comment # 1 on bug 96634 from Alex Deucher 

>The driver is not loaded in the logs attached.  Please attach a copy of your
>xorg log and dmesg output with the firmware installed.  Note that if you are>using an initrd, you need to update that with the firmware as well.


I am sorry for my mistakes in setting up my system, producing wrong logs:
With the setup as reported in the new dmesg and Xorg log I indeed have the
case of very slow Cairo rendering.

Thank you for your quick response.


--
Best Regards
Neoklis - Ham Radio Call:5B4AZ
http://www.5b4az.org/
Comment 4 Neok 2016-06-22 19:22:41 UTC
Created attachment 124669 [details]
dmesg
Comment 5 Alex Deucher 2016-06-22 19:45:39 UTC
You are using the amdgpu driver.  I suspect the problem is that you have radeon blacklisted due to having installed fglrx previously.
Comment 6 Michel Dänzer 2016-06-23 00:40:11 UTC
If using the radeon kernel driver instead of amdgpu doesn't help, you can try Option "ShadowPrimary" in /etc/X11/xorg.conf .
Comment 7 Neok 2016-06-23 03:35:59 UTC
> From: "bugzilla-daemon@freedesktop.org" <bugzilla-daemon@freedesktop.org>
>To: sounizan-neok@yahoo.com 
>Sent: Thursday, June 23, 2016 3:40 AM
>Subject: [Bug 96634] Mesa or libGL very slow rendering with kabini vga card

>Comment # 6 on bug 96634 from Michel Dänzer 
>If using the radeon kernel driver instead of amdgpu doesn't help, you can try
>Option "ShadowPrimary" in /etc/X11/xorg.conf .

Well Done! At Last! I tried so many ideas before I could narrow down the
conditions that created the problem. And now you have given me the solution!

Thank you!

I tried installing the radeon driver but it didn't help, so I created this
file /etc/X11/xorg.conf/20-radeon.conf, from ArchLinux wiki:

Section "Device"
    Identifier  "Radeon"
    Driver "radeon"
    Option "AccelMethod" "glamor"
    Option "DRI" "3"
    Option "TearFree" "on"
    Option "ShadowPrimary" "on"
    Option "ColorTiling" "on"
    Option "ColorTiling2D" "on"
EndSection

Some options may not be needed but Option "ShadowPrimary" "on" definitely
fixes the problem. This problem exists in every major distro I tried 

except Puppy Linux, which does not include kabini firmware.

I will report this to Void Linux but other distro developers may need to
be informed about this, as I have seen a number of bug reports complaining
about symptoms similar to what I have experienced.

Thanks again!


--
Best Regards
Neoklis - Ham Radio Call:5B4AZ
http://www.5b4az.org/
Comment 8 Adam Jackson 2018-06-13 19:29:52 UTC
Closing per comment #7.


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.