* [PATCH] Allow IO port space without EFI RT attribute
@ 2004-04-12 17:07 Bjorn Helgaas
0 siblings, 0 replies; only message in thread
From: Bjorn Helgaas @ 2004-04-12 17:07 UTC (permalink / raw)
To: linux-ia64
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;
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-04-12 17:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-12 17:07 [PATCH] Allow IO port space without EFI RT attribute Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox