linux-efi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* unusual uefi call/mapping problem
@ 2013-04-16 21:31 Joel Schopp
       [not found] ` <516DC325.6090604-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Joel Schopp @ 2013-04-16 21:31 UTC (permalink / raw)
  To: linux-efi-u79uwXL29TY76Z2rM5mHXA; +Cc: Leonidas da Silva Barbosa

I'm working on the Linux kernel implementation of an draft standard that 
has a uefi component.  The interesting part is that the uefi component 
isn't in the uefi runtime table, but instead has a physical address 
stored an ACPI table.  Other than not being in the runtime table it 
behaves exactly like the other runtime services.

After extracting the physical address of the UEFI service we can't 
successfully map it or call it.  I'm sure this is straightforward to 
somebody with experience in this area.  Here's a few of the things I've 
tried unsuccessfully, any pointers here would be appreciated.

1) Call the physical address
efi_call_phys_prelog();
efi_call_phys5(...);
efi_call_phys_epilog();

This generates some nasty scheduling while atomic errors

2) Various methods to map in the physical address into virtual address 
space and then call the virtual address.  All of these have failed.

3) I've started looking at adding an entry to the efi struct and a line 
to efi_enter_virtual_mode(...) with the new function name but haven't 
found the right spot to add an extra entry on to the mmap structure. 
Does this seem like a sane approach?

-Joel Schopp

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-30 16:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-16 21:31 unusual uefi call/mapping problem Joel Schopp
     [not found] ` <516DC325.6090604-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2013-04-17  2:40   ` Greg KH
     [not found]     ` <20130417024056.GA13609-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2013-04-17  5:04       ` Joel Schopp
2013-04-30 12:52   ` Matthew Garrett
     [not found]     ` <20130430125225.GA4197-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2013-04-30 15:51       ` Joel Schopp
     [not found]         ` <517FE891.9070103-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2013-04-30 16:23           ` Matthew Garrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).