svn commit: r241391 - head/sys/dev/bge

2012-10-09 Thread Pyun YongHyeon
Author: yongari Date: Wed Oct 10 02:35:10 2012 New Revision: 241391 URL: http://svn.freebsd.org/changeset/base/241391 Log: Do not force PCIe 1.0a mode in device reset on BCM5717 and newer controllers. BCM5785 does not require PCI 1.0a mode as well during reset. Modified:

svn commit: r241393 - head/sys/dev/bge

2012-10-09 Thread Pyun YongHyeon
Author: yongari Date: Wed Oct 10 05:43:04 2012 New Revision: 241393 URL: http://svn.freebsd.org/changeset/base/241393 Log: Remove unnecessary delay. I don't see any comments in data sheet that requires 10ms delay after device reset. Because that code was there from day 1, I guess it was

svn commit: r241340 - head/sys/dev/ale

2012-10-08 Thread Pyun YongHyeon
Author: yongari Date: Mon Oct 8 07:01:07 2012 New Revision: 241340 URL: http://svn.freebsd.org/changeset/base/241340 Log: Fix typo. Check against number of allocated MSI-X vectors. There is no ale(4) controller that supports MSI-X so this is not real issue. PR: kern/171825

svn commit: r241341 - head/sys/dev/bge

2012-10-08 Thread Pyun YongHyeon
Author: yongari Date: Mon Oct 8 07:13:45 2012 New Revision: 241341 URL: http://svn.freebsd.org/changeset/base/241341 Log: Limit applying TX data corruption and FIFO workaround to BCM5719 A0. It's believed BCM5720 does not have the issue. Modified: head/sys/dev/bge/if_bge.c Modified:

svn commit: r241343 - head/sys/dev/bge

2012-10-08 Thread Pyun YongHyeon
Author: yongari Date: Mon Oct 8 07:33:43 2012 New Revision: 241343 URL: http://svn.freebsd.org/changeset/base/241343 Log: Rework device detach. While here, move driver lock/callout initialization to the beginning of device attach for readability. Modified: head/sys/dev/bge/if_bge.c

svn commit: r241219 - head/sys/dev/bge

2012-10-05 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 5 06:24:22 2012 New Revision: 241219 URL: http://svn.freebsd.org/changeset/base/241219 Log: Add 40 microseconds delay after updating EMAC Mode register as recommended by Broadcom data sheet. Modified: head/sys/dev/bge/if_bge.c Modified:

svn commit: r241220 - head/sys/dev/bge

2012-10-05 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 5 07:13:21 2012 New Revision: 241220 URL: http://svn.freebsd.org/changeset/base/241220 Log: Follow Broadcom datasheet: Delay 100 microseconds after enabling transmit MAC. Delay 10 microseconds after enabling receive MAC. Modified:

svn commit: r241215 - head/sys/dev/bge

2012-10-04 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 5 03:35:38 2012 New Revision: 241215 URL: http://svn.freebsd.org/changeset/base/241215 Log: Don't touch EMAC Mode and TX/RX MAC Mode register when driver is not running. Modified: head/sys/dev/bge/if_bge.c Modified: head/sys/dev/bge/if_bge.c

svn commit: r241216 - head/sys/dev/bge

2012-10-04 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 5 03:46:25 2012 New Revision: 241216 URL: http://svn.freebsd.org/changeset/base/241216 Log: APE firmware touches EMAC Mode and TX/RX MAC Mode registers to keep the MAC connected to the outside world. So keep the accesses atomic. Modified:

svn commit: r236701 - head/sys/dev/bge

2012-06-06 Thread Pyun YongHyeon
Author: yongari Date: Thu Jun 7 03:22:20 2012 New Revision: 236701 URL: http://svn.freebsd.org/changeset/base/236701 Log: Fix typo. Submitted by: Alexander Milanov a amilanov dot com Modified: head/sys/dev/bge/if_bgereg.h Modified: head/sys/dev/bge/if_bgereg.h

svn commit: r236371 - head/sys/dev/bge

2012-05-31 Thread Pyun YongHyeon
Author: yongari Date: Thu May 31 23:56:10 2012 New Revision: 236371 URL: http://svn.freebsd.org/changeset/base/236371 Log: Remove unnecessary device_printfs. Pointed out by: marius Modified: head/sys/dev/bge/if_bge.c Modified: head/sys/dev/bge/if_bge.c

svn commit: r235816 - head/sys/dev/bce

2012-05-22 Thread Pyun YongHyeon
Author: yongari Date: Wed May 23 01:20:25 2012 New Revision: 235816 URL: http://svn.freebsd.org/changeset/base/235816 Log: Make IPMI work in the bce driver even when the interface is configured down. Formerly, IPMI communication was lost whenever the interface was not up. The reason was

svn commit: r235821 - head/sys/dev/bge

2012-05-22 Thread Pyun YongHyeon
Author: yongari Date: Wed May 23 03:35:08 2012 New Revision: 235821 URL: http://svn.freebsd.org/changeset/base/235821 Log: Don't force max payload size to 128. Root complex and Endpoint will negotiate with each other on the TLP payload size so blindly forcing the size to 128 can cause a

