Re: [PATCH] x86-64: disable the GART early v2

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Yinghai Lu <Yinghai.Lu@...>
Cc: Andi Kleen <ak@...>, Andrew Morton <akpm@...>, Christoph Lameter <clameter@...>, <ebiederm@...>, Thomas Gleixner <tglx@...>, LKML <linux-kernel@...>
Date: Friday, January 11, 2008 - 4:14 am

* Yinghai Lu <Yinghai.Lu@Sun.COM> wrote:


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)

it would also be more robust to only read and do a memory map quirk 
based on that, than actively trying to change the GART so early in the 
bootup. Later on we have to re-enable the GART _anyway_ and have to 
punch a hole for it.

and as a bonus, we would have shored up our defenses against crappy 
BIOSes as well.

	Ingo
--
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)
Re: [PATCH] x86-64: disable the GART early v2, Yinghai Lu, (Fri Jan 11, 4:34 am)