Beruflich Dokumente
Kultur Dokumente
sun.com
http://developers.sun.com/solaris/articles/devicemapping.html Oct 24, 2011
Article
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.
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 ( ).
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
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.
The Sun workgroup server product series slot assignments for Sun Enterprise 250 and 450 are shown in this section.
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, ).
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
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.
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
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...
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
To determine the physical location of CPU modules, consider the following full device path name
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.
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).
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
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
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
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.
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...
Back to Top
Submit »
7 of 7 24/10/2011 1:45 PM