Sie sind auf Seite 1von 7

Device Mapping on Sun Servers: A Quick Guide http://developers.sun.com/jsp_utils/PrintPage.jsp?url=http://developers...

sun.com
http://developers.sun.com/solaris/articles/devicemapping.html Oct 24, 2011

Article

By Karpagam Narayanan, June 2001

Introduction

Managing I/O devices and disks can be very challenging, especially when configurations are complex. This guide explains how
to identify slot numbers from a device's fully qualified physical path name.

Every hardware device on a system is identified with its full device name, also called the physical device name. Physical device
files are found in the directory. The full device pathname identifies a device in terms of its location in the device
tree by identifying a series of node names separated by slashes, with the root indicated by a leading slash. Each node name in
the full device pathname has the following form: driver-name@unit-address:device arguments.

driver-name identifies the device name; @unit-address is the physical address of the device in the address space of the parent;
and :device arguments defines additional information regarding the device software.

If you match the devices to the driver names (which will be part of the physical path) you will know what type of device you are
looking at.

Description

The following sections describe slot numbers for different system architecture.

Table 1 provides the descriptions of commonly used device drivers:

Device Driver Description

Fast/wide SCSI controller


Fast (10/100 Mb/sec) Ethernet
Differential SCSI controllers and the SunSwift card
UltraSCSI controllers
Small Computer Serial Interface (SCSI) devices
or Fiber Channel Arbitrated Loop (FCAL)
SPARC Storage Array (SSA) controllers
Serial optical controllers for FCAL ( )

Table 1: Commonly used device drivers


Enterprise 3500-6500 servers

The physical path can help you locate a particular device. For example, the full device address

represents a slice of a SCSI disk drive on a SPARC system. It is interpreted from left to right as a device attached to the
with a main system bus address of ; an device, a SCSI bus attached at sbus slot , offset ; and an device
with a SCSI bus target of , a logical unit of , and an argument of , which represents slice of the disk.

For Sun Fire, there are two sbuses per board, 0 and 1 on board 0, 2 and 3 on board 1, etc. The sbus is in hex and the slot # in
decimal. There are 3 slots per board, 0, 1 and 2. Slot d is the onboard slot. Slots go from left to right (they are numbered so it's
easy). There are two channels per slot, 0 and 1. Channels go from right to left. For example:

1 of 7 24/10/2011 1:45 PM
Device Mapping on Sun Servers: A Quick Guide http://developers.sun.com/jsp_utils/PrintPage.jsp?url=http://developers...

The above format output shows one (they're all ) photon (because it's using ) on
, which means it's on board 11 (17 hex = 23 decimal. Round odd numbers down one = 22 and divide by 2 = 11). It is
connected to the onboard ( ) and must be on the right channel ( ).

So, if the device path reads:

then the device is on = board 3 (7 hex = 7 decimal, round down to 6 and divide by 2 = 3), in slot 1 ( ) in
channel 1 (left channel, ).

With this information you can track the device by tracing the wire. Table 2, which makes the same calculation a lot easier to
interpret, describes the slot and sbus slot assignments and their locations (front or back of the system).

Front Back

Board slot sbus@ sbus@ Board slot sbus@ sbus@


0 0 1 1 2 3
2 4 5 3 6 7
4 8 9 5 A B
6 C D 7 E F
8 10 11 9 12 13
10 14 15 11 16 17
12 18 19 13 1A 1B
14 1C 1D 15 1E 1F

Table 2: 3500-6500 slot assignments


Refer to the preceding example and Table 2. You will see that means it is in board slot 11 at the back of the system.

Note: The Sun Enterprise 3x00 has board slots in the back of the system only (the internal disks are located on the front). The
Sun Enterprise 4x00, 5x00, and 6x00 have board slots in the front and back.

Note: is the GBIC port on the right and is the GBIC port on the left on a I/O board.

Midrange 250 and 450 Servers

The Sun workgroup server product series slot assignments for Sun Enterprise 250 and 450 are shown in this section.

Consider the following device path:

As shown in Table 3, this device path represents the card occupying slot 3. In this table, Device is the device driver name of the
card occupying the slot (for example, ).

Full Device Path Name PCI Slot/Device


10
9

2 of 7 24/10/2011 1:45 PM
Device Mapping on Sun Servers: A Quick Guide http://developers.sun.com/jsp_utils/PrintPage.jsp?url=http://developers...

8
7
6
5
4
3
2
1
Internal CD-ROM
External SCSI port

Table 3: 450 PCI Slot Assignments


The device path may be reported. This device path references the disk controller built onto the
system board that controls the first four internal disk slots in a Sun Enterprise 450 - the bottom four slots.

The device path may be reported. This device path references the controller built onto the
system board for the internal CD-ROM or tape drive, as well as the onboard SCSI port on the system board.

Table 4 shows the Sun Enterprise 250 PCI Slot Assignments.

PCI Slot/Device Device Path


PCI Slot #0
PCI Slot #1
PCI Slot #2
PCI Slot #3
Internal Disk Slot #0
Internal Disk Slot #1
Internal Disk Slot #2
Internal Disk Slot #3
Internal Disk Slot #4
Internal Disk Slot #5
Internal CD-ROM
External SCSI Port

Table 4: 250 PCI Slot Assignments


Enterprise 3800-6800 Servers

There are two types of I/O boards - PCI and cPCI. PCI has 8 slots and cPCI has 6 slots. 4800/4810/6800 do not support cPCI
cards at this time. In 3800, IB6 and IB8 are located side by side on the front of the box. In 4800, IB6 is at the bottom and IB8 is at
the top at the back of the box. In 4810, both of the boards are located in the front. In 6800, they are located as:

IB9 IB8
IB7 IB6

3800-6800: CPU/Memory Boards

Depending on the type, Sun Fire systems can have up to 6 CPU boards. Each CPU board can have up to 4 processors.
Processors with Agent IDs (AID) 0-3 reside on board C0, 4-7 on board C1, 8-11 on board C2, and so on. Refer to Table 5 for
AID allocation.

Using this allocation, there are up to 4 CPU instances P0-P3 on each board. There are up to 4 banks of memory per CPU
board. Each bank is controlled by one memory controller (MMU). The memory controller is co-packaged with its processor.
Thus, AID for the memory controller is the same as its processor AID but with a different offset. The offset is 0 for processors

3 of 7 24/10/2011 1:45 PM
Device Mapping on Sun Servers: A Quick Guide http://developers.sun.com/jsp_utils/PrintPage.jsp?url=http://developers...

and 400000 for memory.

Board P3 P2 P1 P0
0 CPU 3 CPU 2 CPU 1 CPU 0
1 CPU 7 CPU 6 CPU 5 CPU 4
2 CPU 11 CPU 10 CPU 9 CPU 8
3 CPU 15 CPU 14 CPU 13 CPU 12
4 CPU 19 CPU 18 CPU 17 CPU 16
5 CPU 23 CPU 22 CPU 21 CPU 20

Table 5: AID Allocation


Example for CPU module

To determine the physical location of CPU modules, consider the following full device path name

Here, is the Node ID and CPU AID is . Now

Divide processor Agent ID by 4.

hex: b/4 = 2.xx


dec: 11/4 = 2.xx

The whole number represents the CPU board number(slot number), C2 in this case.

The remainder of the division represents processor instance number (0-3) on the CPU board.

In this example, the remainder is 3, indicating CPU P3.

Example for memory controller

To determine physical location of memory controllers, consider the following full device path name

Here Node ID is , Memory AID is and offset is . The same formula applies to memory components. As in the CPU
case, memory resides on board C2.

3800-6800: IO Boards

There are up to 4 I/O boards in a system, each hosting 2 Schizo's. Each Schizo has two bus sides, A and B. Agent ID 25 and 26
are located on IB6, 27 and 28 on IB7, and so on. The node ID for Sun Fire is always zero ( ). Sun Fireplane Agent
IDs (AID) range from 0-31 (0-1f, hex). CPU AIDs range from 0-23 (0-17, hex). Schizo AIDs range from 24-31 (18-1f, hex).

Board Schizo AID Schizo AID


6 25 24
7 27 26
8 29 28
9 31 30

Table 6: Sun Fireplane Agent ID (AID) allocation for Schizo IO


There are 2 types of IO boards, PCI and cPCI. The PCI board types have 8 slots. A cPCI may have 4 or 6 slots. Tables 5, 6, and
7 describe PCI and cPCI IO board topology.

Even/Odd AID Offset Device # Slot assignment


1 600000 1 Slot 7 is
1 700000 3 Slot 6 is
1 700000 2 Slot 5 is

4 of 7 24/10/2011 1:45 PM
Device Mapping on Sun Servers: A Quick Guide http://developers.sun.com/jsp_utils/PrintPage.jsp?url=http://developers...

1 700000 1 Slot 4 is
0 600000 1 Slot 3 is
0 700000 3 Slot 2 is
0 700000 2 Slot 1 is
0 700000 1 Slot 0 is

Table 7: PCI IO Board Topology

Even/Odd AID Offset Device # Slot assignment


0 600000 1 Slot 0 is
1 600000 1 Slot 1 is
0 700000 1 Slot 2 is
1 700000 1 Slot 3 is

Table 8: cPCI IO Board Topology for 4 slots

Even/Odd AID Offset Device # Slot assignment


0 600000 1 Slot 0 is
1 700000 1 Slot 1 is
0 700000 1 Slot 2 is (shared)
0 700000 2 Slot 3 is (shared)
1 700000 1 Slot 4 is (shared)
0 700000 2 Slot 3 is (shared)

Table 9: cPCI IO Board Topology for 6 slots

IB7, IB9 IB6, IB8


0 7
1 6
2 5
3 4
4 3
5 2
6 1
7 0

Table 10: Physical Slot location for PCI IO boards

Example for IO boards

PCI Example 1

To determine physical location of I/O devices, consider the following full device pathname:

Where
Node ID is 0
Schizo AID is 19

5 of 7 24/10/2011 1:45 PM
Device Mapping on Sun Servers: A Quick Guide http://developers.sun.com/jsp_utils/PrintPage.jsp?url=http://developers...

Device# is 3

To locate the IO board number, divide the Schizo ID by 2 and subtract 6.

Hex: (19/2)- 6 = 6.8

This means the device resides on the I/O board in slot 6 (IB6). The fact that the result has a fraction indicates that this is an odd
AID. An odd AID indicates Schizo 1 and an even AID indicates Schizo 0 of IB6. Alternatively, you can look up the AID in Table 5.

To identify the slot number of IB6 in which this device is installed, use Table 7 for PCI IO topology. From the device path, AID is
odd (19), offset = 700000, and device # = 3. This device is in slot 6 of IO board IB6.

PCI Example 2

(from output):

Where AID is 0
Offset is 600000
Device# is 1

All of these devices belong to the same slot since the AID, offset, and device numbers are identical.

Using PCI topology Table 7, you can determine that this device is located at slot 7 of IO board IB8.

cPCI Example 1

Consider this full device pathname

Where
Node ID is 0
Schizo AID is 1c
Device# is 1

To find the IO board number, divide the AID 1c by 2 then subtract 6: 1c/2 - 6 = 8. This device is on IB8. Again, no fractions
means Schizo 0 of IB8.

From the device path: AID=even (1c), offset = 700000, device# = 1. Using Table 7, you will find that this device is located at slot
2 of IB8.

Complete List of Software Utilities and Products


Utilities

Software Module Products


All
SSA
SSA, A5x00, T3
SCSI disks
Component Manager A5x00, T3
StorTools All
A3x00

6 of 7 24/10/2011 1:45 PM
Device Mapping on Sun Servers: A Quick Guide http://developers.sun.com/jsp_utils/PrintPage.jsp?url=http://developers...

Table 11 Software Utilities and Products

Back to Top

Rate and Review


Tell us what you think of the content of this page.

Excellent Good Fair Poor


Comments:

Your email address (no reply is possible without an address):


Sun Privacy Policy

Note: We are not able to respond to all submitted comments.

Submit »

copyright © Sun Microsystems, Inc

7 of 7 24/10/2011 1:45 PM

Das könnte Ihnen auch gefallen