Re: [RFC] - Mapping ACPI tables as CACHED

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jack Steiner
Date: Tuesday, August 17, 2010 - 8:59 am

On Thu, Jul 22, 2010 at 10:22:20AM -0500, Jack Steiner wrote:

I did some more digging & found something I should have seen earlier.
On EFI-enabled systems (like UV), the ACPI tables are already mapped as
WB memory. This is done in the EFI function efi_enter_virtual_mode().

The E820_ACPI & E820_NVS regions will be mapped as WB memory if the BIOS
sets the WB attribute in the EFI memmap entry for the chunk of memory.

The ACPI code in acpi_os_map_memory() is not currently aware of the EFI mapping
& currently maps the memory as UC. This seems like a bug.

In order to prevent attribute aliasing, I think the ACPI mapping needs to
be consistent with the EFI mapping.  Otherwise, we will have the OS
referencing the memory as UC at the same time BIOS is referencing it as WB.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] - Mapping ACPI tables as CACHED, Jack Steiner, (Thu Jul 22, 8:22 am)
Re: [RFC] - Mapping ACPI tables as CACHED, Len Brown, (Thu Jul 22, 8:52 am)
Re: [RFC] - Mapping ACPI tables as CACHED, ykzhao, (Thu Jul 22, 6:46 pm)
Re: [RFC] - Mapping ACPI tables as CACHED, Ingo Molnar, (Fri Jul 23, 12:23 am)
Re: [RFC] - Mapping ACPI tables as CACHED, ykzhao, (Fri Jul 23, 7:26 am)
Re: [RFC] - Mapping ACPI tables as CACHED, Jack Steiner, (Fri Jul 23, 9:38 am)
Re: [RFC] - Mapping ACPI tables as CACHED, Henrique de Moraes H ..., (Fri Jul 23, 5:14 pm)
Re: [RFC] - Mapping ACPI tables as CACHED, Matthew Garrett, (Fri Jul 23, 5:45 pm)
Re: [RFC] - Mapping ACPI tables as CACHED, Henrique de Moraes H ..., (Sat Jul 24, 5:26 am)
Re: [RFC] - Mapping ACPI tables as CACHED, Jack Steiner, (Tue Aug 17, 7:39 am)
Re: [RFC] - Mapping ACPI tables as CACHED, Jack Steiner, (Tue Aug 17, 7:42 am)
Re: [RFC] - Mapping ACPI tables as CACHED, Jack Steiner, (Tue Aug 17, 7:45 am)
Re: [RFC] - Mapping ACPI tables as CACHED, Jack Steiner, (Tue Aug 17, 7:49 am)
Re: [RFC] - Mapping ACPI tables as CACHED, H. Peter Anvin, (Tue Aug 17, 8:51 am)
Re: [RFC] - Mapping ACPI tables as CACHED, Jack Steiner, (Tue Aug 17, 8:59 am)
Re: [RFC] - Mapping ACPI tables as CACHED, Linus Torvalds, (Tue Aug 17, 9:02 am)
Re: [RFC] - Mapping ACPI tables as CACHED, H. Peter Anvin, (Tue Aug 24, 2:39 pm)
Re: [RFC - V2] - Mapping ACPI tables as CACHED, Jack Steiner, (Thu Aug 26, 10:17 am)
Re: [RFC] - Mapping ACPI tables as CACHED, Len Brown, (Thu Aug 26, 10:47 am)
Re: [RFC - V2] - Mapping ACPI tables as CACHED, H. Peter Anvin, (Thu Aug 26, 11:08 am)
Re: [RFC - V2] - Mapping ACPI tables as CACHED, Jack Steiner, (Wed Dec 8, 2:22 pm)
Re: [RFC - V2] - Mapping ACPI tables as CACHED, H. Peter Anvin, (Wed Dec 8, 6:27 pm)
Re: [RFC - V2] - Mapping ACPI tables as CACHED, Jack Steiner, (Wed Dec 8, 8:50 pm)
Re: [RFC - V2] - Mapping ACPI tables as CACHED, Len Brown, (Wed Dec 8, 11:12 pm)