Commit 57f668bf authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by David Mosberger

[PATCH] ia64: Allow IO port space without EFI RT attribute

Some firmware does not require run-time mapping of the legacy IO port
space.  (It may not need to perform any IO port operations, or it may
do them with translation disabled.)

(efi_get_iobase): Don't require that IO port space be marked RT, since
there's no reason the firmware should require mappings for it.
Thanks to Greg Albrecht for noticing this.

Also, allow attributes in addition to EFI_MEMORY_UC.  I can't
think of another current attribute that makes sense, but the
kernel only depends on being able to use UC.
parent a9f7dc3f
......@@ -674,8 +674,7 @@ efi_get_iobase (void)
for (p = efi_map_start; p < efi_map_end; p += efi_desc_size) {
md = p;
if (md->type == EFI_MEMORY_MAPPED_IO_PORT_SPACE) {
/* paranoia attribute checking */
if (md->attribute == (EFI_MEMORY_UC | EFI_MEMORY_RUNTIME))
if (md->attribute & EFI_MEMORY_UC)
return md->phys_addr;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment