Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / docs / sas.txt
CommitLineData
920dae64
AT
1
2SAS: This is a SAM implementation of Serial Attached SCSI (SAS) disk controller.
3It models LSI SAS1064E, which is designed based on the Fusion-MPT (Message Passing
4Technology) architecture. It has PCIE interface through which the controller can
5be connected to any PCIE bus. Each controller can support up to 4 SAS disks (target 0~3).
6This implementation does not include a timing model, so the I/O request is served and
7completed immediately after it is received by the controller assuming no simulated
8disk delay. Also, the SAS disk is implemented based on a generic disk model.
9
10
11a) sysconf format for this module
12sysconf sas <instance name> bus=<bus name> dev=<device id> fun=<function number>
13targets=<init file> [-d[0|1|2]]
14where,
15'instance name' is the name of this controller;
16'bus name' is the name of PCIE bus this controller is to be connected;
17'device number' is the PCIE device number;
18'function number' is the PCIE function number;
19'init file' is the configuration file for the attached SAS disks;
20'-d' is the optional argument that sets the debug level to 0, 1 or 2.
21
22Examples sysconf line:
23sysconf sas sas0 bus=pcie_a dev=0 fun=1 targets=sasdisk.init -d2
24# A SAS controller called "sas0" is attached to PCIE bus "pcie_a" as device 0 function 1.
25# The configuration for the attached disks is in file "sasdisk.init".
26# The debug level is set to 2.
27
28
29b) UI commands for this module
30ui format: <instance name> <command> <command args>
31 commands are:
32 debug [<level>]
33 - set the debug level for debug prints to 'level'
34 if 'level' not provided, print current debug level
35 'level' = [0|1|2]
36 disk
37 - show all attached disks
38All the above information is available by typing <instance name> on SAM UI prompt.
39Eg, 'sas0' based on above example sysconf line.
40
41
42c) UI commands for attached disks
43ui format: gdisk <disk name> <command> <command args>
44 commands are:
45 label
46 - display disk label
47 geometry
48 - display disk geometry
49 stat
50 - display any supported stats
51 partitions [number]
52 - display partition[number] info
53 - display all partitions by default
54 vpd
55 - display supported disk VPD data
56 op [file]
57 - redirect all o/p to <file>
58 - by default print current op file
59 debug [level]
60 - set debug verbosity to <level>
61All the above information is available by typing 'gdisk help' on SAM UI prompt.
62Also, typing 'gdisk' will list all attached disks in the system.