9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ati radeon support
@ 2003-10-01 21:23 Hugo Santos
  2003-10-01 22:01 ` mirtchov
  0 siblings, 1 reply; 21+ messages in thread
From: Hugo Santos @ 2003-10-01 21:23 UTC (permalink / raw)
  To: 9fans

Hi there,

I was trying to boot Plan9 on my laptop which has a ATI Radeon Mobility
7500 which doesn't seem to be supported.
Is there any support or work being done in Radeon support for Plan9?
My card pci is 1002/4c57.

Hugo Santos



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

* Re: [9fans] ati radeon support
  2003-10-01 21:23 [9fans] ati radeon support Hugo Santos
@ 2003-10-01 22:01 ` mirtchov
  2003-10-02  0:55   ` okamoto
  2003-10-02  8:11   ` Christian Grothaus
  0 siblings, 2 replies; 21+ messages in thread
From: mirtchov @ 2003-10-01 22:01 UTC (permalink / raw)
  To: 9fans

> Hi there,
>
> I was trying to boot Plan9 on my laptop which has a ATI Radeon Mobility
> 7500 which doesn't seem to be supported.
> Is there any support or work being done in Radeon support for Plan9?
> My card pci is 1002/4c57.
>
> Hugo Santos

Philippe Anel has written the radeon driver:

	http://mapage.noos.fr/philippe.anel/plan9rxxx.html

unfortunately the current drivers don't support the 7500 (which iswhat
I have, same as yours).  I provided him with as much info as possible
on on the model as I could (or as he needed) some time ago...




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

* Re: [9fans] ati radeon support
  2003-10-01 22:01 ` mirtchov
@ 2003-10-02  0:55   ` okamoto
  2003-10-02  8:11   ` Christian Grothaus
  1 sibling, 0 replies; 21+ messages in thread
From: okamoto @ 2003-10-02  0:55 UTC (permalink / raw)
  To: 9fans

> I have, same as yours).  I provided him with as much info as possible
> on on the model as I could (or as he needed) some time ago...

I'm not Philippe, however, I think it's very hard to write vga dirver
when the developper has no access to that very card.   Those things
sometimes does not behave as written.

Kenji



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

* Re: [9fans] ati radeon support
  2003-10-01 22:01 ` mirtchov
  2003-10-02  0:55   ` okamoto
@ 2003-10-02  8:11   ` Christian Grothaus
  2003-10-02  8:31     ` Christian Grothaus
  2003-10-02 18:56     ` Hugo Santos
  1 sibling, 2 replies; 21+ messages in thread
From: Christian Grothaus @ 2003-10-02  8:11 UTC (permalink / raw)
  To: 9fans

The driver already works with the Radeon Mobility 7500, when
you connect a CRT to the laptop. What's missing yet is just
LCD/DFP support. Phillipe mailed me a while ago that he's
working on it, but I can imagine it's ungrateful work when
there are differences from card to card...

Christian



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

* Re: [9fans] ati radeon support
  2003-10-02  8:11   ` Christian Grothaus
@ 2003-10-02  8:31     ` Christian Grothaus
  2003-10-02 18:56     ` Hugo Santos
  1 sibling, 0 replies; 21+ messages in thread
From: Christian Grothaus @ 2003-10-02  8:31 UTC (permalink / raw)
  To: 9fans

> LCD/DFP support. Phillipe mailed me a while ago that he's

s/Phillipe/Philippe/

I'm sorry!


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

* Re: [9fans] ati radeon support
  2003-10-02  8:11   ` Christian Grothaus
  2003-10-02  8:31     ` Christian Grothaus
@ 2003-10-02 18:56     ` Hugo Santos
  2003-10-02 19:07       ` mirtchov
  1 sibling, 1 reply; 21+ messages in thread
From: Hugo Santos @ 2003-10-02 18:56 UTC (permalink / raw)
  To: 9fans

Shouldn't there be support for 'standard' VESA 2.0 if native support
isn't available? That way "all" the unsupported cards/chips would at
least have (poor slow) graphics.

Hugo


On Thursday, October 2, 2003, at 09:11 AM, Christian Grothaus wrote:

> The driver already works with the Radeon Mobility 7500, when
> you connect a CRT to the laptop. What's missing yet is just
> LCD/DFP support. Phillipe mailed me a while ago that he's
> working on it, but I can imagine it's ungrateful work when
> there are differences from card to card...
>
> Christian
>



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

* Re: [9fans] ati radeon support
  2003-10-02 18:56     ` Hugo Santos
@ 2003-10-02 19:07       ` mirtchov
  2003-10-03  8:43         ` Douglas A. Gwyn
  0 siblings, 1 reply; 21+ messages in thread
From: mirtchov @ 2003-10-02 19:07 UTC (permalink / raw)
  To: 9fans

> Shouldn't there be support for 'standard' VESA 2.0 if native support
> isn't available? That way "all" the unsupported cards/chips would at
> least have (poor slow) graphics.
>

nobody cared enough to write it, though it has been discussed on the
list many times:

	http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=VESA&btnG=Google+Search&meta=group%3Dcomp.os.plan9




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

* Re: [9fans] ati radeon support
  2003-10-02 19:07       ` mirtchov
@ 2003-10-03  8:43         ` Douglas A. Gwyn
  2003-10-03 12:53           ` paurea
  0 siblings, 1 reply; 21+ messages in thread
From: Douglas A. Gwyn @ 2003-10-03  8:43 UTC (permalink / raw)
  To: 9fans

mirtchov@cpsc.ucalgary.ca wrote:
> nobody cared enough to write it, though it has been discussed on the
> list many times:

Of course the ironic thing is that Plan 9 really doesn't need more
than VESA provides; all those 3D graphics features of today's cards
are being wasted under Plan 9.  A single VESA driver would have
prevented having to keep hacking drivers for each new card.


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

* Re: [9fans] ati radeon support
  2003-10-03  8:43         ` Douglas A. Gwyn
@ 2003-10-03 12:53           ` paurea
  2003-10-03 13:12             ` rog
  0 siblings, 1 reply; 21+ messages in thread
From: paurea @ 2003-10-03 12:53 UTC (permalink / raw)
  To: 9fans

> Of course the ironic thing is that Plan 9 really doesn't need more
> than VESA provides; all those 3D graphics features of today's cards
> are being wasted under Plan 9.  A single VESA driver would have
> prevented having to keep hacking drivers for each new card.

On last discussion I understood that there is a problem with hw cursor
(noone supports it even if the standard VESA does). Before using VESA,
someone has to write support for software cursor. Another issue may be
that VESA may not be as standard as one might expect (for example BIOS
bugs are card dependant). Take a look at the vesa X driver for example.


								Gorka



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

* Re: [9fans] ati radeon support
  2003-10-03 12:53           ` paurea
@ 2003-10-03 13:12             ` rog
  2003-10-03 13:16               ` Charles Forsyth
  2003-10-03 14:34               ` jmk
  0 siblings, 2 replies; 21+ messages in thread
From: rog @ 2003-10-03 13:12 UTC (permalink / raw)
  To: 9fans

> On last discussion I understood that there is a problem with hw cursor
> (noone supports it even if the standard VESA does). Before using VESA,
> someone has to write support for software cursor.

you're right: the inferno stuff that forsyth posted relied on software
cursor support, something that plan 9 no longer has, i believe.



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

* Re: [9fans] ati radeon support
  2003-10-03 13:12             ` rog
@ 2003-10-03 13:16               ` Charles Forsyth
  2003-10-03 14:34               ` jmk
  1 sibling, 0 replies; 21+ messages in thread
From: Charles Forsyth @ 2003-10-03 13:16 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 157 bytes --]

the code for that is in there (done by someone at Lucent)
but the connections in devdraw aren't there any more.
i thought the interface could be simpler.

[-- Attachment #2: Type: message/rfc822, Size: 2230 bytes --]

From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] ati radeon support
Date: Fri, 3 Oct 2003 14:12:19 +0100
Message-ID: <543e21d05a66f04bff57ce80f26cffc5@vitanuova.com>

> On last discussion I understood that there is a problem with hw cursor
> (noone supports it even if the standard VESA does). Before using VESA,
> someone has to write support for software cursor.

you're right: the inferno stuff that forsyth posted relied on software
cursor support, something that plan 9 no longer has, i believe.

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

* Re: [9fans] ati radeon support
  2003-10-03 13:12             ` rog
  2003-10-03 13:16               ` Charles Forsyth
@ 2003-10-03 14:34               ` jmk
  2003-10-03 14:46                 ` rog
  2003-10-03 17:59                 ` C H Forsyth
  1 sibling, 2 replies; 21+ messages in thread
From: jmk @ 2003-10-03 14:34 UTC (permalink / raw)
  To: 9fans

On Fri Oct  3 09:10:45 EDT 2003, rog@vitanuova.com wrote:
> > On last discussion I understood that there is a problem with hw cursor
> > (noone supports it even if the standard VESA does). Before using VESA,
> > someone has to write support for software cursor.
>
> you're right: the inferno stuff that forsyth posted relied on software
> cursor support, something that plan 9 no longer has, i believe.

I haven't ever looked at VESA, so forgive me if this is a stupid question:
once you have used VESA to set up the hardware, if you know how to drive the
hardware cursor is there anything stopping you from doing that? Usually,
writing the code for a hardware cursor is fiddly but not hard.


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

* Re: [9fans] ati radeon support
  2003-10-03 14:34               ` jmk
@ 2003-10-03 14:46                 ` rog
  2003-10-03 17:59                 ` C H Forsyth
  1 sibling, 0 replies; 21+ messages in thread
From: rog @ 2003-10-03 14:46 UTC (permalink / raw)
  To: 9fans

> I haven't ever looked at VESA, so forgive me if this is a stupid question:
> once you have used VESA to set up the hardware, if you know how to drive the
> hardware cursor is there anything stopping you from doing that? Usually,
> writing the code for a hardware cursor is fiddly but not hard.

no...  just that if you're doing that, you still need to have *some*
sort of graphics-card specific driver, whereas the potential bonus of
using VESA graphics is that you can use almost any card regardless of
driver availability.



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

* Re: [9fans] ati radeon support
  2003-10-03 14:34               ` jmk
  2003-10-03 14:46                 ` rog
@ 2003-10-03 17:59                 ` C H Forsyth
  2003-10-03 18:28                   ` jmk
  1 sibling, 1 reply; 21+ messages in thread
From: C H Forsyth @ 2003-10-03 17:59 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 762 bytes --]

yes, the problem with graphics cards is really the strange card-specific stuff
needed to put it into a reasonable large, deep linear colour mode.
if we had only to write code for the hw cursor for each one,
that would be much less of a problem.  even some of the hardware
drawing code doesn't look hard to exploit ... once the card is in a sensible mode.

the cursor code always seemed fairly similar, so it might not be too hard
to have a table of ids just for that if necessary, and certainly card-specific
code for that is fairly easy to write.  one of the changes i
was making to the software cursor in inferno is to bring it
into a common interface with the hardware one
(allowing for the need to interact a bit with devdraw re. screen access).

[-- Attachment #2: Type: message/rfc822, Size: 2621 bytes --]

From: jmk@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] ati radeon support
Date: Fri, 3 Oct 2003 10:34:29 -0400
Message-ID: <3308f46c395bce82502b731fc273af8b@plan9.bell-labs.com>

On Fri Oct  3 09:10:45 EDT 2003, rog@vitanuova.com wrote:
> > On last discussion I understood that there is a problem with hw cursor
> > (noone supports it even if the standard VESA does). Before using VESA,
> > someone has to write support for software cursor.
>
> you're right: the inferno stuff that forsyth posted relied on software
> cursor support, something that plan 9 no longer has, i believe.

I haven't ever looked at VESA, so forgive me if this is a stupid question:
once you have used VESA to set up the hardware, if you know how to drive the
hardware cursor is there anything stopping you from doing that? Usually,
writing the code for a hardware cursor is fiddly but not hard.

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

* Re: [9fans] ati radeon support
  2003-10-03 17:59                 ` C H Forsyth
@ 2003-10-03 18:28                   ` jmk
  2003-10-03 19:22                     ` Charles Forsyth
  0 siblings, 1 reply; 21+ messages in thread
From: jmk @ 2003-10-03 18:28 UTC (permalink / raw)
  To: 9fans

On Fri Oct  3 13:57:55 EDT 2003, forsyth@vitanuova.com wrote:
> yes, the problem with graphics cards is really the strange card-specific stuff
> needed to put it into a reasonable large, deep linear colour mode.
> if we had only to write code for the hw cursor for each one,
> that would be much less of a problem.  even some of the hardware
> drawing code doesn't look hard to exploit ... once the card is in a sensible mode.
>
> the cursor code always seemed fairly similar, so it might not be too hard
> to have a table of ids just for that if necessary, and certainly card-specific
> code for that is fairly easy to write.  one of the changes i
> was making to the software cursor in inferno is to bring it
> into a common interface with the hardware one
> (allowing for the need to interact a bit with devdraw re. screen access).

The reason the software cursor disappeared form Plan 9 was, by the time
devdraw went in, the cursor and mouse code had accumulated so much cruft
after years of adapting to new graphics models and hardware that it was
a constant source of lockups and crashes. There was an attempt when changing
to devdraw to pare all that back and simplify it. The software cursor
was the cause of many of the problems.

The software cursor is OK for getting started, but I'd hate to use it
in earnest. The flicker when scrolling text was awful and I'm trying to
imagine what it would be like with vnc.


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

* Re: [9fans] ati radeon support
  2003-10-03 18:28                   ` jmk
@ 2003-10-03 19:22                     ` Charles Forsyth
  2003-10-03 23:41                       ` Charles Forsyth
  0 siblings, 1 reply; 21+ messages in thread
From: Charles Forsyth @ 2003-10-03 19:22 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 614 bytes --]

that code was indeed quite complicated (it seemed to wander back and
forth between draw, mouse and screen in a way that was probably straightforward
but always left me a little confused for a few passes).

for performance, i think it depends how it's done.  i didn't do the Inferno one, but i did
use it without obvious trouble with Inferno on a 486sx33 processor.  in one of my
own os's i did the software cursor in a process on a 386sx16 and
that was fine too, although that was only 16x16 in bits on a monochrome screen.
neither controlled it with the clock, though, which might have made it smoother.

[-- Attachment #2: Type: message/rfc822, Size: 3400 bytes --]

From: jmk@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] ati radeon support
Date: Fri, 3 Oct 2003 14:28:09 -0400
Message-ID: <92f0483b4252b9cd48e240d6d4122c65@plan9.bell-labs.com>

On Fri Oct  3 13:57:55 EDT 2003, forsyth@vitanuova.com wrote:
> yes, the problem with graphics cards is really the strange card-specific stuff
> needed to put it into a reasonable large, deep linear colour mode.
> if we had only to write code for the hw cursor for each one,
> that would be much less of a problem.  even some of the hardware
> drawing code doesn't look hard to exploit ... once the card is in a sensible mode.
>
> the cursor code always seemed fairly similar, so it might not be too hard
> to have a table of ids just for that if necessary, and certainly card-specific
> code for that is fairly easy to write.  one of the changes i
> was making to the software cursor in inferno is to bring it
> into a common interface with the hardware one
> (allowing for the need to interact a bit with devdraw re. screen access).

The reason the software cursor disappeared form Plan 9 was, by the time
devdraw went in, the cursor and mouse code had accumulated so much cruft
after years of adapting to new graphics models and hardware that it was
a constant source of lockups and crashes. There was an attempt when changing
to devdraw to pare all that back and simplify it. The software cursor
was the cause of many of the problems.

The software cursor is OK for getting started, but I'd hate to use it
in earnest. The flicker when scrolling text was awful and I'm trying to
imagine what it would be like with vnc.

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

* Re: [9fans] ati radeon support
  2003-10-03 19:22                     ` Charles Forsyth
@ 2003-10-03 23:41                       ` Charles Forsyth
  0 siblings, 0 replies; 21+ messages in thread
From: Charles Forsyth @ 2003-10-03 23:41 UTC (permalink / raw)
  To: 9fans

>>for performance, i think it depends how [software cursor] is done.

which doesn't mean that i prefer it to using a hardware cursor, which can do more
with less overhead and disturbance.

i don't really understand why graphics adapter makers can apparently
agree to change anything except the hopelessly obsolete VGA interface.
soon you'll need to visit three registers to collect enough bits for screen width.
i don't mind if there's a standard bit
	Think=	1<<0,	/* acquire a brain */
in a standard place that must be set to enable a more reasonable
interface for current and future displays and otherwise it defaults to 1983 say.



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

* Re: [9fans] ati radeon support
  2003-10-03  9:27   ` Charles Forsyth
