History log of /freebsd/sys/dev/re/if_re.c (Results 226 – 250 of 555)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# c2d2e19c 09-Feb-2009 Pyun YongHyeon <yongari@FreeBSD.org>

Reclaim transmitted frames in re_tick(). This is for PCIe
controllers that lose Tx completion interrupts under certain
conditions. With this change it's safe to use MSI on PCIe
controllers so enable

Reclaim transmitted frames in re_tick(). This is for PCIe
controllers that lose Tx completion interrupts under certain
conditions. With this change it's safe to use MSI on PCIe
controllers so enable MSI on these controllers.

show more ...


# 566ca8ca 20-Jan-2009 Jung-uk Kim <jkim@FreeBSD.org>

- Add support for 8110SCe part. Some magic registers were taken from
Linux driver.
- Swap hardware revisions for 8110S and 8169S as Linux driver claims.

Reviewed by: yongari (early version)


# aaab4fbe 20-Jan-2009 Jung-uk Kim <jkim@FreeBSD.org>

Retire RL_FLAG_INVMAR bit to match its comment and reality.


# ff191365 20-Jan-2009 Jung-uk Kim <jkim@FreeBSD.org>

- Do not read and write RX configuration register multiple times.
- Always program RX configuration register from scratch instead of
doing read/modify/write.
- Rename re_setmulti() to re_set_rxmode()

- Do not read and write RX configuration register multiple times.
- Always program RX configuration register from scratch instead of
doing read/modify/write.
- Rename re_setmulti() to re_set_rxmode() to be reflect reality.
- Simplify hash filter logic a little while I am here.

Reviewed by: yongari (early version)

show more ...


# 96b774f4 19-Jan-2009 Pyun YongHyeon <yongari@FreeBSD.org>

Sometimes RTL8168B seems to take long time to access GMII registers
in device attach phase. Double GMII register access timeout value
to fix the issue.

Reported by: wkoszek
Tested by: wkoszek


Revision tags: release/7.1.0_cvs, release/7.1.0
# 0fe200d9 22-Dec-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Since we don't request reset for rlphy(4), the link state 'UP'
event from mii(4) may not be delivered if valid link was already
established. To address the issue, check current link state after
drivi

Since we don't request reset for rlphy(4), the link state 'UP'
event from mii(4) may not be delivered if valid link was already
established. To address the issue, check current link state after
driving MII_TICK. This should fix a regression introduced in
r185753 on fast ethernet controllers.

Reported by: csjp, Bruce Cran < bruce <> cran DOT org DOT uk >
Tested by: csjp, Bruce Cran (initial version)

show more ...


# 41fe50f5 20-Dec-2008 Sam Leffler <sam@FreeBSD.org>

MFH @ 186335


# 818951af 17-Dec-2008 Pyun YongHyeon <yongari@FreeBSD.org>

It seems that RealTek PCIe controllers require an explicit Tx poll
command whenever Tx completion interrupt is raised. The Tx poll
bit is cleared when all packets waiting to be transferred have been

It seems that RealTek PCIe controllers require an explicit Tx poll
command whenever Tx completion interrupt is raised. The Tx poll
bit is cleared when all packets waiting to be transferred have been
processed. This means the second Tx poll command can be silently
ignored as the Tx poll bit could be still active while processing
of previous Tx poll command is in progress.
To address the issue re(4) used to invoke the Tx poll command in Tx
completion handler whenever it detects there are pending packets in
TxQ. However that still does not seem to completely eliminate
watchdog timeouts seen on RealTek PCIe controllers. To fix the
issue kick Tx poll command only after Tx completion interrupt is
raised as this would indicate Tx is now idle state such that it can
accept new Tx poll command again. While here apply this workaround
for PCIe based controllers as other controllers does not seem to
have this limitation.

Tested by: Victor Balada Diaz < victor <> bsdes DOT net >

show more ...


# 61f45a72 17-Dec-2008 Pyun YongHyeon <yongari@FreeBSD.org>

For RTL8168C SPIN2 controllers, make sure to take the controller
out of sleep mode prior to accessing to PHY. This should fix device
attach failure seen on these controllers. Also enable the sleep
mo

For RTL8168C SPIN2 controllers, make sure to take the controller
out of sleep mode prior to accessing to PHY. This should fix device
attach failure seen on these controllers. Also enable the sleep
mode when device is put into sleep state.

PR: kern/123123, kern/123053

show more ...


