Skip to contentSkip to conversation

r127 w/ KMS on PPC?

DISCUSSION Alex Buell 5 participants 10 messages Apr 21, 2010 – Apr 22, 2010

lore
Share & tools
lore

Alex Buell

author
#0 lore raw

Does the r128 dri driver supports KMS in the kernel on PPC? I've a G3 iMac 600 here working very well with OpenGL but was wondering if it could support KMS, in which case it would be quite nice.

Thanks

Signature · 3 lines
http://www.munted.org.uk

One very high maintenance cat living here.
#1 lore raw
Quoted 5 lines · Alex Buell

Does the r128 dri driver supports KMS in the kernel on PPC? I've a G3 iMac 600 here working very well with OpenGL but was wondering if it could support KMS, in which case it would be quite nice.

Thanks

There's been some talk about an r128 KMS driver, but nothing has been done that I know of.

Matt

author
#2 lore raw
Quoted 9 lines · Matt Turner
Quoted 5 lines · Alex Buell

Does the r128 dri driver supports KMS in the kernel on PPC? I've a G3 iMac 600 here working very well with OpenGL but was wondering if it could support KMS, in which case it would be quite nice.

Thanks

There's been some talk about an r128 KMS driver, but nothing has been done that I know of.

I'd like to step up for that, it'd let me learn a lot. I have already extracted the r128 and its DRI from the 2.6.32 kernel tree and built them as modules and they both work just fine, with the binary firmware. What's involved in making KMS work on PPC? I'm sure I need the KMS helpers and the TTM module as well right?

Thanks

Signature · 3 lines
http://www.munted.org.uk

One very high maintenance cat living here.
#3 lore raw
Quoted 8 lines · Alex Buell
Quoted 7 lines · Matt Turner
Quoted 5 lines · Alex Buell

Does the r128 dri driver supports KMS in the kernel on PPC? I've a G3 iMac 600 here working very well with OpenGL but was wondering if it could support KMS, in which case it would be quite nice.

Thanks

Quoted 8 lines
Quoted 2 lines

There's been some talk about an r128 KMS driver, but nothing has been done that I know of.

I'd like to step up for that, it'd let me learn a lot. I have already extracted the r128 and its DRI from the 2.6.32 kernel tree and built them as modules and they both work just fine, with the binary firmware. What's involved in making KMS work on PPC? I'm sure I need the KMS helpers and the TTM module as well right?

For r128, it could actually re-use a lot of the radeon KMS code, in fact nearly all of it.

Alex Deucher started doing a UMS merge of radeon/r128 at one point
http://cgit.freedesktop.org/~agd5f/xf86-video-ati/log/?h=r128-support

the main things would be adding the differences in the bios parsing, and modesetting paths to KMS first.

Dave.

author
#4 lore raw
Quoted 8 lines · Dave Airlie
Quoted 1 line

I'd like to step up for that, it'd let me learn a lot. I have

already

Quoted 2 lines

extracted the r128 and its DRI from the 2.6.32 kernel tree and built them as modules and they both work just fine, with the binary

firmware.

Quoted 2 lines

What's involved in making KMS work on PPC? I'm sure I need the KMS helpers and the TTM module as well right?

Quoted 8 lines

For r128, it could actually re-use a lot of the radeon KMS code, in fact nearly all of it.

Alex Deucher started doing a UMS merge of radeon/r128 at one point
http://cgit.freedesktop.org/~agd5f/xf86-video-ati/log/?h=r128-support

the main things would be adding the differences in the bios parsing, and modesetting paths to KMS first.

I'll start digging into the Radeon, see what I can learn about KMS integration. For now I'll build the r128 out of the tree, simplifies things a bit. Is that OK?

Any further reading would be tremendously helpful.

Thanks

Signature · 3 lines
http://www.munted.org.uk

One very high maintenance cat living here.
#5 lore raw
Quoted 15 lines · Alex Buell
Quoted 14 lines · Dave Airlie
Quoted 1 line

I'd like to step up for that, it'd let me learn a lot. I have

