|
|
Subscribe / Log in / New account

Re: Linux 2.6.39-rc3

From:  Linus Torvalds <torvalds-AT-linux-foundation.org>
To:  Yinghai Lu <yinghai-AT-kernel.org>
Subject:  Re: Linux 2.6.39-rc3
Date:  Wed, 13 Apr 2011 13:54:55 -0700
Message-ID:  <BANLkTik7W0u92n_s0t32dsoLULu4QTZneA@mail.gmail.com>
Cc:  Joerg Roedel <joro-AT-8bytes.org>, Ingo Molnar <mingo-AT-elte.hu>, Alex Deucher <alexdeucher-AT-gmail.com>, Linux Kernel Mailing List <linux-kernel-AT-vger.kernel.org>, dri-devel-AT-lists.freedesktop.org, "H. Peter Anvin" <hpa-AT-zytor.com>, Thomas Gleixner <tglx-AT-linutronix.de>, Tejun Heo <tj-AT-kernel.org>
Archive‑link:  Article

On Wed, Apr 13, 2011 at 1:48 PM, Yinghai Lu <yinghai@kernel.org> wrote:
>
> can you try following change ? it will push gart to 0x80000000
>
> diff --git a/arch/x86/kernel/aperture_64.c b/arch/x86/kernel/aperture_64.c
> index 86d1ad4..3b6a9d5 100644
> --- a/arch/x86/kernel/aperture_64.c
> +++ b/arch/x86/kernel/aperture_64.c
> @@ -83,7 +83,7 @@ static u32 __init allocate_aperture(void)
>         * so don't use 512M below as gart iommu, leave the space for kernel
>         * code for safe
>         */
> -       addr = memblock_find_in_range(0, 1ULL<<32, aper_size, 512ULL<<20);
> +       addr = memblock_find_in_range(0, 1ULL<<32, aper_size, 512ULL<<21);

What are all the magic numbers, and why would 0x80000000 be special?

Why don't we write code that just works?

Or absent a "just works" set of patches, why don't we revert to code
that has years of testing?

This kind of "I broke things, so now I will jiggle things randomly
until they unbreak" is not acceptable.

Either explain why that fixes a real BUG (and why the magic constants
need to be what they are), or just revert the patch that caused the
problem, and go back to the allocation patters that have years of
experience.

Guys, we've had this discussion before, in PCI allocation. We don't do
this. We tried switching the PCI region allocations to top-down, and
IT WAS A FAILURE. We reverted it to what we had years of testing with.

Don't just make random changes. There really are only two acceptable
models of development: "think and analyze" or "years and years of
testing on thousands of machines". Those two really do work.

                   Linus



to post comments

Re: Linux 2.6.39-rc3

Posted Apr 21, 2011 6:42 UTC (Thu) by Tara_Li (guest, #26706) [Link] (2 responses)

Bash until it fits doesn't work? Obviously, Linus has never seen a Big Enough Hammer (tm).

Re: Linux 2.6.39-rc3

Posted Apr 22, 2011 1:40 UTC (Fri) by dgm (subscriber, #49227) [Link] (1 responses)

On the contrary. I would say that years of testing are a HUGE hammer. So huge in fact that any attempt at starting from scratch looks pitiful in comparison... unless you do the "think and analyze" thing, and do it well.

Re: Linux 2.6.39-rc3

Posted May 10, 2011 21:07 UTC (Tue) by jcm (subscriber, #18262) [Link]

It's fashionable to re-invent wheels though ;)


Copyright © 2011, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds