Skip to contentSkip to conversation

XF68_FBDev under MkLinux?

DISCUSSION Elgin Lee 8 participants 13 messages Dec 6, 1998 – Dec 9, 1998 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Elgin Lee

author
#1 lore raw

Geert--

Recent (non-official) MkLinux kernels support /dev/adbmouse (busmouse emulation). GPM works with it, so I suspect that XF68_FBdev would as well. Choice #2 does seem the least amount of work.

One question--would acceleration would still require framebuffer devices?

--Elgin

Quoted 18 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

In <[email protected]>
Geert Uytterhoeven <[email protected]> wrote:

To reduce development efforts, it may be better to start using XF68_FBdev under MkLinux too. That way plain XFree86 will work on both MkLinux/PPC and Linux/PPC.

I see two solutions:

1. Add frame buffer devices to MkLinux. This requires many kernel changes to MkLinux and forces people to upgrade their kernel.

2. Adopt XF68_FBdev so it can use the MkLinux video mode ioctl stuff. This requires no kernel changes. In XF68_FBDev, the video ioctl and mmap stuff has to be changed slightly.

Quoted 6 lines

I think the second solution is the least amount of work.

Another thing is keyboard and mouse (ADB) handling. Xpmac uses the plain /dev/adb device, while XF68_FBDev takes the standard Linux keyboard input and uses the adbmouse driver. I assume keyboard won't be a problem. But the mouse requires the adbmouse driver.

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#2 lore raw
Quoted 3 lines · Elgin Lee

Recent (non-official) MkLinux kernels support /dev/adbmouse (busmouse emulation). GPM works with it, so I suspect that XF68_FBdev would as well. Choice #2 does seem the least amount of work.

Nice.

Quoted 2 lines

One question--would acceleration would still require framebuffer devices?

No. Xpmac does it without frame buffer devices: it just mmap()s /dev/mem. All that has to be changed is the interface to the frame buffer device API: instead of asking the frame buffer device for address and size of frame buffer and MMIO region, and mmap()ing that, something else has to be done.

One other thing to consider is video mode programming. XF68_FBDev uses modelines (except for `mode "default"'), while Xpmac can take a vmode and cmode argument. But I think this can be solved by putting the Modeline <-> vmode/cmode conversion routine in XF68_FBDev (cfr. drivers/video/macmodes.c).

And of course there won't be support for virtual screens, as the vmode/cmode API doesn't provide for this.

Greetings,

Geert

--
Geert Uytterhoeven [email protected]
Wavelets, Linux/{m68k~Amiga,PPC~CHRP} http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#3 lore raw
In reply to Elgin Lee
Quoted 1 line · Elgin Lee

Recent (non-official) MkLinux kernels support /dev/adbmouse (busmouse

I wouldn't call them non-official... they're just non-Apple. They're at least somewhat sanctioned. :-)

<snip>

Quoted 2 lines
Quoted 2 lines

1. Add frame buffer devices to MkLinux. This requires many kernel changes to MkLinux and forces people to upgrade their kernel.

This would be a better long-term solution, though I would find it more palatable to add an FB-style interface to the existing drivers, adding whatever additional functionality is necessary rather than dumping the existing drivers (since switching to the LinuxPPC drivers would probably mean dropping x100 support, or else rewriting those drivers from scratch). Note that this is a couple of notches down in priority for me (as far as my time goes), but anyone else interested in working on it can feel free.

Quoted 1 line
Quoted 1 line

2. Adopt XF68_FBdev so it can use the MkLinux video mode ioctl stuff.

vmode ioctl stuff? Since when does MkLinux support detecting or changing video modes? This is where we're going to run into trouble either way. This particular support code needs to be written. In the process, it would be logical to make it support both a framebuffer interface and the traditional interface for compatibility with older vmlinux servers.

Quoted 2 lines
Quoted 2 lines

This requires no kernel changes. In XF68_FBDev, the video ioctl and mmap stuff has to be changed slightly.

And the mach kernel has to have a small amount of code added to map that physical space into the vmlinux server's address space, I believe, or probably more like additional code in the vmlinux server to request it.... I'm not sure where the line is drawn... I'm still learning the Mach/vmlinux io mapping stuff, the hard way... by coding something and then poking around to see why it doesn't work. :-)

Personally, I don't have any problem with requiring people to upgrade their kernel for enhanced performance, though adding traditional ioctl support for people who don't want to upgrade would be a nice touch. With the amount of kernel development happening right now, and the number of bugs being fixed, people would be well advised to try to stay current if they're using MkLinux anyway. ;-)

Later,
David

David A. Gatwood Visit globegate's internet
[email protected] talker, Deep Space 36
http://globegate.utm.edu telnet globegate.utm.edu:9624

-----BEGIN GEEK CODE BLOCK-----
Version 3.1
GCS/CC/FA/H/L/MC/M/MU/PA/TW d-@ s:>- a-- C++ ++>$ UBLAS*++ ++>$ P+?>$ L++ +>$ !E--- W++ +>$ N++(++ +)>++ +$ !o? K-? !w--- !O M++>$ !V-- PS+>$ !PE- Y+>$ PGP+>$ t++ +>$ 5+>++ ++$ !X- !R tv+>$ b++>$ !DI !D- G++(++ +)>$ e>++ ++ h--! r--- !y- ------END GEEK CODE BLOCK------

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

author
#4 lore raw
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

In <[email protected]>
"David A. Gatwood" <[email protected]> wrote:

1. Add frame buffer devices to MkLinux. This requires many kernel changes to MkLinux and forces people to upgrade their kernel.

Quoted 7 lines

This would be a better long-term solution, though I would find it more palatable to add an FB-style interface to the existing drivers, adding whatever additional functionality is necessary rather than dumping the existing drivers (since switching to the LinuxPPC drivers would probably mean dropping x100 support, or else rewriting those drivers from scratch). Note that this is a couple of notches down in priority for me (as far as my time goes), but anyone else interested in working on it can feel free.

Well, I've considered porting the Linux 2.1 framebuffer devices as part of the current work on porting the gnumach Linux device driver support to the OSF Mach kernel used by MkLinux. However, the gnumach code currently supports only block and network devices, and adding the video support currently isn't on my personal priority list. (Porting MkLinux to Linux 2.1 seems higher priority...)

So, pragmatically, choice #2 still seems more feasible in the short term. In the long term, I agree that choice #1 would be better.

--Elgin

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#5 lore raw
In reply to David A. Gatwood
Quoted 5 lines · David A. Gatwood
Quoted 1 line · Elgin Lee
Quoted 1 line

2. Adopt XF68_FBdev so it can use the MkLinux video mode ioctl stuff.

vmode ioctl stuff? Since when does MkLinux support detecting or changing video modes? This is where we're going to run into trouble either way.

Doesn't the stuff in <asm/vc_ioctl.h> come from MkLinux?

Greetings,

Geert (who never ran MkLinux)

--
Geert Uytterhoeven [email protected]
Wavelets, Linux/{m68k~Amiga,PPC~CHRP} http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

author
#6 lore raw
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

In <Pine.LNX.4.03.9812070957590.31794-100000@mercator.cs.kuleuven.ac.be>
Geert Uytterhoeven <[email protected]> wrote:

Quoted 8 lines
Quoted 5 lines · David A. Gatwood
Quoted 1 line · Elgin Lee
Quoted 1 line

2. Adopt XF68_FBdev so it can use the MkLinux video mode ioctl stuff.

vmode ioctl stuff? Since when does MkLinux support detecting or changing video modes? This is where we're going to run into trouble either way.

Doesn't the stuff in <asm/vc_ioctl.h> come from MkLinux?

Yes, MkLinux uses the VC_* ioctls. I presume that's what you mean...

--Elgin

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#7 lore raw
In reply to Geert Uytterhoeven
Quoted 8 lines · Geert Uytterhoeven
Quoted 5 lines · David A. Gatwood
Quoted 1 line · Elgin Lee
Quoted 1 line

2. Adopt XF68_FBdev so it can use the MkLinux video mode ioctl stuff.

vmode ioctl stuff? Since when does MkLinux support detecting or changing video modes? This is where we're going to run into trouble either way.

Doesn't the stuff in <asm/vc_ioctl.h> come from MkLinux?

Maybe. I'm not saying the linux server part doesn't have the support, just that the mach kernel drivers don't, AFAIK. :-)

Later,
David

David A. Gatwood Visit globegate's internet
[email protected] talker, Deep Space 36
http://globegate.utm.edu telnet globegate.utm.edu:9624

-----BEGIN GEEK CODE BLOCK-----
Version 3.1
GCS/CC/FA/H/L/MC/M/MU/PA/TW d-@ s:>- a-- C++ ++>$ UBLAS*++ ++>$ P+?>$ L++ +>$ !E--- W++ +>$ N++(++ +)>++ +$ !o? K-? !w--- !O M++>$ !V-- PS+>$ !PE- Y+>$ PGP+>$ t++ +>$ 5+>++ ++$ !X- !R tv+>$ b++>$ !DI !D- G++(++ +)>$ e>++ ++ h--! r--- !y- ------END GEEK CODE BLOCK------

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

author
#8 lore raw

Geert--

Perhaps I misunderstand. What ioctls are you proposing to use? MkLinux (Linux and Mach sides combined) supports ioctls like VC_GETMODE, VC_SETMODE, VC_INQMODE, VC_SETCMAP, and VC_GETCMAP. However, I believe that the Mach drivers will currently only allow you to use the one video mode (width, height, depth, etc.) in effect from the MacOS side. That one mode should be revealed by the video ioctls.

Would that restriction cause a problem?

--Elgin

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

In <[email protected]>
"David A. Gatwood" <[email protected]> wrote:

Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · David A. Gatwood
Quoted 1 line · Elgin Lee
Quoted 1 line

2. Adopt XF68_FBdev so it can use the MkLinux video mode ioctl stuff.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

vmode ioctl stuff? Since when does MkLinux support detecting or changing video modes? This is where we're going to run into trouble either way.

Doesn't the stuff in <asm/vc_ioctl.h> come from MkLinux?

Maybe. I'm not saying the linux server part doesn't have the support, just that the mach kernel drivers don't, AFAIK. :-)

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#9 lore raw
Quoted 3 lines · Elgin Lee

Perhaps I misunderstand. What ioctls are you proposing to use? MkLinux (Linux and Mach sides combined) supports ioctls like VC_GETMODE, VC_SETMODE, VC_INQMODE, VC_SETCMAP, and VC_GETCMAP.

These ioctls.

Quoted 5 lines

However, I believe that the Mach drivers will currently only allow you to use the one video mode (width, height, depth, etc.) in effect from the MacOS side. That one mode should be revealed by the video ioctls.

Would that restriction cause a problem?

No problem. That's very similar to `mode "default"' with XF68_FBDev.

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

In <[email protected]>
"David A. Gatwood" <[email protected]> wrote:

Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · David A. Gatwood
Quoted 1 line · Elgin Lee
Quoted 1 line

2. Adopt XF68_FBdev so it can use the MkLinux video mode ioctl stuff.

Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

vmode ioctl stuff? Since when does MkLinux support detecting or changing video modes? This is where we're going to run into trouble either way.

Doesn't the stuff in <asm/vc_ioctl.h> come from MkLinux?

Maybe. I'm not saying the linux server part doesn't have the support, just that the mach kernel drivers don't, AFAIK. :-)

Greetings,

Geert

--
Geert Uytterhoeven [email protected]
Wavelets, Linux/{m68k~Amiga,PPC~CHRP} http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#10 lore raw

status of multiprocessor support?

In reply to Elgin Lee

I am thinking about picking up a duel 604e/200 for Linuxppc and BeOS but I am worried that BeOS will be the only one to see any benefit. Has anybody gotten linuxppc working on two processors yet. If so what was required.

wes

[email protected]~~~~~~~~~~NeXTMail OK!~~~~~~~~~~~~~~~~ Vax a vicious creature known to eat 110AC and quotes through its *DCL*. Vax are usually found in groups of Vaxen called clusters where they lay in wait to ravage thier prey known as users.

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#11 lore raw

Re: status of multiprocessor support?

Quoted 4 lines · Wesley Horner

I am thinking about picking up a duel 604e/200 for Linuxppc and BeOS but I am worried that BeOS will be the only one to see any benefit. Has anybody gotten linuxppc working on two processors yet. If so what was required.

is this a Mac or some other board? I'll be working on SMP for the Motorola MTX in a few weeks.

Mac SMP is partially/mostly supported, AFAIK

--------------------------------------------------------------------------

| Troy Benjegerdes    |    [email protected]    |    [email protected]   |
|    Unix is user friendly... You just have to be friendly to it first.  |
| This message composed with 100% free software.    http://www.gnu.org   |

--------------------------------------------------------------------------

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#12 lore raw
In reply to David A. Gatwood

David A. Gatwood (Mon, Dec 07, 1998 at 11:46:40AM -0600):

Quoted 5 lines · Geert Uytterhoeven
Quoted 1 line

Doesn't the stuff in <asm/vc_ioctl.h> come from MkLinux?

Maybe. I'm not saying the linux server part doesn't have the support, just that the mach kernel drivers don't, AFAIK. :-)

The framework is already in the mach kernel. In fact, there is video initialization code for the pdm (the [6-8]100's)?? The other drivers are only partially implemented.

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#13 lore raw
In reply to David A. Gatwood

From: "David A. Gatwood" <[email protected]>
Subject: Re: XF68_FBDev under MkLinux? ..snip..

Quoted 9 lines
Quoted 2 lines
Quoted 2 lines

This requires no kernel changes. In XF68_FBDev, the video ioctl and mmap stuff has to be changed slightly.

And the mach kernel has to have a small amount of code added to map that physical space into the vmlinux server's address space, I believe, or probably more like additional code in the vmlinux server to request it.... I'm not sure where the line is drawn... I'm still learning the Mach/vmlinux io mapping stuff, the hard way... by coding something and then poking around to see why it doesn't work. :-)

I have an mmap and ioctl stuff patch for MkLinux at:
ftp://ppc.linux.or.jp/pub/users/oikawa/mklinux/AccelX_interface/981017/AccelX_support.patch
that makes ioctl(, VC_GETMODE, (struct vc_mode *)&mode) be able to fill out mode.disp_reg_address field with mmappable graphic chip's MMIO address.

Sorry, but you have to apply this patch manually because this is not to GENERIC ## kernel but to Apple's DR3 and it contains unnecessary code appended.
This patch doesn't do any address alignment even if MMIO address is
not page aligned. Please fix it before use such a graphic chip.

Regards,

Ryuichi Oikawa
[email protected]

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]