already

Quoted 2 lines

extracted the r128 and its DRI from the 2.6.32 kernel tree and built them as modules and they both work just fine, with the binary

firmware.

Quoted 2 lines

What's involved in making KMS work on PPC? I'm sure I need the KMS helpers and the TTM module as well right?

For r128, it could actually re-use a lot of the radeon KMS code, in fact nearly all of it.

Alex Deucher started doing a UMS merge of radeon/r128 at one point
http://cgit.freedesktop.org/~agd5f/xf86-video-ati/log/?h=r128-support

Quoted 9 lines
Quoted 2 lines

the main things would be adding the differences in the bios parsing, and modesetting paths to KMS first.

I'll start digging into the Radeon, see what I can learn about KMS integration. For now I'll build the r128 out of the tree, simplifies things a bit. Is that OK?

Any further reading would be tremendously helpful.

It should be pretty easy to get kms going with r128 by integrating it into the radeon drm and ddx. The hard part will be porting the r128 3D driver to kms. Also, kms support for r128-based macs will be a bit trickier than x86 because the boards don't have an x86 video bios. You may have to look at the xf86-video-r128 ddx and atyr128 kernel fb driver for properly setting up the cards without an x86 bios. Let me know if you have any questions.

Alex

Quoted 10 lines

Thanks
--
http://www.munted.org.uk

One very high maintenance cat living here.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author
#6 lore raw
Quoted 10 lines · Alex Deucher
Quoted 2 lines

Any further reading would be tremendously helpful.

It should be pretty easy to get kms going with r128 by integrating it into the radeon drm and ddx. The hard part will be porting the r128 3D driver to kms. Also, kms support for r128-based macs will be a bit trickier than x86 because the boards don't have an x86 video bios. You may have to look at the xf86-video-r128 ddx and atyr128 kernel fb driver for properly setting up the cards without an x86 bios. Let me know if you have any questions.

I'm making good progress, moving stuff around, tacking on the KMS driver and its fops on top of the r128 drivers, fixing up things. I think it'll be a few days before the KMS stuff is integrated and even then it might crash first time it's loaded.

Signature · 3 lines
http://www.munted.org.uk

One very high maintenance cat living here.
author
#7 lore raw
In reply to Alex Deucher
Quoted 26 lines · Alex Deucher
Quoted 15 lines · Alex Buell
Quoted 14 lines · Dave Airlie
Quoted 1 line

I'd like to step up for that, it'd let me learn a lot. I have

already

Quoted 2 lines

extracted the r128 and its DRI from the 2.6.32 kernel tree and built them as modules and they both work just fine, with the binary

firmware.

Quoted 2 lines

What's involved in making KMS work on PPC? I'm sure I need the KMS helpers and the TTM module as well right?

For r128, it could actually re-use a lot of the radeon KMS code, in fact nearly all of it.

Alex Deucher started doing a UMS merge of radeon/r128 at one point
http://cgit.freedesktop.org/~agd5f/xf86-video-ati/log/?h=r128-support

Quoted 9 lines
Quoted 2 lines

the main things would be adding the differences in the bios parsing, and modesetting paths to KMS first.

I'll start digging into the Radeon, see what I can learn about KMS integration. For now I'll build the r128 out of the tree, simplifies things a bit. Is that OK?

Any further reading would be tremendously helpful.

Quoted 7 lines

It should be pretty easy to get kms going with r128 by integrating it into the radeon drm and ddx. The hard part will be porting the r128 3D driver to kms. Also, kms support for r128-based macs will be a bit trickier than x86 because the boards don't have an x86 video bios. You may have to look at the xf86-video-r128 ddx and atyr128 kernel fb driver for properly setting up the cards without an x86 bios. Let me know if you have any questions.

Whilst hacking on the drm and r128 sources out of the tree I noticed a peculiarity of the build process. It turns out that if you build the r128 module separately after working on it, and insmod both drm and r128 modules, it spits out a lot missing drm_* symbols. However, if I build both drm and r128 modules then insmod both modules, it doesn't spit out any missing drm_* symbols. I don't quite understand why this happens, but for now I just start the build in the drm directory instead.

Signature · 3 lines
http://www.munted.org.uk

One very high maintenance cat living here.
author
#8 lore raw
In reply to Alex Deucher
Quoted 26 lines · Alex Deucher
Quoted 15 lines · Alex Buell
Quoted 14 lines · Dave Airlie
Quoted 1 line

I'd like to step up for that, it'd let me learn a lot. I have

already

Quoted 2 lines

extracted the r128 and its DRI from the 2.6.32 kernel tree and built them as modules and they both work just fine, with the binary

firmware.

Quoted 2 lines

What's involved in making KMS work on PPC? I'm sure I need the KMS helpers and the TTM module as well right?

For r128, it could actually re-use a lot of the radeon KMS code, in fact nearly all of it.

Alex Deucher started doing a UMS merge of radeon/r128 at one point
http://cgit.freedesktop.org/~agd5f/xf86-video-ati/log/?h=r128-support

Quoted 9 lines
Quoted 2 lines

the main things would be adding the differences in the bios parsing, and modesetting paths to KMS first.

I'll start digging into the Radeon, see what I can learn about KMS integration. For now I'll build the r128 out of the tree, simplifies things a bit. Is that OK?

Any further reading would be tremendously helpful.

Quoted 7 lines

It should be pretty easy to get kms going with r128 by integrating it into the radeon drm and ddx. The hard part will be porting the r128 3D driver to kms. Also, kms support for r128-based macs will be a bit trickier than x86 because the boards don't have an x86 video bios. You may have to look at the xf86-video-r128 ddx and atyr128 kernel fb driver for properly setting up the cards without an x86 bios. Let me know if you have any questions.

Also, I was wondering why these chipset specific _drm.h files are kept in include/drm/ i.e. r128_drm.h, radeon_drm.h and mga_drm.h instead of being within the drivers/gpu/drm/*/ directories?

Signature · 3 lines
http://www.munted.org.uk

One very high maintenance cat living here.
#9 lore raw
Quoted 35 lines · Alex Buell
Quoted 26 lines · Alex Deucher
Quoted 15 lines · Alex Buell
Quoted 14 lines · Dave Airlie
Quoted 1 line

I'd like to step up for that, it'd let me learn a lot. I have

already

Quoted 2 lines

extracted the r128 and its DRI from the 2.6.32 kernel tree and built them as modules and they both work just fine, with the binary

firmware.

Quoted 2 lines

What's involved in making KMS work on PPC? I'm sure I need the KMS helpers and the TTM module as well right?

For r128, it could actually re-use a lot of the radeon KMS code, in fact nearly all of it.

Alex Deucher started doing a UMS merge of radeon/r128 at one point
http://cgit.freedesktop.org/~agd5f/xf86-video-ati/log/?h=r128-support

Quoted 9 lines
Quoted 2 lines

the main things would be adding the differences in the bios parsing, and modesetting paths to KMS first.

I'll start digging into the Radeon, see what I can learn about KMS integration. For now I'll build the r128 out of the tree, simplifies things a bit. Is that OK?

Any further reading would be tremendously helpful.

Quoted 7 lines

It should be pretty easy to get kms going with r128 by integrating it into the radeon drm and ddx. The hard part will be porting the r128 3D driver to kms. Also, kms support for r128-based macs will be a bit trickier than x86 because the boards don't have an x86 video bios. You may have to look at the xf86-video-r128 ddx and atyr128 kernel fb driver for properly setting up the cards without an x86 bios. Let me know if you have any questions.

Quoted 3 lines

Also, I was wondering why these chipset specific _drm.h files are kept in include/drm/ i.e. r128_drm.h, radeon_drm.h and mga_drm.h instead of being within the drivers/gpu/drm/*/ directories?

Because we install them along other kernel header file (ie they are included in kernel-header package of distribution) Maybe we should move non public header out of include/drm but i don't think it's really needed.

Cheers,
Jerome