[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-ia64-devel] Re: GFW - unsorted memmap?



On Fri, 2007-10-05 at 15:05 +0200, tgingold@xxxxxxx wrote:
> Quoting Alex Williamson <alex.williamson@xxxxxx>:
> 
> > Hi Tristan,
> >
> >    I noticed that the memory map produced by the open source GFW isn't
> > producing a sorted list.  It's putting the MMIO and I/O port space
> > ranges after everything else.  This appears to be a bug in the EDK2 that
> > it simply appends entries from the mGcdMemorySpaceMap list after those
> > from the gMemoryMap list.  I did a quick and dirty bubble sort at the
> > end of CoreGetMemoryMap() to fix this up.  Any ideas for a better
> > solution?  Thanks,
> 
> I quickly browse EFI spec but I have not found the requirement.  Are you
> sure the memmap must be sorted ?

Hi Tristan,

   I don't know if it's a spec requirement or simply convention, but in
the past (and maybe still) Linux has made the assumption that the table
is sorted.  I know all HP systems provide a sorted memory descriptor
table.  IIRC, it was around the code that determines if all ranges
within a memory granule have the same access attributes.  Thanks,

        Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.