linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: XF4 (mach64) help please
@ 2001-04-19 19:07 Iain Sandoe
  0 siblings, 0 replies; 9+ messages in thread
From: Iain Sandoe @ 2001-04-19 19:07 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Ani Joshi, William Blew, michel dnzer, kaoru fukui, linuxppc-dev


On  Thu, Apr 19, 2001, Geert Uytterhoeven wrote:
> On Thu, 19 Apr 2001, Iain Sandoe wrote:
>> On Thu, Apr 19, 2001,  Ani Joshi wrote:
>> > On Thu, 19 Apr 2001, William Blew wrote:
>> >> On Thu, 19 Apr 2001, Iain Sandoe wrote:
>> >> > 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.
>> >
>> > 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.

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).

>> >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.
>
>> > 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.

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

ciao,
Iain.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: XF4 (mach64) help please
@ 2001-04-19 18:21 Iain Sandoe
  2001-04-19 18:38 ` Geert Uytterhoeven
  0 siblings, 1 reply; 9+ messages in thread
From: Iain Sandoe @ 2001-04-19 18:21 UTC (permalink / raw)
  To: Ani Joshi, William Blew; +Cc: michel dnzer, kaoru fukui, linuxppc-dev


On Thu, Apr 19, 2001,  Ani Joshi wrote:
> On Thu, 19 Apr 2001, William Blew wrote:
>
>> On Thu, 19 Apr 2001, Iain Sandoe wrote:
>>
>> > 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.
>
> 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?

>however the problem lies in
> the entire fbcon layer where there is some improper locking/interrupts
> 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?

ciao,
Iain.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: XF4 (mach64) help please
@ 2001-04-19 12:36 Iain Sandoe
  2001-04-19 15:46 ` William Blew
  0 siblings, 1 reply; 9+ messages in thread
From: Iain Sandoe @ 2001-04-19 12:36 UTC (permalink / raw)
  To: Ani Joshi, Michel Dnzer, k_fukui; +Cc: linuxppc-dev

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="", Size: 1703 bytes --]


Hi Ani,

excellent...

> The attatched patch fixes the ati driver properly without the use of
> fbdev.  Don't bother to try the option, it is not even implemented in the
> driver.  The patch is against a current cvs tree.  If you try to hand
> patch it against that older version with the fbdev hacks you will run into
> problems as getting rid of the hacks is painful and time consuming.
>
> I'm fairly sure this patch will be fine for all nonGX mach64's, although
> I'm not entirely sure about the Lx/Mobility ones as I don't have one to
> hack with.  Feedback is very welcome.

Yes, it works wonderfully:

built against 4.0.99.3 pulled this morning (05:30 BST)
2.4.4-pre3 (BK yesterday)

----

Please note that "make World" fails for me (with build Servers only as an
option in host.def)  [the mesa stuff, amongst other things falls over]

However, the drivers build and I copied ati_drv.o, ati_misc.o over Kaoru's
4.0.99.2-0b rpms.  (I also copied libfbdevhw.a - but, of course, that no
longer loads).

----

Results:

+ no more flickering lines 2cm from left of screen
+ excellent scroll acceleration.

I'll do X11perf if you're interested - otherwise there's plenty of other
things to do... ;-)

Two points:

1/  the cursor disappears after about 5 seconds __only__ when it's over the
active window (it stays there fine when over an inactive window or the
desktop) -- KDE 2.0beta.

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 :-/

thanks for the excellent work,
Iain.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* XF4 (mach64) help please
@ 2001-04-16 15:15 Iain Sandoe
  2001-04-16 21:47 ` Michel Dänzer
  0 siblings, 1 reply; 9+ messages in thread
From: Iain Sandoe @ 2001-04-16 15:15 UTC (permalink / raw)
  To: linuxppc-dev


Hi,
I'm having problems with XF4.0.99.02-0b .. and don't really know where to
start with debugging.  This is the first version of Xf4 I've tried -
installed as per HOW to from 3.3.6/Xpmac.

I've read (and acted upon, AFAICT) the readmes, and Franz's comments in
Kaoru's ftp directory.

1/  Key-mappings are screwed (big time) with any combination of "Option
XkbModel" I've tried - this is very unfortunate because I can't do SysRq or
VT switches - too much time spent watching fsck...

2/  The Mach64 driver is not loading.

3/  The fbdev driver loads & runs but usually crashes on X restart (which
occurs on log-out) - leaving me with a locked machine and another fsck...

uname -a:
Linux minerva 2.4.4-pre3 #1 Mon Apr 16 13:56:10 BST 2001 ppc unknown

rpm -qa|grep XFree
XFree86-twm-4.0.99.2-0b
XFree86-Xnest-4.0.99.2-0b
XFree86-Xvfb-4.0.99.2-0b
XFree86-xf86cfg-4.0.99.2-0b
XFree86-drivers-4.0.99.2-0b
XFree86-cyrillic-fonts-4.0.99.2-0b
XFree86-xdm-4.0.99.2-0b
XFree86-libs-4.0.99.2-0b
XFree86-tools-4.0.99.2-0b
XFree86-xfs-4.0.99.2-0b
XFree86-4.0.99.2-0b
XFree86-100dpi-fonts-4.0.99.2-0b
XFree86-75dpi-fonts-4.0.99.2-0b
XFree86-devel-4.0.99.2-0b
XFree86-doc-4.0.99.2-0b

tail of XFree86.0.log:

(II) ATI: ATI driver (version 6.2.3) for chipsets: ati
(II) R128: Driver for ATI Rage 128 chipsets: ATI Rage 128 RE (PCI),
 ATI Rage 128 RF (AGP), ATI Rage 128 RG (AGP), ATI Rage 128 RK (PCI),
 ATI Rage 128 RL (AGP), ATI Rage 128 Pro PD (PCI),
 ATI Rage 128 Pro PF (AGP), ATI Rage 128 Mobility LE (PCI),
 ATI Rage 128 Mobility LF (AGP), ATI Rage 128 Mobility MF (AGP),
 ATI Rage 128 Mobility ML (AGP)
(II) RADEON: Driver for ATI Radeon chipsets: ATI Radeon QD (AGP),
 ATI Radeon QE (AGP), ATI Radeon QF (AGP), ATI Radeon QG (AGP)
(II) ATI:  Candidate "Device" section "Card0".
(WW) xf86UnMapVidMem: cannot find region for [0x30014c00,0x1c00]
(II) ATI:  Shared PCI/AGP Mach64 in slot 0:18:0 detected.
(II) ATI:  Shared PCI/AGP Mach64 in slot 0:18:0 assigned to active "Device"
section "Card0".
(II) Loading sub module "atimisc"
(II) LoadModule: "atimisc"
(II) Loading /usr/X11R6/lib/modules/drivers/atimisc_drv.o
(II) Module ati: vendor="The XFree86 Project"
 compiled for 4.0.99.2, module version = 6.2.3
 Module class: XFree86 Video Driver
 ABI class: XFree86 Video Driver, version 0.4
(II) resource ranges after probing:
 [0] -1 0xffffffff - 0xffffffff (0x1) MX[B]
 [1] -1 0x00000000 - 0x00000000 (0x1) MX[B]
 [2] -1 0xf3000000 - 0xf307ffff (0x80000) MX[B]
 [3] -1 0x80801000 - 0x80801fff (0x1000) MX[B]
 [4] -1 0x80804000 - 0x80804fff (0x1000) MX[B]
 [5] -1 0x80800000 - 0x808000ff (0x100) MX[B]
 [6] -1 0x80802000 - 0x80802fff (0x1000) MX[B](B)
 [7] -1 0x81000000 - 0x81ffffff (0x1000000) MX[B](B)
 [8] -1 0x0000ffff - 0x0000ffff (0x1) IX[B]
 [9] -1 0x00000000 - 0x00000000 (0x1) IX[B]
 [10] -1 0x00010000 - 0x000100ff (0x100) IX[B]
 [11] -1 0x00000c00 - 0x00000cff (0x100) IX[B](B)
(==) ATI(0): Chipset:  "ati".
(**) ATI(0): Depth 24, (**) framebuffer bpp 32
(--) ATI(0): ATI 3D Rage Pro graphics controller detected.
(--) ATI(0): Chip type 4750 "GP", version 4, foundry UMC, class 0, revision
0x01.
(--) ATI(0): PCI bus interface detected;  block I/O base is 0x0000.
(--) ATI(0): ATI Mach64 adapter detected.
(--) ATI(0): Internal RAMDAC (subtype 1) detected.
(==) ATI(0): RGB weight 888
(==) ATI(0): Default visual is TrueColor
(==) ATI(0): Using gamma correction (1.0, 1.0, 1.0)
(II) ATI(0): Using Mach64 accelerator CRTC.
(II) Loading sub module "fbdevhw"
(II) LoadModule: "fbdevhw"
(II) Loading /usr/X11R6/lib/modules/linux/libfbdevhw.a
(II) Module fbdevhw: vendor="The XFree86 Project"
 compiled for 4.0.99.2, module version = 0.0.2
 ABI class: XFree86 Video Driver, version 0.4
fbdevHWInit failed
crapping out here
(WW) ATI(0): xf86UnMapVidMem: cannot find region for [0x30016c00,0x1c00]
(II) UnloadModule: "ati"
(II) UnloadModule: "fbdevhw"
(II) Unloading /usr/X11R6/lib/modules/linux/libfbdevhw.a
(II) UnloadModule: "atimisc"
(II) Unloading /usr/X11R6/lib/modules/drivers/atimisc_drv.o
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

====
Is there anything I can do to find out what's going on?

ciao,
Iain.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-04-19 19:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-19 19:07 XF4 (mach64) help please Iain Sandoe
  -- strict thread matches above, loose matches on Subject: below --
2001-04-19 18:21 Iain Sandoe
2001-04-19 18:38 ` Geert Uytterhoeven
2001-04-19 12:36 Iain Sandoe
2001-04-19 15:46 ` William Blew
2001-04-19 17:57   ` Ani Joshi
2001-04-16 15:15 Iain Sandoe
2001-04-16 21:47 ` Michel Dänzer
2001-04-17  4:07   ` Ani Joshi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).