Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* framebuffer and ggi
@ 1999-06-16  8:19 Vignaud Jean-Baptiste
  1999-06-16 11:04 ` Rich Payne
  1999-06-26 11:28 ` Quant-X Alpha Linux Support
  0 siblings, 2 replies; 10+ messages in thread
From: Vignaud Jean-Baptiste @ 1999-06-16  8:19 UTC (permalink / raw)
  To: axp-list

hi,

What is the status of the framebuffer driver on alpha, and
is it possible to run a X server on it (using GGI Xserver or FBcon Xserver)?

I'v tried to compile matroxfb on my SX but i had some trouble with it.
What is the correct option to activate in the kernel?
Does vesafb need to be activated?

I managed to boot with matroxfb but lauching the X server freeze my box.

Tanx..

Jean-Baptiste Vignaud.


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

* Re: framebuffer and ggi
  1999-06-16  8:19 framebuffer and ggi Vignaud Jean-Baptiste
@ 1999-06-16 11:04 ` Rich Payne
  1999-06-17  7:38   ` Vignaud Jean-Baptiste
  1999-06-26 11:28 ` Quant-X Alpha Linux Support
  1 sibling, 1 reply; 10+ messages in thread
From: Rich Payne @ 1999-06-16 11:04 UTC (permalink / raw)
  To: axp-list


Check this out, this might help you:
http://www.alphalinux.org/docs/fbcon_faq.shtml

On Wed, 16 Jun 1999, Vignaud Jean-Baptiste wrote:

> hi,
> 
> What is the status of the framebuffer driver on alpha, and
> is it possible to run a X server on it (using GGI Xserver or FBcon Xserver)?
> 
> I'v tried to compile matroxfb on my SX but i had some trouble with it.
> What is the correct option to activate in the kernel?
> Does vesafb need to be activated?
> 
> I managed to boot with matroxfb but lauching the X server freeze my box.
> 
> Tanx..
> 
> Jean-Baptiste Vignaud.
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 

Rich Payne
rpayne@alphalinux.org			www.alphalinux.org


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

* RE: framebuffer and ggi
  1999-06-16 11:04 ` Rich Payne
@ 1999-06-17  7:38   ` Vignaud Jean-Baptiste
  1999-06-18 18:28     ` Adam C. Powell, IV
  0 siblings, 1 reply; 10+ messages in thread
From: Vignaud Jean-Baptiste @ 1999-06-17  7:38 UTC (permalink / raw)
  To: axp-list


>
>
> Check this out, this might help you:
> http://www.alphalinux.org/docs/fbcon_faq.shtml
>
I'v checked this, but i have some questions:

I first compiled the matroxfb in module mode, and after a modprobe the
screen
goes covered by stranges pixels, the box was frozen, only a hard reset
unlock it.

I'v compiled it in the kernel and added video:vesa:0x318. This time the
kernel booted correctly, and cat /proc/fb gives me '0 MATROX VGA'.

Any trie to use fbset results in an error like SETMODE something (dont
remember the exact
error code)

I'v downloaded the latest version of ggi (degas snapshot of yesterday) and
compiled libggi
with kgi and fbcon support.

All tries to run a demo result in the same error than with fbset.

I' compiled the kgicon module (after fixing a 'register' problem in
<asm/current.h>
changing "register struct task_struct *current __asm__("$8");" to
"struct task_struct *current __asm__("$8");" maybe this was not the correct
way to fix the error...),
i'v compiled the utils part of the kgicon, instaled the two .o in
/lib/modules/.../video
done a depmod -a and modprobe kgicon

this results in a kernel 'oops':

------
Matrox Millennium (I/II) accelerator driver rev $Revision: 1.9 $ loaded
Matrox Graphics Matrox mga2x64 (I/II) driver loaded.
error: kgifb_set_var: Unsupported bpp '1'.
error: kgifb_set_var: Unsupported bpp '1'.
kgifb_init: xres 640 yres 480 bpp 8 vaddr 0xa000000 paddr 0xa000000 size
4194304fb1: KGI frame buffer device using 4096K of video memory
Unable to handle kernel paging request at virtual address 0000000000000008
insmod(379): Oops 0
pc = [<fffffc000033ac98>]  ra = [<fffffc0000336e6c>]  ps = 0000
r0 = fffffc0007cd4340  r1 = 0000000000000001  r2 = 0000000000000001
r3 = 00000000000003ff  r4 = fffffe00000d0000  r5 = fffffc00044f2ad8
r6 = fffffc0000000000  r7 = 0000000000000000  r8 = 0000000000000000
r9 = 0000000000000000  r10= 0000000000000015  r11= 00000000000d2000
r12= 00000000000d0000  r13= fffffc0007cd6000  r14= 00000000000d2000
r15= fffffe00000d0000
r16= 0000000000000015  r17= 0000000000000000  r18= 0000000000000000
r19= fffffffffffffffb  r20= 0000000000000000  r21= 0000000000000020
r22= 0000000000000000  r23= fffffc0000478504  r24= 0000000000000001
r25= 000000000000000a  r27= fffffc000033ac70  r28= 0000000000000000
gp = fffffc0000501a20  sp = fffffc00046b3cd8
Code: 46310409  412137a1  e42000a4 <a4280008> 48217681  f0200026  a43d9970
a49db2d0  a0210000
Trace: [<fffffc0000336e6c>] [<fffffc00003371d8>] [<fffffc0000326690>]
[<fffffc000032679c>] [<fffffc0000310bf8>]

fbcon-cfb8: Device or resource busy
------
this happend this morning, i'll try to trace this Trace this evening to
see...

After this i'v done a lsmod:

Module                  Size  Used by
kgicon                 70648   1  (uninitialized)
fbcon-cfb8              4048   0  [kgicon]
fbcon-cfb32             4112   0  [kgicon]
fbcon-cfb16             4360   0  [kgicon]
fbcon-cfb24             4336   0  [kgicon]
awe_wave              173000   0
sb                     48136   0
uart401                 7752   0  [sb]
sound                  87624   0  [awe_wave sb uart401]
soundlow                 336   0  [sound]
soundcore               3848   7  [sb sound]

and a cat /proc/fb:
0 MATROX VGA
1 KGI


So my questions are:
Has anybody succeded with the framebuffer fbcon or kgicon?

Can someone give me an example of fbset parameter to change the mode of the
matroxfb...

My system is a SX164, redhat 5.2, kernel 2.3.6 and a matrox millenium II.


tanx

Jean-Baptiste Vignaud.


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

* Re: framebuffer and ggi
  1999-06-17  7:38   ` Vignaud Jean-Baptiste
@ 1999-06-18 18:28     ` Adam C. Powell, IV
  1999-06-21  6:56       ` Vignaud Jean-Baptiste
  0 siblings, 1 reply; 10+ messages in thread
From: Adam C. Powell, IV @ 1999-06-18 18:28 UTC (permalink / raw)
  To: axp-list

Vignaud Jean-Baptiste wrote:

> >
> >
> > Check this out, this might help you:
> > http://www.alphalinux.org/docs/fbcon_faq.shtml
> >
> I'v checked this, but i have some questions:
>
> I first compiled the matroxfb in module mode, and after a modprobe the
> screen goes covered by stranges pixels, the box was frozen, only a hard
> reset unlock it.

Did you set a mode for the fb to start in?  For example, "modprobe matroxfb
vesa=0x318" (this works with insmod, but I'm not sure about modprobe).

> I'v compiled it in the kernel and added video:vesa:0x318. This time the
> kernel booted correctly, and cat /proc/fb gives me '0 MATROX VGA'.

Really?  That's interesting, because it sounds like you're using the vesafb
and not matroxfb.  The equivalent to use matroxfb would be
"video=matroxfb:vesa:0x118".  Nonetheless, two interesting points:

   * vesafb works on SX/matrox
   * it boots in graphic mode

matroxfb hangs for me on LX when trying to boot in any graphic mode, but boots
fine in text mode, then I switch mode later using fbset.

> Any trie to use fbset results in an error like SETMODE something (dont
> remember the exact error code)

Are you using "-accel true" with fbset as is suggested in the FAQ?  This also
could be a vesafb/matroxfb issue...

> I'v downloaded the latest version of ggi (degas snapshot of yesterday) and
> compiled libggi with kgi and fbcon support.
>
> All tries to run a demo result in the same error than with fbset.

I don't know of any analogy to fbset's -accel in ggi, so I'd guess again
vesafb/matroxfb.

> I' compiled the kgicon module (after fixing a 'register' problem in
> <asm/current.h> changing "register struct task_struct *current
> __asm__("$8");" to "struct task_struct *current __asm__("$8");" maybe this
> was not the correct way to fix the error...), i'v compiled the utils part of
> the kgicon, instaled the two .o in
> /lib/modules/.../video done a depmod -a and modprobe kgicon
>
> this results in a kernel 'oops':

I thought I heard a rumor that kgicon was no longer supported...

> Can someone give me an example of fbset parameter to change the mode of the
> matroxfb...

I use: fbset 1280x1024-60 -depth 24 -accel true

> My system is a SX164, redhat 5.2, kernel 2.3.6 and a matrox millenium II.

You see in here a lot of "I heard", "I thought".  This is more because I have
not been keeping up with the state-of-the-art nearly enough to give definitive
answers to your questions, and am probably very wrong on some of them.  You
should probably post to the linux-fbdev list (subscription info is given on
the FAQ for those interested), though beware: the number of experts in both
the framebuffer and Alpha is small enough that you will probably have to do
some hacking or digging through motherboard documentation to answer your
toughest questions.

Hopefully I've given you a couple of things to try so you can give linux-fbdev
the most thorough possible report.

Good luck, and if you make some progress, please let me know so the Alpha FAQ
remains current.

P.S.  Part of the problem is that there are several different sources of
documentation, including the faq on ALO, the "official" howto linked from it
(which I only became aware of recently), and the kernel Documentation/fb
directory.  Reading every detail of every piece of every howto on the net just
isn't an option, especially when they're in a foreign language, even more so
when they contradict each other.  Hopefully the "official" howto will become
more complete so the ALO one can go away and things will be more centralized
and consistent.  But the maintainer hasn't replied to my patch of over a week
ago, so it seems ours will remain for some time...

Zeen,

-Adam `Cold Fusion' Powell, IV http://www.ctcms.nist.gov/~powell/ ____
USDoC, National Institute of Standards & Technology (NIST)  |\ ||<  |
Center for Theoretical and Computational Materials Science  | \||_> |


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

* RE: framebuffer and ggi
  1999-06-18 18:28     ` Adam C. Powell, IV
@ 1999-06-21  6:56       ` Vignaud Jean-Baptiste
  0 siblings, 0 replies; 10+ messages in thread
From: Vignaud Jean-Baptiste @ 1999-06-21  6:56 UTC (permalink / raw)
  To: axp-list


> >
> > I first compiled the matroxfb in module mode, and after a modprobe the
> > screen goes covered by stranges pixels, the box was frozen, only a hard
> > reset unlock it.
>
> Did you set a mode for the fb to start in?  For example,
> "modprobe matroxfb
> vesa=0x318" (this works with insmod, but I'm not sure about modprobe).
>
> > I'v compiled it in the kernel and added video:vesa:0x318. This time the
> > kernel booted correctly, and cat /proc/fb gives me '0 MATROX VGA'.
>
> Really?  That's interesting, because it sounds like you're using
> the vesafb
> and not matroxfb.  The equivalent to use matroxfb would be
> "video=matroxfb:vesa:0x118".  Nonetheless, two interesting points:
>
>    * vesafb works on SX/matrox
>    * it boots in graphic mode
>
> matroxfb hangs for me on LX when trying to boot in any graphic
> mode, but boots
> fine in text mode, then I switch mode later using fbset.
>
I made a mistake while reporting this, it is true that you cannot boot in
grafic mode, and
the command passed to the kernel include the "matrox:".

> > Any trie to use fbset results in an error like SETMODE something (dont
> > remember the exact error code)
>
> Are you using "-accel true" with fbset as is suggested in the
> FAQ?  This also
> could be a vesafb/matroxfb issue...
>
I'v compiled the fbset version included in libggi pack, and this worked fine
on my SX.

> > I'v downloaded the latest version of ggi (degas snapshot of
> yesterday) and
> > compiled libggi with kgi and fbcon support.
> >
> > All tries to run a demo result in the same error than with fbset.
>
> I don't know of any analogy to fbset's -accel in ggi, so I'd guess again
> vesafb/matroxfb.
>
> > I' compiled the kgicon module (after fixing a 'register' problem in
> > <asm/current.h> changing "register struct task_struct *current
> > __asm__("$8");" to "struct task_struct *current __asm__("$8");"
> maybe this
> > was not the correct way to fix the error...), i'v compiled the
> utils part of
> > the kgicon, instaled the two .o in
> > /lib/modules/.../video done a depmod -a and modprobe kgicon
> >
> > this results in a kernel 'oops':
>
> I thought I heard a rumor that kgicon was no longer supported...
>


