lkml.org 
[lkml]   [2015]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V3 4/4] acpi, apei: use EFI memmap to map GHES memory
On Mon, Jun 15, 2015 at 03:15:33PM +0100, Matt Fleming wrote:
> On Sat, 13 Jun, at 10:27:51AM, Borislav Petkov wrote:
> > On Fri, Jun 12, 2015 at 04:44:25PM -0700, Zhang, Jonathan Zhixiong wrote:
> > > Since such function is only needed for APEI functionality, at least as
> > > of today, I will name it arch_apei_get_mem_attribute().
> >
> > Why?
> >
> > It can be extended to be used generically too, no? Come to think of it,
> > the different arches should already have a way to tell you with what mem
> > attributes a physical address is mapped, no?
> >
> > IOW, such functionality should be already present, you'd only have to
> > find it and use it.
>
> I did think about this, but I don't think we have a generic way to ask
> the firmware for its memory map.

Not the firmware but the OS. Like on x86, for example, we have MTRRs
and PAT and they cover the whole range. Basically what lookup_memtype()
does. We already have that info, why not query it instead of growing
more stuff ontop.

I mean, we do ioremap* which does reserve_memtype() and sticks the range
in the rbtree which we query after. Can't be better than that...

Hmmm.

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--


\
 
 \ /
  Last update: 2015-06-15 17:21    [W:3.061 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site