xref: /freebsd/share/man/man4/jme.4 (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1.\" Copyright (c) 2008 Pyun YongHyeon
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\"
13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD$
26.\"
27.Dd March 4, 2012
28.Dt JME 4
29.Os
30.Sh NAME
31.Nm jme
32.Nd JMicron Gigabit/Fast Ethernet driver
33.Sh SYNOPSIS
34To compile this driver into the kernel,
35place the following lines in your
36kernel configuration file:
37.Bd -ragged -offset indent
38.Cd "device miibus"
39.Cd "device jme"
40.Ed
41.Pp
42Alternatively, to load the driver as a
43module at boot time, place the following line in
44.Xr loader.conf 5 :
45.Bd -literal -offset indent
46if_jme_load="YES"
47.Ed
48.Sh DESCRIPTION
49The
50.Nm
51device driver provides support for JMicron JMC25x PCI Express
52Gigabit Ethernet controllers and JMicron JMC26x PCI Express Fast
53Ethernet controllers.
54.Pp
55All LOMs supported by the
56.Nm
57driver have TCP/UDP/IP checksum offload for both transmit and receive,
58TCP segmentation offload (TSO), hardware VLAN tag stripping/insertion
59features, Wake On Lan (WOL) and an interrupt coalescing/moderation
60mechanism as well as a 64-bit multicast hash filter.
61.Pp
62The JMC25x also supports Jumbo Frames (up to 9216 bytes), which can be
63configured via the interface MTU setting.
64Selecting an MTU larger than 1500 bytes with the
65.Xr ifconfig 8
66utility configures the adapter to receive and transmit Jumbo Frames.
67.Pp
68The
69.Nm
70driver supports the following media types:
71.Bl -tag -width ".Cm 10baseT/UTP"
72.It Cm autoselect
73Enable autoselection of the media type and options.
74The user can manually override
75the autoselected mode by adding media options to
76.Xr rc.conf 5 .
77.It Cm 10baseT/UTP
78Set 10Mbps operation.
79.It Cm 100baseTX
80Set 100Mbps (Fast Ethernet) operation.
81.It Cm 1000baseTX
82Set 1000baseTX operation over twisted pair.
83.El
84.Pp
85The
86.Nm
87driver supports the following media options:
88.Bl -tag -width ".Cm full-duplex"
89.It Cm full-duplex
90Force full duplex operation.
91.It Cm half-duplex
92Force half duplex operation.
93.El
94.Pp
95For more information on configuring this device, see
96.Xr ifconfig 8 .
97.Sh HARDWARE
98The
99.Nm
100device driver provides support for the following Ethernet controllers:
101.Pp
102.Bl -bullet -compact
103.It
104JMicron JMC250 PCI Express Gigabit Ethernet controller
105.It
106JMicron JMC251 PCI Express Gigabit Ethernet with Card Read Host controller
107.It
108JMicron JMC260 PCI Express Fast Ethernet controller
109.It
110JMicron JMC261 PCI Express Gigabit Ethernet with Card Read Host controller
111.El
112.Sh LOADER TUNABLES
113Tunables can be set at the
114.Xr loader 8
115prompt before booting the kernel or stored in
116.Xr loader.conf 5 .
117.Bl -tag -width "xxxxxx"
118.It Va hw.jme.msi_disable
119This tunable disables MSI support on the Ethernet hardware.
120The default value is 0.
121.It Va hw.jme.msix_disable
122This tunable disables MSI-X support on the Ethernet hardware.
123The default value is 0.
124.El
125.Sh SYSCTL VARIABLES
126The following variables are available as both
127.Xr sysctl 8
128variables and
129.Xr loader 8
130tunables:
131.Bl -tag -width "xxxxxx"
132.It Va dev.jme.%d.tx_coal_to
133This variable sets the maximum amount of time to delay
134before sending a Tx completion interrupt, in microseconds.
135The accepted range is 1 to 65535; the default is 100 (100us).
136.It Va dev.jme.%d.tx_coal_pkt
137This variable sets the maximum number of outgoing packets which may be
138coalesced together into a single Tx completion interrupt.
139The accepted range is 1 to 255; the default is 8.
140.It Va dev.jme.%d.rx_coal_to
141This variable sets the maximum amount of time to wait for
142additional packets to arrive (for possible packet coalescing)
143before firing an Rx completion interrupt, in microseconds.
144The accepted range is 1 to 65535; the default is 100 (100us).
145.It Va dev.jme.%d.rx_coal_pkt
146This variable sets the maximum number of incoming packets which may be
147coalesced into a single Rx completion interrupt.
148The accepted range is 1 to 255; the default is 2.
149.It Va dev.jme.%d.process_limit
150This variable sets the maximum number of events that will be processed
151in a single batch before the handler is requeued into a taskqueue.
152The accepted range is 10 to 255; the default value is 128 events.
153The interface does not need to be brought down and up again before
154a change takes effect.
155.El
156.Sh SEE ALSO
157.Xr altq 4 ,
158.Xr arp 4 ,
159.Xr miibus 4 ,
160.Xr netintro 4 ,
161.Xr ng_ether 4 ,
162.Xr vlan 4 ,
163.Xr ifconfig 8
164.Sh HISTORY
165The
166.Nm
167driver was written by
168.An Pyun YongHyeon Aq Mt yongari@FreeBSD.org .
169It first appeared in
170.Fx 7.1 .
171.Sh CAVEATS
172The
173.Nm
174driver tries to avoid unnecessary station address reprogramming for
175controllers that use eFuse to store station address.
176The number of times that eFuse can be safely reprogrammed is 16 at
177most.
178In addition, there is no way to restore the factory default station
179address once the station address has been reprogrammed via eFuse.
180It is highly recommended not to reprogram the station address and
181it is the responsibility of the administrator to store the original station
182address in a safe place when station address is changed.
183.Pp
184There are two known 1000baseT link establishment issues with JMC25x.
185If the full mask revision number of JMC25x controller is less than
186or equal to 4 and the link partner enabled the IEEE 802.3az Energy Efficient
187Ethernet feature,  the controller will not be able to establish a
1881000baseT link.
189Also, if the length of the cable is longer than 120 meters, the controller
190can not establish a 1000baseT link.
191The known workaround for these issues is to force manual link
192configuration with 100baseTX instead of relying on auto-negotiation.
193The full mask revision number of controller can be checked with the
194verbose kernel boot option.
195Use the lower nibble of the chip revision number to get the
196full mask revision of the controller.
197