public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 3/5] Dont map PAL memory if physicall calls are going to be made
@ 2006-10-23  8:48 Horms
  2006-10-24 19:47 ` Jack Steiner
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Horms @ 2006-10-23  8:48 UTC (permalink / raw)
  To: linux-ia64

There seems to be no reason to map the PAL code into memory if
physical calls are going to be made.

Signed-Off-By: Simon Horman <horms@verge.net.au>

 arch/ia64/kernel/efi.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: kexec-ia64-2.6/arch/ia64/kernel/efi.c
=================================--- kexec-ia64-2.6.orig/arch/ia64/kernel/efi.c	2006-10-05 12:51:49.000000000 +0900
+++ kexec-ia64-2.6/arch/ia64/kernel/efi.c	2006-10-05 12:52:10.000000000 +0900
@@ -527,7 +528,6 @@
 	}
 #endif
 
-	efi_map_pal_code();
 	efi_enter_virtual_mode();
 }
 
@@ -601,6 +601,8 @@
 	efi.set_variable = virt_set_variable;
 	efi.get_next_high_mono_count = virt_get_next_high_mono_count;
 	efi.reset_system = virt_reset_system;
+
+	efi_map_pal_code();
 }
 
 /*

--

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


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

* Re: [patch 3/5] Dont map PAL memory if physicall calls are going to be made
  2006-10-23  8:48 [patch 3/5] Dont map PAL memory if physicall calls are going to be made Horms
@ 2006-10-24 19:47 ` Jack Steiner
  2006-10-25  7:12 ` Horms
  2006-12-13  2:00 ` Horms
  2 siblings, 0 replies; 4+ messages in thread
From: Jack Steiner @ 2006-10-24 19:47 UTC (permalink / raw)
  To: linux-ia64

On Mon, Oct 23, 2006 at 05:48:43PM +0900, Horms wrote:
> There seems to be no reason to map the PAL code into memory if
> physical calls are going to be made.


If you don't map PAL, I assume that all PAL calls are going to be made in
physical addressing mode. However, I don't see any code that actually forces
PAL calls to be made in physical addressing mode. Is that your intent? 
Don't you also need to save the PAL start address as a physical address.
See the call to ia64_pal_handler_init().

In addition, it looks like slave cpus still call efi_map_pal_code()
to map PAL - see start_secondary().



> 
> Signed-Off-By: Simon Horman <horms@verge.net.au>
> 
>  arch/ia64/kernel/efi.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> Index: kexec-ia64-2.6/arch/ia64/kernel/efi.c
> =================================> --- kexec-ia64-2.6.orig/arch/ia64/kernel/efi.c	2006-10-05 12:51:49.000000000 +0900
> +++ kexec-ia64-2.6/arch/ia64/kernel/efi.c	2006-10-05 12:52:10.000000000 +0900
> @@ -527,7 +528,6 @@
>  	}
>  #endif
>  
> -	efi_map_pal_code();
>  	efi_enter_virtual_mode();
>  }
>  
> @@ -601,6 +601,8 @@
>  	efi.set_variable = virt_set_variable;
>  	efi.get_next_high_mono_count = virt_get_next_high_mono_count;
>  	efi.reset_system = virt_reset_system;
> +
> +	efi_map_pal_code();
>  }
>  
>  /*
> 
> --
> 
> -- 
> Horms
>   H: http://www.vergenet.net/~horms/
>   W: http://www.valinux.co.jp/en/
> 
> -
> 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

-- 
Thanks

Jack Steiner (steiner@sgi.com)          651-683-5302
Principal Engineer                      SGI - Silicon Graphics, Inc.



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

* Re: [patch 3/5] Dont map PAL memory if physicall calls are going to be made
  2006-10-23  8:48 [patch 3/5] Dont map PAL memory if physicall calls are going to be made Horms
  2006-10-24 19:47 ` Jack Steiner
@ 2006-10-25  7:12 ` Horms
  2006-12-13  2:00 ` Horms
  2 siblings, 0 replies; 4+ messages in thread
From: Horms @ 2006-10-25  7:12 UTC (permalink / raw)
  To: linux-ia64

On Tue, Oct 24, 2006 at 02:47:38PM -0500, Jack Steiner wrote:
> On Mon, Oct 23, 2006 at 05:48:43PM +0900, Horms wrote:
> > There seems to be no reason to map the PAL code into memory if
> > physical calls are going to be made.
> 
> 
> If you don't map PAL, I assume that all PAL calls are going to be made in
> physical addressing mode. However, I don't see any code that actually forces
> PAL calls to be made in physical addressing mode. 

I was thinking that making the SAL calls physical would do this,
but perhaps it is not sufficient.

http://marc.theaimsgroup.com/?l=linux-ia64&m\x116159434527220&w=2
http://marc.theaimsgroup.com/?l=linux-ia64&m\x116159434413928&w=2

> Is that your intent? 
> Don't you also need to save the PAL start address as a physical address.
> See the call to ia64_pal_handler_init().
> 
> In addition, it looks like slave cpus still call efi_map_pal_code()
> to map PAL - see start_secondary().

Thanks, I will look into that code and get back to you.

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


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

* Re: [patch 3/5] Dont map PAL memory if physicall calls are going to be made
  2006-10-23  8:48 [patch 3/5] Dont map PAL memory if physicall calls are going to be made Horms
  2006-10-24 19:47 ` Jack Steiner
  2006-10-25  7:12 ` Horms
@ 2006-12-13  2:00 ` Horms
  2 siblings, 0 replies; 4+ messages in thread
From: Horms @ 2006-12-13  2:00 UTC (permalink / raw)
  To: linux-ia64

On Tue, Oct 24, 2006 at 02:47:38PM -0500, Jack Steiner wrote:
> On Mon, Oct 23, 2006 at 05:48:43PM +0900, Horms wrote:
> > There seems to be no reason to map the PAL code into memory if
> > physical calls are going to be made.
> 
> 
> If you don't map PAL, I assume that all PAL calls are going to be made in
> physical addressing mode. However, I don't see any code that actually forces
> PAL calls to be made in physical addressing mode. Is that your intent? 
> Don't you also need to save the PAL start address as a physical address.
> See the call to ia64_pal_handler_init().

Thanks. On furtuther investigation I think that this patch is bogus.
I will remove it from the series.

> In addition, it looks like slave cpus still call efi_map_pal_code()
> to map PAL - see start_secondary().

Just for the record, that itself is easy enough to get around by
checking for efi.mapped in efi_map_pal_code() or start_secondary().

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


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

end of thread, other threads:[~2006-12-13  2:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-23  8:48 [patch 3/5] Dont map PAL memory if physicall calls are going to be made Horms
2006-10-24 19:47 ` Jack Steiner
2006-10-25  7:12 ` Horms
2006-12-13  2:00 ` Horms

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox