<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/cxgbe, branch releng/14.2</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>cxgbe: Add a 'show t4 memdump' DDB command</title>
<updated>2024-10-21T18:49:27+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-07-03T15:05:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e42a182bb7f69d53ea35dfe22e16a1944c280066'/>
<id>e42a182bb7f69d53ea35dfe22e16a1944c280066</id>
<content type='text'>
Reviewed by:	np
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D45187

(cherry picked from commit 1edf61f395d98a5abb7d6f38e5e64722b4ddf351)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	np
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D45187

(cherry picked from commit 1edf61f395d98a5abb7d6f38e5e64722b4ddf351)
</pre>
</div>
</content>
</entry>
<entry>
<title>cxgbe(4): Use correct synchronization when marking the adapter offline.</title>
<updated>2024-10-21T17:15:33+00:00</updated>
<author>
<name>Navdeep Parhar</name>
<email>np@FreeBSD.org</email>
</author>
<published>2024-10-04T18:11:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=42d8f6b75933329aaa7fcffed3abc5c7bfb43cb2'/>
<id>42d8f6b75933329aaa7fcffed3abc5c7bfb43cb2</id>
<content type='text'>
adapter-&gt;flags are guarded by a synch_op, as noted in the comment in
adapter.h where the flags are defined.

Fixes:	5241b210a4e cxgbe(4): Basic infrastructure for ULDs to participate in adapter reset.
Sponsored by:	Chelsio Communications

(cherry picked from commit 52e5a66eac22d24e29f204c5b65232378e71f4cf)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
adapter-&gt;flags are guarded by a synch_op, as noted in the comment in
adapter.h where the flags are defined.

Fixes:	5241b210a4e cxgbe(4): Basic infrastructure for ULDs to participate in adapter reset.
Sponsored by:	Chelsio Communications

(cherry picked from commit 52e5a66eac22d24e29f204c5b65232378e71f4cf)
</pre>
</div>
</content>
</entry>
<entry>
<title>cxgbe(4): Allow t4_tom to be unloaded safely.</title>
<updated>2024-10-21T17:15:11+00:00</updated>
<author>
<name>Navdeep Parhar</name>
<email>np@FreeBSD.org</email>
</author>
<published>2024-09-29T23:29:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0eea8754aefc64ce862705a13215837f50ee8983'/>
<id>0eea8754aefc64ce862705a13215837f50ee8983</id>
<content type='text'>
* Disable IFCAP_TOE automatically on all ifnets on all adapters during
  unload.  This is user-friendly and avoids panics due to stale ifnet
  state after t4_tom is unloaded.
* Do not allow unload if tids are in use by the TOE on any adapter.

Reported by:	Bimal Abraham @ Chelsio
Sponsored by:	Chelsio Communications

(cherry picked from commit 9ba8670a8b175de79ea087688f51595b4f2db862)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Disable IFCAP_TOE automatically on all ifnets on all adapters during
  unload.  This is user-friendly and avoids panics due to stale ifnet
  state after t4_tom is unloaded.
* Do not allow unload if tids are in use by the TOE on any adapter.

Reported by:	Bimal Abraham @ Chelsio
Sponsored by:	Chelsio Communications

(cherry picked from commit 9ba8670a8b175de79ea087688f51595b4f2db862)
</pre>
</div>
</content>
</entry>
<entry>
<title>cxgbe/t4_tom: Remove duplicate unlock in t4_tom_deactivate.</title>
<updated>2024-10-21T17:14:56+00:00</updated>
<author>
<name>Navdeep Parhar</name>
<email>np@FreeBSD.org</email>
</author>
<published>2024-09-29T20:04:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=48473a98a99355eec1bd029c09cac3dcfeead7d0'/>
<id>48473a98a99355eec1bd029c09cac3dcfeead7d0</id>
<content type='text'>
Fixes:	c1c524852f62 cxgbe/t4_tom: Implement uld_stop and uld_restart for ULD_TOM.
Sponsored by:	Chelsio Communications

(cherry picked from commit cc110bbec6d23d8cff47733704c71de641d0c8e8)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes:	c1c524852f62 cxgbe/t4_tom: Implement uld_stop and uld_restart for ULD_TOM.
Sponsored by:	Chelsio Communications

(cherry picked from commit cc110bbec6d23d8cff47733704c71de641d0c8e8)
</pre>
</div>
</content>
</entry>
<entry>
<title>cxgbe(4): Clobber all tracer state on stop and redo only traceq on restart.</title>
<updated>2024-10-21T17:14:39+00:00</updated>
<author>
<name>Navdeep Parhar</name>
<email>np@FreeBSD.org</email>
</author>
<published>2024-09-24T23:28:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b9f7a09c490f4eb6b9c179d1dfd756e236494998'/>
<id>b9f7a09c490f4eb6b9c179d1dfd756e236494998</id>
<content type='text'>
Tracers have to be recreated after a restart but that's okay given that
they are used for debugging only.

Sponsored by:	Chelsio Communications

(cherry picked from commit ee3da604dd016439850dae77366796313e60f0e0)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tracers have to be recreated after a restart but that's okay given that
they are used for debugging only.

Sponsored by:	Chelsio Communications

(cherry picked from commit ee3da604dd016439850dae77366796313e60f0e0)
</pre>
</div>
</content>
</entry>
<entry>
<title>cxgbe/t4_tom: Do not set unresolved entries to STALE in t4_l2t_update.</title>
<updated>2024-10-21T17:14:23+00:00</updated>
<author>
<name>Navdeep Parhar</name>
<email>np@FreeBSD.org</email>
</author>
<published>2024-09-24T14:35:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b56fe21c6df2911f96263675298e19e9b8720366'/>
<id>b56fe21c6df2911f96263675298e19e9b8720366</id>
<content type='text'>
An L2 entry in the driver's hash was marked STALE unconditionally if it
changed in the kernel when its driver refcount is 0.  Fix the driver to
do this for VALID entries only.

Sponsored by:	Chelsio Communications

(cherry picked from commit 3883300afe0bff5c5658274c4d8cfe773d08343e)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An L2 entry in the driver's hash was marked STALE unconditionally if it
changed in the kernel when its driver refcount is 0.  Fix the driver to
do this for VALID entries only.

Sponsored by:	Chelsio Communications

(cherry picked from commit 3883300afe0bff5c5658274c4d8cfe773d08343e)
</pre>
</div>
</content>
</entry>
<entry>
<title>cxgbe/t4_tom: completely avoid L2T entries during stop/suspend.</title>
<updated>2024-10-21T17:14:04+00:00</updated>
<author>
<name>Navdeep Parhar</name>
<email>np@FreeBSD.org</email>
</author>
<published>2024-09-14T04:23:23+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2c9c295f5e9555a642de6e9473bf3571f593f4c4'/>
<id>2c9c295f5e9555a642de6e9473bf3571f593f4c4</id>
<content type='text'>
1. Mark the L2T entry valid only if t4_write_l2e succeeds, which won't
   happen if the adapter is stopped.  This prevents L2T entries from
   sometimes getting (re)promoted to VALID on Tx activity during stop.
2. Discard a work request immediately instead of enqueueing it to the
   arp queue if the adapter is stopped.

Fixes:	c1c524852f62 cxgbe/t4_tom: Implement uld_stop and uld_restart for ULD_TOM.
Sponsored by:	Chelsio Communications

(cherry picked from commit 07f47e8850d0639d474026b203013072aeb32c81)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. Mark the L2T entry valid only if t4_write_l2e succeeds, which won't
   happen if the adapter is stopped.  This prevents L2T entries from
   sometimes getting (re)promoted to VALID on Tx activity during stop.
2. Discard a work request immediately instead of enqueueing it to the
   arp queue if the adapter is stopped.

Fixes:	c1c524852f62 cxgbe/t4_tom: Implement uld_stop and uld_restart for ULD_TOM.
Sponsored by:	Chelsio Communications

(cherry picked from commit 07f47e8850d0639d474026b203013072aeb32c81)
</pre>
</div>
</content>
</entry>
<entry>
<title>cxgbe(4): Make sure that the tracing filters are usable after restart.</title>
<updated>2024-10-21T17:13:47+00:00</updated>
<author>
<name>Navdeep Parhar</name>
<email>np@FreeBSD.org</email>
</author>
<published>2024-09-11T08:01:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=261c616077acf134a5d8117f6e4cffbd5f970a35'/>
<id>261c616077acf134a5d8117f6e4cffbd5f970a35</id>
<content type='text'>
The destination queue for tracing filters is destroyed during stop or
suspend and the software state needs to reflect this.  A new destination
queue will be setup when the adapter resumes operation.

Sponsored by:	Chelsio Communications

(cherry picked from commit d82cb5c608ae9aaced4cb459ca511e62c64dbf74)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The destination queue for tracing filters is destroyed during stop or
suspend and the software state needs to reflect this.  A new destination
queue will be setup when the adapter resumes operation.

Sponsored by:	Chelsio Communications

(cherry picked from commit d82cb5c608ae9aaced4cb459ca511e62c64dbf74)
</pre>
</div>
</content>
</entry>
<entry>
<title>cxgbe/t4_tom: Demote STALE L2 table entries to RESOLVING in uld_stop.</title>
<updated>2024-10-21T17:09:52+00:00</updated>
<author>
<name>Navdeep Parhar</name>
<email>np@FreeBSD.org</email>
</author>
<published>2024-09-11T07:11:13+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=610ff48406ef779922298e3b9759fb0abb57e0eb'/>
<id>610ff48406ef779922298e3b9759fb0abb57e0eb</id>
<content type='text'>
The STALE state means the L2T entry is valid in hardware but needs to be
refreshed (ARP/NDP) in software.  But stop/suspend wipes the hardware
L2T and STALE entries need to be updated just like VALID entries to match
actual hardware state.

Fixes:	c1c524852f62 cxgbe/t4_tom: Implement uld_stop and uld_restart for ULD_TOM.
Sponsored by:	Chelsio Communications

(cherry picked from commit 171e57967b3e53f0fb48116df5003ce17163295c)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The STALE state means the L2T entry is valid in hardware but needs to be
refreshed (ARP/NDP) in software.  But stop/suspend wipes the hardware
L2T and STALE entries need to be updated just like VALID entries to match
actual hardware state.

Fixes:	c1c524852f62 cxgbe/t4_tom: Implement uld_stop and uld_restart for ULD_TOM.
Sponsored by:	Chelsio Communications

(cherry picked from commit 171e57967b3e53f0fb48116df5003ce17163295c)
</pre>
</div>
</content>
</entry>
<entry>
<title>cxgbe/t4_tom: Add synq entry to the list before calling send_synack.</title>
<updated>2024-10-21T17:09:37+00:00</updated>
<author>
<name>Navdeep Parhar</name>
<email>np@FreeBSD.org</email>
</author>
<published>2024-09-06T06:21:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b5c08433224be47da8ce5d4ea66f17e58cfbf650'/>
<id>b5c08433224be47da8ce5d4ea66f17e58cfbf650</id>
<content type='text'>
This fixes a panic where the peer's ack to the synack arrives on a
different queue and do_pass_establish tries to remove the synqe from
synqe_list before it has been added by do_pass_accept_req.

Reported by:	Sony Arpita Das @ Chelsio
Fixes:	283333c0e329 cxgbe/t4_tom: Track all synq entries in a per-adapter list.
Sponsored by:	Chelsio Communications

(cherry picked from commit 674cbf38f6d0a0b307e52c4265da9f077606b035)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes a panic where the peer's ack to the synack arrives on a
different queue and do_pass_establish tries to remove the synqe from
synqe_list before it has been added by do_pass_accept_req.

Reported by:	Sony Arpita Das @ Chelsio
Fixes:	283333c0e329 cxgbe/t4_tom: Track all synq entries in a per-adapter list.
Sponsored by:	Chelsio Communications

(cherry picked from commit 674cbf38f6d0a0b307e52c4265da9f077606b035)
</pre>
</div>
</content>
</entry>
</feed>
