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

2010-09-16 Thread Pyun YongHyeon
Author: yongari Date: Thu Sep 16 17:32:37 2010 New Revision: 212755 URL: http://svn.freebsd.org/changeset/base/212755 Log: Fix incorrect RX BD producer updates. The producer index was already updated after allocating mbuf so driver had to use the last index instead of using next producer ind

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

2010-09-21 Thread Pyun YongHyeon
Author: yongari Date: Tue Sep 21 17:25:15 2010 New Revision: 212968 URL: http://svn.freebsd.org/changeset/base/212968 Log: Remove unnecessary controller reinitialization. PR: kern/87506 Modified: head/sys/dev/ae/if_ae.c Modified: head/sys/dev/ae/if_ae.c ===

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

2010-09-21 Thread Pyun YongHyeon
Author: yongari Date: Tue Sep 21 17:31:14 2010 New Revision: 212969 URL: http://svn.freebsd.org/changeset/base/212969 Log: Make sure to clear IFF_DRV_RUNNING to reinitialize controller. While I'm here update if_oerrors counter when driver encounters watchdog timeout. Modified: head/sys/de

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

2010-09-21 Thread Pyun YongHyeon
Author: yongari Date: Tue Sep 21 17:42:19 2010 New Revision: 212971 URL: http://svn.freebsd.org/changeset/base/212971 Log: Remove unnecessary controller reinitialization. StarFire controller does not require controller reinitialization to program perfect filters. While here, make driver imme

svn commit: r212972 - head/sys/dev/stge

2010-09-21 Thread Pyun YongHyeon
Author: yongari Date: Tue Sep 21 17:52:32 2010 New Revision: 212972 URL: http://svn.freebsd.org/changeset/base/212972 Log: Remove unnecessary controller reinitialization. PR: kern/87506 Modified: head/sys/dev/stge/if_stge.c Modified: head/sys/dev/stge/if_stge.c ===

svn commit: r213000 - head/sys/dev/stge

2010-09-22 Thread Pyun YongHyeon
Author: yongari Date: Wed Sep 22 16:48:24 2010 New Revision: 213000 URL: http://svn.freebsd.org/changeset/base/213000 Log: Fix build breakage introduced in r212972. Modified: head/sys/dev/stge/if_stge.c Modified: head/sys/dev/stge/if_stge.c ===

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

2010-09-23 Thread Pyun YongHyeon
Author: yongari Date: Thu Sep 23 18:55:54 2010 New Revision: 213081 URL: http://svn.freebsd.org/changeset/base/213081 Log: Always show asic/chip revision in device attach phase. There are too many bge(4) controllers there and model name does not necessarily match asic/chip revision. Relying

svn commit: r213107 - stable/8/sys/dev/bge

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 17:53:32 2010 New Revision: 213107 URL: http://svn.freebsd.org/changeset/base/213107 Log: MFC r211594: Load tunable from loader.conf(5) instead of device.hints(5). Modified: stable/8/sys/dev/bge/if_bge.c Directory Properties: stable/8/sys/ (props chang

svn commit: r213108 - stable/7/sys/dev/bge

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 17:56:12 2010 New Revision: 213108 URL: http://svn.freebsd.org/changeset/base/213108 Log: MFC r211594: Load tunable from loader.conf(5) instead of device.hints(5). Modified: stable/7/sys/dev/bge/if_bge.c Directory Properties: stable/7/sys/ (props chang

svn commit: r213109 - stable/8/sys/dev/bge

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 17:59:58 2010 New Revision: 213109 URL: http://svn.freebsd.org/changeset/base/213109 Log: MFC r211596: It seems all Broadcom controllers have a bug that can generate UDP datagrams with checksum value 0 when TX UDP checksum offloading is enabled. Gene

svn commit: r213110 - stable/7/sys/dev/bge

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 18:01:43 2010 New Revision: 213110 URL: http://svn.freebsd.org/changeset/base/213110 Log: MFC r211596: It seems all Broadcom controllers have a bug that can generate UDP datagrams with checksum value 0 when TX UDP checksum offloading is enabled. Gene

svn commit: r213111 - stable/8/share/man/man4

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 18:12:19 2010 New Revision: 213111 URL: http://svn.freebsd.org/changeset/base/213111 Log: MFC r211597: Document newly introduced tunable dev.bge.%d.forced_udpcsum. While I'm here also mention tunable dev.bge.%d.forced_collapse. Modified: stable/8/share

svn commit: r213112 - stable/7/share/man/man4

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 18:14:22 2010 New Revision: 213112 URL: http://svn.freebsd.org/changeset/base/213112 Log: MFC r211597: Document newly introduced tunable dev.bge.%d.forced_udpcsum. While I'm here also mention tunable dev.bge.%d.forced_collapse. Modified: stable/7/share

svn commit: r213113 - stable/8/sys/dev/xl

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 18:33:15 2010 New Revision: 213113 URL: http://svn.freebsd.org/changeset/base/213113 Log: MFC r211670: Clean up SIOCSIFCAP handler and allow RX checksum offloading could be controlled by user. Modified: stable/8/sys/dev/xl/if_xl.c Directory Properties:

svn commit: r213114 - stable/7/sys/pci

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 18:54:06 2010 New Revision: 213114 URL: http://svn.freebsd.org/changeset/base/213114 Log: MFC r211670: Clean up SIOCSIFCAP handler and allow RX checksum offloading could be controlled by user. Modified: stable/7/sys/pci/if_xl.c Directory Properties:

svn commit: r213115 - stable/8/sys/dev/xl

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 18:58:04 2010 New Revision: 213115 URL: http://svn.freebsd.org/changeset/base/213115 Log: MFC r211671: Remove unnecessary controller reinitialization by checking IFF_DRV_RUNNING flag. Modified: stable/8/sys/dev/xl/if_xl.c Directory Properties: stable

svn commit: r213116 - stable/7/sys/pci

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:00:15 2010 New Revision: 213116 URL: http://svn.freebsd.org/changeset/base/213116 Log: MFC r211671: Remove unnecessary controller reinitialization by checking IFF_DRV_RUNNING flag. Modified: stable/7/sys/pci/if_xl.c Directory Properties: stable/7/

svn commit: r213117 - stable/8/sys/dev/xl

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:04:17 2010 New Revision: 213117 URL: http://svn.freebsd.org/changeset/base/213117 Log: MFC r211716: Move xl_reset() to xl_init_locked(). This will make driver initialize controller from a known good state. Previously driver used to issue controller

svn commit: r213118 - stable/7/sys/pci

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:07:14 2010 New Revision: 213118 URL: http://svn.freebsd.org/changeset/base/213118 Log: MFC r211716: Move xl_reset() to xl_init_locked(). This will make driver initialize controller from a known good state. Previously driver used to issue controller

svn commit: r213120 - stable/8/sys/dev/xl

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:09:23 2010 New Revision: 213120 URL: http://svn.freebsd.org/changeset/base/213120 Log: MFC r211717: Implement basic WOL support. Note, not all xl(4) controllers support WOL. Some controllers require additional 3-wire auxiliary remote wakeup connect

svn commit: r213121 - stable/7/sys/pci

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:11:22 2010 New Revision: 213121 URL: http://svn.freebsd.org/changeset/base/213121 Log: MFC r211717: Implement basic WOL support. Note, not all xl(4) controllers support WOL. Some controllers require additional 3-wire auxiliary remote wakeup connect

svn commit: r213122 - stable/8/sys/dev/ed

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:13:43 2010 New Revision: 213122 URL: http://svn.freebsd.org/changeset/base/213122 Log: MFC r211721: Fix a possible unaligned access to savebyte array. PR: kern/122195 Modified: stable/8/sys/dev/ed/if_ed.c Directory Properties: stable/8/sys/ (

svn commit: r213123 - stable/7/sys/dev/ed

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:14:59 2010 New Revision: 213123 URL: http://svn.freebsd.org/changeset/base/213123 Log: MFC r211721: Fix a possible unaligned access to savebyte array. PR: kern/122195 Modified: stable/7/sys/dev/ed/if_ed.c Directory Properties: stable/7/sys/ (

svn commit: r213124 - stable/8/sys/dev/ed

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:16:42 2010 New Revision: 213124 URL: http://svn.freebsd.org/changeset/base/213124 Log: MFC r211764: Add PNP id for Compex RL2000. I'm not sure whether adding this logical id is correct or not because Compex RL2000 is in the list of supported hardwa

svn commit: r213125 - stable/7/sys/dev/ed

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:18:03 2010 New Revision: 213125 URL: http://svn.freebsd.org/changeset/base/213125 Log: MFC r211764: Add PNP id for Compex RL2000. I'm not sure whether adding this logical id is correct or not because Compex RL2000 is in the list of supported hardwa

svn commit: r213126 - stable/8/sys/dev/vr

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:19:53 2010 New Revision: 213126 URL: http://svn.freebsd.org/changeset/base/213126 Log: MFC r211765: Remove unnecessary controller reinitialization. CAM filter handling was rewritten long time ago so it should not require controller reinitialization

svn commit: r213127 - stable/7/sys/dev/vr

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:22:41 2010 New Revision: 213127 URL: http://svn.freebsd.org/changeset/base/213127 Log: MFC r211765: Remove unnecessary controller reinitialization. CAM filter handling was rewritten long time ago so it should not require controller reinitialization

svn commit: r213128 - stable/8/sys/dev/vr

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:24:45 2010 New Revision: 213128 URL: http://svn.freebsd.org/changeset/base/213128 Log: MFC r211766: vr_init_locked() will stop and reset the controller. Remove unnecessary vr_stop()/vr_reset() calls. Modified: stable/8/sys/dev/vr/if_vr.c Directory P

svn commit: r213129 - stable/7/sys/dev/vr

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:26:27 2010 New Revision: 213129 URL: http://svn.freebsd.org/changeset/base/213129 Log: MFC r211766: vr_init_locked() will stop and reset the controller. Remove unnecessary vr_stop()/vr_reset() calls. Modified: stable/7/sys/dev/vr/if_vr.c Directory P

svn commit: r213130 - stable/8/sys/pci

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:27:47 2010 New Revision: 213130 URL: http://svn.freebsd.org/changeset/base/213130 Log: MFC r211767: Remove unnecessary controller reinitialization. PR: kern/87506 Modified: stable/8/sys/pci/if_rl.c Directory Properties: stable/8/sys/ (props c

svn commit: r213131 - stable/7/sys/pci

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:29:01 2010 New Revision: 213131 URL: http://svn.freebsd.org/changeset/base/213131 Log: MFC r211767: Remove unnecessary controller reinitialization. PR: kern/87506 Modified: stable/7/sys/pci/if_rl.c Directory Properties: stable/7/sys/ (props c

svn commit: r213132 - stable/8/sys/dev/age

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:30:34 2010 New Revision: 213132 URL: http://svn.freebsd.org/changeset/base/213132 Log: MFC r211768: Remove unnecessary controller reinitialization. PR: kern/87506 Modified: stable/8/sys/dev/age/if_age.c Directory Properties: stable/8/sys/ (pr

svn commit: r213134 - stable/7/sys/dev/age

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 19:31:53 2010 New Revision: 213134 URL: http://svn.freebsd.org/changeset/base/213134 Log: MFC r211768: Remove unnecessary controller reinitialization. PR: kern/87506 Modified: stable/7/sys/dev/age/if_age.c Directory Properties: stable/7/sys/ (pr

svn commit: r213138 - stable/7/sys/pci

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 20:04:23 2010 New Revision: 213138 URL: http://svn.freebsd.org/changeset/base/213138 Log: MFC r195484: Make xl(4) build with Tx checksum offload. PR: kern/136409 Modified: stable/7/sys/pci/if_xl.c Directory Properties: stable/7/sys/ (props chang

svn commit: r213139 - stable/7/sys/pci

2010-09-24 Thread Pyun YongHyeon
Author: yongari Date: Fri Sep 24 20:08:59 2010 New Revision: 213139 URL: http://svn.freebsd.org/changeset/base/213139 Log: MFC r191609: remove dead code with reference to IFQ_HANDOFF Modified: stable/7/sys/pci/if_xl.c Directory Properties: stable/7/sys/ (props changed) stable/7/sys/

svn commit: r213208 - stable/8/sys/dev/bge

2010-09-27 Thread Pyun YongHyeon
Author: yongari Date: Mon Sep 27 17:10:22 2010 New Revision: 213208 URL: http://svn.freebsd.org/changeset/base/213208 Log: MFC r212755: Fix incorrect RX BD producer updates. The producer index was already updated after allocating mbuf so driver had to use the last index instead of us

svn commit: r213209 - stable/7/sys/dev/bge

2010-09-27 Thread Pyun YongHyeon
Author: yongari Date: Mon Sep 27 17:12:54 2010 New Revision: 213209 URL: http://svn.freebsd.org/changeset/base/213209 Log: MFC r212755: Fix incorrect RX BD producer updates. The producer index was already updated after allocating mbuf so driver had to use the last index instead of us

svn commit: r213211 - in stable/8/sys/modules: em igb ixgbe

2010-09-27 Thread Pyun YongHyeon
Author: yongari Date: Mon Sep 27 17:37:25 2010 New Revision: 213211 URL: http://svn.freebsd.org/changeset/base/213211 Log: MFC r211400: Remove unnecessary clean target in em(4), igb(4) and ixgbe(4). While here also remove man target in igb(4). Reviewed by:jfv Modified:

svn commit: r213213 - in stable/7/sys/modules: em igb ixgbe

2010-09-27 Thread Pyun YongHyeon
Author: yongari Date: Mon Sep 27 17:38:30 2010 New Revision: 213213 URL: http://svn.freebsd.org/changeset/base/213213 Log: MFC r211400: Remove unnecessary clean target in em(4), igb(4) and ixgbe(4). While here also remove man target in igb(4). Reviewed by:jfv Modified:

svn commit: r213214 - stable/8/sys/dev/e1000

2010-09-27 Thread Pyun YongHyeon
Author: yongari Date: Mon Sep 27 17:46:11 2010 New Revision: 213214 URL: http://svn.freebsd.org/changeset/base/213214 Log: MFC r211906: Make sure not to access unallocated stats memory. Reviewed by:jfv Modified: stable/8/sys/dev/e1000/if_igb.c Directory Properties: stable

svn commit: r213216 - in stable/8/sys/dev: e1000 ixgb ixgbe

2010-09-27 Thread Pyun YongHyeon
Author: yongari Date: Mon Sep 27 17:49:05 2010 New Revision: 213216 URL: http://svn.freebsd.org/changeset/base/213216 Log: MFC r211907: Do not call voluntary panic(9) in case of if_alloc() failure. Reviewed by:jfv Modified: stable/8/sys/dev/e1000/if_em.c stable/8/sys/dev/

svn commit: r213217 - stable/8/sys/dev/e1000

2010-09-27 Thread Pyun YongHyeon
Author: yongari Date: Mon Sep 27 17:50:56 2010 New Revision: 213217 URL: http://svn.freebsd.org/changeset/base/213217 Log: MFC r211909: If em(4) failed to allocate RX buffers, do not call panic(9). Just showing some buffer allocation error is more appropriate action for drivers. This

svn commit: r213218 - in stable/8/sys/dev: e1000 ixgb ixgbe

2010-09-27 Thread Pyun YongHyeon
Author: yongari Date: Mon Sep 27 17:54:04 2010 New Revision: 213218 URL: http://svn.freebsd.org/changeset/base/213218 Log: MFC r211913: Do not allocate multicast array memory in multicast filter configuration function. For failed memory allocations, em(4)/lem(4) called panic(9) which

svn commit: r213220 - in stable/7/sys/dev: e1000 ixgb ixgbe

2010-09-27 Thread Pyun YongHyeon
Author: yongari Date: Mon Sep 27 18:20:04 2010 New Revision: 213220 URL: http://svn.freebsd.org/changeset/base/213220 Log: MFC r211907: Do not call voluntary panic(9) in case of if_alloc() failure. Reviewed by:jfv Modified: stable/7/sys/dev/e1000/if_em.c stable/7/sys/dev/

svn commit: r213222 - stable/7/sys/dev/e1000

2010-09-27 Thread Pyun YongHyeon
Author: yongari Date: Mon Sep 27 18:22:50 2010 New Revision: 213222 URL: http://svn.freebsd.org/changeset/base/213222 Log: MFC r211909: If em(4) failed to allocate RX buffers, do not call panic(9). Just showing some buffer allocation error is more appropriate action for drivers. This

svn commit: r213223 - in stable/7/sys/dev: e1000 ixgb ixgbe

2010-09-27 Thread Pyun YongHyeon
Author: yongari Date: Mon Sep 27 18:34:04 2010 New Revision: 213223 URL: http://svn.freebsd.org/changeset/base/213223 Log: MFC r211913: Do not allocate multicast array memory in multicast filter configuration function. For failed memory allocations, em(4)/lem(4) called panic(9) which

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

2010-09-28 Thread Pyun YongHyeon
Author: yongari Date: Wed Sep 29 00:00:45 2010 New Revision: 213255 URL: http://svn.freebsd.org/changeset/base/213255 Log: Set the number of RX frames to receive after RX MBUF low watermark has reached. This reduced number of dropped frames when flow-control is enabled. Previously it dropped

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

2010-09-29 Thread Pyun YongHyeon
Author: yongari Date: Wed Sep 29 21:19:25 2010 New Revision: 213280 URL: http://svn.freebsd.org/changeset/base/213280 Log: After r207391, brgphy(4) passes resolved flow-control settings to parent driver. Use that information to configure flow-control. One drawback is there is no way to disab

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

2010-09-29 Thread Pyun YongHyeon
Author: yongari Date: Wed Sep 29 21:56:31 2010 New Revision: 213283 URL: http://svn.freebsd.org/changeset/base/213283 Log: Implement hardware MAC statistics for BCM5705 or newer Broadcom controllers. bge(4) exported MAC statistics on controllers that maintain the statistics in the NIC's inte

svn commit: r213306 - head/sys/pci

2010-09-30 Thread Pyun YongHyeon
Author: yongari Date: Thu Sep 30 17:37:08 2010 New Revision: 213306 URL: http://svn.freebsd.org/changeset/base/213306 Log: Rename rl_setmulti() to rl_rxfilter() as rl_rxfilter() will handle IFF_ALLMULTI/IFF_PROMISC as well as multicast filter configuration. Rewrite RX filter logic to reduce

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

2010-09-30 Thread Pyun YongHyeon
Author: yongari Date: Thu Sep 30 22:34:15 2010 New Revision: 213316 URL: http://svn.freebsd.org/changeset/base/213316 Log: Fix IFCAP_TXCSUM/IFCAP_RXCSUM handling. Previously bge(4) used IFCAP_HWCSUM to know which capability should be changed such that disabling RX checksun offloading resulte

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

2010-10-01 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 1 17:46:15 2010 New Revision: 21 URL: http://svn.freebsd.org/changeset/base/21 Log: Allow write DMA to request larger DMA burst size to get better performance on BCM5785. Obtained from:OpenBSD Modified: head/sys/dev/bge/if_bge.c head/sys

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

2010-10-01 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 1 17:51:55 2010 New Revision: 213334 URL: http://svn.freebsd.org/changeset/base/213334 Log: Remove extra semicolon. Modified: head/sys/dev/bge/if_bge.c Modified: head/sys/dev/bge/if_bge.c =

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

2010-10-04 Thread Pyun YongHyeon
Author: yongari Date: Mon Oct 4 18:01:23 2010 New Revision: 213410 URL: http://svn.freebsd.org/changeset/base/213410 Log: Consistently use ifHCOutOctets/ifHCInOctets instead of Octets as these names are used in data sheet. Also use UnicastPkts, MulticastPkts and BroadcastPkts instead of Uca

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

2010-10-04 Thread Pyun YongHyeon
Author: yongari Date: Mon Oct 4 18:09:01 2010 New Revision: 213411 URL: http://svn.freebsd.org/changeset/base/213411 Log: Enable fix for read DMA FIFO overruns on controllers that have this fix. Note, we still need workaround for controllers that lacks this fix and it needs more work in RX

svn commit: r213423 - head/sys/dev/usb/net

2010-10-04 Thread Pyun YongHyeon
Author: yongari Date: Mon Oct 4 20:49:38 2010 New Revision: 213423 URL: http://svn.freebsd.org/changeset/base/213423 Log: Move updating TX packet counter to the inside of send loop. axe(4) controllers combine multiple TX requests into single one if there is room in TX buffer of controller.

svn commit: r213424 - head/sys/dev/usb/net

2010-10-04 Thread Pyun YongHyeon
Author: yongari Date: Mon Oct 4 21:01:27 2010 New Revision: 213424 URL: http://svn.freebsd.org/changeset/base/213424 Log: Make upper stack know driver's output status. This change increased TX performance from 221kpps to 231kpps. Modified: head/sys/dev/usb/net/if_axe.c Modified: head/sys/

svn commit: r213436 - head/sys/dev/usb/net

2010-10-04 Thread Pyun YongHyeon
Author: yongari Date: Mon Oct 4 23:19:31 2010 New Revision: 213436 URL: http://svn.freebsd.org/changeset/base/213436 Log: Don't count input error twice. uether_rxbuf() already updated that counter. Modified: head/sys/dev/usb/net/if_axe.c Modified: head/sys/dev/usb/net/if_axe.c ===

svn commit: r213438 - head/sys/dev/usb/net

2010-10-04 Thread Pyun YongHyeon
Author: yongari Date: Mon Oct 4 23:25:38 2010 New Revision: 213438 URL: http://svn.freebsd.org/changeset/base/213438 Log: RX buffer allocation failure is not an input error. Controller successfully received a frame but we failed to pass it to upper stack due to lack of resources. So update

svn commit: r213464 - in head/sys/dev: bge mii

2010-10-05 Thread Pyun YongHyeon
Author: yongari Date: Tue Oct 5 23:03:48 2010 New Revision: 213464 URL: http://svn.freebsd.org/changeset/base/213464 Log: Separate common flags into controller specific and PHY related flags. There should be no functional changes. This change will make it easy to add more quirk/flags in fut

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

2010-10-05 Thread Pyun YongHyeon
Author: yongari Date: Tue Oct 5 23:24:58 2010 New Revision: 213465 URL: http://svn.freebsd.org/changeset/base/213465 Log: Rearrange code a bit to correctly set PHY flags. This change make it easy to add more newer ASICs. Obtained from:OpenBSD Modified: head/sys/dev/bge/if_bge.

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

2010-10-05 Thread Pyun YongHyeon
Author: yongari Date: Wed Oct 6 01:23:40 2010 New Revision: 213468 URL: http://svn.freebsd.org/changeset/base/213468 Log: Fix bge(4) build breakage when BGE_REGISTER_DEBUG is defined. Modified: head/sys/dev/bge/if_bge.c Modified: head/sys/dev/bge/if_bge.c ===

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

2010-10-06 Thread Pyun YongHyeon
Author: yongari Date: Wed Oct 6 17:35:27 2010 New Revision: 213485 URL: http://svn.freebsd.org/changeset/base/213485 Log: Overhaul MII register access routine and remove unnecessary BGE_MI_MODE register accesses. Previously bge(4) used to read BGE_MI_MODE register to detect whether it needs

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

2010-10-06 Thread Pyun YongHyeon
Author: yongari Date: Wed Oct 6 17:47:13 2010 New Revision: 213486 URL: http://svn.freebsd.org/changeset/base/213486 Log: Remove bge_tx_buf_ratio, unused member of softc. Modified: head/sys/dev/bge/if_bgereg.h Modified: head/sys/dev/bge/if_bgereg.h ==

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

2010-10-06 Thread Pyun YongHyeon
Author: yongari Date: Wed Oct 6 21:23:57 2010 New Revision: 213495 URL: http://svn.freebsd.org/changeset/base/213495 Log: Add more comments to rings supported by the controller. Different versions of controller support different number of ring control blocks such that adjust code a bit to a

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

2010-10-07 Thread Pyun YongHyeon
Author: yongari Date: Thu Oct 7 17:14:50 2010 New Revision: 213522 URL: http://svn.freebsd.org/changeset/base/213522 Log: Fix a long standing bug which regarded some revisions of controller as 5788. This caused BGE_MISC_LOCAL_CTL register is used to generate link state change interrupt for

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

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 17:58:07 2010 New Revision: 213587 URL: http://svn.freebsd.org/changeset/base/213587 Log: Do not blindly UP the interface when interface's MTU is changed. If driver is not running there is no need to up the interface. While I'm here hold driver lock before mo

svn commit: r213590 - stable/8/sys/pci

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 18:19:05 2010 New Revision: 213590 URL: http://svn.freebsd.org/changeset/base/213590 Log: MFC r213306: Rename rl_setmulti() to rl_rxfilter() as rl_rxfilter() will handle IFF_ALLMULTI/IFF_PROMISC as well as multicast filter configuration. Rewrite RX fi

svn commit: r213591 - stable/7/sys/pci

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 18:26:14 2010 New Revision: 213591 URL: http://svn.freebsd.org/changeset/base/213591 Log: MFC r213306: Rename rl_setmulti() to rl_rxfilter() as rl_rxfilter() will handle IFF_ALLMULTI/IFF_PROMISC as well as multicast filter configuration. Rewrite RX fi

svn commit: r213592 - stable/7/sys/pci

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 18:31:56 2010 New Revision: 213592 URL: http://svn.freebsd.org/changeset/base/213592 Log: MFC r188392: Destroy TX tag outside of loop scope. Found with: Coverity Prevent(tm) CID:3886 Modified: stable/7/sys/pci/if_rl.c Directory P

svn commit: r213593 - stable/8/sys/dev/bge

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 18:43:06 2010 New Revision: 213593 URL: http://svn.freebsd.org/changeset/base/213593 Log: MFC r212061,212065,212302: r212061: Split common parent DMA tag into ring DMA tag and TX/RX mbuf DMA tag. All controllers that are not BCM5755 or higher have 4GB

svn commit: r213594 - stable/7/sys/dev/bge

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 18:46:02 2010 New Revision: 213594 URL: http://svn.freebsd.org/changeset/base/213594 Log: MFC r212061,212065,212302: r212061: Split common parent DMA tag into ring DMA tag and TX/RX mbuf DMA tag. All controllers that are not BCM5755 or higher have 4GB

