<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/bfe, branch releng/7.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F7.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F7.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2008-08-29T04:00:43Z</updated>
<entry>
<title>MFC r181992:</title>
<updated>2008-08-29T04:00:43Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2008-08-29T04:00:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9efe9b0ac1563a969314aaa7883a8962a4381664'/>
<id>urn:sha1:9efe9b0ac1563a969314aaa7883a8962a4381664</id>
<content type='text'>
  Because bfe(4) knows interrupt mask value there is no need to read
  interrupt mask register again. This saves one register access per
  each interrupt.
  Also don't try to process frames when driver is not running.
</content>
</entry>
<entry>
<title>MFC r181976:</title>
<updated>2008-08-29T03:42:27Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2008-08-29T03:42:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c94416b3beb88db715f48f112f483a6d66bd85f2'/>
<id>urn:sha1:c94416b3beb88db715f48f112f483a6d66bd85f2</id>
<content type='text'>
  Remove bfe_link in softc and introduce two new flags to mark
  link state and detach request.
  While I'm here make sure established link is IFM_10_T or
  IFM_100_TX as bfe(4) just supports 10/100Mbps media.
</content>
</entry>
<entry>
<title>MFC r181953:</title>
<updated>2008-08-29T01:30:26Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2008-08-29T01:30:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c8979f2ae090d922a756da69e07c5eca42a31cba'/>
<id>urn:sha1:c8979f2ae090d922a756da69e07c5eca42a31cba</id>
<content type='text'>
   o Sort includes and add &lt;endian.h&gt; to support endianness.
   o Removed unneeded header files.
   o bus_dma(9) fix:
     - created parent tag with 1GB dma address limit with no
       alignment restrictions.
     - set 4096 alignment limit for Tx/Rx descriptor rings.
     - separate Rx buffer tag from Tx buffer tag such that Tx tag
       allows up-to 16 segments while Rx buffer tag only allows
       single segment.
     - it seems the controller has no alignment restrictions on Tx/Rx
       buffers. Remove ETHER_ALIGN alignment restriction in Tx/Rx
       buffers.
     - created a spare Rx dma map which would be used to cope with
       failure of loading a dma map.
     - make sure to load full Tx/Rx descriptor size for Tx/Rx
       descriptor dma maps, previously bfe(4) used to load single
       descriptor size for each descriptor rings. I have no idea how
       it could be run without problems.
     - don't blindly cast bus_addr_t type to 32bits in bfe_dma_map().
     - created bfe_dma_free() to free allocated dma memory/tags.
     - make sure to invoke bus_dmamap_sync(9) before/after processing
       descriptor rings/buffers. Because the hardware has severe dma
       address space limitation, bounce-buffers would be always used
       on systems with more than 1GB memory during
       descriptors/buffers access.
     - added Tx descriptor ring initialization function,
       bfe_list_tx_init().
     - moved producer/consumer index initialization to
       bfe_list_tx_init() and bfe_list_rx_init() from
       bfe_chip_reset().
     - added bfe_discard_buf() which will update loaded descriptors
       without unloading/reloading the dma map to speed up error
       recovery.
     - implemented Tx side bus_dmamap_load_mbuf_sg(9). The number of
       segments allowed was chosen to be 16 which should be enough for
       non-TSO capable hardwares. Setting SOF bit of Tx descriptor is
       done in the last to avoid potential race.
     - don't give up sending frames in bfe_start() until the hardware
       lacks free descriptors.
     - added XXX comment to second kick command and possible workaround.
     - implemented Rx side bus_dmamap_load_mbuf_sg(9).
     - removed bfe_dma_map_desc() as it's not needed anymore after
       the conversion to bus_dmamap_load_mbuf_sg(9).
     - added endianness support. With this change bfe(4) should work
       on any architectures that can create bounce buffers within 1GB
       address range.
     - add missing bus_dmamap_sync() in bfe_tx_eof()/bfe_rx_eof().
   o Use PCI_BAR instead of hardcoded value to set BARs.
     Simplified register access with bus_write_4(9)/bus_read_4(9) and
     removed bfe_btag, bfe_bhandle, bfe_vhandle in softc as it's not
     used anymore.
   o Reorder device detach logic such that bfe_detach() is also used
     for handling driver attach failure case.
   o Remove unnecessary KASSERT in bfe_detach().
   o Remove bfe_rx_cnt, bfe_up, bfe_vpd_prodname, bfe_vpd_readonly in
     softc.  It's not used at all.
   o Remove BFE_RX_RING_SIZE/BFE_RX_RING_SIZE/BFE_LINK_DOWN.
