<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/dpaa2, branch releng/14.3</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>dpaa2_mc: Check for error the first time bus_generic_detach is called</title>
<updated>2025-02-27T15:17:57+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-11-05T01:30:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7a88ac783b97acf59209a96eae49f367b0afefad'/>
<id>7a88ac783b97acf59209a96eae49f367b0afefad</id>
<content type='text'>
This removes the need for the second call.

Reviewed by:	dsl
Differential Revision:	https://reviews.freebsd.org/D47388

(cherry picked from commit 24d5a8e6eec2b9eed9591971f223d79b8d7044c9)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This removes the need for the second call.

Reviewed by:	dsl
Differential Revision:	https://reviews.freebsd.org/D47388

(cherry picked from commit 24d5a8e6eec2b9eed9591971f223d79b8d7044c9)
</pre>
</div>
</content>
</entry>
<entry>
<title>dpaa2: Use bus_generic_rman_*</title>
<updated>2025-02-27T13:09:22+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-02-27T19:43:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3ebdf18d5a75f6b878cb2f29befc312380b9d68f'/>
<id>3ebdf18d5a75f6b878cb2f29befc312380b9d68f</id>
<content type='text'>
Reviewed by:	dsl
Differential Revision:	https://reviews.freebsd.org/D43937

(cherry picked from commit 9b619f0e9082b8f97f0e20ec5176fe40ba8565f8)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	dsl
Differential Revision:	https://reviews.freebsd.org/D43937

(cherry picked from commit 9b619f0e9082b8f97f0e20ec5176fe40ba8565f8)
</pre>
</div>
</content>
</entry>
<entry>
<title>dpaa2: Fix kernel built with ACPI_DEBUG</title>
<updated>2024-12-13T20:05:53+00:00</updated>
<author>
<name>Dmitry Salychev</name>
<email>dsl@FreeBSD.org</email>
</author>
<published>2024-11-18T21:56:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=795e9c9b55036ede124ac5821644477da757aa52'/>
<id>795e9c9b55036ede124ac5821644477da757aa52</id>
<content type='text'>
PR:			282800
Reported by:		phk
Tested by:		bz
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D47666

(cherry picked from commit c2dd2be344fbf59cf95f6773d4b09cc7dda0f876)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:			282800
Reported by:		phk
Tested by:		bz
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D47666

(cherry picked from commit c2dd2be344fbf59cf95f6773d4b09cc7dda0f876)
</pre>
</div>
</content>
</entry>
<entry>
<title>dpaa2: allow tapping of tx packets in dpni</title>
<updated>2024-10-16T21:50:49+00:00</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2024-10-13T23:14:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9e596eab21d46864f0d90aae085319a1782e565e'/>
<id>9e596eab21d46864f0d90aae085319a1782e565e</id>
<content type='text'>
Packet capturing on dpni is only half-working given the BPF_MTAP call
in the TX path is missing. Add it to see packets in both directions.

Reviewed by:	dsl
Differential Revision: https://reviews.freebsd.org/D47103

(cherry picked from commit e69e172d40585cfbcfdb28433cec523ca4867cf1)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Packet capturing on dpni is only half-working given the BPF_MTAP call
in the TX path is missing. Add it to see packets in both directions.

Reviewed by:	dsl
Differential Revision: https://reviews.freebsd.org/D47103

(cherry picked from commit e69e172d40585cfbcfdb28433cec523ca4867cf1)
</pre>
</div>
</content>
</entry>
<entry>
<title>dpaa2: fix MRU for dpni (and software vlans along)</title>
<updated>2024-10-16T21:50:44+00:00</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2024-10-11T18:51:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=217024001f17f8288aab98cb700b3ef8305abeee'/>
<id>217024001f17f8288aab98cb700b3ef8305abeee</id>
<content type='text'>
0480dccd3f34 tried to fix the MTU for software VLANs given dpni
announces IFCAP_VLAN_MTU.  Unfortunately the initial MRU during
setup is reduced from the maximum supported by the HW to our
maximum ethernet RX frame length so only after further mtu toggles
the solution there would work.
Set the maximum RX frame size (without CRC) to jumbo length +
vlan encap len by default given we also announce IFCAP_JUMBO_MTU.

While here improve the manual (ioctl) MTU setting by checking if
IFCAP_VLAN_MTU is currently enabled and only then add the extra
bytes.

Fixes:		0480dccd3f347da0dbccf5917633435d5ce6cb86
Reviewed by:	dsl
Differential Revision: https://reviews.freebsd.org/D47066

(cherry picked from commit fa3dfeff95a5bafcf13accaed5164bfc4e028d9a)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
0480dccd3f34 tried to fix the MTU for software VLANs given dpni
announces IFCAP_VLAN_MTU.  Unfortunately the initial MRU during
setup is reduced from the maximum supported by the HW to our
maximum ethernet RX frame length so only after further mtu toggles
the solution there would work.
Set the maximum RX frame size (without CRC) to jumbo length +
vlan encap len by default given we also announce IFCAP_JUMBO_MTU.

While here improve the manual (ioctl) MTU setting by checking if
IFCAP_VLAN_MTU is currently enabled and only then add the extra
bytes.

Fixes:		0480dccd3f347da0dbccf5917633435d5ce6cb86
Reviewed by:	dsl
Differential Revision: https://reviews.freebsd.org/D47066

(cherry picked from commit fa3dfeff95a5bafcf13accaed5164bfc4e028d9a)
</pre>
</div>
</content>
</entry>
<entry>
<title>dpaa2: Stop checking for failures from malloc/taskqueue_create(M_WAITOK)</title>
<updated>2024-09-30T04:44:29+00:00</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2024-09-03T10:25:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f6c8db29aad84291fa0975527d4d4b1c2a1d024a'/>
<id>f6c8db29aad84291fa0975527d4d4b1c2a1d024a</id>
<content type='text'>
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45853

(cherry picked from commit 36ef39831fe0e89f0b1672340a44c4ac1183158e)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45853

(cherry picked from commit 36ef39831fe0e89f0b1672340a44c4ac1183158e)
</pre>
</div>
</content>
</entry>
<entry>
<title>net: Remove unneeded NULL check for the allocated ifnet</title>
<updated>2024-07-12T12:03:37+00:00</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2024-06-28T10:16:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6b1f530935c5f84ec65dad87b7c20c6b7a72a6d3'/>
<id>6b1f530935c5f84ec65dad87b7c20c6b7a72a6d3</id>
<content type='text'>
Change 4787572d0580 made if_alloc_domain() never fail, then also do the
wrappers if_alloc(), if_alloc_dev(), and if_gethandle().

No functional change intended.

Reviewed by:	kp, imp, glebius, stevek
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D45740

(cherry picked from commit aa3860851b9f6a6002d135b1cac7736e0995eedc)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change 4787572d0580 made if_alloc_domain() never fail, then also do the
wrappers if_alloc(), if_alloc_dev(), and if_gethandle().

No functional change intended.

Reviewed by:	kp, imp, glebius, stevek
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D45740

(cherry picked from commit aa3860851b9f6a6002d135b1cac7736e0995eedc)
</pre>
</div>
</content>
</entry>
<entry>
<title>dpaa2: make software VLANs usable on dpni</title>
<updated>2023-11-30T00:36:56+00:00</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2023-11-15T11:46:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e0910cf2d6958e8e4593dd7488eb2c98c603859b'/>
<id>e0910cf2d6958e8e4593dd7488eb2c98c603859b</id>
<content type='text'>
dpni announces IFCAP_VLAN_MTU but internally does not increase the
maximum frame length.  Createing a vlan interface on top of a dpni
interface will result in full-sized frames not passing.
Extend the maximum frame length by ETHER_VLAN_ENCAP_LEN to allow at
least for one layer of (software) vlans for now

GH-Issue:	https://github.com/mcusim/freebsd-src/issues/22
Reviewed by:	dsl
Differential Revision: https://reviews.freebsd.org/D42645

