Skip to contentSkip to conversation

(was Re: XF4 (mach64) help please)

measurement Iain Sandoe 3 participants 3 messages Apr 20, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines · I wrote:
Quoted 5 lines · Geert Uytterhoeven
Quoted 4 lines · Iain Sandoe
Quoted 3 lines · Ani Joshi
Quoted 2 lines · William Blew
Quoted 1 line · Iain Sandoe

2/ how difficult would it be to plumb the scroll acceleration back

into

Quoted 13 lines
Quoted 2 lines
Quoted 2 lines

the

Quoted 1 line
Quoted 1 line
Quoted 1 line

console driver? (would one need access to the NDA stuff?) -- the

scrolling

Quoted 10 lines
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

of console is a real problem in blocking sound :-/

For mach64 at least, I would start by porting the CopyScreen2Screen XXA operation into the kernel and then using it during scrolling.

This is already done by atyfb in the kernel,

then why is the atyfb scroll (and fbdevhw) _so_ much slower than the X 'native' driver ... the same reason as below?

Quoted 8 lines
Quoted 1 line

Because xterm uses jump scroll? Try scrolling line by line in X11.

hmmm. I was comparing "before" and "after" changing to Ani's new ati_drv.o (before was using libfbdevhw.a) - in all other respects the configuration was identical.

this is mach64 (3DU Pro) on G3/beige - the difference seemed to be striking enough to comment (but I guess I could wind it back and do an X11Perf).

with libfbdevhw.a with new ati_drv.o/atimisc_drv.o

-scroll500    51.8/sec                76.5/sec
-shmput500    14.2/sec                25.4/sec

doesn't seem that different, I suppose, but this is...

cat test.txt 10.382 sec 5.132 sec

I guess that's what I've noticed on things like kernel builds.

Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
Quoted 2 lines

however the problem lies in
the entire fbcon layer where there is some improper locking/interrupts

