SRDB ID   Synopsis   Date
28506   Sun Fire (3800-6800) panics with error: Privileged Bus Error   24 Sep 2001

Status Issued

Description
This document provides a method of locating a device on the Sun Fire (3800-6800)
bus that is causing a bus error.

Sun Fire panics with the following panic string:
CPU3 Privileged Bus Error: AFSR 0x00100800.00000000 AFAR 0x00000638.09808000      
For other architectures, refer to: 
SRDB 20635 System panics with error: Privileged Bus Error                                          
                                          
SOLUTION SUMMARY:
1) Convert the AFAR to binary

Convert the AFAR of 0x0000063809808000 to binary

          4         3         2         1         0
        2109876543210987654321098765432109876543210
        1100011100000001001100000001000000000000000

2) Identify the Agent ID (AID) and P bit

AID corresponds to the "Schizo Agent ID"
P corresponds to the "PCI leaf" (1=A/0=B)

          4   -AID- P  3         2         1         0
        21098 76543 2 10987654321098765432109876543210
        11000 11100 0 00001001100000001000000000000000
                                          
AID = 1c
P   = 0

11000 = 0x18
11001 = 0x19
11010 = 0x1a
11011 = 0x1b
11100 = 0x1c
11101 = 0x1d
11110 = 0x1e
11111 = 0x1f                                          
3) Identify the IO Board and Slot(s)

Depending on whether the IB board type is PCI or cPCI, use the following tables
to find the IB board and slot(s) related to the AFAR.
                                          

PCI translation table

AID	Leaf	IB & Slot
--	---	---------------
18	A	IB 6 Slot 3
18	B	IB 6 Slot 0,1,2	
19	A	IB 6 Slot 7
19	B	IB 6 Slot 4,5,6

1a	A	IB 7 Slot 3
1a	B	IB 7 Slot 0,1,2
1b	A	IB 7 Slot 7
1b 	B	IB 7 Slot 4,5,6

1c	A 	IB 8 Slot 3
1c 	B 	IB 8 Slot 0,1,2
1d	A	IB 8 Slot 7
1d 	B	IB 8 Slot 4,5,6

1e	A	IB 9 Slot 3
1e	B	IB 9 Slot 0,1,2
1f 	A	IB 9 Slot 7
1f 	B	IB 9 Slot 4,5,6                                          

cPCI translation table

6 Slots cPCI card (only used in the Sun Fire 3800)

AID	Leaf	IB & Slot
--	---	-------------
18	A	IB 6 Slot 0
18	B	IB 6 Slot 2,3
19	A 	IB 6 Slot 1
19	B	IB 6 Slot 4,5

1c	A	IB 8 Slot 0
1c 	B 	IB 8 Slot 2,3
1d	A	IB 8 Slot 1
1d	B	IB 8 Slot 4,5            

4 Slots cPCI card (IB7 and IB9 may be used in a SF6800 only)

AID	Leaf	IB & Slot
--	---	-------------
18	A	IB 6 Slot 0
18	B	IB 6 Slot 2
19	A 	IB 6 Slot 1
19	B	IB 6 Slot 3

1a	A	IB 7 Slot 0
1a	B	IB 7 Slot 2
1b	A	IB 7 Slot 1
1b	B	IB 7 Slot 3

1c	A	IB 8 Slot 0
1c 	B 	IB 8 Slot 2
1d	A	IB 8 Slot 1
1d	B	IB 8 Slot 3

1e	A	IB 9 Slot 0
1e	B	IB 9 Slot 2
1f	A	IB 9 Slot 1
1f 	B	IB 9 Slot 3

In our example, the system uses PCI IB Boards. 	
AID = 1c => Schizo 0 on IB8 
P   =  0 => PCI Leaf B (a 1 would indicate PCI leaf A)
  In the case of leaf A, the PCI leaf has just one slot and there 
  is no need to go further. In this case, you would not need to go 
  on to step 4 in order to determine the slot.

4) Determine the (c)PCI  slot 

Take the output from "dump-dev" (OBP command) and search for 0x09808000

This output will indicate which slot this relates to. Note: There may be 
a lot of responses to your search, so keep in mind that you are looking for 
references to the Schizo defined in step 3 and not other Schizos.

Here is an example of the sort of thing you will be looking for (look 
for 09808000); note that you get a full address:

package 0xf13ef000 /ssm@0,0/pci@1c,700000/pci@1/SUNW,isptwo@4:
    parent=0xf140cb50           ^^  
    children=0xf13d5200          |__ AID
    link=0xf14083f0
    props=0xf13eefa0:
        assigned-addresses    81012010 00000000 00001000 00000000 00000100 82012014 
                              00000000 09808000 00000000 00002000 82012030 00000000 
                              09810000 00000000 00010000 
                              
        model                 QLGC,ISP1040B
        scsi-initiator-id     0x7

This card is located on the IB 8 Slot 0.            

INTERNAL SUMMARY:

Thanks to Stuart Eason and Sean Wilcox.

SUBMITTER: Renaud Manus APPLIES TO: Hardware/Sun Fire ATTACHMENTS:


Copyright (c) 1997-2003 Sun Microsystems, Inc.