All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerome Glisse <glisse@freedesktop.org>
To: "Émeric Maschino" <emeric.maschino@gmail.com>
Cc: dri-devel@lists.sourceforge.net
Subject: Re: 3D OpenGL applications eat CPU ressources
Date: Sun, 31 Jan 2010 17:42:43 +0100	[thread overview]
Message-ID: <20100131164243.GG29000@localhost.localdomain> (raw)
In-Reply-To: <d72eeaf61001310528h219a2e19ka7dc62d4ba3f93af@mail.gmail.com>

On Sun, Jan 31, 2010 at 02:28:39PM +0100, Émeric Maschino wrote:
> Hello,
> 
> I really don't know where to start, so feel free to redirect me to the
> right mailing list if this one is not the correct one.
> 
> [Summary]
> I'm trying to help revive 3D hardware acceleration on ia64
> architecture. This is a very long story that started in 2006
> (http://bugs.freedesktop.org/show_bug.cgi?id=7770).
> 
> Currently, DRI can't be activated at all because of a regression
> introduced during kernel 2.6.30 development cycle
> (http://marc.info/?l=linux-ia64&m=126419878611433&w=2). I've bisected
> the regression to commit f1a2a9b6189f9f5c27672d4d32fec9492c6486b2
> (drm: Preserve SHMLBA bits in hash key for _DRM_SHM mappings). Simply
> reverting it from current kernel source enables DRI again on ia64.
> I've asked for help several times from the author (David S. Miller
> <davem@davemloft.net>) through the linux-ia64 list and by contacting
> him directly but got no answer at this time. So I really don't know
> what to do with this patch. I bet that asking for its removal from the
> kernel source is not an acceptable solution, isn't it?
> [End of summary]
> 
> Anyway, with DRI enabled, I'm now trying to make it works again. My
> ia64 workstation sports an ATI FireGL X1 AGP adapter. I'm using the
> r300 open source driver. As soon as an 3D OpenGL application is
> started (e.g. glxgears), it eats CPU ressources within seconds.
> Switching between XAA/EXA acceleration makes no difference. Reducing
> AGP speed from 2x (set by default when no xorg.conf file is present)
> to 1x has little impact (the offending application takes 3 sec. rather
> than 1-2 sec. to eat CPU ressources). The system isn't locked as it
> can be remotely rebooted, but is really unusable once a 3D OpenGL
> application has started eating CPU. Killing the offending application
> makes the X server eats CPU ressources. This behaviour is consistent
> with what I noticed one year ago with older X.org X server
> (http://bugs.freedesktop.org/show_bug.cgi?id=7770#c42), so I bet the
> problem is still there with current X.org implementation (I'm using
> X.org X Server 1.7.4 on a Debian "Squeeze" Testing distribution).
> 
> I don't know what information is useful, so I simply straced glxgears
> with drm.debug=1 passed to kernel with my current hardware
> configuration. Eventually, strace log is flooded with
> ioctl(4, 0xc0106451, 0x60000fffffd530f8) = 0
> roughly at the time the CPU charge increases. This is consistent with
> what is recorded in syslog:
> Jan 29 21:16:03 longspeak kernel: [  318.611783] [drm:drm_ioctl],
> pid=2426, cmd=0xc0106451, nr=0x51, dev 0xe200, auth=1
> Jan 29 21:16:03 longspeak kernel: [  318.611789]
> [drm:radeon_cp_getparam], pid=2426
> repeated several tens of thousands times where 2426 is glxgears PID.
> Is this 0xc0106451 command a valuable information?
> 
> I don't know if it's informative either, but enabling the side-bar in
> GNOME Shell eats CPU ressources too and syslog is flooded with:
> Jan 30 12:38:26 longspeak kernel: [  325.146380] [drm:radeon_do_cp_idle],
> Jan 30 12:38:26 longspeak kernel: [  325.332672]
> [drm:radeon_do_wait_for_idle], wait idle failed status : 0x84110140
> 0x9C000800
> Jan 30 12:38:26 longspeak kernel: [  325.332676]
> [drm:radeon_do_release], radeon_do_cp_idle -16
> Does this failed status provides a useful starting point?
> 
> Thanks for reading and any advice/suggestion welcome.
> 
> Émeric

You are hitting GPU lockup which traduce by userspace keep
trying the same ioctl over and over again which completely
eat all CPU.

There is no easy way to debug GPU lockup and no way at
all than by staring a GPU command stream or making wild
guess and testing things randomly.

Cheers,
Jerome

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--

  reply	other threads:[~2010-01-31 16:42 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-31 13:28 3D OpenGL applications eat CPU ressources Émeric Maschino
2010-01-31 16:42 ` Jerome Glisse [this message]
2010-02-01 21:17   ` Émeric Maschino
2010-02-01 22:00     ` Stephane Marchesin
2010-02-02 21:19       ` Émeric Maschino
2010-02-03 10:53         ` Stephane Marchesin
2010-02-04 14:37           ` Émeric Maschino
2010-02-04 15:35             ` Jerome Glisse
2010-02-06 19:47               ` Émeric Maschino
2010-02-06 20:04                 ` Alex Deucher
2010-02-06 23:42                 ` Dave Airlie
2010-02-07 18:17                   ` Émeric Maschino
2010-02-07  0:45                 ` Stephane Marchesin
2010-02-07 17:18                   ` Émeric Maschino
2010-02-07 18:44                     ` Émeric Maschino
2010-02-08  6:15                     ` Alex Deucher
2010-02-08 20:24                       ` Émeric Maschino
2010-02-11 20:25               ` Émeric Maschino
2010-02-16 22:37           ` Émeric Maschino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100131164243.GG29000@localhost.localdomain \
    --to=glisse@freedesktop.org \
    --cc=dri-devel@lists.sourceforge.net \
    --cc=emeric.maschino@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.