Re: [BUG] x86 kenel won't boot under Virtual PC



On Mon, 8 Sep 2008, Linus Torvalds wrote:

On Mon, 8 Sep 2008, H. Peter Anvin wrote:

And yes, it should be the default. The patch I have makes it
"default y" as well as change the help text.

It sounds like it shouldn't be a default at all, it should just _always_
be on, if there really are gcc's that care that much. Most of our
optimizations have historically really been about _optimizing_, not about
"it won't work", even if we have had exceptions (but as mentioned, I think
those exceptions have been way more imporant than NOPL).

Would it make you happier if this option was forced enabled unless
CONFIG_EMBEDDED was on?

Yes, putting it behind EMBEDDED will certainly fix the issue. Anybody who
actually enables EMBEDDED and does all his choices by hand should no
longer expect to not have to know _exactly_ what he is doing.

So if it's behind EMBEDDED, and defaults to "on", then I have no problem
with changing the help text to say "If you do this, we'll statically do
things that really _require_ you to have a CPU that looks _exactly_ like
the CPU you claimed".

I always understood the CPU selection to be "this CPU and ones compatible with it will work, others won't" unless generic was enabled. the fact that only a few CPU's wouldn't work and the rest was optimization is true, but the details of what chips would and wouldn't work were never that clear. The difference between a kernel compiled for generic and once compiled for a specific CPU can be very significant. (I ran into 30% differences back in the 2.4 days between generic and Athlon) This is why all the distros don't enable the generic cpu option on their kernels nowdays. I'd hate to see all the distros enabling embedded just to get this performance boost

David Lang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [BUG] x86 kenel wont boot under Virtual PC
    ... Instead of just including optimizations for the selected ... The kernel will not necessarily run on earlier architectures ... I thought you agreed that CPU virtualization can be a problem? ... exactly how does the kernel fail to boot with latest -git? ...
    (Linux-Kernel)
  • Re: [PATCH] AMD Thermal Interrupt Support
    ... This patch to 2.6.24-rc5 enables AMD Barcelona CPUs to register thermal throttling events as machine checks, ... * Wrapper for the CPU-specific thermal interrupt service routine. ... we'd have to discern the CPU brand at runtime (because support could ...
    (Linux-Kernel)
  • Re: kernel cpu entries
    ... enables things like optimized bcopy. ... If you only want the kernel to run on a Pentium class CPU, you can easily remove I486_CPU, but only remove I586_CPU if you are sure your CPU is being recognized as a Pentium II or better. ... I think it makes the most sense for I686_CPU to enable the optimized bcopy if it really is a win for i686 CPUs. ... SSE instead, and that any change that doesn't involve SSE is wrong and ...
    (freebsd-stable)
  • Re: kernel cpu entries
    ... enables things like optimized bcopy. ... There are a number of *_CPU options that can be commented out. ... SSE instead, and that any change that doesn't involve SSE is wrong and ...
    (freebsd-stable)
  • Re: -Os versus -O2
    ... On what CPU? ... different tricks to avoid poor optimizations, and at the end, the CPU ... Well you better report those! ... a kernel which is about 300 kB, or 700 kB with the initramfs. ...
    (Linux-Kernel)