mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Yinghai Lu" <yhlu.kernel@gmail.com>
To: "Kevin Winchester" <kjwinchester@gmail.com>
Cc: "Ingo Molnar" <mingo@elte.hu>, "Ingo Molnar" <mingo@redhat.com>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
	"Rafael J. Wysocki" <rjw@sisk.pl>, "Pavel Machek" <pavel@ucw.cz>
Subject: Re: Bisecting tip/auto-x86-next?
Date: Sat, 21 Jun 2008 03:50:47 -0700	[thread overview]
Message-ID: <86802c440806210350y2f05999fme0eba7ca6aca201a@mail.gmail.com> (raw)
In-Reply-To: <485CDA6A.103@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4275 bytes --]

On Sat, Jun 21, 2008 at 3:39 AM, Kevin Winchester
<kjwinchester@gmail.com> wrote:
> Yinghai Lu wrote:
>>
>> On Sat, Jun 21, 2008 at 3:23 AM, Kevin Winchester
>> <kjwinchester@gmail.com> wrote:
>>>
>>> On Sat, Jun 21, 2008 at 7:18 AM, Yinghai Lu <yhlu.kernel@gmail.com>
>>> wrote:
>>>>
>>>> On Sat, Jun 21, 2008 at 3:00 AM, Kevin Winchester
>>>> <kjwinchester@gmail.com> wrote:
>>>>>
>>>>> Yinghai Lu wrote:
>>>>>>
>>>>>> On Fri, Jun 20, 2008 at 5:00 PM, Kevin Winchester
>>>>>> <kjwinchester@gmail.com> wrote:
>>>>>>>
>>>>>>> Ingo Molnar wrote:
>>>>>>>>
>>>>>>>> * Kevin Winchester <kjwinchester@gmail.com> wrote:
>>>>>>>>
>>>>>>>>>> hm, could you send me the config that triggered this?
>>>>>>>>>
>>>>>>>>> I will do so tonight when I am home again.  It is a UP AMD64 box
>>>>>>>>> with a
>>>>>>>>> VIA chipset, if that helps.
>>>>>>>>>
>>>>>>>>>> btw., you can probably ignore this one safely. Also please tell me
>>>>>>>>>> at
>>>>>>>>>> which commit ID you were at when you triggered this warning.
>>>>>>>>>
>>>>>>>>> Good to know - I will get the commit ID tonight as well, although
>>>>>>>>> wouldn't following the same bisection sequence that I did give you
>>>>>>>>> the
>>>>>>>>> same
>>>>>>>>> bisection point?  I guess that would assume that linus/master and
>>>>>>>>> auto-x86-next haven't changed much since last night, which might
>>>>>>>>> not be
>>>>>>>>> correct.
>>>>>>>>
>>>>>>>> yeah, you'd probably not hit that warning with the x86/gart
>>>>>>>> bisection
>>>>>>>> sequence. (Assuming the bug is introduced in that branch - so you
>>>>>>>> should
>>>>>>>> first check whether pure x86/gart kernel triggers the problem too.)
>>>>>>>>
>>>>>>>> If you still have the commit ID around then please send it - if you
>>>>>>>> dont,
>>>>>>>> no problem, it's no big issue. I wanted to check how wide the
>>>>>>>> bisection
>>>>>>>> window is where the warning triggers.
>>>>>>>>
>>>>>>> I'm sorry - I accidentally checkout out x86/gart to test it before
>>>>>>> grabbing
>>>>>>> the commit ID.
>>>>>>>
>>>>>>> I went ahead with the bisection and found:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 8c9fd91a0dc503f085169d44f4360be025f75224 is first bad commit
>>>>>>> commit 8c9fd91a0dc503f085169d44f4360be025f75224
>>>>>>> Author: Yinghai Lu <yhlu.kernel@gmail.com>
>>>>>>> Date:   Sun Apr 13 18:42:31 2008 -0700
>>>>>>>
>>>>>>>  x86: checking aperture size order
>>>>>>>
>>>>>>>  some systems are using 32M for gart and agp when memory is less than
>>>>>>> 4G.
>>>>>>>  Kernel will reject and try to allcate another 64M that is not
>>>>>>> needed,
>>>>>>>  and we will waste 64M of perfectly good RAM.
>>>>>>>
>>>>>>>  this patch adds a workaround by checking aper_base/order between NB
>>>>>>> and
>>>>>>>  agp bridge. If they are the same, and memory size is less than 4G,
>>>>>>> it
>>>>>>>  will allow it.
>>>>>>>
>>>>>>>  Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
>>>>>>>  Signed-off-by: Ingo Molnar <mingo@elte.hu>
>>>>>>>  Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
>>>>>>>
>>>>>>> :040000 040000 848d6e4045a14d01fc0a794d4350d8a84f3ceff6
>>>>>>> 4a10a52b41309060cd5dc1bf0c322f6d43b2477b M      arch
>>>>>>> :040000 040000 aa1cee87b1f5b1b30ed03ce6164ad7f404fef2a3
>>>>>>> f9ce0aaa1f7d4fdc7bdc5a43285495db53a6f531 M      drivers
>>>>>>>
>>>>>>>
>>>>>>> as the first bad commit.  I do not have time to look at the patch
>>>>>>> right
>>>>>>> now,
>>>>>>> but in case anyone else does, I figured I would post it.
>>>>>>>
>>>>>> please send out whole boot logs with "debug" in command line.
>>>>>>
>>>>> "debug" in the command line doesn't seem to have any effect on the
>>>>> printout
>>>>> (is there some config option I need to use with it?), but here it is
>>>>> anyway:
>>>>
>>>> are you using tip/master?
>>>>
>>>> http://people.redhat.com/mingo/sched-devel.git/README
>>>>
>>> That log is from tip/x86/gart, which is where the problem patch was
>>> bisected.  Would you get better debugging info from tip/master (which
>>> includes tip/x86/gart, I believe, and thus would show the problem as
>>> well)?
>>
>> tip/master doesn't work?
>>
>
> I will check tip/master now, but I believe it doesn't work.
>
> I will also correct myself, the log I sent you was from:
>
> 8c9fd91... x86: checking aperture size order
>