> > Can someone give me an example of fbset parameter to change the
> mode of the
> > matroxfb...
>
> I use: fbset 1280x1024-60 -depth 24 -accel true
>
Ok, this worked...

I'll try to look at the matroxfb <-> pyxis interaction because i think this
is the problem...

Thanx.

Jean-Baptiste


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

* Re: framebuffer and ggi
  1999-06-16  8:19 framebuffer and ggi Vignaud Jean-Baptiste
  1999-06-16 11:04 ` Rich Payne
@ 1999-06-26 11:28 ` Quant-X Alpha Linux Support
  1999-06-26 12:05   ` Jeff Garzik
  1999-06-27  5:31   ` Richard Henderson
  1 sibling, 2 replies; 10+ messages in thread
From: Quant-X Alpha Linux Support @ 1999-06-26 11:28 UTC (permalink / raw)
  To: axp-list

Hi !

On Wed, Jun 16, 1999 at 10:19:58AM +0200, Vignaud Jean-Baptiste wrote:

> I managed to boot with matroxfb but lauching the X server freeze my box.

I've seen some unexpected crashes when using framebuffer on LX.
I'm not talking about XF86_FBDev just about booting with matroxfb
in Textmode and switching to gfx-mode after booting on an LX, no
X at all.

It's also very uncool that DGA does not work on Alpha in general.
Maybe someone will fix it in a clean way (does Jensen still requires
fixed mappings ?), I can use nagratv on LX using this hack:

--- xc/lib/Xxf86dga/XF86DGA.c~  Fri Jun 25 13:25:45 1999
+++ xc/lib/Xxf86dga/XF86DGA.c   Fri Jun 25 13:27:00 1999
@@ -14,6 +14,8 @@
 #include <os2.h>
 #endif
+#define CIA_DENSE_MEM           (0xfffffc8600000000UL)
+
 #define NEED_EVENTS
 #define NEED_REPLIES
 #include "Xlibint.h"
@@ -659,7 +661,7 @@
 #endif
    /* This requires linux-0.99.pl10 or above */
    *addr = (void *)mmap(NULL, *bank, PROT_READ,
-                        MAP_FILE | MAP_SHARED, fd, (off_t)offset);
+                        MAP_FILE | MAP_SHARED, fd, (off_t)offset+CIA_DENSE_MEM);
 #ifdef DEBUG
    fprintf(stderr, "XF86DGAGetVideo: physaddr: 0x%08x, size: %d\n",
           (long)offset, *bank);

-- 
  ciao -
    Stefan Traby
    Quant-X Alpha Linux Support

   Quant-X Service &                         Ph:  (+43) 4212 90555-0
   Consulting Ges.m.b.H.                     Fax: (+43) 4212 90555-555
   http://www.quant-x.com                    Email: support@quant-x.com


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

* Re: framebuffer and ggi
  1999-06-26 11:28 ` Quant-X Alpha Linux Support
@ 1999-06-26 12:05   ` Jeff Garzik
  1999-06-26 13:01     ` Quant-X Alpha Linux Support
  1999-06-27  5:31   ` Richard Henderson
  1 sibling, 1 reply; 10+ messages in thread
From: Jeff Garzik @ 1999-06-26 12:05 UTC (permalink / raw)
  To: Quant-X Alpha Linux Support; +Cc: axp-list

Quant-X Alpha Linux Support wrote:
> 
> Hi !
> 
> On Wed, Jun 16, 1999 at 10:19:58AM +0200, Vignaud Jean-Baptiste wrote:
> 
> > I managed to boot with matroxfb but lauching the X server freeze my box.
> 
> I've seen some unexpected crashes when using framebuffer on LX.
> I'm not talking about XF86_FBDev just about booting with matroxfb
> in Textmode and switching to gfx-mode after booting on an LX, no
> X at all.


You should expect major problems when using a non-fbdev application and
a framebuffer driver at the same time.

	Jeff


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

* Re: framebuffer and ggi
  1999-06-26 12:05   ` Jeff Garzik
@ 1999-06-26 13:01     ` Quant-X Alpha Linux Support
  1999-06-26 17:32       ` Jeff Garzik
  0 siblings, 1 reply; 10+ messages in thread
From: Quant-X Alpha Linux Support @ 1999-06-26 13:01 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Quant-X Alpha Linux Support, axp-list

Hi Jeff !

On Sat, Jun 26, 1999 at 08:05:53AM -0400, Jeff Garzik wrote:
> Quant-X Alpha Linux Support wrote:

> > > I managed to boot with matroxfb but lauching the X server freeze my box.
> > 
> > I've seen some unexpected crashes when using framebuffer on LX.
> > I'm not talking about XF86_FBDev just about booting with matroxfb
> > in Textmode and switching to gfx-mode after booting on an LX, no
> > X at all.
> 
> 
> You should expect major problems when using a non-fbdev application and
> a framebuffer driver at the same time.

When you mean using an non FBDev Xserver (works on some configuration) or
SVGA-Lib apps, one can expect troubles, I agree.

I ment: Booting FBDev, switching to FB gfx-mode (by using fbset,
in my case 1152x864x16bpp)) and then running a textmode console
application like "ls -R /". 
This crashed my machine very badly (LX, matroxfb (Millennium II 8MB))
two times (under 2.2.7). (One crash was a total freeze, and the other
was a reboot into MILO (!))
I really expect this to work.
Also fbdev application (like fbtv (xawtv)) give strange
video results here (but no crashes) on Alpha. 

-- 
  ciao -
    Stefan Traby
    Quant-X Alpha Linux Support

   Quant-X Service &                         Ph:  (+43) 4212 90555-0
   Consulting Ges.m.b.H.                     Fax: (+43) 4212 90555-555
   http://www.quant-x.com                    Email: support@quant-x.com


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

* Re: framebuffer and ggi
  1999-06-26 13:01     ` Quant-X Alpha Linux Support
@ 1999-06-26 17:32       ` Jeff Garzik
  0 siblings, 0 replies; 10+ messages in thread
From: Jeff Garzik @ 1999-06-26 17:32 UTC (permalink / raw)
  To: Quant-X Alpha Linux Support; +Cc: axp-list

Quant-X Alpha Linux Support wrote:
> 
> Hi Jeff !
> 
> On Sat, Jun 26, 1999 at 08:05:53AM -0400, Jeff Garzik wrote:
> > Quant-X Alpha Linux Support wrote:
> 
> > > > I managed to boot with matroxfb but lauching the X server freeze my box.
> > >
> > > I've seen some unexpected crashes when using framebuffer on LX.
> > > I'm not talking about XF86_FBDev just about booting with matroxfb
> > > in Textmode and switching to gfx-mode after booting on an LX, no
> > > X at all.
> >
> >
> > You should expect major problems when using a non-fbdev application and
> > a framebuffer driver at the same time.
> 
> When you mean using an non FBDev Xserver (works on some configuration) or
> SVGA-Lib apps, one can expect troubles, I agree.

I don't think this specifically applies to your problem but it might
help.

http://havoc.gtf.org/garzik/kernel/files/UNTESTED/2.3.3-fbcon-cfb-alpha-fixes.gz

It is a patch against 2.3.3 but should apply cleanly to 2.2.7+

	Jeff


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

* Re: framebuffer and ggi
  1999-06-26 11:28 ` Quant-X Alpha Linux Support
  1999-06-26 12:05   ` Jeff Garzik
@ 1999-06-27  5:31   ` Richard Henderson
  1 sibling, 0 replies; 10+ messages in thread
From: Richard Henderson @ 1999-06-27  5:31 UTC (permalink / raw)
  To: Quant-X Alpha Linux Support; +Cc: axp-list

On Sat, Jun 26, 1999 at 01:28:57PM +0200, Quant-X Alpha Linux Support wrote:
> It's also very uncool that DGA does not work on Alpha in general.

Yeah.  About a year ago I sent a patch to make things work
on everything except Jensen.  I forget what version of X it
went into.

Jensen's got no real hope though, since it would require
changes to the applications using DGA.  Which would be a
continually losing battle.


r~


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

end of thread, other threads:[~1999-06-27  6:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-16  8:19 framebuffer and ggi Vignaud Jean-Baptiste
1999-06-16 11:04 ` Rich Payne
1999-06-17  7:38   ` Vignaud Jean-Baptiste
1999-06-18 18:28     ` Adam C. Powell, IV
1999-06-21  6:56       ` Vignaud Jean-Baptiste
1999-06-26 11:28 ` Quant-X Alpha Linux Support
1999-06-26 12:05   ` Jeff Garzik
1999-06-26 13:01     ` Quant-X Alpha Linux Support
1999-06-26 17:32       ` Jeff Garzik
1999-06-27  5:31   ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox