From 133e64dc1e1364a61b2182e682067321a0b4a128 Mon Sep 17 00:00:00 2001 From: myers Date: Fri, 26 Oct 2007 13:48:20 -0700 Subject: 6620038 Thor PCI topology deleted unused PCIe bridges and broke disk monitor topology 6620040 Update Thor Product Name in topology file --HG-- rename : usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4550/Makefile => usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Makefile rename : usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4550/Sun-Fire-X4550-hc-topology.xmlgen => usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Sun-Fire-X4540-hc-topology.xmlgen --- usr/src/lib/fm/topo/maps/Makefile | 2 +- .../lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Makefile | 41 ++++ .../Sun-Fire-X4540-hc-topology.xmlgen | 221 +++++++++++++++++++++ .../lib/fm/topo/maps/SUNW,Sun-Fire-X4550/Makefile | 41 ---- .../Sun-Fire-X4550-hc-topology.xmlgen | 221 --------------------- usr/src/pkgdefs/SUNWfmd/prototype_i386 | 2 +- 6 files changed, 264 insertions(+), 264 deletions(-) create mode 100644 usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Makefile create mode 100644 usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Sun-Fire-X4540-hc-topology.xmlgen delete mode 100644 usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4550/Makefile delete mode 100644 usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4550/Sun-Fire-X4550-hc-topology.xmlgen (limited to 'usr/src') diff --git a/usr/src/lib/fm/topo/maps/Makefile b/usr/src/lib/fm/topo/maps/Makefile index fe31156cbb..9e268ba0c6 100644 --- a/usr/src/lib/fm/topo/maps/Makefile +++ b/usr/src/lib/fm/topo/maps/Makefile @@ -43,7 +43,7 @@ sparc_SUBDIRS = sun4u \ i386_SUBDIRS = i86pc \ i386 \ SUNW,Sun-Fire-X4500 \ - SUNW,Sun-Fire-X4550 + SUNW,Sun-Fire-X4540 SUBDIRS = $($(MACH)_SUBDIRS) diff --git a/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Makefile b/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Makefile new file mode 100644 index 0000000000..10f34a3db5 --- /dev/null +++ b/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Makefile @@ -0,0 +1,41 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +# +# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#pragma ident "%Z%%M% %I% %E% SMI" + +# NOTE: The name of the xml file we are building is 'platform' +# specific, but its build is structured as 'arch' specific since +# 'uname -i' on all x86 platforms returns i86pc. + +ARCH = i86pc +CLASS = arch +DTDFILE = +TOPOFILE = Sun-Fire-X4540-hc-topology.xml +SRCDIR = ../SUNW,Sun-Fire-X4540 + +PLATFORM = Sun-Fire-X4540 +TOPOBASE = ../i86pc/i86pc-hc-topology.xml + +include ../Makefile.map diff --git a/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Sun-Fire-X4540-hc-topology.xmlgen b/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Sun-Fire-X4540-hc-topology.xmlgen new file mode 100644 index 0000000000..b25986447b --- /dev/null +++ b/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4540/Sun-Fire-X4540-hc-topology.xmlgen @@ -0,0 +1,221 @@ +#!/usr/local/bin/perl +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +#ident "%Z%%M% %I% %E% SMI" +# + +use Getopt::Std; + + +my $sys_supported = {"name" => "Sun-Fire-X4540", + "prop_name" => "sfx4500", + "num_bays" => "48"}; + + +$IFILE = "filehandle"; +$OFILE = "filehandle"; + +sub Usage() +{ + print STDERR "Usage: xml-gen -p -i -o \n"; +} + +sub calc_sfx_prop +{ + my $name = shift; + my $hdd = shift; + my $sid = shift; + printf OFILE "\n"; + printf OFILE " \n"; + printf OFILE " \n", $hdd; + printf OFILE " \n"; + printf OFILE " \n", + $sid; + printf OFILE " \n"; + printf OFILE " \n", + $sid; + printf OFILE " \n"; + printf OFILE " \n", + $sid; + printf OFILE " \n"; + printf OFILE " \n", + $sid; + printf OFILE " \n"; + printf OFILE " \n", + $sid; + printf OFILE " \n"; + printf OFILE " \n", + $sid; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE "\n"; +} + +sub calc_nodes +{ + my @pci0=(0, 0, 0, 0x3c, 0x3c, 0x3c); + my @pci1=(0x377, 0x375, 0x376, 0x377, 0x375, 0x376); + my @pci2=(0xa, 0xb, 0xf, 0xa, 0xb, 0xf); + + for ($bay = 0; $bay < $sys_supported->{"num_bays"}; $bay++) { + + $controller = $bay / 8; + $target = $bay % 8 ; + $sid = 90 + $bay; + + $physdev = "/pci\@" . sprintf("%x", $pci0[$controller]) . + ",0/pci10de," . sprintf("%x", $pci1[$controller]) . + "\@" . sprintf("%x", $pci2[$controller]) . + "/pci1000,1000\@0"; + + printf OFILE "\n"; + printf OFILE " \n", $bay; + printf OFILE "\n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n", $bay; + printf OFILE " \n"; + + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + + calc_sfx_prop($sys_supported->{"prop_name"}, $bay, $sid); + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE " \n"; + printf OFILE "\n"; + printf OFILE " \n"; + printf OFILE "\n"; + } +} + +$ok = getopts("p:i:o:h", \%options); +if ($options{'h'}) { + Usage(); + exit (1); +} + +$platform = $options{'p'}; +$input_file = $options{'i'}; +$output_file = $options{'o'}; + +if (!$platform || !$input_file || !$output_file) { + Usage(); + exit (1); +} + +open(IFILE, "< $input_file") || die("$input_file cannot be opened."); +open(OFILE, "> $output_file") || die("$output_file cannot be opened."); +while ($line = ) { + chomp($line); + if ($line ne "") { + print OFILE "$line\n"; + } else { + last; + } +} +print OFILE " \n"; +printf OFILE " \n", $sys_supported->{"num_bays"}; +calc_nodes(0); + +printf OFILE " \n"; +printf OFILE " \n"; +printf OFILE " \n"; +printf OFILE " \n"; +printf OFILE " \n"; +printf OFILE "\n"; +printf OFILE " \n"; +print OFILE "$line\n"; +while ($line = ) { + print OFILE $line; +} + +close OFILE; +close IFILE; diff --git a/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4550/Makefile b/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4550/Makefile deleted file mode 100644 index 419422abe4..0000000000 --- a/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4550/Makefile +++ /dev/null @@ -1,41 +0,0 @@ -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -#pragma ident "%Z%%M% %I% %E% SMI" - -# NOTE: The name of the xml file we are building is 'platform' -# specific, but its build is structured as 'arch' specific since -# 'uname -i' on all x86 platforms returns i86pc. - -ARCH = i86pc -CLASS = arch -DTDFILE = -TOPOFILE = Sun-Fire-X4550-hc-topology.xml -SRCDIR = ../SUNW,Sun-Fire-X4550 - -PLATFORM = Sun-Fire-X4550 -TOPOBASE = ../i86pc/i86pc-hc-topology.xml - -include ../Makefile.map diff --git a/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4550/Sun-Fire-X4550-hc-topology.xmlgen b/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4550/Sun-Fire-X4550-hc-topology.xmlgen deleted file mode 100644 index 0b14c3e2eb..0000000000 --- a/usr/src/lib/fm/topo/maps/SUNW,Sun-Fire-X4550/Sun-Fire-X4550-hc-topology.xmlgen +++ /dev/null @@ -1,221 +0,0 @@ -#!/usr/local/bin/perl -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -#ident "%Z%%M% %I% %E% SMI" -# - -use Getopt::Std; - - -my $sys_supported = {"name" => "Sun-Fire-X4550", - "prop_name" => "sfx4500", - "num_bays" => "48"}; - - -$IFILE = "filehandle"; -$OFILE = "filehandle"; - -sub Usage() -{ - print STDERR "Usage: xml-gen -p -i -o \n"; -} - -sub calc_sfx_prop -{ - my $name = shift; - my $hdd = shift; - my $sid = shift; - printf OFILE "\n"; - printf OFILE " \n"; - printf OFILE " \n", $hdd; - printf OFILE " \n"; - printf OFILE " \n", - $sid; - printf OFILE " \n"; - printf OFILE " \n", - $sid; - printf OFILE " \n"; - printf OFILE " \n", - $sid; - printf OFILE " \n"; - printf OFILE " \n", - $sid; - printf OFILE " \n"; - printf OFILE " \n", - $sid; - printf OFILE " \n"; - printf OFILE " \n", - $sid; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE "\n"; -} - -sub calc_nodes -{ - my @pci0=(0, 0, 0, 39, 39, 39); - my @pci1=(0x377, 0x375, 0x376, 0x377, 0x375, 0x376); - my @pci2=(0xa, 0xb, 0xf, 0xa, 0xb, 0xf); - - for ($bay = 0; $bay < $sys_supported->{"num_bays"}; $bay++) { - - $controller = $bay / 8; - $target = $bay % 8 ; - $sid = 90 + $bay; - - $physdev = "/pci\@" . $pci0[$controller] . - ",0/pci10de," . sprintf("%x", $pci1[$controller]) . - "\@" . sprintf("%x", $pci2[$controller]) . - "/pci1000,1000\@0"; - - printf OFILE "\n"; - printf OFILE " \n", $bay; - printf OFILE "\n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n", $bay; - printf OFILE " \n"; - - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - - calc_sfx_prop($sys_supported->{"prop_name"}, $bay, $sid); - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE " \n"; - printf OFILE "\n"; - printf OFILE " \n"; - printf OFILE "\n"; - } -} - -$ok = getopts("p:i:o:h", \%options); -if ($options{'h'}) { - Usage(); - exit (1); -} - -$platform = $options{'p'}; -$input_file = $options{'i'}; -$output_file = $options{'o'}; - -if (!$platform || !$input_file || !$output_file) { - Usage(); - exit (1); -} - -open(IFILE, "< $input_file") || die("$input_file cannot be opened."); -open(OFILE, "> $output_file") || die("$output_file cannot be opened."); -while ($line = ) { - chomp($line); - if ($line ne "") { - print OFILE "$line\n"; - } else { - last; - } -} -print OFILE " \n"; -printf OFILE " \n", $sys_supported->{"num_bays"}; -calc_nodes(0); - -printf OFILE " \n"; -printf OFILE " \n"; -printf OFILE " \n"; -printf OFILE " \n"; -printf OFILE " \n"; -printf OFILE "\n"; -printf OFILE " \n"; -print OFILE "$line\n"; -while ($line = ) { - print OFILE $line; -} - -close OFILE; -close IFILE; diff --git a/usr/src/pkgdefs/SUNWfmd/prototype_i386 b/usr/src/pkgdefs/SUNWfmd/prototype_i386 index 7b69e66133..e4fb72787c 100644 --- a/usr/src/pkgdefs/SUNWfmd/prototype_i386 +++ b/usr/src/pkgdefs/SUNWfmd/prototype_i386 @@ -84,4 +84,4 @@ d none usr/platform/i86pc/lib/fm/topo/maps 755 root bin f none usr/platform/i86pc/lib/fm/topo/maps/chip-hc-topology.xml 444 root bin f none usr/platform/i86pc/lib/fm/topo/maps/i86pc-hc-topology.xml 444 root bin f none usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4500-hc-topology.xml 444 root bin -f none usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4550-hc-topology.xml 444 root bin +f none usr/platform/i86pc/lib/fm/topo/maps/Sun-Fire-X4540-hc-topology.xml 444 root bin -- cgit v1.2.3