@ 2003-10-03 11:42     ` C H Forsyth
  0 siblings, 0 replies; 21+ messages in thread
From: C H Forsyth @ 2003-10-03 11:42 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 57 bytes --]

i've put it in

	http://www.vitanuova.com/dist/vesa.tgz

[-- Attachment #2: Type: message/rfc822, Size: 2362 bytes --]

From: Charles Forsyth <forsyth@caldo.demon.co.uk>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] ati radeon support
Date: Fri, 3 Oct 2003 10:27:11 +0100
Message-ID: <0a5ffa61e305f29dcebbe41d2dde451f@caldo.demon.co.uk>

>>there is VESA32 standard with 32bit entries and linear framebuffer, but
>>I don't know how many cards support that thing...

roger used 16-bit mode in the bootstrap to set up
a linear framebuffer because nothing much actually supported
the 32-bit mode, even if you could trust the BIOS not to do
something silly.  it might have changed.  i was going to tar
up his code and put it on a web site, once i'd located the pieces
again, in case anyone was sufficiently keen.

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

* Re: [9fans] ati radeon support
  2003-10-03  9:17 ` Atanas Bachvaroff
@ 2003-10-03  9:27   ` Charles Forsyth
  2003-10-03 11:42     ` C H Forsyth
  0 siblings, 1 reply; 21+ messages in thread
From: Charles Forsyth @ 2003-10-03  9:27 UTC (permalink / raw)
  To: 9fans

>>there is VESA32 standard with 32bit entries and linear framebuffer, but
>>I don't know how many cards support that thing...

roger used 16-bit mode in the bootstrap to set up
a linear framebuffer because nothing much actually supported
the 32-bit mode, even if you could trust the BIOS not to do
something silly.  it might have changed.  i was going to tar
up his code and put it on a web site, once i'd located the pieces
again, in case anyone was sufficiently keen.



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

* Re: [9fans] ati radeon support
  2003-10-03  9:07 Tiit Lankots
@ 2003-10-03  9:17 ` Atanas Bachvaroff
  2003-10-03  9:27   ` Charles Forsyth
  0 siblings, 1 reply; 21+ messages in thread
From: Atanas Bachvaroff @ 2003-10-03  9:17 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: TEXT/plain, Size: 541 bytes --]

On  3 Oct, Tiit Lankots wrote:
> No wonder nobody has written a VESA driver -- VESA is loathsome.
> You only have a 64K (or maybe even less) sliding window into the
> framebuffer; to do any real work you need to regularly engage in
> "bank switching", which is *slow*.
>
> Not to mention all the real-mode 16-bit interupt goo. Yuck.
>

there is VESA32 standard with 32bit entries and linear framebuffer, but
I don't know how many cards support that thing...
--
BEATVSHOMOQVIINVENITSAPIENTIAMETQVIAFFLVITPRVDENTIALIVRILVCIFERIVS

[-- Attachment #2: Type: APPLICATION/pgp-signature, Size: 256 bytes --]

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

* RE: [9fans] ati radeon support
@ 2003-10-03  9:07 Tiit Lankots
  2003-10-03  9:17 ` Atanas Bachvaroff
  0 siblings, 1 reply; 21+ messages in thread
From: Tiit Lankots @ 2003-10-03  9:07 UTC (permalink / raw)
  To: 9fans

> A single VESA driver would have
>prevented having to keep hacking drivers for each new card.

No wonder nobody has written a VESA driver -- VESA is loathsome. 
You only have a 64K (or maybe even less) sliding window into the 
framebuffer; to do any real work you need to regularly engage in
"bank switching", which is *slow*.

Not to mention all the real-mode 16-bit interupt goo. Yuck.


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

end of thread, other threads:[~2003-10-03 23:41 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-01 21:23 [9fans] ati radeon support Hugo Santos
2003-10-01 22:01 ` mirtchov
2003-10-02  0:55   ` okamoto
2003-10-02  8:11   ` Christian Grothaus
2003-10-02  8:31     ` Christian Grothaus
2003-10-02 18:56     ` Hugo Santos
2003-10-02 19:07       ` mirtchov
2003-10-03  8:43         ` Douglas A. Gwyn
2003-10-03 12:53           ` paurea
2003-10-03 13:12             ` rog
2003-10-03 13:16               ` Charles Forsyth
2003-10-03 14:34               ` jmk
2003-10-03 14:46                 ` rog
2003-10-03 17:59                 ` C H Forsyth
2003-10-03 18:28                   ` jmk
2003-10-03 19:22                     ` Charles Forsyth
2003-10-03 23:41                       ` Charles Forsyth
2003-10-03  9:07 Tiit Lankots
2003-10-03  9:17 ` Atanas Bachvaroff
2003-10-03  9:27   ` Charles Forsyth
2003-10-03 11:42     ` C H Forsyth

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