Read: the entire console layer. Fbcon cannot (read: couldn't) use interrupts because the upper console layer disables (disabled) interrupts.

Quoted 3 lines
Quoted 2 lines

going on there. This was discussed here and on linux-fbdev a few months ago and I believe will be addressed in 2.5.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

and there is a (temporary) fix for it (I believe) involving a patch from Andrew Morton - (which I haven't had time to try on PPC yet). Will that fix the slow console scroll as well?

It's supposed to. Haven't tried it yet, though.

I will ASAP - AFAICT the various blocking issues are the main problem with (pmac) sound now.

I've fetched AM's latest console patch (2.4.3-pre8) and will try applying it later and re-run the libfbdevhw.a test.

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 23 lines · Iain Sandoe
Quoted 6 lines · I wrote:
Quoted 5 lines · Geert Uytterhoeven
Quoted 4 lines · Iain Sandoe
Quoted 3 lines · Ani Joshi
Quoted 2 lines · William Blew
Quoted 1 line · Iain Sandoe

2/ how difficult would it be to plumb the scroll acceleration back

into

Quoted 15 lines
Quoted 2 lines
Quoted 2 lines

the

Quoted 1 line
Quoted 1 line
Quoted 1 line

console driver? (would one need access to the NDA stuff?) -- the

scrolling

Quoted 11 lines
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

of console is a real problem in blocking sound :-/

For mach64 at least, I would start by porting the CopyScreen2Screen XXA operation into the kernel and then using it during scrolling.

This is already done by atyfb in the kernel,

then why is the atyfb scroll (and fbdevhw) _so_ much slower than the X 'native' driver ... the same reason as below?

Because xterm uses jump scroll? Try scrolling line by line in X11.

Quoted 8 lines
Quoted 6 lines

hmmm. I was comparing "before" and "after" changing to Ani's new ati_drv.o (before was using libfbdevhw.a) - in all other respects the configuration was identical.

this is mach64 (3DU Pro) on G3/beige - the difference seemed to be striking enough to comment (but I guess I could wind it back and do an X11Perf).

with libfbdevhw.a with new ati_drv.o/atimisc_drv.o

What's this libfbdevhw.a? Is it just the plain fbdev driver from XFree86?

Quoted 22 lines
(quoted diff) +0 -2
-scroll500    51.8/sec                76.5/sec
-shmput500    14.2/sec                25.4/sec

doesn't seem that different, I suppose, but this is...

cat test.txt 10.382 sec 5.132 sec

I guess that's what I've noticed on things like kernel builds.

Quoted 13 lines
Quoted 13 lines
Quoted 2 lines
Quoted 2 lines

however the problem lies in
the entire fbcon layer where there is some improper locking/interrupts

Read: the entire console layer. Fbcon cannot (read: couldn't) use interrupts because the upper console layer disables (disabled) interrupts.

Quoted 6 lines
Quoted 2 lines

going on there. This was discussed here and on linux-fbdev a few months ago and I believe will be addressed in 2.5.

and there is a (temporary) fix for it (I believe) involving a patch from Andrew Morton - (which I haven't had time to try on PPC yet). Will that fix the slow console scroll as well?

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

It's supposed to. Haven't tried it yet, though.

I will ASAP - AFAICT the various blocking issues are the main problem with (pmac) sound now.

I've fetched AM's latest console patch (2.4.3-pre8) and will try applying it later and re-run the libfbdevhw.a test.

If libfbdevhw.a is from XFree86, it has nothing to do with the console.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 27 lines · Geert Uytterhoeven
Quoted 25 lines · Iain Sandoe
Quoted 24 lines · I wrote:
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Iain Sandoe
Quoted 10 lines · Ani Joshi
Quoted 8 lines · William Blew
Quoted 4 lines · Iain Sandoe

2/ how difficult would it be to plumb the scroll acceleration back into the console driver? (would one need access to the NDA stuff?) -- the scrolling
of console is a real problem in blocking sound :-/

For mach64 at least, I would start by porting the CopyScreen2Screen XXA operation into the kernel and then using it during scrolling.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

This is already done by atyfb in the kernel,

then why is the atyfb scroll (and fbdevhw) _so_ much slower than the X 'native' driver ... the same reason as below?

Because xterm uses jump scroll? Try scrolling line by line in X11.

hmmm. I was comparing "before" and "after" changing to Ani's new ati_drv.o (before was using libfbdevhw.a) - in all other respects the configuration was identical.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

this is mach64 (3DU Pro) on G3/beige - the difference seemed to be striking enough to comment (but I guess I could wind it back and do an X11Perf).

with libfbdevhw.a with new ati_drv.o/atimisc_drv.o

What's this libfbdevhw.a? Is it just the plain fbdev driver from XFree86?

Nope, it's just the fbdevHW layer. But I guess Iain actually means the fbdev driver?

Quoted 26 lines
Quoted 26 lines
(quoted diff) +0 -2
-scroll500    51.8/sec                76.5/sec
-shmput500    14.2/sec                25.4/sec

doesn't seem that different, I suppose, but this is...

cat test.txt 10.382 sec 5.132 sec

I guess that's what I've noticed on things like kernel builds.

Quoted 17 lines
Quoted 16 lines
Quoted 3 lines
Quoted 3 lines

however the problem lies in
the entire fbcon layer where there is some improper locking/interrupts

Read: the entire console layer. Fbcon cannot (read: couldn't) use interrupts because the upper console layer disables (disabled) interrupts.

Quoted 6 lines
Quoted 2 lines

going on there. This was discussed here and on linux-fbdev a few months ago and I believe will be addressed in 2.5.

and there is a (temporary) fix for it (I believe) involving a patch from Andrew Morton - (which I haven't had time to try on PPC yet). Will that fix the slow console scroll as well?

It's supposed to. Haven't tried it yet, though.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

I will ASAP - AFAICT the various blocking issues are the main problem with (pmac) sound now.

I've fetched AM's latest console patch (2.4.3-pre8) and will try applying it later and re-run the libfbdevhw.a test.

If libfbdevhw.a is from XFree86, it has nothing to do with the console.

That's it.

--
Earthling Michel Dänzer (MrCooper) \ Debian GNU/Linux (powerpc) developer
CS student, Free Software enthusiast \ XFree86 and DRI project member

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/