[PATCH] Allow IO port space without EFI RT attribute

From: Bjorn Helgaas <bjorn.helgaas_at_hp.com>
Date: 2004-04-13 03:07:22
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.

===== arch/ia64/kernel/efi.c 1.18 vs edited =====
--- 1.18/arch/ia64/kernel/efi.c	Wed Jan 14 17:12:30 2004
+++ edited/arch/ia64/kernel/efi.c	Mon Apr 12 10:21:11 2004
@@ -673,8 +673,7 @@
 	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;
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Apr 12 13:11:30 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:25 EST