10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 53907Szh199473# Common Development and Distribution License (the "License"). 63907Szh199473# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate######################################################################### 220Sstevel@tonic-gate# 236546Sgh162552# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 240Sstevel@tonic-gate# Use is subject to license terms. 250Sstevel@tonic-gate# 260Sstevel@tonic-gate# Driver.conf file for the BGE driver, for 270Sstevel@tonic-gate# Broadcom 579x Gigabit Ethernet devices 280Sstevel@tonic-gate# 290Sstevel@tonic-gate# All the properties below can be set globally (i.e. for all instances 300Sstevel@tonic-gate# of BGE), or on a per-instance basis. See driver.conf(4) for details 310Sstevel@tonic-gate# of the syntax of global and per-instance properties. 320Sstevel@tonic-gate# 330Sstevel@tonic-gate# Properties specified in this file take effect when the driver is first 340Sstevel@tonic-gate# loaded, typically just after system boot. Changes to the file will 350Sstevel@tonic-gate# therefore not take effect until the next reboot, but will be permanent 360Sstevel@tonic-gate# thereafter. 370Sstevel@tonic-gate# 380Sstevel@tonic-gate# Some of the driver's parameters can also be changed using ndd(1m). 390Sstevel@tonic-gate# Changes made with ndd apply only to a specific instance (e.g. bge1). 400Sstevel@tonic-gate# They take effect immediately, but are lost if the driver is unloaded. 410Sstevel@tonic-gate# 420Sstevel@tonic-gate######################################################################### 430Sstevel@tonic-gate# 440Sstevel@tonic-gate# The autonegotiation feature can be controlled by the boolean properties 450Sstevel@tonic-gate# listed below. 460Sstevel@tonic-gate# 470Sstevel@tonic-gate# Firstly, 'adv_autoneg_cap' controls whether autonegotiation is enabled. 480Sstevel@tonic-gate# 490Sstevel@tonic-gate# If autonegotiation is turned OFF ("forced mode"), the remaining 'adv_*' 500Sstevel@tonic-gate# speed/duplex properties force selection of a specific mode, namely, 510Sstevel@tonic-gate# the first mode found to be enabled, in highest-to-lowest speed order 520Sstevel@tonic-gate# (thus, if adv_1000fdx_cap=1, all other values will be ignored; to force 530Sstevel@tonic-gate# 10/hdx mode, *all* the faster modes must be explicitly disabled). 540Sstevel@tonic-gate# 550Sstevel@tonic-gate# BEWARE - it's very easy to end up with a non-working link using forced 560Sstevel@tonic-gate# mode. There's NO validation that the link partner actually supports 570Sstevel@tonic-gate# the mode that this device has been forced into. In some cases, this 580Sstevel@tonic-gate# will prevent the link coming up; in others, the link status will show 590Sstevel@tonic-gate# 'up' (electrical connection made) but data transfer will not work at 600Sstevel@tonic-gate# all, or will work poorly (low throughput, high collision rates, etc). 610Sstevel@tonic-gate# 620Sstevel@tonic-gate# Note that many switches *require* autonegotiation in order to operate 630Sstevel@tonic-gate# at 1000Mbps or in full-duplex mode or with flow control. In other words, 640Sstevel@tonic-gate# the only combinations that are likely to work with autonegotiation off 650Sstevel@tonic-gate# are 100Mbps/half-duplex and 10Mbps/half-duplex, unless the peer has also 660Sstevel@tonic-gate# been manually forced to some other (matching) combination. 670Sstevel@tonic-gate# 680Sstevel@tonic-gate# With autonegotiation ON (the default and preferred mode), the 'adv_*' 690Sstevel@tonic-gate# properties control which capabilities are advertised to the partner. 700Sstevel@tonic-gate# The default is to advertise all the capabilities that the hardware 710Sstevel@tonic-gate# supports; thus, the properties below serve only to limit the advertised 720Sstevel@tonic-gate# capabilities to restricted subset -- it is not possible to advertise a 730Sstevel@tonic-gate# capability that the hardware does not support. 740Sstevel@tonic-gate# 750Sstevel@tonic-gate# The autonegotiation process will then automagically select the fastest 760Sstevel@tonic-gate# speed/duplex mode and greatest degree of flow control supported by both 770Sstevel@tonic-gate# partners. 780Sstevel@tonic-gate# 790Sstevel@tonic-gate# If the local device is set to autonegotiate, but the link partner can't 800Sstevel@tonic-gate# or doesn't autonegotiate, the correct speed will be determined anyway, 810Sstevel@tonic-gate# and HALF-DUPLEX mode will be selected, as mandated by the IEEE802.3 820Sstevel@tonic-gate# standard. This will yield the correct result if the partner is in fact 830Sstevel@tonic-gate# incapable of autonegotiating: it must be a half-duplex device, because 840Sstevel@tonic-gate# the only devices that don't support autonegotation are half-duplex (the 850Sstevel@tonic-gate# standard says that all full-duplex-capable devices must also support 860Sstevel@tonic-gate# autonegotiation). 870Sstevel@tonic-gate# 880Sstevel@tonic-gate# However, this choice will NOT be correct if the peer is actually capable 890Sstevel@tonic-gate# of autonegotiation and full-duplex operation, and has been manually set 900Sstevel@tonic-gate# to "forced full-duplex without autonegotiation" (a mode not recommended 910Sstevel@tonic-gate# by the IEEE standard). The link will appear to work, but the duplex 920Sstevel@tonic-gate# mismatch will result in packet loss and spurious "late collisions". In 930Sstevel@tonic-gate# such cases, the preferred solution is to enable autonegotiation by the 940Sstevel@tonic-gate# peer. Failing that, autonegotiation by the BGE device can be disabled, 950Sstevel@tonic-gate# and forced mode used to match the peer's forced settings as above. 960Sstevel@tonic-gate# 970Sstevel@tonic-gate# adv_autoneg_cap = 1; 980Sstevel@tonic-gate# adv_1000fdx_cap = 1; 990Sstevel@tonic-gate# adv_1000hdx_cap = 1; 1000Sstevel@tonic-gate# adv_100T4_cap = 0; 1010Sstevel@tonic-gate# adv_100fdx_cap = 1; 1020Sstevel@tonic-gate# adv_100hdx_cap = 1; 1030Sstevel@tonic-gate# adv_10fdx_cap = 1; 1040Sstevel@tonic-gate# adv_10hdx_cap = 1; 1050Sstevel@tonic-gate# adv_asym_pause_cap = 0; 1066546Sgh162552# adv_pause_cap = 0; 1070Sstevel@tonic-gate# 1080Sstevel@tonic-gate# All of these parameters can can also be queried and modified at run-time 1090Sstevel@tonic-gate# by use of the ndd(1m) command. 1100Sstevel@tonic-gate# 1110Sstevel@tonic-gate######################################################################### 1120Sstevel@tonic-gate# 1130Sstevel@tonic-gate# OBP's device driver exports methods to set the link speed explicity, 1140Sstevel@tonic-gate# which then pass the information to the Solaris driver through the 1150Sstevel@tonic-gate# 'transfer-speed' property. It therefore SHOULDN'T be set here, but 1160Sstevel@tonic-gate# is documented for completeness. If the 'transfer-speed' property is 1170Sstevel@tonic-gate# set to 10, 100, or 1000, the link will be set to the selected speed, 1180Sstevel@tonic-gate# and autonegotiation ENABLED but restricted to the specified speed. 1190Sstevel@tonic-gate# The correct duplex setting will be determined by autonegotiation. 1200Sstevel@tonic-gate# 1210Sstevel@tonic-gate# This property, if set, overrides and alters the settings of the adv_* 1220Sstevel@tonic-gate# parameters corresponding to the properties above. 1230Sstevel@tonic-gate# 1240Sstevel@tonic-gate# transfer-speed = 1000; 1250Sstevel@tonic-gate# 1260Sstevel@tonic-gate######################################################################### 1270Sstevel@tonic-gate# 1280Sstevel@tonic-gate# As a third alternative, the following two properties can be set to 1290Sstevel@tonic-gate# force the link speed/duplex setting instead. Doing so will override 1300Sstevel@tonic-gate# and alter the settings of the adv_* parameters corresponding to the 1310Sstevel@tonic-gate# properties above, and take precedence over all other means of setting 1320Sstevel@tonic-gate# the speed/duplex at boot time. 1330Sstevel@tonic-gate# 1340Sstevel@tonic-gate# Autonegotiation will be DISABLED if EITHER of these properties is set, 1350Sstevel@tonic-gate# therefore BOTH properties should be set explicity if either one is. 1360Sstevel@tonic-gate# 'speed' may be set to 10, 100 or 1000, while 'full-duplex' may be 0 or 1. 1370Sstevel@tonic-gate# 1380Sstevel@tonic-gate# See the warning above about the potential for misconfiguration when 1390Sstevel@tonic-gate# autonegotiation is disabled. Defining these properties could leave your 1400Sstevel@tonic-gate# system configured so that the network will not work at all after reboot, 1410Sstevel@tonic-gate# requiring manual intervention and further reboots to recover! 1420Sstevel@tonic-gate# 1430Sstevel@tonic-gate# speed = 100; 1440Sstevel@tonic-gate# full-duplex = 0; 1450Sstevel@tonic-gate# 1460Sstevel@tonic-gate######################################################################### 1470Sstevel@tonic-gate# 1480Sstevel@tonic-gate# The property below represents the list of subsystem vendor/device pairs 1490Sstevel@tonic-gate# with which driver operation is supported. This list will be updated and 1500Sstevel@tonic-gate# extended as new subsystems are validated ... 1510Sstevel@tonic-gate# 1520Sstevel@tonic-gatebge-known-subsystems = 0x108e1647, 1530Sstevel@tonic-gate 0x108e1648, 1540Sstevel@tonic-gate 0x108e16a7, 1550Sstevel@tonic-gate 0x108e16a8, 1560Sstevel@tonic-gate 0x17c20010, 1570Sstevel@tonic-gate 0x17341013, 1580Sstevel@tonic-gate 0x101402a6, 1590Sstevel@tonic-gate 0x10f12885, 1600Sstevel@tonic-gate 0x17c20020, 1610Sstevel@tonic-gate 0x10b71006, 1620Sstevel@tonic-gate 0x10280109, 1638207SGordon.Ross@Sun.COM 0x102801f8, 1640Sstevel@tonic-gate 0x1028865d, 1650Sstevel@tonic-gate 0x0e11005a, 1663907Szh199473 0x0e1100cb, 1670Sstevel@tonic-gate 0x103c12bc; 1680Sstevel@tonic-gate######################################################################### 1690Sstevel@tonic-gate# 1700Sstevel@tonic-gate# The properties below represents the number of receive and send ring used. 1710Sstevel@tonic-gate# For BCM5705, BCM5782, etc, there are only 1 receive ring and 1 send ring. 1720Sstevel@tonic-gate# Otherwise, there can be up to 16 receive rings and 4 send rings. 1730Sstevel@tonic-gate# 174*8275SEric Chengbge-rx-rings = 16; 1750Sstevel@tonic-gatebge-tx-rings = 1; 1760Sstevel@tonic-gate 177