regression from 6.12.48 to 6.12.49: usb wlan adaptor stops working: bisected
Subsystems (3)
Hello,o
after upgrading to 6.12.49 my wlan adapter stops working. It is detected:
kernel: mt76x2u 4-2:1.0: ASIC revision: 76120044
kernel: mt76x2u 4-2:1.0: ROM patch build: 20141115060606a
kernel: usb 3-4: reset high-speed USB device number 2 using xhci_hcd
kernel: mt76x2u 4-2:1.0: Firmware Version: 0.0.00
kernel: mt76x2u 4-2:1.0: Build: 1
kernel: mt76x2u 4-2:1.0: Build Time: 201507311614____
but does nor work. The following 2 messages probably are relevant:
kernel: mt76x2u 4-2:1.0: MAC RX failed to stop
kernel: mt76x2u 4-2:1.0: MAC RX failed to stop
later I see a lot of
kernel: mt76x2u 4-2:1.0: error: mt76x02u_mcu_wait_resp failed with -110
I bisected it down to commit
9b28ef1e4cc07cdb35da257aa4358d0127168b68
usb: xhci: remove option to change a default ring's TRB cycle bit
9b28ef1e4cc07cdb35da257aa4358d0127168b68 is the first bad commit commit 9b28ef1e4cc07cdb35da257aa4358d0127168b68
Author: Niklas Neronin <[email protected]> Date: Wed Sep 17 08:39:07 2025 -0400
usb: xhci: remove option to change a default ring's TRB cycle bit
[ Upstream commit e1b0fa863907a61e86acc19ce2d0633941907c8e ]
The TRB cycle bit indicates TRB ownership by the Host Controller
(HC) or
Host Controller Driver (HCD). New rings are initialized with
'cycle_state'
equal to one, and all its TRBs' cycle bits are set to zero. When
handling
ring expansion, set the source ring cycle bits to the same value as
the
destination ring.
Move the cycle bit setting from xhci_segment_alloc() toxhci_link_rings(),
and remove the 'cycle_state' argument fromxhci_initialize_ring_info().
The xhci_segment_alloc() function uses kzalloc_node() to allocate
segments,
ensuring that all TRB cycle bits are initialized to zero.
Link:
https://lore.kernel.org/r/[email protected]
Stable-dep-of: a5c98e8b1398 ("xhci: dbc: Fix full DbC transfer ring
after several reconnects")
Regards,
Signature · 3 lines
Wolfgang Walter Studierendenwerk München Oberbayern Anstalt des öffentlichen Rechts
Greg Kroah-Hartman
maintainerQuoted 50 lines · Wolfgang Walter
Hello,o
after upgrading to 6.12.49 my wlan adapter stops working. It is detected:kernel: mt76x2u 4-2:1.0: ASIC revision: 76120044
kernel: mt76x2u 4-2:1.0: ROM patch build:20141115060606a
kernel: usb 3-4: reset high-speed USB device number 2 usingxhci_hcd
kernel: mt76x2u 4-2:1.0: Firmware Version: 0.0.00
kernel: mt76x2u 4-2:1.0: Build: 1
kernel: mt76x2u 4-2:1.0: Build Time: 201507311614____but does nor work. The following 2 messages probably are relevant:
kernel: mt76x2u 4-2:1.0: MAC RX failed to stop
kernel: mt76x2u 4-2:1.0: MAC RX failed to stoplater I see a lot of
kernel: mt76x2u 4-2:1.0: error:
mt76x02u_mcu_wait_respfailed with -110I bisected it down to commit
9b28ef1e4cc07cdb35da257aa4358d0127168b68
usb: xhci: remove option to change a default ring's TRB cycle bit
9b28ef1e4cc07cdb35da257aa4358d0127168b68is the first bad commit commit9b28ef1e4cc07cdb35da257aa4358d0127168b68Author: Niklas Neronin <[email protected]> Date: Wed Sep 17 08:39:07 2025 -0400usb: xhci: remove option to change a default ring's TRB cycle bit
[ Upstream commit
e1b0fa863907a61e86acc19ce2d0633941907c8e]The TRB cycle bit indicates TRB ownership by the Host Controller (HC) or Host Controller Driver (HCD). New rings are initialized with
'cycle_state'
equal to one, and all its TRBs' cycle bits are set to zero. When
handling
ring expansion, set the source ring cycle bits to the same value as the destination ring.Move the cycle bit setting from
xhci_segment_alloc()toxhci_link_rings(),
and remove the 'cycle_state' argument fromxhci_initialize_ring_info(). Thexhci_segment_alloc()function useskzalloc_node()to allocate
segments,
ensuring that all TRB cycle bits are initialized to zero.
Quoted 10 lines
Signed-off-by Niklas Neronin <[email protected]>Signed-off-by Mathias Nyman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Stable-dep-of:
a5c98e8b1398("xhci: dbc: Fix full DbC transfer ring
after several reconnects")Signed-off-by Sasha Levin <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Does 6.17 also have this problem?
thanks,
greg k-h
Quoted 46 lines · Wolfgang Walter
Hello,o
after upgrading to 6.12.49 my wlan adapter stops working. It is detected:kernel: mt76x2u 4-2:1.0: ASIC revision: 76120044
kernel: mt76x2u 4-2:1.0: ROM patch build:20141115060606a
kernel: usb 3-4: reset high-speed USB device number 2 usingxhci_hcd
kernel: mt76x2u 4-2:1.0: Firmware Version: 0.0.00
kernel: mt76x2u 4-2:1.0: Build: 1
kernel: mt76x2u 4-2:1.0: Build Time: 201507311614____but does nor work. The following 2 messages probably are relevant:
kernel: mt76x2u 4-2:1.0: MAC RX failed to stop
kernel: mt76x2u 4-2:1.0: MAC RX failed to stoplater I see a lot of
kernel: mt76x2u 4-2:1.0: error:
mt76x02u_mcu_wait_respfailed with -110I bisected it down to commit
9b28ef1e4cc07cdb35da257aa4358d0127168b68
usb: xhci: remove option to change a default ring's TRB cycle bit
9b28ef1e4cc07cdb35da257aa4358d0127168b68is the first bad commit commit9b28ef1e4cc07cdb35da257aa4358d0127168b68
Author: Niklas Neronin <[email protected]> Date: Wed Sep 17 08:39:07 2025 -0400usb: xhci: remove option to change a default ring's TRB cycle bit
[ Upstream commit
e1b0fa863907a61e86acc19ce2d0633941907c8e]The TRB cycle bit indicates TRB ownership by the Host Controller (HC) or Host Controller Driver (HCD). New rings are initialized with '
cycle_state' equal to one, and all its TRBs' cycle bits are set to zero. When handling ring expansion, set the source ring cycle bits to the same value as the destination ring.Move the cycle bit setting from
xhci_segment_alloc()toxhci_link_rings(), and remove the 'cycle_state' argument fromxhci_initialize_ring_info(). Thexhci_segment_alloc()function useskzalloc_node()to allocate segments, ensuring that all TRB cycle bits are initialized to zero.
Quoted 8 lines
Signed-off-by Niklas Neronin <[email protected]>Signed-off-by Mathias Nyman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Stable-dep-of:
a5c98e8b1398("xhci: dbc: Fix full DbC transfer ring after several reconnects")Signed-off-by Sasha Levin <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Hi, could you test if the code below helps?
This reverts commit 9b28ef1e4cc0 ("usb: xhci: remove option to change a default ring's TRB cycle bit") which is upstream [2].
The original commit was never intended for stable kernels, but was added as a dependency for commit [1].
Revert it, and solve the dependency by modifying one line in xhci_dbc_ring_init(). The function call xhci_initialize_ring_info() was moved in commit [1] into xhci_dbc_ring_init(). Thus, xhci_initialize_ring_info() is also modified.
[1], commit a5c98e8b1398 ("xhci: dbc: Fix full DbC transfer ring after several reconnects")
[2], commit e1b0fa863907 ("usb: xhci: remove option to change a default ring's TRB cycle bit")
Best Regards,
Niklas
drivers/usb/host/xhci-dbgcap.c +1 -1
@@ -458,7 +458,7 @@ static void xhci_dbc_ring_init(struct xhci_ring *ring) trb->link.segment_ptr =cpu_to_le64 (ring->first_seg->dma); trb->link.control =cpu_to_le32 (LINK_TOGGLE |TRB_TYPE (TRB_LINK )); } -xhci_initialize_ring_info (ring); +xhci_initialize_ring_info (ring,1 ); }static int xhci_dbc_reinit_ep_rings (struct xhci_dbc *dbc)
drivers/usb/host/xhci-mem.c +27 -23
158 lines not on this page · raw message
drivers/usb/host/xhci.c +1 -1
@@ -769,7 +769,7 @@ static void xhci_clear_command_ring(struct xhci_hcd *xhci) seg->trbs[TRBS_PER_SEGMENT -1 ].link.control &=cpu_to_le32 (~TRB_CYCLE ); } -xhci_initialize_ring_info (ring); +xhci_initialize_ring_info (ring,1 );/* * Reset the hardware dequeue pointer. * Yes, this will need to be re-written after resume, but we're paranoid
drivers/usb/host/xhci.h +4 -2
@@ -1803,12 +1803,14 @@ void xhci_slot_copy(struct xhci_hcd *xhci,int xhci_endpoint_init (struct xhci_hcd *xhci,struct xhci_virt_device *virt_dev,struct usb_device *udev,struct usb_host_endpoint *ep,gfp_t mem_flags); -struct xhci_ring *xhci_ring_alloc (struct xhci_hcd *xhci,unsigned int num_segs, +struct xhci_ring *xhci_ring_alloc (struct xhci_hcd *xhci, +unsigned int num_segs,unsigned int cycle_state,enum xhci_ring_type type,unsigned int max_packet,gfp_t flags);void xhci_ring_free (struct xhci_hcd *xhci,struct xhci_ring *ring);int xhci_ring_expansion (struct xhci_hcd *xhci,struct xhci_ring *ring,unsigned int num_trbs,gfp_t flags); -void xhci_initialize_ring_info (struct xhci_ring *ring); +void xhci_initialize_ring_info (struct xhci_ring *ring, +unsigned int cycle_state);void xhci_free_endpoint_ring (struct xhci_hcd *xhci,struct xhci_virt_device *virt_dev,unsigned int ep_index);
Signature · 1 line
2.50.1
Hello Niklas!
Am 2025-09-29 16:08, schrieb Neronin, Niklas:
Quoted 57 lines · Wolfgang Walter
Quoted 47 lines
Hello,o
after upgrading to 6.12.49 my wlan adapter stops working. It is detected:kernel: mt76x2u 4-2:1.0: ASIC revision: 76120044
kernel: mt76x2u 4-2:1.0: ROM patch build:20141115060606a
kernel: usb 3-4: reset high-speed USB device number 2 usingxhci_hcd
kernel: mt76x2u 4-2:1.0: Firmware Version: 0.0.00
kernel: mt76x2u 4-2:1.0: Build: 1
kernel: mt76x2u 4-2:1.0: Build Time: 201507311614____but does nor work. The following 2 messages probably are relevant:
kernel: mt76x2u 4-2:1.0: MAC RX failed to stop
kernel: mt76x2u 4-2:1.0: MAC RX failed to stoplater I see a lot of
kernel: mt76x2u 4-2:1.0: error:
mt76x02u_mcu_wait_respfailed with -110I bisected it down to commit
9b28ef1e4cc07cdb35da257aa4358d0127168b68
usb: xhci: remove option to change a default ring's TRB cycle bit
9b28ef1e4cc07cdb35da257aa4358d0127168b68is the first bad commit commit9b28ef1e4cc07cdb35da257aa4358d0127168b68
Author: Niklas Neronin <[email protected]> Date: Wed Sep 17 08:39:07 2025 -0400usb: xhci: remove option to change a default ring's TRB cycle bit
[ Upstream commit
e1b0fa863907a61e86acc19ce2d0633941907c8e]The TRB cycle bit indicates TRB ownership by the Host Controller (HC) or Host Controller Driver (HCD). New rings are initialized with '
cycle_state' equal to one, and all its TRBs' cycle bits are set to zero. When handling ring expansion, set the source ring cycle bits to the same value as the destination ring.Move the cycle bit setting from
xhci_segment_alloc()toxhci_link_rings(), and remove the 'cycle_state' argument fromxhci_initialize_ring_info(). Thexhci_segment_alloc()function useskzalloc_node()to allocate segments, ensuring that all TRB cycle bits are initialized to zero.Quoted 8 lines
Signed-off-by Niklas Neronin <[email protected]>Signed-off-by Mathias Nyman <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Stable-dep-of:
a5c98e8b1398("xhci: dbc: Fix full DbC transfer ring after several reconnects")Signed-off-by Sasha Levin <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 1 line
Hi, could you test if the code below helps?
Yes, this fixes the issue. Thanks a lot.
Quoted 276 lines
This reverts commit
9b28ef1e4cc0("usb: xhci: remove option to change a default ring's TRB cycle bit") which is upstream [2].The original commit was never intended for stable kernels, but was added as a dependency for commit [1].
Revert it, and solve the dependency by modifying one line in
xhci_dbc_ring_init(). The function callxhci_initialize_ring_info()was moved in commit [1] intoxhci_dbc_ring_init(). Thus,xhci_initialize_ring_info()is also modified.[1], commit
a5c98e8b1398("xhci: dbc: Fix full DbC transfer ring after several reconnects")[2], commit
e1b0fa863907("usb: xhci: remove option to change a default ring's TRB cycle bit")Best Regards,
Niklasdrivers/usb/host/xhci-dbgcap.c +1
-1@@ -458,7 +458,7 @@ static void xhci_dbc_ring_init(struct xhci_ring *ring) trb->link.segment_ptr =cpu_to_le64 (ring->first_seg->dma); trb->link.control =cpu_to_le32 (LINK_TOGGLE |TRB_TYPE (TRB_LINK )); } -xhci_initialize_ring_info (ring); +xhci_initialize_ring_info (ring,1 ); }static int
xhci_dbc_reinit_ep_rings(struct xhci_dbc *dbc)drivers/usb/host/xhci-mem.c +0
-0@@ -27,12 +27,14 @@* "All components of all Command and Transfer TRBs shall be initialized to '0'"
*/
static structxhci_segment*xhci_segment_alloc(structxhci_hcd*xhci,drivers/usb/host/xhci-mem.c +7
-0+unsigned int cycle_state, unsigned int max_packet, unsigned int num, gfp_t flags) { struct xhci_segment *seg;dma_addr_t dma; +int i;struct device *dev =xhci_to_hcd (xhci)->self.sysdev; seg =kzalloc_node (sizeof (*seg), flags,dev_to_node (dev));@@ -54,6 +56,11 @@ static struct xhci_segment *xhci_segment_alloc(struct xhci_hcd *xhci, return NULL; } } + /* If the cycle state is 0, set the cycle bit to 1 for all the TRBs */ + if (cycle_state == 0) { + for (i = 0; i < TRBS_PER_SEGMENT; i++) + seg->trbs[i].link.control = cpu_to_le32(TRB_CYCLE); + } seg->num = num;drivers/usb/host/xhci-mem.c +0
-8seg->dma = dma; seg->next =NULL ;@@ -131,14 +138,6 @@ static void xhci_link_rings(struct xhci_hcd *xhci,struct xhci_ring *ring, chain_links = xhci_link_chain_quirk(xhci, ring->type); -/* If the cycle state is 0, set the cycle bit to 1 for all the TRBs */ -if (ring->cycle_state ==0 ) { -xhci_for_each_ring_seg (ring->first_seg, seg) { -for (int i =0 ; i <TRBS_PER_SEGMENT ; i++) - seg->trbs[i].link.control |=cpu_to_le32 (TRB_CYCLE ); - } - } - next = ring->enq_seg->next;drivers/usb/host/xhci-mem.c +2
-1xhci_link_segments (ring->enq_seg, first, ring->type, chain_links);xhci_link_segments (last, next, ring->type, chain_links);@@ -288,7 +287,8 @@ void xhci_ring_free(struct xhci_hcd *xhci, struct xhci_ring *ring)kfree (ring ); } -void xhci_initialize_ring_info (struct xhci_ring *ring) +void xhci_initialize_ring_info (struct xhci_ring *ring, +unsigned int cycle_state) {/* The ring is empty, so the enqueue pointer == dequeue pointer */ drivers/usb/host/xhci-mem.c +0
-0ring->enqueue = ring->first_seg->trbs;@@ -302,7 +302,7 @@ void xhci_initialize_ring_info(struct xhci_ring *ring) * New rings are initialized with cycle state equal to 1; if we are * handling ring expansion, set the cycle state equal to the oldring.
drivers/usb/host/xhci-mem.c +2
-1*/ - ring->cycle_state =1 ; + ring->cycle_state = cycle_state;/* * Each segment has a link TRB, and leave an extra TRB for SW @@ -317,6 +317,7 @@ static int xhci_alloc_segments_for_ring(structxhci_hcd *xhci, struct xhci_segment **first, struct xhci_segment **last, unsigned int num_segs, + unsigned int cycle_state, enum xhci_ring_type type, unsigned int max_packet,drivers/usb/host/xhci-mem.c +1
-1gfp_t flags)@@ -327,7 +328,7 @@ static int xhci_alloc_segments_for_ring(structxhci_hcd *xhci, chain_links =xhci_link_chain_quirk (xhci, type); - prev =xhci_segment_alloc (xhci, max_packet, num, flags); + prev =xhci_segment_alloc (xhci, cycle_state, max_packet, num, flags);if (!prev)return -ENOMEM ;drivers/usb/host/xhci-mem.c +5
-3num++;@@ -336,7 +337,8 @@ static int xhci_alloc_segments_for_ring(struct xhci_hcd *xhci, while (num < num_segs) {struct xhci_segment *next; - next =xhci_segment_alloc (xhci, max_packet, num, flags); + next =xhci_segment_alloc (xhci, cycle_state, max_packet, num, + flags);if (!next) goto free_segments;@@ -361,8 +363,9 @@ static int xhci_alloc_segments_for_ring(structxhci_hcd *xhci, * Set the end flag and the cycle toggle bit on the last segment. * See section 4.9.1 and figures 15 and 16. */ -struct xhci_ring *xhci_ring_alloc (struct xhci_hcd *xhci,unsigned int num_segs, -enum xhci_ring_type type,unsigned int max_packet,gfp_t flags) +struct xhci_ring *xhci_ring_alloc(struct xhci_hcd *xhci, +unsigned int num_segs,unsigned int cycle_state, +enum xhci_ring_type type,unsigned int max_packet,gfp_t flags) {drivers/usb/host/xhci-mem.c +1
-1struct xhci_ring *ring;int ret;@@ -380,7 +383,7 @@ struct xhci_ring *xhci_ring_alloc(struct xhci_hcd *xhci, unsigned int num_segs, return ring; ret =xhci_alloc_segments_for_ring (xhci, &ring->first_seg, &ring->last_seg, num_segs, - type, max_packet, flags); + cycle_state, type, max_packet, flags);if (ret)drivers/usb/host/xhci-mem.c +3
-3goto fail;@@ -390,7 +393,7 @@ struct xhci_ring *xhci_ring_alloc(struct xhci_hcd *xhci, unsigned int num_segs, ring->last_seg->trbs[TRBS_PER_SEGMENT -1 ].link.control |=cpu_to_le32 (LINK_TOGGLE ); } -xhci_initialize_ring_info (ring); +xhci_initialize_ring_info (ring, cycle_state);trace_xhci_ring_alloc (ring);return ring;@@ -418,8 +421,8 @@ int xhci_ring_expansion(struct xhci_hcd *xhci,struct xhci_ring *ring, struct xhci_segment *last;int ret; - ret =xhci_alloc_segments_for_ring (xhci, &first, &last, num_new_segs, ring->type, - ring->bounce_buf_len, flags); + ret =xhci_alloc_segments_for_ring (xhci, &first, &last, num_new_segs, ring->cycle_state, + ring->type, ring->bounce_buf_len, flags);drivers/usb/host/xhci-mem.c +2
-1if (ret)return -ENOMEM ;@@ -629,7 +632,8 @@ struct xhci_stream_info *xhci_alloc_stream_info(struct xhci_hcd *xhci, for (cur_stream = 1; cur_stream < num_streams; cur_stream++) { stream_info->stream_rings[cur_stream] = - xhci_ring_alloc(xhci, 2, TYPE_STREAM, max_packet, mem_flags); + xhci_ring_alloc(xhci, 2, 1, TYPE_STREAM, max_packet, + mem_flags); cur_ring = stream_info->stream_rings[cur_stream]; if (!cur_ring)drivers/usb/host/xhci-mem.c +3
-3goto cleanup_rings;@@ -970,7 +974,7 @@ int xhci_alloc_virt_device(struct xhci_hcd *xhci, int slot_id, }/* Allocate endpoint 0 ring */ - dev->eps[0 ].ring =xhci_ring_alloc (xhci,2 ,TYPE_CTRL ,0 , flags); + dev->eps[0 ].ring =xhci_ring_alloc (xhci,2 ,1 ,TYPE_CTRL ,0 , flags);if (!dev->eps[0 ].ring) goto fail;@@ -1453,7 +1457,7 @@ int xhci_endpoint_init(struct xhci_hcd *xhci,/* Set up the endpoint ring */ virt_dev->eps[ep_index].new_ring = -xhci_ring_alloc (xhci,2 , ring_type, max_packet, mem_flags); +xhci_ring_alloc (xhci,2 ,1 , ring_type, max_packet, mem_flags);if (!virt_dev->eps[ep_index].new_ring)return -ENOMEM ;@@ -2262,7 +2266,7 @@ xhci_alloc_interrupter(struct xhci_hcd *xhci, unsigned int segs, gfp_t flags)if (!ir)return NULL ; - ir->event_ring =xhci_ring_alloc (xhci, segs,TYPE_EVENT ,0 , flags); + ir->event_ring =xhci_ring_alloc (xhci, segs,1 ,TYPE_EVENT ,0 , flags);if (!ir->event_ring) {drivers/usb/host/xhci-mem.c +1
-1xhci_warn (xhci,"Failed to allocate interrupter event ring\n" );kfree (ir);@@ -2468,7 +2472,7 @@ int xhci_mem_init(struct xhci_hcd *xhci, gfp_t flags) goto fail;/* Set up the command ring to have one segments for now. */ - xhci->cmd_ring =xhci_ring_alloc (xhci,1 ,TYPE_COMMAND ,0 , flags); + xhci->cmd_ring =xhci_ring_alloc (xhci,1 ,1 ,TYPE_COMMAND ,0 , flags);if (!xhci->cmd_ring) goto fail;drivers/usb/host/xhci-mem.c +0
-0xhci_dbg_trace(xhci, trace_xhci_dbg_init,drivers/usb/host/xhci.c +1
-1@@ -769,7 +769,7 @@ static void xhci_clear_command_ring(struct xhci_hcd *xhci) seg->trbs[TRBS_PER_SEGMENT -1 ].link.control &=cpu_to_le32 (~TRB_CYCLE ); } -xhci_initialize_ring_info (ring); +xhci_initialize_ring_info (ring,1 );/* drivers/usb/host/xhci.c +0
-0* Reset the hardware dequeue pointer. * Yes, this will need to be re-written after resume, but we're paranoid
drivers/usb/host/xhci.h +4
-2@@ -1803,12 +1803,14 @@ void xhci_slot_copy(struct xhci_hcd *xhci,int xhci_endpoint_init (struct xhci_hcd *xhci,struct xhci_virt_device *virt_dev,struct usb_device *udev,struct usb_host_endpoint *ep,gfp_t mem_flags); -struct xhci_ring *xhci_ring_alloc (struct xhci_hcd *xhci,unsigned int num_segs, +struct xhci_ring *xhci_ring_alloc(struct xhci_hcd *xhci, +unsigned int num_segs,unsigned int cycle_state,enum xhci_ring_type type,unsigned int max_packet,gfp_t flags);void xhci_ring_free (struct xhci_hcd *xhci,struct xhci_ring *ring);int xhci_ring_expansion (struct xhci_hcd *xhci,struct xhci_ring *ring,unsigned int num_trbs,gfp_t flags); -void xhci_initialize_ring_info (struct xhci_ring *ring); +void xhci_initialize_ring_info (struct xhci_ring *ring, +unsigned int cycle_state); void xhci_free_endpoint_ring(struct xhci_hcd *xhci,
drivers/usb/host/xhci.h void xhci_slot_copy(struct xhci_hcd *xhci, · line 1816
Quoted 2 lines
drivers/usb/host/xhci.h +0
-0struct xhci_virt_device *virt_dev, unsigned int ep_index);
Regards,
Signature · 3 lines
Wolfgang Walter Studierendenwerk München Oberbayern Anstalt des öffentlichen Rechts
Am 2025-09-29 15:27, schrieb Greg Kroah-Hartman:
Quoted 68 lines · Wolfgang Walter
Quoted 56 lines
Hello,o
after upgrading to 6.12.49 my wlan adapter stops working. It is detected:kernel: mt76x2u 4-2:1.0: ASIC revision: 76120044
kernel: mt76x2u 4-2:1.0: ROM patch build:20141115060606a
kernel: usb 3-4: reset high-speed USB device number 2 usingxhci_hcd
kernel: mt76x2u 4-2:1.0: Firmware Version: 0.0.00
kernel: mt76x2u 4-2:1.0: Build: 1
kernel: mt76x2u 4-2:1.0: Build Time: 201507311614____but does nor work. The following 2 messages probably are relevant:
kernel: mt76x2u 4-2:1.0: MAC RX failed to stop
kernel: mt76x2u 4-2:1.0: MAC RX failed to stoplater I see a lot of
kernel: mt76x2u 4-2:1.0: error:
mt76x02u_mcu_wait_respfailed with -110I bisected it down to commit
9b28ef1e4cc07cdb35da257aa4358d0127168b68
usb: xhci: remove option to change a default ring's TRB cycle bit
9b28ef1e4cc07cdb35da257aa4358d0127168b68is the first bad commit commit9b28ef1e4cc07cdb35da257aa4358d0127168b68Author: Niklas Neronin <[email protected]> Date: Wed Sep 17 08:39:07 2025 -0400usb: xhci: remove option to change a default ring's TRB cycle bit
[ Upstream commit
e1b0fa863907a61e86acc19ce2d0633941907c8e]The TRB cycle bit indicates TRB ownership by the Host Controller
(HC) or
Host Controller Driver (HCD). New rings are initialized with
'cycle_state'
equal to one, and all its TRBs' cycle bits are set to zero. When
handling
ring expansion, set the source ring cycle bits to the same value
as the
destination ring.Move the cycle bit setting from
xhci_segment_alloc()toxhci_link_rings(),
and remove the 'cycle_state' argument fromxhci_initialize_ring_info().
Thexhci_segment_alloc()function useskzalloc_node()to allocate
segments,
ensuring that all TRB cycle bits are initialized to zero.Signed-off-by Niklas Neronin <[email protected]>Signed-off-by Mathias Nyman <[email protected]>Quoted 10 lines
Link:
https://lore.kernel.org/r/[email protected]Signed-off-by Greg Kroah-Hartman <[email protected]>Stable-dep-of:
a5c98e8b1398("xhci: dbc: Fix full DbC transfer
ring
after several reconnects")Signed-off-by Sasha Levin <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 5 lines
Does 6.17 also have this problem?
thanks,
greg k-h
I built a 6.17 kernel and it works fine, so no, 6.17 does not have this problem.
Thanks a lot to you and all kernel developers who make the stable and longterm kernels possible. We use them since many years and are very happy with them.
Regards
Signature · 3 lines
Wolfgang Walter Studierendenwerk München Oberbayern Anstalt des öffentlichen Rechts