Project

General

Profile

Feature #5015 » post.log

mdb -k ::mptsas after the changes - Hans Rosenfeld, 2014-09-04 01:42 PM

 
1
mdb: logging to "/tmp/post.log"
2
> ::help mptsas
3

    
4
NAME
5
  mptsas - print mpt_sas information
6

    
7
SYNOPSIS
8
  [ addr ] ::mptsas [-tpsdD]
9

    
10
DESCRIPTION
11
  
12
  Prints summary information about each mpt_sas instance, including warning
13
  messages when slot usage doesn't match summary information.
14
  Without the address of a "struct mptsas", prints every instance.
15
  
16
  Switches:
17
    -t[v]  includes information about targets, v = be more verbose
18
    -p     includes information about port
19
    -s     includes information about mpt slots
20
    -d     includes information about the hardware
21
    -D     print the mptsas specific debug log
22

    
23
ATTRIBUTES
24

    
25
  Target: kvm
26
  Module: mpt_sas
27
  Interface Stability: Unstable
28

    
29
> ::mptsas -t
30
        mptsas_t inst ncmds suspend  power
31
================================================================================
32
ffffff02efc50000    0     0       0 ON=D0 
33
                 
34
                  mptsas_target_t slot devhdl      wwn     ncmds throttle   dr_flag dups
35
                 ----------------------------------------------------------------------
36
                 ffffff02f1e58780    1   10 5000c5005809c53d   0     MAX   INACTIVE 0
37
                 ffffff02f1e58840    2   11 5000c500584b15f9   0     MAX   INACTIVE 0
38
                 ffffff02f05796c0    3   12 5000c50058495e4d   0     MAX   INACTIVE 0
39
                 ffffff02f1952580    4   13 5000c500584acd99   0     MAX   INACTIVE 0
40
                 ffffff02f1e58e40    5   14 5000c500584d20d9   0     MAX   INACTIVE 0
41
                 ffffff02ef848580    6   15 5000c5005849854d   0     MAX   INACTIVE 0
42
                 ffffff02ef848880    7   16 5000c500584c8dd1   0     MAX   INACTIVE 0
43
                 ffffff02f1e58600    8   17 5000c500584d1fb5   0     MAX   INACTIVE 0
44
                 ffffff02f1e58540    0   18 5001b4da008c703d   0     MAX   INACTIVE 0
45
                 
46
                     mptsas_smp_t devhdl      wwn          phymask
47
                 ---------------------------------------------------------
48
                 ffffff02f2430d68      9  5001b4da008c703f    00ff
49
> ::mptsas -tv
50
        mptsas_t inst ncmds suspend  power
51
================================================================================
52
ffffff02efc50000    0     0       0 ON=D0 
53
                 
54
                  mptsas_target_t slot devhdl      wwn     ncmds throttle   dr_flag dups
55
                 ----------------------------------------------------------------------
56
                 ffffff02f1e58780    1   10 5000c5005809c53d   0     MAX   INACTIVE 0
57
                      End device: SSP tgt
58
                 ffffff02f1e58840    2   11 5000c500584b15f9   0     MAX   INACTIVE 0
59
                      End device: SSP tgt
60
                 ffffff02f05796c0    3   12 5000c50058495e4d   0     MAX   INACTIVE 0
61
                      End device: SSP tgt
62
                 ffffff02f1952580    4   13 5000c500584acd99   0     MAX   INACTIVE 0
63
                      End device: SSP tgt
64
                 ffffff02f1e58e40    5   14 5000c500584d20d9   0     MAX   INACTIVE 0
65
                      End device: SSP tgt
66
                 ffffff02ef848580    6   15 5000c5005849854d   0     MAX   INACTIVE 0
67
                      End device: SSP tgt
68
                 ffffff02ef848880    7   16 5000c500584c8dd1   0     MAX   INACTIVE 0
69
                      End device: SSP tgt
70
                 ffffff02f1e58600    8   17 5000c500584d1fb5   0     MAX   INACTIVE 0
71
                      End device: SSP tgt
72
                 ffffff02f1e58540    0   18 5001b4da008c703d   0     MAX   INACTIVE 0
73
                      End device: SEP, SSP tgt, SSP init, SMP init
74
                 
75
                     mptsas_smp_t devhdl      wwn          phymask
76
                 ---------------------------------------------------------
77
                 ffffff02f2430d68      9  5001b4da008c703f    00ff
78
                      Edge expander: LSI device, direct attach, SMP tgt
79
> ::mptsas -p
80
        mptsas_t inst ncmds suspend  power
81
================================================================================
82
ffffff02efc50000    0     0       0 ON=D0 
83
                 
84
                 phy number and port mapping table
85
                 phy 0 --> port 0, phymask ff,attached_devhdl 9
86
                 phy 1 --> port 0, phymask ff,attached_devhdl 9
87
                 phy 2 --> port 0, phymask ff,attached_devhdl 9
88
                 phy 3 --> port 0, phymask ff,attached_devhdl 9
89
                 phy 4 --> port 0, phymask ff,attached_devhdl 9
90
                 phy 5 --> port 0, phymask ff,attached_devhdl 9
91
                 phy 6 --> port 0, phymask ff,attached_devhdl 9
92
                 phy 7 --> port 0, phymask ff,attached_devhdl 9
93
                 
94
> ::mptsas -d
95
        mptsas_t inst ncmds suspend  power
96
================================================================================
97
ffffff02efc50000    0     0       0 ON=D0 
98
                 
99
                 base_wwid          phys  prodid  devid          revid   ssid
100
                 ---------------------------------------------------------------
101
                 500605b0069ab4f0      8  0x2213 0x0097 (SAS3008) 0x02 0x30a0
102
                 /pci@0,0/pci8086,1d10@1c/pci1000,30a0@0
103
> ::mptsas -D
104
        mptsas_t inst ncmds suspend  power
105
================================================================================
106
ffffff02efc50000    0     0       0 ON=D0 
107
                 
108
                 mptsas_kmem_cache_destructor
109
                 mptsas_scsi_init_pkt:
110
                        tgt=12 in=0x0 bp=0xffffff02f1e52540 clen=16 slen=32 tlen=0 flags=0
111
                 mptsas_kmem_cache_constructor
112
                 mptsas_scsi_init_pkt: cmd_dmacount=32.
113
                 mptsas_scsi_start: pkt=0xffffff02f172ec78
114
                 mptsas_prepare_pkt: cmd=0xffffff02f172eab0
115
                 mptsas_accept_pkt: cmd=0xffffff02f172eab0
116
                 mptsas_start_cmd: cmd=0xffffff02f172eab0, flags 0x860
117
                 mptsas_sge_setup: cookiec=1
118
                 mptsas_ieee_sge_mainframe: cookiec=1, In
119
                 mptsas_ieee_sge_mainframe: len=32
120
                 starting message=9874(0xffffff02e9f3a900), with cmd=0xffffff02f172eab0
121
                 mptsas_intr: arg1 0xffffff02efc50000 arg2 0x0
122
                 mptsas_remove_cmd: removing cmd=0xffffff02f172eab0, flags 0x860
123
                 mptsas_doneq_add: cmd=0xffffff02f172eab0
124
                 mptsas_intr complete
125
                 mptsas_scsi_destroy_pkt: target=12 pkt=0xffffff02f172ec78
126
                 mptsas_kmem_cache_destructor
127
                 mptsas_scsi_init_pkt:
128
                        tgt=12 in=0x0 bp=0xffffff030bc08dd8 clen=10 slen=32 tlen=0 flags=40000
129
                 mptsas_kmem_cache_constructor
130
                 mptsas_scsi_init_pkt: cmd_dmacount=512.
131
                 mptsas_scsi_start: pkt=0xffffff02f08db768
132
                 mptsas_prepare_pkt: cmd=0xffffff02f08db5a0
133
                 mptsas_accept_pkt: cmd=0xffffff02f08db5a0
134
                 mptsas_start_cmd: cmd=0xffffff02f08db5a0, flags 0x860
135
                 mptsas_sge_setup: cookiec=1
136
                 mptsas_ieee_sge_mainframe: cookiec=1, In
137
                 mptsas_ieee_sge_mainframe: len=512
138
                 starting message=9875(0xffffff02e9f3a980), with cmd=0xffffff02f08db5a0
139
                 mptsas_intr: arg1 0xffffff02efc50000 arg2 0x0
140
                 mptsas_remove_cmd: removing cmd=0xffffff02f08db5a0, flags 0x860
141
                 mptsas_doneq_add: cmd=0xffffff02f08db5a0
142
                 mptsas_intr complete
143
                 mptsas_scsi_destroy_pkt: target=12 pkt=0xffffff02f08db768
144
                 mptsas_kmem_cache_destructor
145
                 mptsas_scsi_init_pkt:
146
                        tgt=17 in=0x0 bp=0x0 clen=6 slen=32 tlen=0 flags=0
147
                 mptsas_kmem_cache_constructor
148
                 mptsas_scsi_start: pkt=0xffffff0325025c90
149
                 mptsas_prepare_pkt: cmd=0xffffff0325025ac8
150
                 mptsas_accept_pkt: cmd=0xffffff0325025ac8
151
                 mptsas_start_cmd: cmd=0xffffff0325025ac8, flags 0x60
152
                 starting message=9876(0xffffff02e9f3aa00), with cmd=0xffffff0325025ac8
153
                 mptsas_intr: arg1 0xffffff02efc50000 arg2 0x0
154
                 mptsas_remove_cmd: removing cmd=0xffffff0325025ac8, flags 0x60
155
                 mptsas_doneq_add: cmd=0xffffff0325025ac8
156
                 mptsas_intr complete
157
                 mptsas_scsi_destroy_pkt: target=17 pkt=0xffffff0325025c90
158
                 mptsas_kmem_cache_destructor
159
                 mptsas_scsi_init_pkt:
160
                        tgt=17 in=0x0 bp=0xffffff02f2357200 clen=16 slen=32 tlen=0 flags=0
161
                 mptsas_kmem_cache_constructor
162
                 mptsas_scsi_init_pkt: cmd_dmacount=32.
163
                 mptsas_scsi_start: pkt=0xffffff0325025770
164
                 mptsas_prepare_pkt: cmd=0xffffff03250255a8
165
                 mptsas_accept_pkt: cmd=0xffffff03250255a8
166
                 mptsas_start_cmd: cmd=0xffffff03250255a8, flags 0x860
167
                 mptsas_sge_setup: cookiec=1
168
                 mptsas_ieee_sge_mainframe: cookiec=1, In
169
                 mptsas_ieee_sge_mainframe: len=32
170
                 starting message=9877(0xffffff02e9f3aa80), with cmd=0xffffff03250255a8
171
                 mptsas_intr: arg1 0xffffff02efc50000 arg2 0x0
172
                 mptsas_remove_cmd: removing cmd=0xffffff03250255a8, flags 0x860
173
                 mptsas_doneq_add: cmd=0xffffff03250255a8
174
                 mptsas_intr complete
175
                 mptsas_scsi_destroy_pkt: target=17 pkt=0xffffff0325025770
176
                 mptsas_kmem_cache_destructor
177
                 mptsas_scsi_init_pkt:
178
                        tgt=17 in=0x0 bp=0xffffff030bc08dd8 clen=10 slen=32 tlen=0 flags=40000
179
                 mptsas_kmem_cache_constructor
180
                 mptsas_scsi_init_pkt: cmd_dmacount=512.
181
                 mptsas_scsi_start: pkt=0xffffff031cf279d8
182
                 mptsas_prepare_pkt: cmd=0xffffff031cf27810
183
                 mptsas_accept_pkt: cmd=0xffffff031cf27810
184
                 mptsas_start_cmd: cmd=0xffffff031cf27810, flags 0x860
185
                 mptsas_sge_setup: cookiec=1
186
                 mptsas_ieee_sge_mainframe: cookiec=1, In
187
                 mptsas_ieee_sge_mainframe: len=512
188
                 starting message=9878(0xffffff02e9f3ab00), with cmd=0xffffff031cf27810
189
                 mptsas_intr: arg1 0xffffff02efc50000 arg2 0x0
190
                 mptsas_remove_cmd: removing cmd=0xffffff031cf27810, flags 0x860
191
                 mptsas_doneq_add: cmd=0xffffff031cf27810
192
                 mptsas_intr complete
193
                 mptsas_scsi_destroy_pkt: target=17 pkt=0xffffff031cf279d8
194
                 mptsas_kmem_cache_destructor
195
                 mptsas_scsi_init_pkt:
196
                        tgt=15 in=0x0 bp=0x0 clen=6 slen=32 tlen=0 flags=0
197
                 mptsas_kmem_cache_constructor
198
                 mptsas_scsi_start: pkt=0xffffff02f309cc18
199
                 mptsas_prepare_pkt: cmd=0xffffff02f309ca50
200
                 mptsas_accept_pkt: cmd=0xffffff02f309ca50
201
                 mptsas_start_cmd: cmd=0xffffff02f309ca50, flags 0x60
202
                 starting message=9879(0xffffff02e9f3ab80), with cmd=0xffffff02f309ca50
203
                 mptsas_intr: arg1 0xffffff02efc50000 arg2 0x0
204
                 mptsas_remove_cmd: removing cmd=0xffffff02f309ca50, flags 0x60
205
                 mptsas_doneq_add: cmd=0xffffff02f309ca50
206
                 mptsas_intr complete
207
                 mptsas_scsi_destroy_pkt: target=15 pkt=0xffffff02f309cc18
208
                 mptsas_kmem_cache_destructor
209
                 mptsas_scsi_init_pkt:
210
                        tgt=15 in=0x0 bp=0xffffff02f1c6a9c0 clen=16 slen=32 tlen=0 flags=0
211
                 mptsas_kmem_cache_constructor
212
                 mptsas_scsi_init_pkt: cmd_dmacount=32.
213
                 mptsas_scsi_start: pkt=0xffffff030e9669b0
214
                 mptsas_prepare_pkt: cmd=0xffffff030e9667e8
215
                 mptsas_accept_pkt: cmd=0xffffff030e9667e8
216
                 mptsas_start_cmd: cmd=0xffffff030e9667e8, flags 0x860
217
                 mptsas_sge_setup: cookiec=1
218
                 mptsas_ieee_sge_mainframe: cookiec=1, In
219
                 mptsas_ieee_sge_mainframe: len=32
220
                 starting message=9880(0xffffff02e9f3ac00), with cmd=0xffffff030e9667e8
221
                 mptsas_intr: arg1 0xffffff02efc50000 arg2 0x0
222
                 mptsas_remove_cmd: removing cmd=0xffffff030e9667e8, flags 0x860
223
                 mptsas_doneq_add: cmd=0xffffff030e9667e8
224
                 mptsas_intr complete
225
                 mptsas_scsi_destroy_pkt: target=15 pkt=0xffffff030e9669b0
226
                 mptsas_kmem_cache_destructor
227
                 mptsas_scsi_init_pkt:
228
                        tgt=15 in=0x0 bp=0xffffff030bc08dd8 clen=10 slen=32 tlen=0 flags=40000
229
                 mptsas_kmem_cache_constructor
230
                 mptsas_scsi_init_pkt: cmd_dmacount=512.
231
                 mptsas_scsi_start: pkt=0xffffff02f309c468
232
                 mptsas_prepare_pkt: cmd=0xffffff02f309c2a0
233
                 mptsas_accept_pkt: cmd=0xffffff02f309c2a0
234
                 mptsas_start_cmd: cmd=0xffffff02f309c2a0, flags 0x860
235
                 mptsas_sge_setup: cookiec=1
236
                 mptsas_ieee_sge_mainframe: cookiec=1, In
237
                 mptsas_ieee_sge_mainframe: len=512
238
                 starting message=9881(0xffffff02e9f3ac80), with cmd=0xffffff02f309c2a0
239
                 mptsas_intr: arg1 0xffffff02efc50000 arg2 0x0
240
                 mptsas_remove_cmd: removing cmd=0xffffff02f309c2a0, flags 0x860
241
                 mptsas_doneq_add: cmd=0xffffff02f309c2a0
242
                 mptsas_intr complete
243
                 mptsas_scsi_destroy_pkt: target=15 pkt=0xffffff02f309c468
244
> ::mptsas -s
245
        mptsas_t inst ncmds suspend  power
246
================================================================================
247
ffffff02efc50000    0     3       0 ON=D0 
248
mdb: mptsas: slot info can only be displayed on a system dump or under kmdb
249

    
(2-2/2)