Re: [PATCH for 0pre1v3] r128 and radeon without vgaHW problem fix

2002-08-31 Thread Michel Dänzer
On Sam, 2002-08-31 at 19:24, ISHIKAWA Mutsumi wrote:
   Hmm, I understand the problem.
 
   radeon_drv and r128_drv require some vga related functions, defined
  in xc/programs/Xserver/hw/xfree86/vgahw/vgaHW.{c,h}. But on SPARC
  environment vgaHW.c will not build because SPARC machines does not
  have VGA, so XF86VgaHw is set as NO.
 
   Under build-tree/xc-xserver-xfree86-dbg, we will build the static
  linked x server. Symbols are resolved on build time.
 
   Perhaps, we should drop r128 and radeon driver support when the x
  server build without XF86VgaHw define.
  (or r128 and radeon drivers should update to be able to build and run
  without vgaHW).
 
  I put a patch to build fix on SPARC and new MANIFEST.sparc.
 
 http://people.debian.org/~ishikawa/XFree86/4.2.0-0pre1v3/sparc/101_sparc_ati_without_vgahw.diff

This is a bad patch IMHO. Almost every driver uses vgaHW, how are the
others handled on sparc?

I see a number of better solutions:

- guard the vgaHW calls in the drivers
- build/fix/implement vgaHW on sparc (no, it doesn't require legacy
  hardware)
- ...


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



Re: [PATCH for 0pre1v3] r128 and radeon without vgaHW problem fix

2002-08-31 Thread ISHIKAWA Mutsumi
 In [EMAIL PROTECTED] 
   Michel Dänzer [EMAIL PROTECTED] wrote:
 On Sam, 2002-08-31 at 19:24, ISHIKAWA Mutsumi wrote:

  
   I put a patch to build fix on SPARC and new MANIFEST.sparc.
  
  http://people.debian.org/~ishikawa/XFree86/4.2.0-0pre1v3/sparc/101_sparc_ati_without_vgahw.diff

 This is a bad patch IMHO.

 I have a question:

  Are RADEON and Rage128 supports need on SPARC currently?
  Some some SPARC workstation/server uses RADEON and/or Rage128?

 I know some SPARC workstations (e.g Ultra5) use mach64 graphic chip.
 So, we need mac64 support. We should not drop ati mac64 drivers.

 But I don't know RADEON or Rage128 graphic borad for SPARC.
 If RADEON/Rage128 board for SPARC does exist, we need more hack
to support these (but I don't have the board and enough time to do
this...).

  Almost every driver uses vgaHW, how are the others handled on sparc?

 These are all of the XFree86 graphic drivers for SPARC:

ati_drv.o
atimisc_drv.o
r128_drv.o
radeon_drv.o
fbdev_drv.o
glint_drv.o
sunbw2_drv.o
suncg14_drv.o
suncg3_drv.o
suncg6_drv.o
sunffb_drv.o
sunleo_drv.o
suntcx_drv.o

 Only r128_drv.o and radeon_drv.o does use vgaHw calls.

 I see a number of better solutions:

 - guard the vgaHW calls in the drivers
 - build/fix/implement vgaHW on sparc (no, it doesn't require legacy
   hardware)
 - ...

 Yes, I think they are better solution if radeon and r128 support are
needed on SPARC.

-- 
ISHIKAWA Mutsumi
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]



Re: [PATCH for 0pre1v3] r128 and radeon without vgaHW problem fix

2002-08-31 Thread Sven LUTHER
On Sun, Sep 01, 2002 at 04:07:30AM +0900, ISHIKAWA Mutsumi wrote:
  In [EMAIL PROTECTED] 
  Michel Dänzer [EMAIL PROTECTED] wrote:
  On Sam, 2002-08-31 at 19:24, ISHIKAWA Mutsumi wrote:
 
   
I put a patch to build fix on SPARC and new MANIFEST.sparc.
   
   http://people.debian.org/~ishikawa/XFree86/4.2.0-0pre1v3/sparc/101_sparc_ati_without_vgahw.diff
 
  This is a bad patch IMHO.
 
  I have a question:
 
   Are RADEON and Rage128 supports need on SPARC currently?
   Some some SPARC workstation/server uses RADEON and/or Rage128?
 
  I know some SPARC workstations (e.g Ultra5) use mach64 graphic chip.
  So, we need mac64 support. We should not drop ati mac64 drivers.
 
  But I don't know RADEON or Rage128 graphic borad for SPARC.
  If RADEON/Rage128 board for SPARC does exist, we need more hack
 to support these (but I don't have the board and enough time to do
 this...).

Well, i guess the Ultra5 have pci slots, so you could imagine putting a
pci radeon or rage128 board in it, is it not ?

I guess even the just released Radeon 9000 PCI boards could be used, but
then i don't own a Ultra5 box, and don't know if many people will do
this.

Friendly,

Sven Luther



Re: [PATCH for 0pre1v3] r128 and radeon without vgaHW problem fix

2002-08-31 Thread ISHIKAWA Mutsumi
 In [EMAIL PROTECTED] 
   Sven LUTHER [EMAIL PROTECTED] wrote:
 On Sun, Sep 01, 2002 at 04:07:30AM +0900, ISHIKAWA Mutsumi wrote:

 I put a patch to build fix on SPARC and new MANIFEST.sparc.

http://people.debian.org/~ishikawa/XFree86/4.2.0-0pre1v3/sparc/101_sparc_ati_without_vgahw.diff
  
   This is a bad patch IMHO.
  
   I have a question:
  
Are RADEON and Rage128 supports need on SPARC currently?
Some some SPARC workstation/server uses RADEON and/or Rage128?
  
   I know some SPARC workstations (e.g Ultra5) use mach64 graphic chip.
   So, we need mac64 support. We should not drop ati mac64 drivers.
  
   But I don't know RADEON or Rage128 graphic borad for SPARC.
   If RADEON/Rage128 board for SPARC does exist, we need more hack
  to support these (but I don't have the board and enough time to do
  this...).

 Well, i guess the Ultra5 have pci slots, so you could imagine putting a
 pci radeon or rage128 board in it, is it not ?

 I believe the firmware on these cards are written in ix86 code, so
these cards will not run on the SPARC.

-- 
ISHIKAWA Mutsumi
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]



Re: [PATCH for 0pre1v3] r128 and radeon without vgaHW problem fix

2002-08-31 Thread Michel Dänzer
On Sam, 2002-08-31 at 23:16, ISHIKAWA Mutsumi wrote:
  In [EMAIL PROTECTED] 
  Sven LUTHER [EMAIL PROTECTED] wrote:
  On Sun, Sep 01, 2002 at 04:07:30AM +0900, ISHIKAWA Mutsumi wrote:
 
  I put a patch to build fix on SPARC and new MANIFEST.sparc.
 
 http://people.debian.org/~ishikawa/XFree86/4.2.0-0pre1v3/sparc/101_sparc_ati_without_vgahw.diff
   
This is a bad patch IMHO.
   
I have a question:
   
 Are RADEON and Rage128 supports need on SPARC currently?
 Some some SPARC workstation/server uses RADEON and/or Rage128?
   
I know some SPARC workstations (e.g Ultra5) use mach64 graphic chip.
So, we need mac64 support. We should not drop ati mac64 drivers.
   
But I don't know RADEON or Rage128 graphic borad for SPARC.
If RADEON/Rage128 board for SPARC does exist, we need more hack
   to support these (but I don't have the board and enough time to do
   this...).
 
  Well, i guess the Ultra5 have pci slots, so you could imagine putting a
  pci radeon or rage128 board in it, is it not ?
 
  I believe the firmware on these cards are written in ix86 code, so
 these cards will not run on the SPARC.

SPARCs have Open Firmware, right? If so, Mac cards might work.


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



Re: [PATCH for 0pre1v3] r128 and radeon without vgaHW problem fix

2002-08-31 Thread ISHIKAWA Mutsumi
 In [EMAIL PROTECTED] 
   Michel Dänzer [EMAIL PROTECTED] wrote:
 On Sam, 2002-08-31 at 23:16, ISHIKAWA Mutsumi wrote:

   Well, i guess the Ultra5 have pci slots, so you could imagine putting a
   pci radeon or rage128 board in it, is it not ?
  
   I believe the firmware on these cards are written in ix86 code, so
  these cards will not run on the SPARC.

 SPARCs have Open Firmware, right? If so, Mac cards might work.

 Ah, I forget about this.

 Anyone test about this?
 I have CPI based SPARC workstation(Ultra30) but, don't have any
graphic cards for PCI Machintosh.

 Andif they are works on SPARC, I know some ATI chips and
Voodoo chips cards are released for PPC mac. We should add
XFree86 Voodoo driver for SPARC. Is it right?

-- 
ISHIKAWA Mutsumi
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]



RE: [PATCH for 0pre1v3] r128 and radeon without vgaHW problem fix

2002-08-31 Thread Jeramy B. Smith

 Andif they are works on SPARC, I know some ATI chips and
 Voodoo chips cards are released for PPC mac. We should add
 XFree86 Voodoo driver for SPARC. Is it right?


The answer is maybe. You will need to dump the rom of the cards in
question and ensure there is no ppc assembly in there. I discussed this
with Ani Joshi in regards to using a PCI Creator3D card in a Power Mac
and he said that although the card was OF it might have sparc assembly in
the rom.

I suggested sending creator pci cards to xfree/ppc people to get better
support for them since there is more active development on that side.

-jeramy b smith