<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/age, branch release/9.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F9.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F9.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-04-14T04:53:34Z</updated>
<entry>
<title>MFC r263957:</title>
<updated>2014-04-14T04:53:34Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2014-04-14T04:53:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=281cc1f4cc474b125baa2c1356b9a69a8f3beaae'/>
<id>urn:sha1:281cc1f4cc474b125baa2c1356b9a69a8f3beaae</id>
<content type='text'>
  Increase the number of TX DMA segments from 32 to 35.  It turned
  out 32 is not enough to support a full sized TSO packet.
  While I'm here fix a long standing bug introduced in r169632 in
  bce(4) where it didn't include L2 header length of TSO packet in
  the maximum DMA segment size calculation.
</content>
</entry>
<entry>
<title>MFC r251872:</title>
<updated>2013-06-24T01:03:58Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2013-06-24T01:03:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6e81ff11534c25ac93716c978b3743c79ec34447'/>
<id>urn:sha1:6e81ff11534c25ac93716c978b3743c79ec34447</id>
<content type='text'>
Be sure to actually decrement the "count" parameter for each processed
descriptor so that we return when the threshold has been reached.
</content>
</entry>
<entry>
<title>MFC: r243857 (partial)</title>
<updated>2013-03-09T00:39:54Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2013-03-09T00:39:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=03abd02e1efa33cbb430b395dfdf238e8f3a5f60'/>
<id>urn:sha1:03abd02e1efa33cbb430b395dfdf238e8f3a5f60</id>
<content type='text'>
Mechanically substitute flags from historic mbuf allocator with
malloc(9) flags in sys/dev.
</content>
</entry>
<entry>
<title>MFC r246341:</title>
<updated>2013-02-13T00:46:41Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2013-02-13T00:46:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dd38678532520b2274b7fb4c5f353778b6738ac8'/>
<id>urn:sha1:dd38678532520b2274b7fb4c5f353778b6738ac8</id>
<content type='text'>
  Rework jumbo frame handling.  QAC confirmed that the controller
  requires 8 bytes alignment on RX buffer.  Given that non-jumbo
  frame works on any alignments I guess this DMA limitation for RX
  buffer could be jumbo frame specific one.  Also I'm not sure
  whether this DMA limitation is related with 64bit DMA.  Previously
  age(4) disabled 64bit DMA addressing due to silent data corruption.
  So we may need more testing on re-enabling 64bit DMA in future.

  While I'm here, change mbuf chaining algorithm to use fixed sized
  buffer and force software checksum if controller reports length
  error. According to QAC, RFD is not updated at all for jumbo frame
  so it works just like alc(4) controllers.  This change also added
  alignment fixup for strict alignment architectures.  Because I'm
  not aware of any non-x86 machines that use age(4) controllers it's
  just for completeness at this moment.

  Wit this change, jumbo frame should work with age(4).
</content>
</entry>
<entry>
<title>MFC r242348:</title>
<updated>2012-11-06T00:54:25Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2012-11-06T00:54:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1093f8154869392b6c2e5d047deba636e674e09c'/>
<id>urn:sha1:1093f8154869392b6c2e5d047deba636e674e09c</id>
<content type='text'>
  TSO engine of L1 requires a separate DMA descriptor for TCP
  payload.  This means driver has to split a TX buffer into two
  pieces of TX buffers when the TX buffer contains both
  ethernet/IP/TCP header and partial TCP payload.  The controller
  does not require all header should be in a TX buffer but driver
  forced it to compute IP/TCP header size/offset which is required
  parameter to configure DMA descriptor for TSO.
  While here, slightly reorder DMA descriptor setup to enhance
  readability and remove unnecessary code for TSO(upper stack never
  requests TSO when the frame length is less than or equal to MTU).

  Reported by:	Yamagi Burmeister &lt;lists &lt;&gt; yamagi dot org&gt;
  Tested by:	Yamagi Burmeister &lt;lists &lt;&gt; yamagi dot org&gt;
</content>
</entry>
<entry>
<title>MFC r226478:</title>
<updated>2011-12-31T01:07:01Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2011-12-31T01:07:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=465d6a5015ea82bff6684fce3857eeb242cc6263'/>
<id>urn:sha1:465d6a5015ea82bff6684fce3857eeb242cc6263</id>
<content type='text'>
  Close a race where SIOCGIFMEDIA ioctl get inconsistent link status.
  Because driver is accessing a common MII structure in
  mii_pollstat(), updating user supplied structure should be done
  before dropping a driver lock.

  Reported by:	Karim (fodillemlinkarimi &lt;&gt; gmail dot com)
