DragonFly BSD

CVS log for src/sys/dev/netif/re/if_rereg.h

[BACK] Up to [DragonFly] / src / sys / dev / netif / re

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Oct 19 06:00:24 2008 UTC (6 years ago) by sephe
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1 -0 lines
- In re_stop(), call re_reset(), which is supposed to stop TX/RX engines.
- In re_reset(), don't touch 0x82 (a magic CSR), which seems to be 8110/8169
  specific.  Write 1 to it on attach path.
  According-to: RealTek r8169-6.007.00
- For certain chips (looks like all MAC2 chips), RE_CMD_RESET will not stop
  TX/RX engines, a seperate command (RE_CMD_STOPREQ) must be issued before
  RE_CMD_RESET.
  According-to: RealTek r8168-8.008.00

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Oct 16 12:29:13 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +11 -6 lines
Add hardware csum offload support for MAC style 2 chips, which include
8102E, 8102EL, 8168C, 8168CP and 8168D.

Obtained-from: RealTek r8101-1.009.00 r8168-8.008.00


Add RE_C_AUTOPAD capability to indicate hardware could correctly pad
short ether frames.  Turn it on for newer version of 8168B (0x38000000
and 0xb8000000) and MAC style 2 chips; manually padding short UDP packets
for newer version 8168B will result in incorrect UDP csum, while manually
padding short ICMP packets for MAC style 2 chips will result in both
incorrect IP header csum and incorrect IP length (o_O)

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Oct 14 15:11:38 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +0 -1 lines
- Adjust PCI latency timer on all types of chips
- Adjust PCI cache line size for 8110/8169 chips
- For certain revision of 8101E, reading MAC address from IDRx may not
  work; read from EEPROM instead
- Add comment that adjusting config1 and config5 may cause unrecoverible
  disaster

Obtained-from: RealTek Linux drivers

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Oct 14 10:42:35 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +1 -1 lines
0x28000000 is 8168D according to Realtek r8168-8.008.00 driver

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Oct 13 13:04:41 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +1 -0 lines
Bring in some PCI register settings from RealTek BSD driver v176.  Disable
the PCI register configuration for "style 2 MAC", add comment about it.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Oct 12 10:19:31 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +16 -9 lines
- Nuke re_type, add RE_C_8139CP to indicate the chip is 8139C+
- Change hardware revision mask from 0x7cc00000 to 0xfc800000
  Obtained-from: Realtek BSD driver v176
- Convert MAC mode to MAC version and save MAC version in softc
  Obtained-from: Realtek BSD driver v176
- Add hardware revision 0x34800000(8102E) and 0x28000000(chip name is unknown)
  Obtained-from: Realtek BSD driver v176

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Oct 9 14:30:48 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4 lines
Rename some HWREV

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Oct 9 12:41:02 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +10 -1 lines
Use hardware timer to simulate interrupt moderation.  Old devices will no
longer be livelocked when they are receiving on GigE line.  Newer devices
also gain well controlled interrupt rate.

If hardware supports interrupt moderation (e.g. 8168B, 8168C), you could
also use hardware based interrupt moderation, however, due to lack of
necessary information it does not work as reliably as simulated interrupt
moderation.  It is _not_ recommended currently.

By default, PCI-E devices' simulated interrupt moderation timer is set to
75us, while PCI devices' is set to 125us.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Oct 8 13:09:22 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
LINKCHG interrupt is still needed

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Oct 7 11:39:36 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +8 -10 lines
- Nuke interrupt bits definition which don't apply to 8169
- Don't test TX desc unavailable bit in re_intr, since it is never enabled

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Oct 6 14:22:32 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -0 lines
Add RX interrupt moderation suport for PCI-E GigaE chips.

Interrupt moderation register position is obtained from Realtek's
BSD driver v176.
The meaning of the IM register bits is partially reverse engineered:
RX timer position and unit.

This kind of interrupt moderation does not work on PCI GigaE chips.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Oct 5 06:15:36 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +10 -1 lines
Get bus clock, which will be used to fix broken TCTR setting (hardware timer,
interrupt moderation related)

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Oct 5 01:53:41 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +0 -21 lines
Move some macros from if_rereg.h to if_revar.h; regroup them

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Oct 4 10:36:21 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -1 lines
- For relative newer parts (8168B), setting MTPS (max transmit packet size)
  according to MTU makes jumbo frame + TX csum offloading work.  However,
  for old ones (8169), setting MTPS does not have much effect.
- Reduce max jumbo frame size from 9018 to 7440 (according to DS)
- Fix MTU setting in re_ioctl

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Sep 29 20:27:38 2008 UTC (6 years, 1 month ago) by dillon
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -0 lines
Add support for "RealTek 8102EL PCIe 10/100baseTX".  Checksum support
doesn't work yet for this card so disable hardware checksumming.

Submitted-by: "Mitja Horvat" <pinkfluid@gmail.com>

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Apr 27 15:10:37 2008 UTC (6 years, 6 months ago) by sephe
Branches: MAIN
CVS tags: DragonFly_RELEASE_2_0_Slip, DragonFly_RELEASE_2_0, DragonFly_Preview
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -0 lines
Add basic support for 8111C; hardware checksum offload does not seems to work
on 8111C yet.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Aug 10 03:48:02 2007 UTC (7 years, 2 months ago) by dillon
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_12_Slip, DragonFly_RELEASE_1_12
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -0 lines
Add support for a new revision of the RealTek 8168B/8111B called SPIN3.

Requested-by: d.den.brok@uni-bonn.de (Dennis den Brok)

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Nov 14 13:35:49 2006 UTC (7 years, 11 months ago) by sephe
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_8_Slip, DragonFly_RELEASE_1_8, DragonFly_RELEASE_1_10_Slip, DragonFly_RELEASE_1_10
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +20 -136 lines
Sync re(4) with FreeBSD:
- Add support for RealTek 8169SC/8110SC and RTL8101E devices.  The latter
  is a PCIe 10/100 chip.
- Add support for RealTek RTL8168(B?)
- Fix EEPROM reading code
- Disable diagnostic code in re_attach() by default.  It is almost useless
  and has caused much trouble.
- Manually padding small IP datagrams to work arround hardware checksum
  offload bug [1].  Enable IP/TCP/UDP checksum offload after this fix.
- Work arround hardware TX bug in some PCIe re(4) devices:
  The TX command, which is issued when there is transmission in progress,
  will get lost [2].
  So at the end of re_txeof(), if there are still packets sitting in the
  TX ring, we kick the TX engine again.
- Add a sysctl hw.reX.tx_moderation to turn on/off TX moderation.  It is
  on by default.
- Move softc related structs from if_rereg.h into newly created if_revar.h

Thank Bill Paul (wpaul@freebsd.org) and many other people for their work
on this driver.

#
# [1] Detailed description of this bug is at:
#     FreeBSD dev/re/if_re.c rev1.70 by wpaul@freebsd.org
#
# [2] Detailed description of this bug is at:
#     FreeBSD dev/re/if_re.c rev1.71 by wpaul@freebsd.org
#

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Oct 16 14:15:51 2006 UTC (8 years ago) by sephe
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -0 lines
Add support for Linksys EG1032 rev.3 GigE

Obtained-from: FreeBSD (jhb@freebsd.org)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Aug 1 18:07:12 2006 UTC (8 years, 3 months ago) by swildner
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +0 -131 lines
Use pcidevs.h.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Dec 4 18:07:49 2005 UTC (8 years, 10 months ago) by dillon
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_6_Slip, DragonFly_RELEASE_1_6, DragonFly_RELEASE_1_4_Slip, DragonFly_RELEASE_1_4
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -0 lines
Add support for DLink 528(T) Gigabit cards.

Submitted-by: Gary Allan <dragonfly@gallan.plus.com>
Taken-from: FreeBSD

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Aug 2 13:35:02 2004 UTC (10 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: DragonFly_Stable, DragonFly_Snap29Sep2004, DragonFly_Snap13Sep2004, DragonFly_RELEASE_1_2_Slip, DragonFly_RELEASE_1_2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +0 -0 lines
Forced commit to annotate the (unrelated) changes from the last commit.

RealTek doesn't seem to support memory-mapped IO for re(4), the card
generates an interrupt storm under pretty low load. Therefore change
re(4) to the slower port-mapped IO.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Aug 2 13:22:32 2004 UTC (10 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -0 lines
Change (almost) all references to tqh_first and tqe_next and tqe_prev
to the correct TAILQ macros. Exceptions are contrib/ipfilter, which will
be handled separately, and dev/misc/labpc, which makes some very wiered
things and therefore needs much more care.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Jul 7 09:47:27 2004 UTC (10 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: DragonFly_1_0_REL, DragonFly_1_0A_REL
Add re(4) as kernel module. After some feedback, this will be added to the
GENERIC.

Obtained-from: FreeBSD

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options