Print this page
OS-2444 richmond hardware maps need to support ivy bridge
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/fm/topo/maps/Joyent,Joyent-Compute-Platform-1101/Joyent-Compute-Platform-1101-disk-hc-topology.xmlgenksh
+++ new/usr/src/lib/fm/topo/maps/Joyent,Joyent-Compute-Platform-1101/Joyent-Compute-Platform-1101-disk-hc-topology.xmlgenksh
1 1 #!/bin/ksh
2 2 #
3 3 # This file and its contents are supplied under the terms of the
4 4 # Common Development and Distribution License ("CDDL"), version 1.0.
5 5 # You may only use this file in accordance with the terms of version
6 6 # 1.0 of the CDDL.
7 7 #
8 8 # A full copy of the text of the CDDL should have accompanied this
9 9 # source. A copy of the CDDL is also available via the Internet at
10 10 # http://www.illumos.org/license/CDDL.
11 11 #
12 12
13 13 #
14 14 # Copyright (c) 2013, Joyent, Inc. All rights reserved.
15 15 #
16 16
17 17 function do_node
18 18 {
19 19 cat <<EOF
20 20 <node instance='${1}'>
21 21 <propgroup name='protocol' version='1' name-stability='Private'
22 22 data-stability='Private'>
23 23 <propval name='label' type='string' value='${2}' />
24 24 </propgroup>
25 25 <propgroup name='binding' version='1' name-stability='Private'
26 26 data-stability='Private'>
27 27 <propval name='driver' type='string' value='mpt_sas' />
28 28 <propval name='devctl' type='string' value='${3}' />
29 29 <propval name='enclosure' type='uint32' value='${4}' />
30 30 <propval name='slot' type='uint32' value='${5}' />
31 31 </propgroup>
32 32 </node>
33 33 EOF
34 34 }
35 35
36 36
37 37 cat <<EOF
38 38 <topology name='disk' scheme='hc'>
39 39 <range name='bay' min='0' max='15'>
40 40 <facility name='fail' type='indicator' provider='fac_prov_mptsas' >
41 41 <propgroup name='facility' version='1' name-stability='Private'
42 42 data-stability='Private' >
43 43 <propval name='type' type='uint32' value='0' />
44 44 <propmethod name='mptsas_led_mode' version='0' propname='mode'
45 45 proptype='uint32' mutable='1'>
46 46 </propmethod>
47 47 </propgroup>
48 48 </facility>
49 49 <facility name='ident' type='indicator' provider='fac_prov_mptsas' >
50 50 <propgroup name='facility' version='1' name-stability='Private'
51 51 data-stability='Private' >
52 52 <propval name='type' type='uint32' value='1' />
53 53 <propmethod name='mptsas_led_mode' version='0' propname='mode'
54 54 proptype='uint32' mutable='1'>
55 55 </propmethod>
56 56 </propgroup>
57 57 </facility>
58 58 <facility name='ok2rm' type='indicator' provider='fac_prov_mptsas' >
59 59 <propgroup name='facility' version='1' name-stability='Private'
60 60 data-stability='Private' >
61 61 <propval name='type' type='uint32' value='2' />
↓ open down ↓ |
61 lines elided |
↑ open up ↑ |
62 62 <propmethod name='mptsas_led_mode' version='0' propname='mode'
63 63 proptype='uint32' mutable='1'>
64 64 </propmethod>
65 65 </propgroup>
66 66 </facility>
67 67 EOF
68 68
69 69 enclosure=1
70 70 bay=0
71 71 slot=0
72 -devctl='/devices/pci@0,0/pci8086,3c02@1/pci15d9,691@0:devctl'
72 +devctl0='/devices/pci@0,0/pci8086,3c02@1/pci15d9,691@0:devctl'
73 +devctl1='/devices/pci@0,0/pci8086,e02@1/pci15d9,691@0:devctl'
73 74 while (( slot <= 7 )); do
74 - do_node $bay "Front Disk $bay" "$devctl" $enclosure $slot
75 + do_node $bay "Front Disk $bay" "$devctl0|$devctl1" $enclosure $slot
75 76 (( bay = bay + 1 ))
76 77 (( slot = slot + 1 ))
77 78 done
78 79
79 80 slot=0
80 -devctl='/devices/pci@0,0/pci8086,3c06@2,2/pci15d9,691@0:devctl'
81 +devctl0='/devices/pci@0,0/pci8086,3c06@2,2/pci15d9,691@0:devctl'
82 +devctl1='/devices/pci@0,0/pci8086,e06@2,2/pci15d9,691@0:devctl'
81 83 while (( slot <= 7 )); do
82 - do_node $bay "Front Disk $bay" "$devctl" $enclosure $slot
84 + do_node $bay "Front Disk $bay" "$devctl0|$devctl1" $enclosure $slot
83 85 (( bay = bay + 1 ))
84 86 (( slot = slot + 1 ))
85 87 done
86 88
87 89 cat <<EOF
88 90 <dependents grouping='children'>
89 91 <range name='disk' min='0' max='0'>
90 92 <enum-method name='disk' version='1' />
91 93 </range>
92 94 </dependents>
93 95 </range>
94 96 </topology>
95 97 EOF
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX