public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] settings AR.k0 to ia64_iobase is wrong?
@ 2001-07-31  6:36 nomura
  2001-07-31  8:17 ` David Mosberger
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: nomura @ 2001-07-31  6:36 UTC (permalink / raw)
  To: linux-ia64

Hello,

2.4.7 has problem in booting due to ar.k0 rewrite.
Here is my proposal to fix it.

It seems that new ar.k0 initialization in 2.4.7 changes ar.k0 value
set by SAL and results in access to illegal address by SAL.
Since ar.k0 is already set up properly by SAL for their use, 
shouldn't we change it in setup_arch()?

To be more precise, on our platform, SAL sets ar.k0 to 0x80000ffffc000000
for uncached access to 0xffffc000000. Linux changes it to 0xffffc000000
not taking SAL address mapping into consideration.

Attached patch changes setup_arch() to keep ar.k0 value to SAL setting.
I confirmed the patch working both with Intel SAL and our platform's SAL.

--
NOMURA, Jun'ichi <j-nomura@ce.jp.nec.com, nomura@hpc.bs1.fc.nec.co.jp>
HPC Operating System Group, 1st Computers Software Division,
Computers Software Operations Unit, NEC Solutions.


Index: arch/ia64/kernel/setup.c
=================================RCS file: /home/cvsadm/cvsroot/linux/arch/ia64/kernel/setup.c,v
retrieving revision 1.1.1.7.6.2
diff -u -r1.1.1.7.6.2 setup.c
--- arch/ia64/kernel/setup.c	2001/07/27 09:30:29	1.1.1.7.6.2
+++ arch/ia64/kernel/setup.c	2001/07/31 05:15:09
@@ -314,10 +314,9 @@
 	 *  AR.KR0 if no appropriate entry is found in the memory map.
 	 */
 	ia64_iobase = efi_get_iobase();
-	if (ia64_iobase)
-		/* set AR.KR0 since this is all we use it for anyway */
-		ia64_set_kr(IA64_KR_IO_BASE, ia64_iobase);
-	else {
+	if (ia64_iobase) {
+		/* do nothing */
+	} else {
 		ia64_iobase = ia64_get_kr(IA64_KR_IO_BASE);
 		printk("No I/O port range found in EFI memory map, falling back to AR.KR0\n");
 		printk("I/O port base = 0x%lx\n", ia64_iobase);


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

end of thread, other threads:[~2001-08-01 20:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-31  6:36 [Linux-ia64] settings AR.k0 to ia64_iobase is wrong? nomura
2001-07-31  8:17 ` David Mosberger
2001-07-31 10:06 ` nomura
2001-07-31 18:06 ` David Mosberger
2001-07-31 18:57 ` Dong Wei
2001-07-31 19:22 ` David Mosberger
2001-08-01 20:02 ` Mallick, Asit K

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