From: Andrew Morton <akpm@linux-foundation.org>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: Linux-kernel <linux-kernel@vger.kernel.org>,
dri-devel@lists.freedesktop.org
Subject: Re: VERY slow scrolling on radeon graphics card: debugging a timing issue?
Date: Wed, 22 Dec 2010 02:00:41 -0800 [thread overview]
Message-ID: <20101222020041.c168bf87.akpm@linux-foundation.org> (raw)
In-Reply-To: <4D0FC36D.9010304@msgid.tls.msk.ru>
(cc dri-devel)
On Mon, 20 Dec 2010 23:58:21 +0300 Michael Tokarev <mjt@tls.msk.ru> wrote:
> Hello.
>
> A weird problem here, and I'm looking for help in
> an attempt to solve it.
>
> Ever since KMS went into kernel and I tried turning
> it on, the scrolling speed on the resulting "text"
> console (with kms it works in one of graphics modes
> hence "text" in quotes) become really _awful_.
>
> For example, running `dmesg' (which has ~2000 lines)
> on the console takes about 2.5 _minutes_ (!) to
> complete, -- which means the speed is about 10 lines
> per second. On an old notebook I have, with some also
> nvidia card, the same operation completes in about
> 0.8 sec.
>
> The lines goes up in a slow motion, I can watch every
> new line appearing and scrolling.
>
> It was this way for a long time, and I almost gave up --
> in X everything works ok, and in order to speed up
> booting again I just added "quiet" option to the kernel
> command line, to avoid scrolling of kernel messages.
>
> But yesterday I noticed something else entirely, which
> make me hope the problem actually _can_ be solved.
>
> The thing is: that same scrolling becomes much faster
> when I "do something" else while it scrolls up. First
> I noticed this when I wanted to switch to another vt
> while it were scrolling -- I held down Ctrl key on my
> keyboard, and out of the sudden the scroll speed up
> dramatically.
>
> It turned out I can speed the thing to about 10 times
> by generating some load: hit and hold a key on the
> keyboard (generates interrupts?), run kernel compile
> in the background (generates disk interrupts?), move
> mouse...
>
> While doing "something", the same scrolling completes
> in about 8 seconds instead of 2m30s. Dramatic improvement.
>
> Now, when I hold a key or move mouse, the scrolling
> is "jumpy" - sometimes it slows down back to original
> "slow" form for a bit, and sometimes it jumps a few
> lines in one go.
>
> I tried to disable cpufreq (selecting "performance"
> governor) - this changes exactly nothing.
>
> Next someone suggested the "perf" tool. And this one
> is even more interesting: while `perf top' is running
> (on another console or X), the scrolling is.. fast
> again, as if I were moving my mouse! Once I stop
> `perf top', it becomes slow again. So the bug
> disappears while you watch it.
>
> And there I'm stuck again. I asked in #radeon, but
> there, Alex Deucher told me that he has no clue and
> that the behavour is weird (it is weird indeed).
>
> Any hints on where to go from there are apprecated.
>
> The hardware is an AMD780g-based motherboard with
> and Athlon CPU, I've seen the same behavour from
> many other similar boards. Kernels - all up to
> the current 2.6.36.2, sine the old days when kms
> for radeon first appeared in staging.
>
> I know kms/fbcon scrolling is slow on radeon because
> it uses completely unoptimized bitblt routines (even
> when the hw is pretty much capable of doing all that
> stuff internally). But what I see here is something
> different - the 8 sec to scroll 2000 lines is the
> result from the un-optimal bitblt, not the 2m30s.
>
> Thanks!
>
> /mjt
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2010-12-22 10:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-20 20:58 VERY slow scrolling on radeon graphics card: debugging a timing issue? Michael Tokarev
2010-12-22 10:00 ` Andrew Morton [this message]
2010-12-22 10:55 ` Mark Hounschell
2010-12-23 7:25 ` Michel Dänzer
2010-12-23 12:53 ` Mark Hounschell
2011-01-02 9:00 ` Pavel Machek
2011-01-04 22:50 ` Michael Tokarev
2011-01-04 23:11 ` Michael Tokarev
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=20101222020041.c168bf87.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjt@tls.msk.ru \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox