Attached is the output of various tools run on an Asus M2N4-SLI board.

Looks like mptable didn't work correctly?

--

Andrew.

/*
 * This file is part of the coreboot project.
 *
 * Copyright (C) 200x TODO <t...@todo>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 */

#ifdef GETPIR                   /* TODO: Drop this when copying to coreboot. */
#include "pirq_routing.h"       /* TODO: Drop this when copying to coreboot. */
#else                           /* TODO: Drop this when copying to coreboot. */
#include <arch/pirq_routing.h>
#endif                          /* TODO: Drop this when copying to coreboot. */

const struct irq_routing_table intel_irq_routing_table = {
        PIRQ_SIGNATURE,         /* u32 signature */
        PIRQ_VERSION,           /* u16 version */
        32 + 16 * 13,           /* Max. number of devices on the bus */
        0x00,                   /* Interrupt router bus */
        (0x00 << 3) | 0x0,      /* Interrupt router dev */
        0x828,                  /* IRQs devoted exclusively to PCI usage */
        0,                      /* Vendor */
        0,                      /* Device */
        0,                      /* Miniport */
        { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
        0x1f,                   /* Checksum (has to be set to some value that
                                 * would give 0 after the sum of all bytes
                                 * for this structure (including checksum).
                                 */
        {
                /* bus,        dev | fn,   {link, bitmap}, {link, bitmap}, 
{link, bitmap}, {link, bitmap}, slot, rfu */
                {0x01, (0x06 << 3) | 0x0, {{0x01, 0xdeb8}, {0x02, 0xdeb8}, 
{0x03, 0xdeb8}, {0x04, 0xdeb8}}, 0x1, 0x0},
                {0x01, (0x07 << 3) | 0x0, {{0x02, 0xdeb8}, {0x03, 0xdeb8}, 
{0x04, 0xdeb8}, {0x01, 0xdeb8}}, 0x2, 0x0},
                {0x01, (0x01 << 3) | 0x0, {{0x02, 0xdeb8}, {0x02, 0xdeb8}, 
{0x02, 0xdeb8}, {0x02, 0xdeb8}}, 0x3, 0x0},
                {0x05, (0x00 << 3) | 0x0, {{0x03, 0xdeb8}, {0x04, 0xdeb8}, 
{0x01, 0xdeb8}, {0x02, 0xdeb8}}, 0x4, 0x0},
                {0x04, (0x00 << 3) | 0x0, {{0x04, 0xdeb8}, {0x01, 0xdeb8}, 
{0x02, 0xdeb8}, {0x03, 0xdeb8}}, 0x5, 0x0},
                {0x03, (0x00 << 3) | 0x0, {{0x01, 0xdeb8}, {0x02, 0xdeb8}, 
{0x03, 0xdeb8}, {0x04, 0xdeb8}}, 0x6, 0x0},
                {0x02, (0x00 << 3) | 0x0, {{0x02, 0xdeb8}, {0x03, 0xdeb8}, 
{0x04, 0xdeb8}, {0x01, 0xdeb8}}, 0x7, 0x0},
                {0x00, (0x01 << 3) | 0x0, {{0x06, 0xdeb8}, {0x06, 0xdeb8}, 
{0x00, 0xdeb8}, {0x00, 0xdeb8}}, 0x0, 0x0},
                {0x00, (0x02 << 3) | 0x0, {{0x07, 0xdeb8}, {0x09, 0xdeb8}, 
{0x00, 0xdeb8}, {0x00, 0xdeb8}}, 0x0, 0x0},
                {0x00, (0x04 << 3) | 0x0, {{0x0a, 0xdeb8}, {0x0b, 0xdeb8}, 
{0x00, 0xdeb8}, {0x00, 0xdeb8}}, 0x0, 0x0},
                {0x00, (0x0a << 3) | 0x0, {{0x0c, 0xdeb8}, {0x00, 0xdeb8}, 
{0x00, 0xdeb8}, {0x00, 0xdeb8}}, 0x0, 0x0},
                {0x00, (0x07 << 3) | 0x0, {{0x0d, 0xdeb8}, {0x00, 0xdeb8}, 
{0x00, 0xdeb8}, {0x00, 0xdeb8}}, 0x0, 0x0},
                {0x00, (0x08 << 3) | 0x0, {{0x0e, 0xdeb8}, {0x00, 0xdeb8}, 
{0x00, 0xdeb8}, {0x00, 0xdeb8}}, 0x0, 0x0},
        }
};

unsigned long write_pirq_routing_table(unsigned long addr)
{
        return copy_pirq_routing_table(addr);
}
superiotool r4668
Probing for ALi Super I/O at 0x3f0...
  Failed. Returned data: id=0xffff, rev=0xff
Probing for ALi Super I/O at 0x370...
  Failed. Returned data: id=0xffff, rev=0xff
Probing for Fintek Super I/O at 0x2e...
  Failed. Returned data: vid=0xffff, id=0xffff
Probing for Fintek Super I/O at 0x4e...
  Failed. Returned data: vid=0xffff, id=0xffff
Probing for ITE Super I/O (init=standard) at 0x2e...
Found ITE IT8716F (id=0x8716, rev=0x0) at 0x2e
Register dump:
idx 20 21 22 23 24 2b
val 87 16 00 01 00 00
def 87 16 01 00 00 00
LDN 0x00 (Floppy)
idx 30 60 61 70 74 f0 f1
val 00 00 00 00 04 00 80
def 00 03 f0 06 02 00 00
LDN 0x01 (COM1)
idx 30 60 61 70 f0 f1 f2 f3
val 01 03 f8 04 00 50 00 7f
def 00 03 f8 04 00 50 00 7f
LDN 0x02 (COM2)
idx 30 60 61 70 f0 f1 f2 f3
val 00 00 00 00 00 50 00 7f
def 00 02 f8 03 00 50 00 7f
LDN 0x03 (Parallel port)
idx 30 60 61 62 63 70 74 f0
val 01 03 78 07 78 07 03 0a
def 00 03 78 07 78 07 03 03
LDN 0x04 (Environment controller)
idx 30 60 61 62 63 70 f0 f1  f2 f3 f4 f5 f6
val 01 02 90 00 00 00 00 00  0a 00 8a 00 ff
def 00 02 90 02 30 09 00 00  00 00 00 NA NA
LDN 0x05 (Keyboard)
idx 30 60 61 62 63 70 71 f0
val 01 00 60 00 64 01 02 68
def 01 00 60 00 64 01 02 00
LDN 0x06 (Mouse)
idx 30 70 71 f0
val 01 0c 02 00
def 00 0c 02 00
LDN 0x07 (GPIO)
idx 25 26 27 28 29 2a 2c 60  61 62 63 64 65 70 71 72  73 74 b0 b1 b2 b3 b4 b5  
b8 b9 ba bb bc bd c0 c1  c2 c3 c4 c8 c9 ca cb cc  e0 e1 e2 e3 e4 f0 f1 f2  f3 
f4 f5 f6 f7 f8 f9 fa  fb fc fd
val 04 00 7f 00 01 04 1f 00  00 08 00 00 00 00 01 00  38 00 00 00 3f 00 00 00  
00 00 00 00 00 00 00 00  7f 00 01 00 00 7f 00 01  00 00 00 00 00 00 00 00  00 
00 00 00 00 00 00 00  00 31 00
def 01 00 00 40 00 00 00 00  00 00 00 00 00 00 00 20  38 00 00 00 00 00 00 00  
00 00 00 00 00 00 01 00  00 40 00 01 00 00 40 00  00 00 00 00 00 00 00 00  00 
00 00 00 00 00 00 00  00 NA 00
LDN 0x08 (MIDI port)
idx 30 60 61 70 f0
val 00 03 00 0a 00
def 00 03 00 0a 00
LDN 0x09 (Game port)
idx 30 60 61
val 00 02 01
def 00 02 01
LDN 0x0a (Consumer IR)
idx 30 60 61 70 f0
val 00 03 10 0b 06
def 00 03 10 0b 00
Probing for ITE Super I/O (init=it8761e) at 0x2e...
  Failed. Returned data: id=0xffff, rev=0xf
Probing for ITE Super I/O (init=it8228e) at 0x2e...
  Failed. Returned data: id=0xffff, rev=0xf
Probing for ITE Super I/O (init=0x87,0x87) at 0x2e...
  Failed. Returned data: id=0xffff, rev=0xf
Probing for ITE Super I/O (init=standard) at 0x4e...
  Failed. Returned data: id=0xffff, rev=0xf
Probing for ITE Super I/O (init=it8761e) at 0x4e...
  Failed. Returned data: id=0xffff, rev=0xf
Probing for ITE Super I/O (init=it8228e) at 0x4e...
  Failed. Returned data: id=0xffff, rev=0xf
Probing for ITE Super I/O (init=0x87,0x87) at 0x4e...
  Failed. Returned data: id=0xffff, rev=0xf
Probing for ITE Super I/O (init=legacy/it8661f) at 0x370...
  Failed. Returned data: id=0xffff, rev=0xf
Probing for ITE Super I/O (init=legacy/it8671f) at 0x370...
  Failed. Returned data: id=0xffff, rev=0xf
Probing for NSC Super I/O at 0x2e...
  Failed. Returned data: port=0xff, port+1=0xff
Probing for NSC Super I/O at 0x4e...
  Failed. Returned data: port=0xff, port+1=0xff
Probing for NSC Super I/O at 0x15c...
  Failed. Returned data: port=0xff, port+1=0xff
Probing for SMSC Super I/O (idregs=0x20/0x21) at 0x2e...
  Failed. Returned data: id=0xff, rev=0xff
Probing for SMSC Super I/O (idregs=0x0d/0x0e) at 0x2e...
  Failed. Returned data: id=0xff, rev=0xff
Probing for SMSC Super I/O (idregs=0x20/0x21) at 0x4e...
  Failed. Returned data: id=0xff, rev=0xff
Probing for SMSC Super I/O (idregs=0x0d/0x0e) at 0x4e...
  Failed. Returned data: id=0xff, rev=0xff
Probing for SMSC Super I/O (idregs=0x20/0x21) at 0x162e...
  Failed. Returned data: id=0xff, rev=0xff
Probing for SMSC Super I/O (idregs=0x0d/0x0e) at 0x162e...
  Failed. Returned data: id=0xff, rev=0xff
Probing for SMSC Super I/O (idregs=0x20/0x21) at 0x164e...
  Failed. Returned data: id=0xff, rev=0xff
Probing for SMSC Super I/O (idregs=0x0d/0x0e) at 0x164e...
  Failed. Returned data: id=0xff, rev=0xff
Probing for SMSC Super I/O (idregs=0x20/0x21) at 0x3f0...
  Failed. Returned data: id=0xff, rev=0xff
Probing for SMSC Super I/O (idregs=0x0d/0x0e) at 0x3f0...
  Failed. Returned data: id=0xff, rev=0xff
Probing for SMSC Super I/O (idregs=0x20/0x21) at 0x370...
  Failed. Returned data: id=0xff, rev=0xff
Probing for SMSC Super I/O (idregs=0x0d/0x0e) at 0x370...
  Failed. Returned data: id=0xff, rev=0xff
Probing for Winbond Super I/O (init=0x88) at 0x2e...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x89) at 0x2e...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x86,0x86) at 0x2e...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x87,0x87) at 0x2e...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x88) at 0x4e...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x89) at 0x4e...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x86,0x86) at 0x4e...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x87,0x87) at 0x4e...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x88) at 0x3f0...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x89) at 0x3f0...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x86,0x86) at 0x3f0...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x87,0x87) at 0x3f0...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x88) at 0x370...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x89) at 0x370...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x86,0x86) at 0x370...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x87,0x87) at 0x370...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x88) at 0x250...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x89) at 0x250...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x86,0x86) at 0x250...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
Probing for Winbond Super I/O (init=0x87,0x87) at 0x250...
  Failed. Returned data: id/oldid=0xff/0x0f, rev=0xff
/* generated by MPTable, version 2.0.15*/
/* as modified by RGM for coreboot */
#include <console/console.h>
#include <arch/smp/mpspec.h>
#include <device/pci.h>
#include <string.h>
#include <stdint.h>

void *smp_write_config_table(void *v)
{
        static const char sig[4] = "PCMP";
        static const char oem[8] = "LNXI    ";
        static const char productid[12] = "P4DPE       ";
        struct mp_config_table *mc;

        mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);
        memset(mc, 0, sizeof(*mc));

        memcpy(mc->mpc_signature, sig, sizeof(sig));
        mc->mpc_length = sizeof(*mc); /* initially just the header */
        mc->mpc_spec = 0x04;
        mc->mpc_checksum = 0; /* not yet computed */
        memcpy(mc->mpc_oem, oem, sizeof(oem));
        memcpy(mc->mpc_productid, productid, sizeof(productid));
        mc->mpc_oemptr = 0;
        mc->mpc_oemsize = 0;
        mc->mpc_entry_count = 0; /* No entries yet... */
        mc->mpc_lapic = LAPIC_ADDR;
        mc->mpe_length = 0;
        mc->mpe_checksum = 0;
        mc->reserved = 0;

        smp_write_processors(mc);


mptable: readEntry: Operation not permitted
-[0000:00]-+-00.0  nVidia Corporation CK804 Memory Controller [10de:005e]
           +-01.0  nVidia Corporation CK804 ISA Bridge [10de:0050]
           +-01.1  nVidia Corporation CK804 SMBus [10de:0052]
           +-02.0  nVidia Corporation CK804 USB Controller [10de:005a]
           +-02.1  nVidia Corporation CK804 USB Controller [10de:005b]
           +-04.0  nVidia Corporation CK804 AC'97 Audio Controller [10de:0059]
           +-06.0  nVidia Corporation CK804 IDE [10de:0053]
           +-07.0  nVidia Corporation CK804 Serial ATA Controller [10de:0054]
           +-08.0  nVidia Corporation CK804 Serial ATA Controller [10de:0055]
           +-09.0-[0000:01]--+-06.0  XXX
           |                 \-07.0  XXX
           +-0a.0  nVidia Corporation CK804 Ethernet Controller [10de:0057]
           +-0b.0-[0000:02]--
           +-0c.0-[0000:03]--
           +-0d.0-[0000:04]--
           +-0e.0-[0000:05]----00.0  XXX
           +-18.0  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
HyperTransport Technology Configuration [1022:1100]
           +-18.1  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address 
Map [1022:1101]
           +-18.2  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM 
Controller [1022:1102]
           \-18.3  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Miscellaneous Control [1022:1103]
-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to