</content>
</entry>
<entry>
<title>MFC r181557:</title>
<updated>2008-08-21T03:45:50Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2008-08-21T03:45:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bd4fc1b81f581786fd29e01477b0cc372e90fb1a'/>
<id>urn:sha1:bd4fc1b81f581786fd29e01477b0cc372e90fb1a</id>
<content type='text'>
  Use device_set_desc() instead of device_set_desc_copy() as we don't
  manipulate the verbose description of a device.
</content>
</entry>
<entry>
<title>MFC r180954:</title>
<updated>2008-08-21T03:34:14Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2008-08-21T03:34:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f353143591c837d2510432f8977f478f91468a99'/>
<id>urn:sha1:f353143591c837d2510432f8977f478f91468a99</id>
<content type='text'>
  style(9) - space after keywords, don't indent case.
</content>
</entry>
<entry>
<title>MFC r180952, r181556:</title>
<updated>2008-08-21T03:25:44Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2008-08-21T03:25:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bb3ed41cd27605a1a991970b1e96d0ff5c716c65'/>
<id>urn:sha1:bb3ed41cd27605a1a991970b1e96d0ff5c716c65</id>
<content type='text'>
  Nuke referencing softc in device probe.
</content>
</entry>
<entry>
<title>MFC r180950:</title>
<updated>2008-08-21T02:03:01Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2008-08-21T02:03:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bc347bce1faac866e5fdda4698794782828467f5'/>
<id>urn:sha1:bc347bce1faac866e5fdda4698794782828467f5</id>
<content type='text'>
  s/printf/device_printf/g
  Don't hard code function name in device_printf() and use __func__.
  While I'm here nuke bfe_unit in softc as it's not needed anymore.
</content>
</entry>
<entry>
<title>MFC if_bfe.c rev 1.45 to RELENG_7.</title>
<updated>2008-05-07T01:32:29Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2008-05-07T01:32:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=93cf34098b15e1cf5063ba43560da474c47d499d'/>
<id>urn:sha1:93cf34098b15e1cf5063ba43560da474c47d499d</id>
<content type='text'>
  Don't panic even if bus_dmamap_load(9) was failed. Just return
  ENOBUFS so callers can reuse previous mbuf.
</content>
</entry>
<entry>
<title>MFC if_bfe.c rev 1.44, if_bfereg.h rev 1.11 to RELENG_7:</title>
<updated>2008-03-18T02:11:40Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2008-03-18T02:11:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a579bf9dbeca3a0416a7b1656b4f88ca71b616e3'/>
<id>urn:sha1:a579bf9dbeca3a0416a7b1656b4f88ca71b616e3</id>
<content type='text'>
  Fix link state handling in bfe(4).
   o conversion to callout(9) API.
   o add a missing driver lock in bfe_ifmedia_sts().
   o use our callout to drive watchdog timer.
   o restart Tx routine if pending queued packets are present in
     watchdog handler.
   o unarm watchdog timer only if there are no queued packets.
   o don't blindly reset phy and let phy driver handle link change
     request in bfe_init_locked().
   o return the status of mii_mediachg() to caller in
     bfe_ifmedia_upd(). Previously it always returned 0 to caller.
   o add check for IFF_DRV_RUNNING flag as well as IFF_DRV_OACTIVE
     in bfe_start_locked().
   o implement miibus_statchg method that keeps track of current
     link state changes as well as negotiated speed/duplex/
     flow-control configuration.
     Reprogram MAC to appropriate duplex state. Flow-control
     configuration was also implemented but commented out at the
     moment. The flow-control configuration will be enabled again
     after we have general flow-control framework in mii layer.
</content>
</entry>
<entry>
<title>MFC: Fix function prototype for device_shutdown method.</title>
<updated>2008-03-13T07:50:48Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2008-03-13T07:50:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b9251501098ece76306aa0fd7417efc01883a316'/>
<id>urn:sha1:b9251501098ece76306aa0fd7417efc01883a316</id>
<content type='text'>
</content>
</entry>
</feed>