svn commit: r213595 - stable/8/sys/dev/bge

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 18:49:59 2010 New Revision: 213595 URL: http://svn.freebsd.org/changeset/base/213595 Log: MFC r212069,212071: r212069: bge_txeof() already checks whether it has to free transmitted mbufs or not by comparing reported TX consumer index with saved index. S

svn commit: r213596 - stable/7/sys/dev/bge

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 18:51:28 2010 New Revision: 213596 URL: http://svn.freebsd.org/changeset/base/213596 Log: MFC r212069,212071: r212069: bge_txeof() already checks whether it has to free transmitted mbufs or not by comparing reported TX consumer index with saved index. S

svn commit: r213597 - stable/8/sys/dev/mii

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 18:58:01 2010 New Revision: 213597 URL: http://svn.freebsd.org/changeset/base/213597 Log: MFC r212306-212307,212342: r212306: Remove trailing CR at EOL. r212307: Consistently use tab characters instead of tab + space characters. No functional c

svn commit: r213598 - stable/7/sys/dev/mii

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 19:00:36 2010 New Revision: 213598 URL: http://svn.freebsd.org/changeset/base/213598 Log: MFC r212306-212307,212342: r212306: Remove trailing CR at EOL. r212307: Consistently use tab characters instead of tab + space characters. No functional c

svn commit: r213599 - stable/8/sys/dev/ae

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 19:19:51 2010 New Revision: 213599 URL: http://svn.freebsd.org/changeset/base/213599 Log: MFC r212968: Remove unnecessary controller reinitialization. PR: kern/87506 Modified: stable/8/sys/dev/ae/if_ae.c Directory Properties: stable/8/sys/ (prop

svn commit: r213600 - stable/7/sys/dev/ae

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 19:21:16 2010 New Revision: 213600 URL: http://svn.freebsd.org/changeset/base/213600 Log: MFC r212968: Remove unnecessary controller reinitialization. PR: kern/87506 Modified: stable/7/sys/dev/ae/if_ae.c Directory Properties: stable/7/sys/ (prop

svn commit: r213601 - stable/8/sys/dev/et

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 19:24:38 2010 New Revision: 213601 URL: http://svn.freebsd.org/changeset/base/213601 Log: MFC r212969: Make sure to clear IFF_DRV_RUNNING to reinitialize controller. While I'm here update if_oerrors counter when driver encounters watchdog timeout. Mo

svn commit: r213602 - stable/7/sys/dev/et

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 19:25:46 2010 New Revision: 213602 URL: http://svn.freebsd.org/changeset/base/213602 Log: MFC r212969: Make sure to clear IFF_DRV_RUNNING to reinitialize controller. While I'm here update if_oerrors counter when driver encounters watchdog timeout. Mo

svn commit: r213603 - stable/8/sys/dev/sf

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 19:27:34 2010 New Revision: 213603 URL: http://svn.freebsd.org/changeset/base/213603 Log: MFC r212971: Remove unnecessary controller reinitialization. StarFire controller does not require controller reinitialization to program perfect filters. While h

svn commit: r213604 - stable/7/sys/dev/sf

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 19:29:17 2010 New Revision: 213604 URL: http://svn.freebsd.org/changeset/base/213604 Log: MFC r212971: Remove unnecessary controller reinitialization. StarFire controller does not require controller reinitialization to program perfect filters. While h

svn commit: r213605 - stable/8/sys/dev/stge

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 19:32:39 2010 New Revision: 213605 URL: http://svn.freebsd.org/changeset/base/213605 Log: MFC r212972,21300: r212972: Remove unnecessary controller reinitialization. PR: kern/87506 r213000: Fix build breakage introduced in r212972. Modified

svn commit: r213606 - stable/7/sys/dev/stge

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 19:34:23 2010 New Revision: 213606 URL: http://svn.freebsd.org/changeset/base/213606 Log: MFC r212972,21300: r212972: Remove unnecessary controller reinitialization. PR: kern/87506 r213000: Fix build breakage introduced in r212972. Modified

svn commit: r213607 - stable/8/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 19:39:35 2010 New Revision: 213607 URL: http://svn.freebsd.org/changeset/base/213607 Log: MFC r212103-212105: r212103: Remove leading and trailing white spaces. No functional changes. r212104: style(9) - space after keywords. r212105:

svn commit: r213608 - stable/7/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:12:00 2010 New Revision: 213608 URL: http://svn.freebsd.org/changeset/base/213608 Log: MFC r182065: There actually were bugs in the original handling that I missed last night. Free the children after each pci bus that is searched. Otherwise we