(cherry picked from commit 0480dccd3f347da0dbccf5917633435d5ce6cb86)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
dpni announces IFCAP_VLAN_MTU but internally does not increase the
maximum frame length.  Createing a vlan interface on top of a dpni
interface will result in full-sized frames not passing.
Extend the maximum frame length by ETHER_VLAN_ENCAP_LEN to allow at
least for one layer of (software) vlans for now

GH-Issue:	https://github.com/mcusim/freebsd-src/issues/22
Reviewed by:	dsl
Differential Revision: https://reviews.freebsd.org/D42645

(cherry picked from commit 0480dccd3f347da0dbccf5917633435d5ce6cb86)
</pre>
</div>
</content>
</entry>
<entry>
<title>dpaa2: defer link_state updates until we are up</title>
<updated>2023-11-30T00:36:56+00:00</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2023-11-17T00:47:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=91987a959730e051086b6d1ba55b0fa76c2695ef'/>
<id>91987a959730e051086b6d1ba55b0fa76c2695ef</id>
<content type='text'>
dpaa2_ni_media_change() was called in early setup stages, before we
were fully setup.  That lead to internal driver state being all synched
and fine but hardware state was lost/never setup corrently.

Introduce dpaa2_ni_media_change_locked() so we can avoid reccursive
locking and call "dpaa2_ni_media_change()" instead of mii_mediachg()
as the latter does not setup our state there either.

In order for this all to work, call if_setdrvflagbits() just before
rather than after the above.

Also remove an unecessary direct call to dpaa2_ni_miibus_statchg()
which mii_mediachg() will trigger anyway.

This all fixes a problem [1] that one had to lose the link (either
unplugging/replugging the cable or using ifconfig media none;
ifconfig media auto) to re-trigger the all updates and get the
full state programmed when hardware expected.

GH-Issue:	https://github.com/mcusim/freebsd-src/issues/21 [1]
Reviewed by:	dsl, dch
Differential Revision: https://reviews.freebsd.org/D42643

(cherry picked from commit 964b3408fa872178aacf58f2d84dc43564ec0aa7)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
dpaa2_ni_media_change() was called in early setup stages, before we
were fully setup.  That lead to internal driver state being all synched
and fine but hardware state was lost/never setup corrently.

Introduce dpaa2_ni_media_change_locked() so we can avoid reccursive
locking and call "dpaa2_ni_media_change()" instead of mii_mediachg()
as the latter does not setup our state there either.

In order for this all to work, call if_setdrvflagbits() just before
rather than after the above.

Also remove an unecessary direct call to dpaa2_ni_miibus_statchg()
which mii_mediachg() will trigger anyway.

This all fixes a problem [1] that one had to lose the link (either
unplugging/replugging the cable or using ifconfig media none;
ifconfig media auto) to re-trigger the all updates and get the
full state programmed when hardware expected.

GH-Issue:	https://github.com/mcusim/freebsd-src/issues/21 [1]
Reviewed by:	dsl, dch
Differential Revision: https://reviews.freebsd.org/D42643

(cherry picked from commit 964b3408fa872178aacf58f2d84dc43564ec0aa7)
</pre>
</div>
</content>
</entry>
<entry>
<title>dpaa2: fdt improve detection for dpmac/phys</title>
<updated>2023-11-30T00:36:56+00:00</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2023-11-15T13:13:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9197f220d8541c54d4eb5f804947397e12e2f224'/>
<id>9197f220d8541c54d4eb5f804947397e12e2f224</id>
<content type='text'>
'pcs-handles' are not mandatory in the device tree here so do not
enforce them.  This allows us to find dpmac entries needed for phys
on the WHLE-LS1 as well.

Reviewed by:	jceel, dsl
Differential Revision: https://reviews.freebsd.org/D42644

(cherry picked from commit 6c46ebb05dccdcee18f64dc122e6685c05180217)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
'pcs-handles' are not mandatory in the device tree here so do not
enforce them.  This allows us to find dpmac entries needed for phys
on the WHLE-LS1 as well.

Reviewed by:	jceel, dsl
Differential Revision: https://reviews.freebsd.org/D42644

(cherry picked from commit 6c46ebb05dccdcee18f64dc122e6685c05180217)
</pre>
</div>
</content>
</entry>
</feed>
