login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
11
Re: [PATCH] x86-64: disable the GART early v2
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Yinghai Lu <yhlu.kernel@...>
To: Ingo Molnar <mingo@...>
Cc: Andi Kleen <ak@...>, Andrew Morton <akpm@...>, Christoph Lameter <clameter@...>, <ebiederm@...>, Thomas Gleixner <tglx@...>, LKML <linux-kernel@...>
Subject:
Re: [PATCH] x86-64: disable the GART early v2
Date: Friday, January 11, 2008 - 4:34 am
On Jan 11, 2008 12:14 AM, Ingo Molnar <mingo@elte.hu> wrote:
quoted text
> > * Yinghai Lu <Yinghai.Lu@Sun.COM> wrote: > > > --- a/arch/x86/kernel/aperture_64.c > > +++ b/arch/x86/kernel/aperture_64.c > > @@ -218,6 +218,73 @@ static __u32 __init search_agp_bridge(u32 *order, int *valid_agp) > > return 0; > > } > > > > +void __init early_gart_iommu_disable(void) > > +{ > > + /* > > + * disable it in case it is enabled before, esp for kexec/kdump, > > + * previous kernel already enable that. otherwise memset called > > + * by allocate_aperture/__alloc_bootmem_nopanic cause restart. > > + * or second kernel have different position for GART hole. and new > > + * kernel could use hole as RAM that is still used by GART set by > > + * first kernel > > + */ > > hm, i'm wondering, instead of modifying the GART, why dont we simply > _detect_ whatever GART settings we have inherited, and propagate that > into our e820 maps? I.e. if there's inconsistency, then punch that out > from the memory maps and just dont use that memory. > > that way it would not matter whether the GART settings came from a [old > or crashing] Linux kernel that has not called gart_iommu_shutdown(), or > whether it's a BIOS that has set up an aperture hole inconsistent with > the memory map it passed. (or the memory map we _think_ i tried to pass > us) >
good, i will update the patch to check that hole with e820 map. that also make code short so don't need to check if agp is there or not. YH --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] x86-64: disable the GART early
, Yinghai Lu
, (Thu Jan 10, 11:14 pm)
[PATCH] x86-64: disable the GART early v2
, Yinghai Lu
, (Fri Jan 11, 3:54 am)
Re: [PATCH] x86-64: disable the GART early v2
, Ingo Molnar
, (Fri Jan 11, 4:14 am)
Re: [PATCH] x86-64: disable the GART early v2
, Yinghai Lu
, (Sat Jan 12, 6:07 am)
Re: [PATCH] x86-64: disable the GART early v2
, Ingo Molnar
, (Mon Jan 14, 4:35 am)
[PATCH] x86_64: checking aperture report for node instead of...
, Yinghai Lu
, (Mon Jan 14, 9:39 pm)
Re: [PATCH] x86_64: checking aperture report for node instea...
, Ingo Molnar
, (Tue Jan 15, 9:22 am)
[PATCH] x86_64: checking aperture report for node instead
, Yinghai Lu
, (Tue Jan 15, 2:31 pm)
Re: [PATCH] x86_64: checking aperture report for node instea...
, Ingo Molnar
, (Fri Jan 18, 9:02 am)
[PATCH] x86-64: fix e820 for GART or disable the GART early
, Yinghai Lu
, (Fri Jan 11, 5:38 pm)
Re: [PATCH] x86-64: disable the GART early v2
, Yinghai Lu
, (Fri Jan 11, 4:34 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Artem Bityutskiy
[PATCH 10/44 take 2] [UBI] debug unit implementation
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Trent Piepho
[PATCH] [POWERPC] Improve (in|out)_beXX() asm code
Dave Young
Re: Linux v2.6.24-rc1
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Linus Torvalds
Re: [GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
645 guests
online.
Online users
strcmp
Syndicate