please try attached patch...

YH

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gart_any_mapped.patch --]
[-- Type: text/x-patch; name=gart_any_mapped.patch, Size: 793 bytes --]

[PATCH] x86: change back to any_mapped

agp check is using request_mem_region. and could fail if e820 reserved...

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

diff --git a/arch/x86/kernel/aperture_64.c b/arch/x86/kernel/aperture_64.c
index e6deed1..600470d 100644
--- a/arch/x86/kernel/aperture_64.c
+++ b/arch/x86/kernel/aperture_64.c
@@ -324,8 +324,8 @@ void __init early_gart_iommu_check(void)
 		fix = 1;
 
 	if (gart_fix_e820 && !fix && aper_enabled) {
-		if (!e820_all_mapped(aper_base, aper_base + aper_size,
-				    E820_RESERVED)) {
+		if (e820_any_mapped(aper_base, aper_base + aper_size,
+				    E820_RAM)) {
 			/* reserve it, so we can reuse it in second kernel */
 			printk(KERN_INFO "update e820 for GART\n");
 			e820_add_region(aper_base, aper_size, E820_RESERVED);

  reply	other threads:[~2008-06-21 10:51 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-20  0:40 Kevin Winchester
2008-06-20  7:15 ` Sitsofe Wheeler
2008-06-20 10:04 ` Ingo Molnar
2008-06-20 22:23   ` Kevin Winchester
2008-06-20 10:07 ` Ingo Molnar
2008-06-20 10:17 ` Ingo Molnar
2008-06-20 10:49   ` Pavel Machek
2008-06-20 11:40     ` Kevin Winchester
2008-06-20 10:51   ` Rafael J. Wysocki
2008-06-20 11:37   ` Kevin Winchester
2008-06-20 15:36     ` Ingo Molnar
2008-06-21  0:00       ` Kevin Winchester
2008-06-21  0:14         ` Yinghai Lu
2008-06-21 10:00           ` Kevin Winchester
2008-06-21 10:18             ` Yinghai Lu
2008-06-21 10:23               ` Kevin Winchester
2008-06-21 10:30                 ` Yinghai Lu
2008-06-21 10:39                   ` Kevin Winchester
2008-06-21 10:50                     ` Yinghai Lu [this message]
2008-06-21 11:49                       ` Kevin Winchester
2008-06-23 11:12                         ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86802c440806210350y2f05999fme0eba7ca6aca201a@mail.gmail.com \
    --to=yhlu.kernel@gmail.com \
    --cc=hpa@zytor.com \
    --cc=kjwinchester@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@redhat.com \
    --cc=pavel@ucw.cz \
    --cc=rjw@sisk.pl \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®