Subject: Re: Libretto PCIBIOS Problems
To: None <cjs@cynic.net>
From: Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>
List: port-i386
Date: 11/14/2001 22:10:05
Hi,

       From: Curt Sampson <cjs@cynic.net>
    Subject: Libretto PCIBIOS Problems
      Date : Fri, 09 Nov 2001 18:40:22 +0900 (JST)
 Message-ID: <Pine.LNX.4.33.0111091813120.1300-100000@denkigama.nat.shibuya.blink.co.jp>

$ If someone were willing to help me out with this, I'd really appreciate
$ it. Unfortunately, I think the interrupt routing is going to be somewhat
$ screwed on my Libretto here until I can use the PCIBIOS to configure it.

My note PC has PIR table, but your machine does not have PIR table.

So I try to call get_intr_routing() from pcibios_pir_init() with next patch.
kernel failed boot with My note PC(Toshiba Satellite 2550X).
Message is below(copy by hand):

 uvm_fault(0xc03b2c20, 0x6000, 0, 3) -> e
 kernel: page fault trap, code = 0
 Stopped in pid 0(swapper) at 0xc0489e79: movw	%dx, 0x14(%bp)

I think that get_intr_routing() is not tested well,
because most Note PC has PIR table.

I don't know what non-Toshiba note PC happened with next patch.
Any suggestion??

# Sorry,My english is poor! but I'm interesting this problem.

Regards!
---
 Masanori Kanaoka	kanaoka@ann.hi-ho.ne.jp


Index: sys/arch/i386/pci/pcibios.c
===================================================================
RCS file: /ftp/cvs/syssrc/sys/arch/i386/pci/pcibios.c,v
retrieving revision 1.6
diff -u -r1.6 pcibios.c
--- sys/arch/i386/pci/pcibios.c 2001/07/06 18:04:58     1.6
+++ sys/arch/i386/pci/pcibios.c 2001/11/13 12:11:24
@@ -221,6 +221,7 @@
 void
 pcibios_pir_init()
 {
+#if 0
        char devinfo[256];
        paddr_t pa;
        caddr_t p;
@@ -291,7 +292,7 @@
 #endif
                return;
        }
-
+#endif
        /*
         * If there was no PIR table found, try using the PCI BIOS
         * Get Interrupt Routing call.