svn commit: r235151 - head/sys/dev/bce

2012-05-08 Thread Pyun YongHyeon
Author: yongari Date: Wed May 9 01:55:23 2012 New Revision: 235151 URL: http://svn.freebsd.org/changeset/base/235151 Log: Implement basic remote PHY support. Remote PHY allows the controller to perform MDIO type accesses to a remote transceiver using message pages defined through

svn commit: r235119 - head/sys/dev/bce

2012-05-06 Thread Pyun YongHyeon
Author: yongari Date: Mon May 7 04:56:26 2012 New Revision: 235119 URL: http://svn.freebsd.org/changeset/base/235119 Log: Restore jumbo frame configuration which was broken in r218423. Submitted by: Andrey Zonov andrey zonov dot org (initial version) Tested by:Andrey Zonov andrey

svn commit: r234666 - head/sys/dev/msk

2012-04-24 Thread Pyun YongHyeon
Author: yongari Date: Wed Apr 25 02:46:13 2012 New Revision: 234666 URL: http://svn.freebsd.org/changeset/base/234666 Log: For Yukon II controllers that implement optional temperature sensor and voltage sensor, TWSI is used to get sensor data. msk(4) does not monitor these sensors and

svn commit: r234121 - head/sys/dev/bce

2012-04-11 Thread Pyun YongHyeon
Author: yongari Date: Wed Apr 11 06:34:25 2012 New Revision: 234121 URL: http://svn.freebsd.org/changeset/base/234121 Log: Back out r228476. r228476 fixed superfluous link UP/DOWN messages but broke IPMI access during boot. It's not clear why r228476 breaks IPMI and should be revisited.

svn commit: r233688 - head/sys/dev/ale

2012-03-29 Thread Pyun YongHyeon
Author: yongari Date: Fri Mar 30 04:46:39 2012 New Revision: 233688 URL: http://svn.freebsd.org/changeset/base/233688 Log: Remove task queue based link state change handler. Driver no longer needs to defer link state handling. While I'm here, mark IFF_DRV_RUNNING before changing media. If

svn commit: r233689 - head/sys/dev/ale

2012-03-29 Thread Pyun YongHyeon
Author: yongari Date: Fri Mar 30 05:27:05 2012 New Revision: 233689 URL: http://svn.freebsd.org/changeset/base/233689 Log: Do not report current link status if driver is not running. This change also workarounds dhclient's link state handling bug by not giving current link status.

svn commit: r233587 - head/sys/dev/fxp

2012-03-27 Thread Pyun YongHyeon
Author: yongari Date: Wed Mar 28 01:52:38 2012 New Revision: 233587 URL: http://svn.freebsd.org/changeset/base/233587 Log: Remove unnecessary #if as the software workaround for PCI protocol violation should be activated unless the system is cold-booted after updating EEPROM. The PCI

svn commit: r233158 - head/sys/dev/fxp

2012-03-18 Thread Pyun YongHyeon
Author: yongari Date: Mon Mar 19 02:10:40 2012 New Revision: 233158 URL: http://svn.freebsd.org/changeset/base/233158 Log: Do not change current media when driver is already running. If driver is running driver would have already completed flow control configuration. This change removes

svn commit: r232951 - head/sys/dev/fxp

2012-03-13 Thread Pyun YongHyeon
Author: yongari Date: Wed Mar 14 00:26:36 2012 New Revision: 232951 URL: http://svn.freebsd.org/changeset/base/232951 Log: fxp(4) does not handle deferred dma map loading. Tell bus_dmamap_load(9) that it should return immediately with error when there are insufficient mapping resources.

svn commit: r232953 - head/sys/dev/fxp

2012-03-13 Thread Pyun YongHyeon
Author: yongari Date: Wed Mar 14 00:54:37 2012 New Revision: 232953 URL: http://svn.freebsd.org/changeset/base/232953 Log: Fix white space nits. Modified: head/sys/dev/fxp/if_fxp.c Modified: head/sys/dev/fxp/if_fxp.c

svn commit: r232848 - head/sys/dev/bge

2012-03-11 Thread Pyun YongHyeon
Author: yongari Date: Mon Mar 12 02:09:47 2012 New Revision: 232848 URL: http://svn.freebsd.org/changeset/base/232848 Log: Add workaround for PCI-X BCM5704 controller that live behind AMD-8131 PCI-X bridge. The bridge seems to reorder write access to mailbox registers such that it caused

svn commit: r232849 - head/sys/dev/bge

2012-03-11 Thread Pyun YongHyeon
Author: yongari Date: Mon Mar 12 02:42:47 2012 New Revision: 232849 URL: http://svn.freebsd.org/changeset/base/232849 Log: Show PCI bus speed and width as well as running mode of PCI-X device in device attach. This would help to narrow down issue to a specific controller and operating mode

svn commit: r232850 - head/sys/dev/bge

2012-03-11 Thread Pyun YongHyeon
Author: yongari Date: Mon Mar 12 03:47:30 2012 New Revision: 232850 URL: http://svn.freebsd.org/changeset/base/232850 Log: Make if_ierrors updated whenever any of the following counters are updated. o Number of times NIC ran out of RX buffer descriptors o Number of inbound packet errors

svn commit: r232766 - head/sys/dev/bge

2012-03-09 Thread Pyun YongHyeon
Author: yongari Date: Sat Mar 10 06:12:14 2012 New Revision: 232766 URL: http://svn.freebsd.org/changeset/base/232766 Log: After r232403, DMA transactions does not cross 4GB boundary for all PCI devices. Remove driver workaround for 4GB boundary issue. Modified: head/sys/dev/bge/if_bge.c

svn commit: r232246 - in head/sys/dev: mii re

2012-02-27 Thread Pyun YongHyeon
Author: yongari Date: Tue Feb 28 05:23:29 2012 New Revision: 232246 URL: http://svn.freebsd.org/changeset/base/232246 Log: Prefer RL_GMEDIASTAT register to RGEPHY_MII_SSR register to extract a link status of PHY when parent driver is re(4). RGEPHY_MII_SSR register does not seem to report

svn commit: r232145 - in head/sys: dev/re pci

2012-02-24 Thread Pyun YongHyeon
Author: yongari Date: Sat Feb 25 04:54:51 2012 New Revision: 232145 URL: http://svn.freebsd.org/changeset/base/232145 Log: Use correct Config registers for RTL8139 family. Unlike RTL8168 and RTL810x family , RTL8139 has different register map for Config registers. While here, follow

svn commit: r232040 - head/sys/dev/sf

2012-02-23 Thread Pyun YongHyeon
Author: yongari Date: Thu Feb 23 08:22:44 2012 New Revision: 232040 URL: http://svn.freebsd.org/changeset/base/232040 Log: Add check for IFF_DRV_RUNNING flag after serving an interrupt and don't give RX path more priority than TX path. Also remove infinite loop in interrupt handler and

svn commit: r232015 - head/sys/dev/mii

2012-02-22 Thread Pyun YongHyeon
Author: yongari Date: Thu Feb 23 01:20:21 2012 New Revision: 232015 URL: http://svn.freebsd.org/changeset/base/232015 Log: Add Seeq Technology 80220 PHY support to smcphy(4). This PHY is found on Adaptec AIC-6915 Starfire ethernet controller. While here, use status register to know

svn commit: r232016 - head/sys/modules/mii

2012-02-22 Thread Pyun YongHyeon
Author: yongari Date: Thu Feb 23 01:22:40 2012 New Revision: 232016 URL: http://svn.freebsd.org/changeset/base/232016 Log: Connect smcphy(4) to mii module build. Modified: head/sys/modules/mii/Makefile Modified: head/sys/modules/mii/Makefile

svn commit: r232019 - head/sys/dev/sf

2012-02-22 Thread Pyun YongHyeon
Author: yongari Date: Thu Feb 23 05:10:00 2012 New Revision: 232019 URL: http://svn.freebsd.org/changeset/base/232019 Log: Give hardware chance to drain active DMA cycles. Modified: head/sys/dev/sf/if_sf.c Modified: head/sys/dev/sf/if_sf.c

svn commit: r232027 - head/sys/dev/sf

2012-02-22 Thread Pyun YongHyeon
Author: yongari Date: Thu Feb 23 05:25:14 2012 New Revision: 232027 URL: http://svn.freebsd.org/changeset/base/232027 Log: No need to reprogram hardware RX filter when driver is not running. Modified: head/sys/dev/sf/if_sf.c Modified: head/sys/dev/sf/if_sf.c

svn commit: r232029 - head/sys/dev/sf

2012-02-22 Thread Pyun YongHyeon
Author: yongari Date: Thu Feb 23 06:13:12 2012 New Revision: 232029 URL: http://svn.freebsd.org/changeset/base/232029 Log: Remove taskqueue based MII stat change handler. Driver does not need deferred link state change processing. While I'm here, do not report current link status if

svn commit: r232031 - head/sys/dev/sf

2012-02-22 Thread Pyun YongHyeon
Author: yongari Date: Thu Feb 23 06:35:18 2012 New Revision: 232031 URL: http://svn.freebsd.org/changeset/base/232031 Log: With r232015, sf(4) gets correct speed/duplex of established link. Add more strict speed check in sf_miibus_statchg() and do not touch MAC config registers when driver

svn commit: r231622 - head/sys/dev/re

2012-02-13 Thread Pyun YongHyeon
Author: yongari Date: Tue Feb 14 00:54:40 2012 New Revision: 231622 URL: http://svn.freebsd.org/changeset/base/231622 Log: For RTL8168/8111D controller, make sure to wake PHY from power down mode. Otherwise, PHY access times out under certain conditions. Modified: head/sys/dev/re/if_re.c

svn commit: r230336 - head/sys/dev/re

2012-01-19 Thread Pyun YongHyeon
Author: yongari Date: Thu Jan 19 20:13:16 2012 New Revision: 230336 URL: http://svn.freebsd.org/changeset/base/230336 Log: Fix a logic error which resulted in putting PHY into sleep when WOL is active. If WOL is active driver should not put PHY into sleep. This change makes WOL work on

svn commit: r230337 - head/sys/dev/bge

2012-01-19 Thread Pyun YongHyeon
Author: yongari Date: Thu Jan 19 20:21:59 2012 New Revision: 230337 URL: http://svn.freebsd.org/changeset/base/230337 Log: Rename dev.bge.%d.msi_disable to dev.bge.%d.msi which matches enable/disable and default it to on. Suggested by: jhb Modified: head/sys/dev/bge/if_bge.c

svn commit: r230338 - head/sys/dev/bge

2012-01-19 Thread Pyun YongHyeon
Author: yongari Date: Thu Jan 19 20:28:58 2012 New Revision: 230338 URL: http://svn.freebsd.org/changeset/base/230338 Log: Oops, fix logic error introduced in r230337. Modified: head/sys/dev/bge/if_bge.c Modified: head/sys/dev/bge/if_bge.c

svn commit: r230339 - head/share/man/man4

2012-01-19 Thread Pyun YongHyeon
Author: yongari Date: Thu Jan 19 20:31:29 2012 New Revision: 230339 URL: http://svn.freebsd.org/changeset/base/230339 Log: Reflect tunable name change made in r230337. Modified: head/share/man/man4/bge.4 Modified: head/share/man/man4/bge.4

svn commit: r230275 - head/sys/dev/re

2012-01-17 Thread Pyun YongHyeon
Author: yongari Date: Tue Jan 17 19:31:03 2012 New Revision: 230275 URL: http://svn.freebsd.org/changeset/base/230275 Log: Use a RX DMA tag to free loaded RX DMA maps. Previously it used a TX DMA tag. Modified: head/sys/dev/re/if_re.c Modified: head/sys/dev/re/if_re.c

svn commit: r230276 - head/sys/dev/re

2012-01-17 Thread Pyun YongHyeon
Author: yongari Date: Tue Jan 17 19:36:53 2012 New Revision: 230276 URL: http://svn.freebsd.org/changeset/base/230276 Log: Free allocated jumbo buffers when controller is stopped. Modified: head/sys/dev/re/if_re.c Modified: head/sys/dev/re/if_re.c

svn commit: r230286 - head/sys/dev/bge

2012-01-17 Thread Pyun YongHyeon
Author: yongari Date: Tue Jan 17 22:15:33 2012 New Revision: 230286 URL: http://svn.freebsd.org/changeset/base/230286 Log: Introduce a tunable that disables use of MSI. Non-zero value will use INTx. Modified: head/sys/dev/bge/if_bge.c head/sys/dev/bge/if_bgereg.h Modified:

svn commit: r229940 - head/sys/dev/et

2012-01-10 Thread Pyun YongHyeon
Author: yongari Date: Tue Jan 10 20:52:02 2012 New Revision: 229940 URL: http://svn.freebsd.org/changeset/base/229940 Log: style. No functional changes. Modified: head/sys/dev/et/if_et.c Modified: head/sys/dev/et/if_et.c

svn commit: r228967 - head/sys/net

2011-12-29 Thread Pyun YongHyeon
Author: yongari Date: Thu Dec 29 18:40:58 2011 New Revision: 228967 URL: http://svn.freebsd.org/changeset/base/228967 Log: Update if_obytes and if_omcast after successful transmit. While I'm here update if_oerrors if parent interface of vlan is not up and running. Previously it updated

svn commit: r228716 - head/sys/dev/fxp

2011-12-19 Thread Pyun YongHyeon
Author: yongari Date: Mon Dec 19 19:00:34 2011 New Revision: 228716 URL: http://svn.freebsd.org/changeset/base/228716 Log: TCP header size is represented by number of 32bits words. Fix the TCP header size calculation such that makes TSO engine cache all header(ethernet/IP/TCP) bytes to its

svn commit: r228717 - head/sys/dev/msk

2011-12-19 Thread Pyun YongHyeon
Author: yongari Date: Mon Dec 19 19:02:36 2011 New Revision: 228717 URL: http://svn.freebsd.org/changeset/base/228717 Log: Increase wait time for OP_TCPSTART command processing. It seems 100us is not enough to ensure prefetch unit work. Modified: head/sys/dev/msk/if_msk.c Modified:

svn commit: r228476 - head/sys/dev/bce

2011-12-13 Thread Pyun YongHyeon
Author: yongari Date: Tue Dec 13 18:11:25 2011 New Revision: 228476 URL: http://svn.freebsd.org/changeset/base/228476 Log: Rework link state tracking and remove superfluous link UP/DOWN messages. o Add check for actually resolved speed in miibus_statchg callback instead of blindly

svn commit: r228479 - head/sys/dev/bge

2011-12-13 Thread Pyun YongHyeon
Author: yongari Date: Tue Dec 13 20:26:46 2011 New Revision: 228479 URL: http://svn.freebsd.org/changeset/base/228479 Log: BCM5720 performance tweak from Broadcom. o Allow multiple outstanding read requests from non-LSO read DMA engine. o Allow 4KB burst length reads for non-LSO frames.

svn commit: r228480 - head/sys/dev/bge