svn commit: r213610 - stable/7/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:13:42 2010 New Revision: 213610 URL: http://svn.freebsd.org/changeset/base/213610 Log: MFC r212103-212105: r212103: Remove leading and trailing white spaces. No functional changes. r212104: style(9) - space after keywords. r212105:

svn commit: r213612 - stable/8/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:18:44 2010 New Revision: 213612 URL: http://svn.freebsd.org/changeset/base/213612 Log: MFC r212109,212124,212185: r212109: bus_dma(9) cleanup. o Enforce TX/RX descriptor ring alignment. NS data sheet says the controller needs 4 bytes alignmen

svn commit: r213613 - stable/7/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:27:51 2010 New Revision: 213613 URL: http://svn.freebsd.org/changeset/base/213613 Log: MFC r212109,212124,212185: r212109: bus_dma(9) cleanup. o Enforce TX/RX descriptor ring alignment. NS data sheet says the controller needs 4 bytes alignmen

svn commit: r213614 - stable/8/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:30:08 2010 New Revision: 213614 URL: http://svn.freebsd.org/changeset/base/213614 Log: MFC r212113: s/u_intXX_t/uintXX_t/g Modified: stable/8/sys/dev/sis/if_sis.c stable/8/sys/dev/sis/if_sisreg.h Directory Properties: stable/8/sys/ (props changed)

svn commit: r213615 - stable/7/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:31:35 2010 New Revision: 213615 URL: http://svn.freebsd.org/changeset/base/213615 Log: MFC r212113: s/u_intXX_t/uintXX_t/g Modified: stable/7/sys/dev/sis/if_sis.c stable/7/sys/dev/sis/if_sisreg.h Directory Properties: stable/7/sys/ (props changed)

svn commit: r213616 - stable/8/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:33:43 2010 New Revision: 213616 URL: http://svn.freebsd.org/changeset/base/213616 Log: MFC r212116: Overhaul link state change handling. Previously sis(4) blindly configured TX/RX MACs before getting a valid link. After that, when link state change

svn commit: r213618 - stable/7/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:37:13 2010 New Revision: 213618 URL: http://svn.freebsd.org/changeset/base/213618 Log: MFC r212116: Overhaul link state change handling. Previously sis(4) blindly configured TX/RX MACs before getting a valid link. After that, when link state change

svn commit: r213619 - stable/8/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:39:45 2010 New Revision: 213619 URL: http://svn.freebsd.org/changeset/base/213619 Log: MFC r212117,212119: rr212117: Report result of link state change to caller. Previously it always returned success. r212119: Do not reinitialize controller

svn commit: r213621 - stable/7/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:41:15 2010 New Revision: 213621 URL: http://svn.freebsd.org/changeset/base/213621 Log: MFC r212117,212119: rr212117: Report result of link state change to caller. Previously it always returned success. r212119: Do not reinitialize controller

svn commit: r213622 - stable/8/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:42:59 2010 New Revision: 213622 URL: http://svn.freebsd.org/changeset/base/213622 Log: MFC r212120: Avoid controller reinitialization which could be triggered by dhclient(8) or alias addresses are added. PR: kern/87506 Modified: stable/8/sys/

svn commit: r213623 - stable/7/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:44:35 2010 New Revision: 213623 URL: http://svn.freebsd.org/changeset/base/213623 Log: MFC r212120: Avoid controller reinitialization which could be triggered by dhclient(8) or alias addresses are added. PR: kern/87506 Modified: stable/7/sys/

svn commit: r213624 - stable/8/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:48:09 2010 New Revision: 213624 URL: http://svn.freebsd.org/changeset/base/213624 Log: MFC r212121,212156: r212121: Move sis_reset() to sis_initl(). This ensures driver starts with known good state of controller. r212156: Fix the last endian

svn commit: r213625 - stable/7/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:49:44 2010 New Revision: 213625 URL: http://svn.freebsd.org/changeset/base/213625 Log: MFC r212121,212156: r212121: Move sis_reset() to sis_initl(). This ensures driver starts with known good state of controller. r212156: Fix the last endian

svn commit: r213626 - stable/8/sys/dev/sis

2010-10-08 Thread Pyun YongHyeon
Author: yongari Date: Fri Oct 8 20:51:33 2010 New Revision: 213626 URL: http://svn.freebsd.org/changeset/base/213626 Log: MFC r212157: Unlike most other controllers, NS DP83815/DP83816 controllers seem to pad with 0xFF when it encounter short frames. According to RFC 1042 the pad b

  1   2   3   4   5   6   7   8   9   10   >