</content>
</entry>
<entry>
<title>- Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP</title>
<updated>2011-05-03T19:51:29Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2011-05-03T19:51:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3fcb7a5365f9de7824a2b5f8e8ab159c8d3d79a0'/>
<id>urn:sha1:3fcb7a5365f9de7824a2b5f8e8ab159c8d3d79a0</id>
<content type='text'>
  (reporting IFM_LOOP based on BMCR_LOOP is left in place though as
  it might provide useful for debugging). For most mii(4) drivers it
  was unclear whether the PHYs driven by them actually support
  loopback or not. Moreover, typically loopback mode also needs to
  be activated on the MAC, which none of the Ethernet drivers using
  mii(4) implements. Given that loopback media has no real use (and
  obviously hardly had a chance to actually work) besides for driver
  development (which just loopback mode should be sufficient for
  though, i.e one doesn't necessary need support for loopback media)
  support for it is just dropped as both NetBSD and OpenBSD already
  did quite some time ago.
- Let mii_phy_add_media() also announce the support of IFM_NONE.
- Restructure the PHY entry points to use a structure of entry points
  instead of discrete function pointers, and extend this to include
  a "reset" entry point. Make sure any PHY-specific reset routine is
  always used, and provide one for lxtphy(4) which disables MII
  interrupts (as is done for a few other PHYs we have drivers for).
  This includes changing NIC drivers which previously just called the
  generic mii_phy_reset() to now actually call the PHY-specific reset
  routine, which might be crucial in some cases. While at it, the
  redundant checks in these NIC drivers for mii-&gt;mii_instance not being
  zero before calling the reset routines were removed because as soon
  as one PHY driver attaches mii-&gt;mii_instance is incremented and we
  hardly can end up in their media change callbacks etc if no PHY driver
  has attached as mii_attach() would have failed in that case and not
  attach a miibus(4) instance.
  Consequently, NIC drivers now no longer should call mii_phy_reset()
  directly, so it was removed from EXPORT_SYMS.
- Add a mii_phy_dev_attach() as a companion helper to mii_phy_dev_probe().
  The purpose of that function is to perform the common steps to attach
  a PHY driver instance and to hook it up to the miibus(4) instance and to
  optionally also handle the probing, addition and initialization of the
  supported media. So all a PHY driver without any special requirements
  has to do in its bus attach method is to call mii_phy_dev_attach()
  along with PHY-specific MIIF_* flags, a pointer to its PHY functions
  and the add_media set to one. All PHY drivers were updated to take
  advantage of mii_phy_dev_attach() as appropriate. Along with these
  changes the capability mask was added to the mii_softc structure so
  PHY drivers taking advantage of mii_phy_dev_attach() but still
  handling media on their own do not need to fiddle with the MII attach
  arguments anyway.
- Keep track of the PHY offset in the mii_softc structure. This is done
  for compatibility with NetBSD/OpenBSD.
- Keep track of the PHY's OUI, model and revision in the mii_softc
  structure. Several PHY drivers require this information also after
  attaching and previously had to wrap their own softc around mii_softc.
  NetBSD/OpenBSD also keep track of the model and revision on their
  mii_softc structure. All PHY drivers were updated to take advantage
  as appropriate.
- Convert the mebers of the MII data structure to unsigned where
  appropriate. This is partly inspired by NetBSD/OpenBSD.
- According to IEEE 802.3-2002 the bits actually have to be reversed
  when mapping an OUI to the MII ID registers. All PHY drivers and
  miidevs where changed as necessary. Actually this now again allows to
  largely share miidevs with NetBSD, which fixed this problem already
  9 years ago. Consequently miidevs was synced as far as possible.
- Add MIIF_NOMANPAUSE and mii_phy_flowstatus() calls to drivers that
  weren't explicitly converted to support flow control before. It's
  unclear whether flow control actually works with these but typically
  it should and their net behavior should be more correct with these
  changes in place than without if the MAC driver sets MIIF_DOPAUSE.

Obtained from:	NetBSD (partially)
Reviewed by:	yongari (earlier version), silence on arch@ and net@
</content>
</entry>
<entry>
<title>Partially revert r184106. RX buffer ring also needs bus_dmamap_sync().</title>
<updated>2011-04-01T18:53:41Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2011-04-01T18:53:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=595615e6a45d466ff6af0a2233b3786c8014252c'/>
<id>urn:sha1:595615e6a45d466ff6af0a2233b3786c8014252c</id>
<content type='text'>
Tested by:	Yamagi Burmeister (lists &lt;&gt; yamagi dot org)
MFC after:	1 week
</content>
</entry>
<entry>
<title>64bit DMA caused data corruption. Unfortunately there is no known</title>
<updated>2011-04-01T16:45:26Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2011-04-01T16:45:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=525e40979bfd92c642aabc897b50250a7c435547'/>
<id>urn:sha1:525e40979bfd92c642aabc897b50250a7c435547</id>
<content type='text'>
workaround to use 64bit DMA.
Disable 64bit DMA on Attansic L1 controller.

Tested by:	Yamagi Burmeister (lists &lt;&gt; yamagi dot org)
MFC after:	1 week
</content>
</entry>
<entry>
<title>Do a sweep of the tree replacing calls to pci_find_extcap() with calls to</title>
<updated>2011-03-23T13:10:15Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2011-03-23T13:10:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3b0a4aef967e33d85308e74b00c472820e173c7a'/>
<id>urn:sha1:3b0a4aef967e33d85308e74b00c472820e173c7a</id>
<content type='text'>
pci_find_cap() instead.
</content>
</entry>
</feed>
