Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | |
2 | SAS: This is a SAM implementation of Serial Attached SCSI (SAS) disk controller. | |
3 | It models LSI SAS1064E, which is designed based on the Fusion-MPT (Message Passing | |
4 | Technology) architecture. It has PCIE interface through which the controller can | |
5 | be connected to any PCIE bus. Each controller can support up to 4 SAS disks (target 0~3). | |
6 | This implementation does not include a timing model, so the I/O request is served and | |
7 | completed immediately after it is received by the controller assuming no simulated | |
8 | disk delay. Also, the SAS disk is implemented based on a generic disk model. | |
9 | ||
10 | ||
11 | a) sysconf format for this module | |
12 | sysconf sas <instance name> bus=<bus name> dev=<device id> fun=<function number> | |
13 | targets=<init file> [-d[0|1|2]] | |
14 | where, | |
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 | ||
22 | Examples sysconf line: | |
23 | sysconf 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 | ||
29 | b) UI commands for this module | |
30 | ui 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 | |
38 | All the above information is available by typing <instance name> on SAM UI prompt. | |
39 | Eg, 'sas0' based on above example sysconf line. | |
40 | ||
41 | ||
42 | c) UI commands for attached disks | |
43 | ui 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> | |
61 | All the above information is available by typing 'gdisk help' on SAM UI prompt. | |
62 | Also, typing 'gdisk' will list all attached disks in the system. |