Re: agp mode and egl

2005-06-08 Thread Alan Hourihane
On Tue, Jun 07, 2005 at 08:56:09 -0400, Jon Smirl wrote:
> On 6/7/05, Dave Airlie <[EMAIL PROTECTED]> wrote:
> > An issue with doing all this on bootup is I can see very long kernel
> > command lines appearing, which is something I don't really want to have to
> > tell ppl, editing /etc/display.conf is a lot easier than say add
> > "radeon:agp_mode=4" to everyones command line..
> 
> you would just let it boot with default. Then in a script:
> echo mode >/sys/class/drm/card0/agpmode
> 
> if you need to override the default.

Bear in mind what we'd be doing for other OS's besides Linux.

Alan.


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: agp mode and egl

2005-06-07 Thread Jon Smirl
On 6/7/05, Dave Airlie <[EMAIL PROTECTED]> wrote:
> >
> > you would just let it boot with default. Then in a script:
> > echo mode >/sys/class/drm/card0/agpmode

This would just change the default value stored in the driver. When X
initializes with AGP_DEFAULT it would pick up this new default.

> 
> Can we change the AGP mode dynamically at the moment, i.e. if I set it to
> 1 for default (because anything higher might not work) can I change it
> later if I've already initialised the AGP layer..
> 
> at the moment we don't init that AGP layer until X tells us to..
> 
> Dave.
> 
> --
> David Airlie, Software Engineer
> http://www.skynet.ie/~airlied / airlied at skynet.ie
> Linux kernel - DRI, VAX / pam_smb / ILUG
> 
> 


-- 
Jon Smirl
[EMAIL PROTECTED]


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: agp mode and egl

2005-06-07 Thread Dave Airlie
>
> you would just let it boot with default. Then in a script:
> echo mode >/sys/class/drm/card0/agpmode

Can we change the AGP mode dynamically at the moment, i.e. if I set it to
1 for default (because anything higher might not work) can I change it
later if I've already initialised the AGP layer..

at the moment we don't init that AGP layer until X tells us to..

Dave.

-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
Linux kernel - DRI, VAX / pam_smb / ILUG



---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: agp mode and egl

2005-06-07 Thread Jon Smirl
On 6/7/05, Dave Airlie <[EMAIL PROTECTED]> wrote:
> An issue with doing all this on bootup is I can see very long kernel
> command lines appearing, which is something I don't really want to have to
> tell ppl, editing /etc/display.conf is a lot easier than say add
> "radeon:agp_mode=4" to everyones command line..

you would just let it boot with default. Then in a script:
echo mode >/sys/class/drm/card0/agpmode

if you need to override the default.

-- 
Jon Smirl
[EMAIL PROTECTED]


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: agp mode and egl

2005-06-07 Thread Dave Airlie

> I'm trying to make the Xegl server not need root to run and I am
> trying to make it work without config files. So when something like
> AGP mode comes up I try to decide what module best has the information
> needed to set the parameter correctly.
>
> In this case it's clearly the DRM module - the ATI kernel driver even
> contains tweaks for specific card/motherboard pairs at 8X. The DRM
> module may also have multiple users, it not right for the start of
> Xegl to stomp the AGP mode of another user. This implies that the
> correct place for AGP mode setting is an attribute on the DRM driver.
>
> Of course we'll leave drmAgpEnable() in place. I'm just going to
> remove the UI code from the Xegl server for getting and setting an
> override. This also means I have to add the sysfs attribute to the DRM
> drivers.

Yeah a sysfs sounds okay to me, but make sure that we don't go setting AGP
at driver load, otherwise you havea chicken and egg issue where users
can't change it because it is already started, and machine crashes on
bootup ..

An issue with doing all this on bootup is I can see very long kernel
command lines appearing, which is something I don't really want to have to
tell ppl, editing /etc/display.conf is a lot easier than say add
"radeon:agp_mode=4" to everyones command line..

Dave.

-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
Linux kernel - DRI, VAX / pam_smb / ILUG



---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: agp mode and egl

2005-06-07 Thread Jon Smirl
On 6/7/05, Alex Deucher <[EMAIL PROTECTED]> wrote:
> probably, but all the other drivers handle it in userspace, so
> consistency was the idea I guess.  That doesn't mean we can't change
> things...

I'm trying to make the Xegl server not need root to run and I am
trying to make it work without config files. So when something like
AGP mode comes up I try to decide what module best has the information
needed to set the parameter correctly.

In this case it's clearly the DRM module - the ATI kernel driver even
contains tweaks for specific card/motherboard pairs at 8X. The DRM
module may also have multiple users, it not right for the start of
Xegl to stomp the AGP mode of another user. This implies that the
correct place for AGP mode setting is an attribute on the DRM driver.

Of course we'll leave drmAgpEnable() in place. I'm just going to
remove the UI code from the Xegl server for getting and setting an
override. This also means I have to add the sysfs attribute to the DRM
drivers.

-- 
Jon Smirl
[EMAIL PROTECTED]


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: agp mode and egl

2005-06-07 Thread Alex Deucher
probably, but all the other drivers handle it in userspace, so
consistency was the idea I guess.  That doesn't mean we can't change
things...

Alex

On 6/7/05, Jon Smirl <[EMAIL PROTECTED]> wrote:
> AGP mode is getting set form user space. Shouldn't this be a sysfs
> attribute for the DRM driver? The driver could then default to highest
> mode it thinks will work and a script can be used to override it if
> needed.
> 
> --
> Jon Smirl
> [EMAIL PROTECTED]
>


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


agp mode and egl

2005-06-07 Thread Jon Smirl
AGP mode is getting set form user space. Shouldn't this be a sysfs
attribute for the DRM driver? The driver could then default to highest
mode it thinks will work and a script can be used to override it if
needed.

-- 
Jon Smirl
[EMAIL PROTECTED]


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel