Re: How should anaconda check for PAE? (was Re: arch fun.)

2009-02-25 Thread Gerd Hoffmann
Will Woods wrote:
> (PAE_flag and >=4GB RAM) or (PAE_flag and vmx_flag and >=1GB RAM)
> 
> where vmx_flag is the flag for hardware virt stuff. Is this a good test?

No.

> Some further questions:
> - Is a PAE kernel required for proper virt support?

Xen stopped supporting non-PAE (paravirt) guest kernels recently.  Even
before that everything ran in PAE mode because PAE was a compile time
option for Xen (i.e. mixing PAE and non-PAE guests wasn't possible).

So, yes, for Xen the PAE kernel is mandatory.  No, the vmx bit isn't a
good test, paravirtualized xen guests don't need hardware support.  For
kvm it doesn't matter I think.

I'd say we want in any case ...

 (1) Install PAE kernel if there is RAM mapped above 4G.
 (2) Install PAE kernel if the CPU supports NX (regardless
 of the installed memory).

I don't see the point in checking for vmx/svm.  Beside that I think
there is no hardware which has virtualization hardware support but
hasn't nx, so the check would be superfluous anyway.

We can also simply do this:

 - Install PAE kernel if the CPU supports PAE.

i.e. make PAE the default kernel.

cheers,
  Gerd


___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: How should anaconda check for PAE? (was Re: arch fun.)

2009-02-25 Thread Chris Lalancette
Gerd Hoffmann wrote:
> We can also simply do this:
> 
>  - Install PAE kernel if the CPU supports PAE.
> 
> i.e. make PAE the default kernel.

Yes, I really think we should just do this.  It's simple, it means we get the
logic right for Xen as well as bare-metal (without any special cases), and the
performance hit for those who have PAE and < 4GB isn't that bad, I don't think
(although numbers one way or the other would be interesting to see).

-- 
Chris Lalancette

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: How should anaconda check for PAE? (was Re: arch fun.)

2009-02-25 Thread Thorsten Leemhuis

On 25.02.2009 13:27, Chris Lalancette wrote:

Gerd Hoffmann wrote:

We can also simply do this:

 - Install PAE kernel if the CPU supports PAE.

i.e. make PAE the default kernel.


Yes, I really think we should just do this.  It's simple, it means we get the
logic right for Xen as well as bare-metal (without any special cases), and the
performance hit for those who have PAE and < 4GB isn't that bad, I don't think
(although numbers one way or the other would be interesting to see).


What about compatibility problems? My old laptop had a PAE capable CPU 
but could not boot a PAE kernel -- I noticed when I was trying a PAE 
kernel for some tests two or three years ago. I asked a kernel-developer 
back then if it was worth reporting and I got told that such problems 
are not unusual and often BIOS or hardware problems. Those likely didn't 
vanish magically is that statement is correct.


BTW, does anyone know when Windows XP SP2/Vista uses it 
PAE-still-limited-to-4gb-kernel to support NX? Maybe we should use a 
similar scheme to avoid running into hardware issues.


CU
knurd

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: How should anaconda check for PAE? (was Re: arch fun.)

2009-02-25 Thread Chris Lalancette
Thorsten Leemhuis wrote:
> On 25.02.2009 13:27, Chris Lalancette wrote:
>> Gerd Hoffmann wrote:
>>> We can also simply do this:
>>>
>>>  - Install PAE kernel if the CPU supports PAE.
>>>
>>> i.e. make PAE the default kernel.
>> Yes, I really think we should just do this.  It's simple, it means we get the
>> logic right for Xen as well as bare-metal (without any special cases), and 
>> the
>> performance hit for those who have PAE and < 4GB isn't that bad, I don't 
>> think
>> (although numbers one way or the other would be interesting to see).
> 
> What about compatibility problems? My old laptop had a PAE capable CPU 
> but could not boot a PAE kernel -- I noticed when I was trying a PAE 
> kernel for some tests two or three years ago. I asked a kernel-developer 
> back then if it was worth reporting and I got told that such problems 
> are not unusual and often BIOS or hardware problems. Those likely didn't 
> vanish magically is that statement is correct.

Hm, it's an interesting point, and not one that I've heard about or seen before.
 Xen in Fedora required PAE for quite some time, and despite plenty of other
problems (mostly having to do with people wanting to run Xen on non-PAE
platforms), we didn't hear about any of this specific problem.  Doesn't mean it
doesn't exist, though :).

Do you have pointers to specific problems?  A quick google didn't turn up
anything, but I didn't try all that hard.

-- 
Chris Lalancette

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Module request: IB700_WDT (IB700 watchdog timer)

2009-02-25 Thread Richard W.M. Jones

I assume this is the right place to request drivers for the Fedora
kernel?

I'd like to request that the in-tree IB700 watchdog driver be enabled.
The config option is IB700_WDT.

My reading of the code is that it won't break anything unless users
explicitly load the new module:

http://lxr.linux.no/linux+v2.6.28.5/drivers/watchdog/ib700wdt.c

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
Read my OCaml programming blog: http://camltastic.blogspot.com/
Fedora now supports 68 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: Module request: IB700_WDT (IB700 watchdog timer)

2009-02-25 Thread Dave Jones
On Wed, Feb 25, 2009 at 04:13:22PM +, Richard W.M. Jones wrote:
 > 
 > I assume this is the right place to request drivers for the Fedora
 > kernel?
 > 
 > I'd like to request that the in-tree IB700 watchdog driver be enabled.
 > The config option is IB700_WDT.

looks like it already is ?

$ grep IB700 config-*
config-generic:CONFIG_IB700_WDT=m
 
Dave

-- 
http://www.codemonkey.org.uk

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: Module request: IB700_WDT (IB700 watchdog timer)

2009-02-25 Thread Richard W.M. Jones
On Wed, Feb 25, 2009 at 01:19:21PM -0500, Dave Jones wrote:
> On Wed, Feb 25, 2009 at 04:13:22PM +, Richard W.M. Jones wrote:
>  > 
>  > I assume this is the right place to request drivers for the Fedora
>  > kernel?
>  > 
>  > I'd like to request that the in-tree IB700 watchdog driver be enabled.
>  > The config option is IB700_WDT.
> 
> looks like it already is ?
> 
> $ grep IB700 config-*
> config-generic:CONFIG_IB700_WDT=m

I don't understand the way the config files get generated fully, but
in current Rawhide CVS I see:

  $ grep IB700 config*
  config-generic:# CONFIG_IB700_WDT is not set
  config-x86-generic:CONFIG_IB700_WDT=m

The driver doesn't seem to be built even on x86, eg in this build from
today:

  
http://koji.fedoraproject.org/koji/rpminfo?fileStart=1650&rpmID=1042373&fileOrder=name#filelist
  
http://kojipkgs.fedoraproject.org/packages/kernel/2.6.29/0.153.rc6.git2.fc11/data/logs/i586/build.log

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: Module request: IB700_WDT (IB700 watchdog timer)

2009-02-25 Thread Dave Jones
On Wed, Feb 25, 2009 at 07:53:08PM +, Richard W.M. Jones wrote:
 > On Wed, Feb 25, 2009 at 01:19:21PM -0500, Dave Jones wrote:
 > > On Wed, Feb 25, 2009 at 04:13:22PM +, Richard W.M. Jones wrote:
 > >  > 
 > >  > I assume this is the right place to request drivers for the Fedora
 > >  > kernel?
 > >  > 
 > >  > I'd like to request that the in-tree IB700 watchdog driver be enabled.
 > >  > The config option is IB700_WDT.
 > > 
 > > looks like it already is ?
 > > 
 > > $ grep IB700 config-*
 > > config-generic:CONFIG_IB700_WDT=m
 > 
 > I don't understand the way the config files get generated fully, but
 > in current Rawhide CVS I see:
 > 
 >   $ grep IB700 config*
 >   config-generic:# CONFIG_IB700_WDT is not set
 >   config-x86-generic:CONFIG_IB700_WDT=m

I replied to your mail before I noticed another mail that showed Kyle turned it 
on
earlier today.  He added it to config-generic, which is what my grep turned up.
I moved it to x86-generic, as it seems pointless turning it on on other 
architectures
given it's for a SBC.

 > The driver doesn't seem to be built even on x86, eg in this build from
 > today:
 
Yeah, no builds have been done today yet.
It'll be in the next one that goes out.

Dave

-- 
http://www.codemonkey.org.uk

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: Module request: IB700_WDT (IB700 watchdog timer)

2009-02-25 Thread Richard W.M. Jones
On Wed, Feb 25, 2009 at 03:56:05PM -0500, Dave Jones wrote:
> Yeah, no builds have been done today yet.
> It'll be in the next one that goes out.

Thanks!

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
Read my OCaml programming blog: http://camltastic.blogspot.com/
Fedora now supports 68 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: How should anaconda check for PAE? (was Re: arch fun.)

2009-02-25 Thread Chuck Ebbert
On Wed, 25 Feb 2009 14:15:37 +0100
Thorsten Leemhuis  wrote:

> On 25.02.2009 13:27, Chris Lalancette wrote:
> > Gerd Hoffmann wrote:
> >> We can also simply do this:
> >>
> >>  - Install PAE kernel if the CPU supports PAE.
> >>
> >> i.e. make PAE the default kernel.
> > 
> > Yes, I really think we should just do this.  It's simple, it means we get 
> > the
> > logic right for Xen as well as bare-metal (without any special cases), and 
> > the
> > performance hit for those who have PAE and < 4GB isn't that bad, I don't 
> > think
> > (although numbers one way or the other would be interesting to see).
> 
> What about compatibility problems? My old laptop had a PAE capable CPU 
> but could not boot a PAE kernel -- I noticed when I was trying a PAE 
> kernel for some tests two or three years ago. I asked a kernel-developer 
> back then if it was worth reporting and I got told that such problems 
> are not unusual and often BIOS or hardware problems. Those likely didn't 
> vanish magically is that statement is correct.
> 
>

The algorithm I posted should handle that. If you support NX or you have >4GB
of memory then it's pretty much impossible for you to have one of those old 
CPUs.
And all SVM/VMX capable machines support NX so we'd always have the right kernel
for them too.

___
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list