2011-12-13 Thread Pyun YongHyeon
Author: yongari Date: Tue Dec 13 20:31:57 2011 New Revision: 228480 URL: http://svn.freebsd.org/changeset/base/228480 Log: Destroy DMA tag for jumbo RX buffer in device detach. Modified: head/sys/dev/bge/if_bge.c Modified: head/sys/dev/bge/if_bge.c

svn commit: r228362 - head/sys/dev/et

2011-12-09 Thread Pyun YongHyeon
Author: yongari Date: Fri Dec 9 18:17:02 2011 New Revision: 228362 URL: http://svn.freebsd.org/changeset/base/228362 Log: Do not disable interrupt without knowing whether the raised interrupt is ours. Note, interrupts are automatically ACKed when the status register is read. Add RX/TX

svn commit: r228368 - head/sys/dev/et

2011-12-09 Thread Pyun YongHyeon
Author: yongari Date: Fri Dec 9 18:34:45 2011 New Revision: 228368 URL: http://svn.freebsd.org/changeset/base/228368 Log: Remove unnecessary definition of ET_PCIR_BAR. Controller support I/O memory only. While here, use pci_set_max_read_req(9) rather than directly manipulating PCIe

svn commit: r228369 - head/sys/dev/et

2011-12-09 Thread Pyun YongHyeon
Author: yongari Date: Fri Dec 9 19:10:38 2011 New Revision: 228369 URL: http://svn.freebsd.org/changeset/base/228369 Log: Announce flow control ability to PHY driver and enable RX flow control. Controller does not automatically generate pause frames based on number of available RX buffers

svn commit: r228370 - head/share/man/man4

2011-12-09 Thread Pyun YongHyeon
Author: yongari Date: Fri Dec 9 19:17:51 2011 New Revision: 228370 URL: http://svn.freebsd.org/changeset/base/228370 Log: After r228293, et(4) supports altq(4). Modified: head/share/man/man4/altq.4 head/share/man/man4/et.4 Modified: head/share/man/man4/altq.4

svn commit: r228381 - head/sys/dev/et

2011-12-09 Thread Pyun YongHyeon
Author: yongari Date: Fri Dec 9 23:37:55 2011 New Revision: 228381 URL: http://svn.freebsd.org/changeset/base/228381 Log: FreeBSD driver does not require arpcom structure in softc. Modified: head/sys/dev/et/if_etvar.h Modified: head/sys/dev/et/if_etvar.h

svn commit: r228325 - head/sys/dev/et

2011-12-07 Thread Pyun YongHyeon
Author: yongari Date: Wed Dec 7 18:17:09 2011 New Revision: 228325 URL: http://svn.freebsd.org/changeset/base/228325 Log: Overhaul bus_dma(9) usage in et(4) and clean up TX/RX path. This change should make et(4) work on any architectures. o Remove m_getl inline function and replace it

svn commit: r228326 - head/sys/dev/et

2011-12-07 Thread Pyun YongHyeon
Author: yongari Date: Wed Dec 7 19:08:54 2011 New Revision: 228326 URL: http://svn.freebsd.org/changeset/base/228326 Log: Controller does not require TX start command for every frame. So send a single TX command after setting up all TX frames. This removes unnecessary register accesses

svn commit: r228327 - head/sys/dev/et

2011-12-07 Thread Pyun YongHyeon
Author: yongari Date: Wed Dec 7 19:43:04 2011 New Revision: 228327 URL: http://svn.freebsd.org/changeset/base/228327 Log: Remove et_enable_intrs(), et_disable_intrs() functions and manipulation of interrupt register access is done through CSR_WRITE_4 macro. Also add disabling interrupt

svn commit: r228331 - head/sys/dev/et

2011-12-07 Thread Pyun YongHyeon
Author: yongari Date: Wed Dec 7 21:29:51 2011 New Revision: 228331 URL: http://svn.freebsd.org/changeset/base/228331 Log: Rework link state tracking and TX/RX MAC configuration. o Do not report link status if driver is not running. o TX/RX MAC configuration should be done with resolved

svn commit: r228333 - head/sys/dev/et

2011-12-07 Thread Pyun YongHyeon
Author: yongari Date: Wed Dec 7 21:54:44 2011 New Revision: 228333 URL: http://svn.freebsd.org/changeset/base/228333 Log: Protect SIOCSIFMTU ioctl handler with driver lock. Don't blindly re-initialize controller whenever MTU is changed. Now, reinitializing is done only when driver is

svn commit: r228335 - head/sys/dev/et

2011-12-07 Thread Pyun YongHyeon
Author: yongari Date: Wed Dec 7 22:04:57 2011 New Revision: 228335 URL: http://svn.freebsd.org/changeset/base/228335 Log: Consistently use a tab character instead of using either a space or tab after #define. While I'm here consistently use capital letters when it uses hexadecimal

svn commit: r228336 - head/sys/dev/et

2011-12-07 Thread Pyun YongHyeon
Author: yongari Date: Wed Dec 7 23:20:14 2011 New Revision: 228336 URL: http://svn.freebsd.org/changeset/base/228336 Log: Disable all clocks and put PHY into COMA before entering into suspend state. This will save more power. On resume, make sure to enable all clocks. While I'm here, if

svn commit: r228286 - head/sys/dev/ed

2011-12-05 Thread Pyun YongHyeon
Author: yongari Date: Mon Dec 5 18:10:43 2011 New Revision: 228286 URL: http://svn.freebsd.org/changeset/base/228286 Log: Fix off by one error in mbuf access. Previously it caused panic. While I'm here use NULL to compare mbuf pointer and add additional check for zero length mbuf before

svn commit: r228291 - head/sys/dev/et

2011-12-05 Thread Pyun YongHyeon
Author: yongari Date: Mon Dec 5 22:09:07 2011 New Revision: 228291 URL: http://svn.freebsd.org/changeset/base/228291 Log: Remove NetBSD license. r199548 removed all bit macros that were derived from NetBSD. Modified: head/sys/dev/et/if_etreg.h Modified: head/sys/dev/et/if_etreg.h

svn commit: r228292 - head/sys/dev/et

2011-12-05 Thread Pyun YongHyeon
Author: yongari Date: Mon Dec 5 22:22:39 2011 New Revision: 228292 URL: http://svn.freebsd.org/changeset/base/228292 Log: Implement suspend/resume methods. Driver has no issue with suspend/resume. Modified: head/sys/dev/et/if_et.c Modified: head/sys/dev/et/if_et.c

svn commit: r228293 - head/sys/dev/et

2011-12-05 Thread Pyun YongHyeon
Author: yongari Date: Mon Dec 5 22:55:52 2011 New Revision: 228293 URL: http://svn.freebsd.org/changeset/base/228293 Log: Fix alt(4) support. Also add check for number of available TX descriptors before trying to send frames. If we're not able to send a frame, make sure to prepend it to

svn commit: r228297 - head/sys/dev/et

2011-12-05 Thread Pyun YongHyeon
Author: yongari Date: Tue Dec 6 00:18:37 2011 New Revision: 228297 URL: http://svn.freebsd.org/changeset/base/228297 Log: et(4) supports VLAN oversized frame so correctly set header length. While I'm here remove initializing if_mtu, it is set by ether_ifattach(9). Also move

svn commit: r228298 - head/sys/dev/et

2011-12-05 Thread Pyun YongHyeon
Author: yongari Date: Tue Dec 6 00:58:42 2011 New Revision: 228298 URL: http://svn.freebsd.org/changeset/base/228298 Log: Make et_probe() return BUS_PROBE_DEFAULT such that allow other driver that has high precedence for the controller override et(4). Add missing callout_drain(9) in device

svn commit: r228205 - head/share/man/man4

2011-12-02 Thread Pyun YongHyeon
Author: yongari Date: Fri Dec 2 19:01:26 2011 New Revision: 228205 URL: http://svn.freebsd.org/changeset/base/228205 Log: Add more controllers that support jumbo frame. Modified: head/share/man/man4/bge.4 Modified: head/share/man/man4/bge.4

svn commit: r228084 - head/sys/dev/vr

2011-11-28 Thread Pyun YongHyeon
Author: yongari Date: Mon Nov 28 18:32:35 2011 New Revision: 228084 URL: http://svn.freebsd.org/changeset/base/228084 Log: Reuse flag variable to represent driver internal states rather than using member variables in softc. While I'm here change media after setting IFF_DRV_RUNNING. This

svn commit: r228086 - head/sys/dev/vr

2011-11-28 Thread Pyun YongHyeon
Author: yongari Date: Mon Nov 28 19:03:59 2011 New Revision: 228086 URL: http://svn.freebsd.org/changeset/base/228086 Log: Announce flow control capability to PHY drivers and enable flow control for all vr(4) controllers that support it. It's known that old vr(4) controllers(Rhine II) does

svn commit: r227914 - in head/sys: dev/re pci

2011-11-23 Thread Pyun YongHyeon
Author: yongari Date: Wed Nov 23 22:07:13 2011 New Revision: 227914 URL: http://svn.freebsd.org/changeset/base/227914 Log: Make sure to stop TX MAC before freeing queued TX frames. For RTL8111DP, check if the TX MAC is active by reading RL_GTXSTART register. For

svn commit: r227916 - in head/sys: dev/re pci

2011-11-23 Thread Pyun YongHyeon
Author: yongari Date: Wed Nov 23 23:29:18 2011 New Revision: 227916 URL: http://svn.freebsd.org/changeset/base/227916 Log: To save more power, switch to 10/100Mbps link when controller is put into suspend/shutdown. Old PCI controllers performed that operation in firmware but for RTL8111C

svn commit: r227828 - head/sys/dev/vge

2011-11-22 Thread Pyun YongHyeon
Author: yongari Date: Tue Nov 22 18:58:39 2011 New Revision: 227828 URL: http://svn.freebsd.org/changeset/base/227828 Log: Always start MII auto polling before accessing any MII registers. Modified: head/sys/dev/vge/if_vge.c Modified: head/sys/dev/vge/if_vge.c

svn commit: r227837 - head/sys/dev/vge

2011-11-22 Thread Pyun YongHyeon
Author: yongari Date: Tue Nov 22 20:57:06 2011 New Revision: 227837 URL: http://svn.freebsd.org/changeset/base/227837 Log: Announce flow control capability to underlying PHY driver. Pause timer value is initialized to 0x. Controller allows just 4 different TX pause thresholds. The

svn commit: r227842 - head/sys/dev/mii

2011-11-22 Thread Pyun YongHyeon
Author: yongari Date: Tue Nov 22 21:22:06 2011 New Revision: 227842 URL: http://svn.freebsd.org/changeset/base/227842 Log: For IP1001 PHY, do not set multi-port device(MASTER). Ideally this bit should not affect link establishment process of auto-negotiation if manual configuration is not

svn commit: r227850 - head/sys/dev/re

2011-11-22 Thread Pyun YongHyeon
Author: yongari Date: Tue Nov 22 23:19:49 2011 New Revision: 227850 URL: http://svn.freebsd.org/changeset/base/227850 Log: Writing access to RL_CFG5 register also requires EEPROM write access. While I'm here, enable WOL through magic packet but disable waking up system via unicast,

svn commit: r227851 - head/sys/dev/re

2011-11-22 Thread Pyun YongHyeon
Author: yongari Date: Tue Nov 22 23:27:59 2011 New Revision: 227851 URL: http://svn.freebsd.org/changeset/base/227851 Log: Perform media change after setting IFF_DRV_RUNNING flag. Without it, driver would ignore the first link state update if controller already established a link such that

svn commit: r227854 - head/sys/dev/re

2011-11-22 Thread Pyun YongHyeon
Author: yongari Date: Wed Nov 23 02:08:05 2011 New Revision: 227854 URL: http://svn.freebsd.org/changeset/base/227854 Log: Disable accepting frames in re_stop() to put RX MAC into idle state. Because there is no reliable way to know whether RX MAC is in stopped state, rejecting all frames

svn commit: r227675 - head/sys/dev/dc

2011-11-18 Thread Pyun YongHyeon
Author: yongari Date: Fri Nov 18 19:38:19 2011 New Revision: 227675 URL: http://svn.freebsd.org/changeset/base/227675 Log: Partially revert r218788. r218788 removed calling dc_setcfg() for !DC_IS_ADMTEK in dc_miibus_statchg(). This change broke link establishment of Intel 21143 with

svn commit: r227638 - in head/sys: dev/re pci

2011-11-17 Thread Pyun YongHyeon
Author: yongari Date: Thu Nov 17 21:24:56 2011 New Revision: 227638 URL: http://svn.freebsd.org/changeset/base/227638 Log: Add preliminary support for second generation RTL8105E PCIe FastEthernet. H/W donated by: RealTek Semiconductor Corp. Modified: head/sys/dev/re/if_re.c

svn commit: r227639 - in head/sys: dev/re pci

2011-11-17 Thread Pyun YongHyeon
Author: yongari Date: Thu Nov 17 22:07:50 2011 New Revision: 227639 URL: http://svn.freebsd.org/changeset/base/227639 Log: Add preliminary support for RTL8168/8111F PCIe Gigabit ethernet. H/W donated by: RealTek Semiconductor Corp. Modified: head/sys/dev/re/if_re.c

svn commit: r227582 - head/sys/dev/msk

2011-11-16 Thread Pyun YongHyeon
Author: yongari Date: Wed Nov 16 19:25:26 2011 New Revision: 227582 URL: http://svn.freebsd.org/changeset/base/227582 Log: Enable 64bit DMA addressing support for all msk(4) controllers. Unnecessarily complex LE format used on Marvell controller was main reason not to enable 64bit DMA

svn commit: r227590 - in head/sys: dev/re pci

2011-11-16 Thread Pyun YongHyeon
Author: yongari Date: Wed Nov 16 22:05:38 2011 New Revision: 227590 URL: http://svn.freebsd.org/changeset/base/227590 Log: Add preliminary support for RTL8411 PCIe Gigabit ethernet with integrated card reader. H/W donated by: RealTek Semiconductor Corp. Modified:

svn commit: r227591 - head/sys/dev/re

2011-11-16 Thread Pyun YongHyeon
Author: yongari Date: Wed Nov 16 22:09:14 2011 New Revision: 227591 URL: http://svn.freebsd.org/changeset/base/227591 Log: Add missing driver lock in SIOCSIFCAP handler. Modified: head/sys/dev/re/if_re.c Modified: head/sys/dev/re/if_re.c

svn commit: r227509 - head/sys/dev/ti

2011-11-14 Thread Pyun YongHyeon
Author: yongari Date: Mon Nov 14 19:10:20 2011 New Revision: 227509 URL: http://svn.freebsd.org/changeset/base/227509 Log: Export sysctl node for various interrupt moderation parameters and have administrators control them. ti(4) provides a character device to control various other

svn commit: r227512 - head/sys/dev/ti

2011-11-14 Thread Pyun YongHyeon
Author: yongari Date: Mon Nov 14 20:38:14 2011 New Revision: 227512 URL: http://svn.freebsd.org/changeset/base/227512 Log: Overhaul bus_dma(9) usage in driver: - Don't use a single big DMA block for all rings. Create separate DMA area for each ring instead. Currently the following DMA

svn commit: r227513 - head/share/man/man4

2011-11-14 Thread Pyun YongHyeon
Author: yongari Date: Mon Nov 14 21:59:49 2011 New Revision: 227513 URL: http://svn.freebsd.org/changeset/base/227513 Log: Document newly introduced a loader tunable and sysctl variables. Modified: head/share/man/man4/ti.4 Modified: head/share/man/man4/ti.4

svn commit: r227514 - head/share/man/man4

2011-11-14 Thread Pyun YongHyeon
Author: yongari Date: Mon Nov 14 22:16:12 2011 New Revision: 227514 URL: http://svn.freebsd.org/changeset/base/227514 Log: Clarify hw.ti.%d.dac tunable. Modified: head/share/man/man4/ti.4 Modified: head/share/man/man4/ti.4

svn commit: r227452 - head/sys/dev/ae

2011-11-11 Thread Pyun YongHyeon
Author: yongari Date: Fri Nov 11 19:15:32 2011 New Revision: 227452 URL: http://svn.freebsd.org/changeset/base/227452 Log: To send a frame, controller requires a prepended TX header and the length of frame should be treated as multiple of 4. Actual frame length is set in the TX header. The

svn commit: r227431 - head/sys/dev/ti

2011-11-10 Thread Pyun YongHyeon
Author: yongari Date: Thu Nov 10 22:15:11 2011 New Revision: 227431 URL: http://svn.freebsd.org/changeset/base/227431 Log: style. No functional changes. Modified: head/sys/dev/ti/if_ti.c Modified: head/sys/dev/ti/if_ti.c

svn commit: r227432 - head/sys/dev/ti

2011-11-10 Thread Pyun YongHyeon
Author: yongari Date: Thu Nov 10 23:14:04 2011 New Revision: 227432 URL: http://svn.freebsd.org/changeset/base/227432 Log: Remove dead ifdef. Driver should always check raised interrupt is for the device. Modified: head/sys/dev/ti/if_ti.c Modified: head/sys/dev/ti/if_ti.c

svn commit: r227347 - in head/sys: conf dev/ti

2011-11-08 Thread Pyun YongHyeon
Author: yongari Date: Tue Nov 8 18:23:02 2011 New Revision: 227347 URL: http://svn.freebsd.org/changeset/base/227347 Log: Retire 'options TI_PRIVATE_JUMBOS' and replace local jumbo allocator with UMA backed jumbo allocator by default. Previously ti(4) used sf_buf(9) interface for jumbo

svn commit: r227348 - head/share/man/man4

2011-11-08 Thread Pyun YongHyeon
Author: yongari Date: Tue Nov 8 18:35:11 2011 New Revision: 227348 URL: http://svn.freebsd.org/changeset/base/227348 Log: ti(4) supports altq(4). Modified: head/share/man/man4/altq.4 Modified: head/share/man/man4/altq.4

svn commit: r227349 - head/share/man/man4

2011-11-08 Thread Pyun YongHyeon
Author: yongari Date: Tue Nov 8 18:36:59 2011 New Revision: 227349 URL: http://svn.freebsd.org/changeset/base/227349 Log: Document TI_SF_BUF_JUMBO and Xr altq. Modified: head/share/man/man4/ti.4 Modified: head/share/man/man4/ti.4

svn commit: r227367 - head/sys/conf

2011-11-08 Thread Pyun YongHyeon
Author: yongari Date: Tue Nov 8 23:19:22 2011 New Revision: 227367 URL: http://svn.freebsd.org/changeset/base/227367 Log: Comment out TI_JUMBO_HDRSPLIT. TI_JUMBO_HDRSPLIT requires TI_SF_BUF_JUMBO. Modified: head/sys/conf/NOTES Modified: head/sys/conf/NOTES

svn commit: r227311 - head/sys/dev/ti

2011-11-07 Thread Pyun YongHyeon
Author: yongari Date: Mon Nov 7 18:19:20 2011 New Revision: 227311 URL: http://svn.freebsd.org/changeset/base/227311 Log: Remove ti_unit member variable in softc. While I'm here use PCIR_BAR macro. Modified: head/sys/dev/ti/if_ti.c head/sys/dev/ti/if_tireg.h Modified:

svn commit: r227312 - head/sys/dev/ti

2011-11-07 Thread Pyun YongHyeon
Author: yongari Date: Mon Nov 7 18:26:38 2011 New Revision: 227312 URL: http://svn.freebsd.org/changeset/base/227312 Log: o Remove unnecessary controller reinitialization. o Do not blindly UP controller when MTU is changed. Reinitialize controller only if driver is running. o

svn commit: r227318 - head/sys/dev/ti

2011-11-07 Thread Pyun YongHyeon
Author: yongari Date: Mon Nov 7 22:11:38 2011 New Revision: 227318 URL: http://svn.freebsd.org/changeset/base/227318 Log: Track which ring was updated in RX handler and update only modified ring. This should reduce unnecessary register accesses. Modified: head/sys/dev/ti/if_ti.c

<    1   2   3   4   5   6   >