# 886ff602 11-Dec-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Make WOL work on RTL8168B. This controller seems to require
explicit command to enable Rx MAC prior to entering D3.

Tested by: Cyrus Rahman <crahman <> gmail DOT com>


# 0596d7e6 11-Dec-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Don't access undocumented register 0x82 on controllers that
have no such register. While here clear undocumented PHY
register 0x0B for RTL8110S.

Obtained from: RealTek FreeBSD driver


# ead8fc66 11-Dec-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Newer RealTek controllers requires setting stop request bit to
terminate active Tx/Rx operation.


# b659f1f0 11-Dec-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Always put controller into known state before device intialization.
While here remove re_reset calls invoked in system error case as
controller reset is always done in device initialization.


# f68bc089 11-Dec-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Partly revert r185756. RTL8169SC doesn't like reduced delays in
GMII access while Tx/Rx is in progress.

Reported by: Jaakko Heinonen <jh <> saunalahti DOT fi>,
Anton Yuzhaninov <citrin <> citrin D

Partly revert r185756. RTL8169SC doesn't like reduced delays in
GMII access while Tx/Rx is in progress.

Reported by: Jaakko Heinonen <jh <> saunalahti DOT fi>,
Anton Yuzhaninov <citrin <> citrin DOT ru>
Tested by: Jaakko Heinonen <jh <> saunalahti DOT fi>

show more ...


# b45fb248 08-Dec-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Reduce spin wait time consumed in GMII register access routines.
Waiting for 1ms for each GMII register access looks overkill and it
may also decrease overall performance of driver because re(4)
invo

Reduce spin wait time consumed in GMII register access routines.
Waiting for 1ms for each GMII register access looks overkill and it
may also decrease overall performance of driver because re(4)
invokes mii_tick for every hz.

Tested by: rpaulo

show more ...


# 130b6dfb 08-Dec-2008 Pyun YongHyeon <yongari@FreeBSD.org>

o Implemented miibus_statchg handler. It detects whether re(4)
established a valid link or not. In miibus_statchg handler add a
check for established link is valid one for the controller(e.g.
1

o Implemented miibus_statchg handler. It detects whether re(4)
established a valid link or not. In miibus_statchg handler add a
check for established link is valid one for the controller(e.g.
1000baseT is not a valid link for fastethernet controllers.)
o Added a flag RE_FLAG_FASTETHER to mark fastethernet controllers.
o Added additional check to know whether we've really encountered
watchdog timeouts or missed Tx completion interrupts. This change
may help to track down the cause of watchdog timeouts.
o In interrupt handler, removed a check for link state change
interrupt. Not all controllers have the bit and re(4) did not
rely on the event for a long time. In addition, re(4) didn't
request the interrupt in RL_IMR register.

Tested by: rpaulo

show more ...


# 6f0f9b12 08-Dec-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Make sure to return the result of meida change request.
Previously it used to return success regardless of the result.


# e57c2b13 04-Dec-2008 Dag-Erling Smørgrav <des@FreeBSD.org>

integrate from head@185615


# 59ef640d 02-Dec-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Add 8168D support.

Submitted by: Andrew < andrewwtulloch <> gmail DOT com >


Revision tags: release/6.4.0_cvs, release/6.4.0
# 97cf11ec 06-Sep-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Read ethernet address from ID registers for RTL8102E/RTL8102EL as
reading from EEPROM doesn't seem to work on these controllers.

Reported by: Milan Obuch ( freebsd-net at dino dot sk )
Tested by: Mi

Read ethernet address from ID registers for RTL8102E/RTL8102EL as
reading from EEPROM doesn't seem to work on these controllers.

Reported by: Milan Obuch ( freebsd-net at dino dot sk )
Tested by: Milan Obuch ( freebsd-net at dino dot sk )

show more ...


# bddff934 13-Aug-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Fix VLAN hardware tag insertion/stripping on big-endian
architectures.

Reported by: naddy
Tested on: sparc64
MFC after: 1 week


# 3d85c23d 04-Aug-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Rearrange conditional compilation directives. This makes syntax
highlighting work in vim.


# 3199b0c4 04-Aug-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Remove return keyword at the end of functions that return void.


# 0ce0868a 04-Aug-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Remove register keyword.


# 7b5ffebf 04-Aug-2008 Pyun YongHyeon <yongari@FreeBSD.org>

Use ANSI C declarations for all functions.


12345678910>>...23