All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Ugly patches for stolen reservation
@ 2013-07-26  2:14 Jesse Barnes
  2013-07-26  3:31 ` H. Peter Anvin
  0 siblings, 1 reply; 19+ messages in thread
From: Jesse Barnes @ 2013-07-26  2:14 UTC (permalink / raw)
  To: hpa; +Cc: intel-gfx, linux-kernel, mingo, mingo, torvalds, tglx


[-- Attachment #1.1: Type: text/plain, Size: 1082 bytes --]

To clarify: it'll either be marked reserved or not listed at all in e820, which is why I did this early, before any other e820 stuff like the "RAM buffer" are allocated, and before we could use the iomem resource (or maybe we could even early per Linus? I'll check). 

Jesse


--
Jesse Barnes, Intel Open Source Technology Center


-------- Original message --------
From: "H. Peter Anvin" <hpa@zytor.com> 
Date: 07/25/2013  5:49 PM  (GMT-08:00) 
To: Jesse Barnes <jbarnes@virtuousgeek.org> 
Cc: Ingo Molnar <mingo@kernel.org>,intel-gfx@lists.freedesktop.org,linux-kernel@vger.kernel.org,mingo@elte.hu,tglx@linutronix.de,torvalds@linux-foundation.org 
Subject: Re: Ugly patches for stolen reservation 
 
On 07/25/2013 04:17 PM, Jesse Barnes wrote:
> Well, it's ok if the boot loader writes to this memory, the worst
> that'll happen is you'll see garbage on the screen.  If the boot loader
> tries to do MMIO mapping on top it'll get into trouble... but why would
> it do that?
> 
> Jesse

Much worse: it could be hunting for a place to put the kernel, and put
it there.

-hpa




[-- Attachment #1.2: Type: text/html, Size: 1379 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Ugly patches for stolen reservation
@ 2013-07-25 16:37 Jesse Barnes
  2013-07-25 20:05 ` Ingo Molnar
  0 siblings, 1 reply; 19+ messages in thread
From: Jesse Barnes @ 2013-07-25 16:37 UTC (permalink / raw)
  To: intel-gfx, linux-kernel; +Cc: hpa, mingo, tglx, torvalds

Patch 2/2 has the description, but suffice it to say I'm not really
pleased with this, though it does solve a problem we have.  On some
machines, we get MMIO space allocated on top of this hidden memory,
which can cause problems.  I'm not sure if there are similar problems
for other hunks of the address space; if so it's possible this could be
made more general (though the bits for looking up the address of this
region are definitely Intel graphics specific).

Chris has some patches on top to add a new E820 type so we can look up
the region later, which removes some redundant code in the i915 driver
at least.

Any comments?  I assume no one likes this, but maybe it's just another
early quirk we'll have to live with...

Thanks,
Jesse

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-07-26 20:45 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-26  2:14 Ugly patches for stolen reservation Jesse Barnes
2013-07-26  3:31 ` H. Peter Anvin
2013-07-26 15:33   ` Jesse Barnes
2013-07-26 20:24     ` Ingo Molnar
2013-07-26 20:28       ` H. Peter Anvin
2013-07-26 20:28         ` H. Peter Anvin
2013-07-26 20:45         ` [Intel-gfx] " Daniel Vetter
  -- strict thread matches above, loose matches on Subject: below --
2013-07-25 16:37 Jesse Barnes
2013-07-25 20:05 ` Ingo Molnar
2013-07-25 20:16   ` Jesse Barnes
2013-07-25 20:16     ` Jesse Barnes
2013-07-25 22:42   ` H. Peter Anvin
2013-07-25 23:17     ` Jesse Barnes
2013-07-26  0:49       ` H. Peter Anvin
2013-07-26  0:31     ` Linus Torvalds
2013-07-26  0:31       ` Linus Torvalds
2013-07-26  0:48       ` H. Peter Anvin
2013-07-26 15:51       ` Jesse Barnes
2013-07-26 15:51         ` Jesse Barnes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.