Bug 268409 - USB Device : Interrupt Endpoint Data Getting Lost after xhci_configure_reset_endpoint.
Summary: USB Device : Interrupt Endpoint Data Getting Lost after xhci_configure_reset_...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 12.2-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-16 11:44 UTC by Teja Chitikela
Modified: 2022-12-20 01:26 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Teja Chitikela 2022-12-16 11:44:44 UTC
We are using a Smart Card - Device.

After Picking the Below patch we are observing the issue.

Patch Picked : https://cgit.freebsd.org/src/commit/?id=3644b92099938b.

(Patch is required as it is resolving Connectivity issue of Few Devices)

Issue Looks similar to 

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263995

But applying the patch 

https://cgit.freebsd.org/src/commit/?id=b6f615255d8bcdf40604005b11998eee86872364

is not helping in resolving the issue.
Comment 1 Hans Petter Selasky freebsd_committer freebsd_triage 2022-12-16 14:56:00 UTC
Hi,

Is this issue solved if you boot a 13-stable kernel?

--HPS
Comment 2 Hans Petter Selasky freebsd_committer freebsd_triage 2022-12-16 14:57:23 UTC
I'm not actively backporting patches to 12-stable. Maybe there are more patches you need?

Did you do a diff to see what is actually missing?

--HPS
Comment 3 Teja Chitikela 2022-12-16 16:10:06 UTC
Can you Let me know Which Areas you want to me to Focus for Comparing the code.

I Added a Log before return statement in the below patch.

https://cgit.freebsd.org/src/commit/?id=b6f615255d8bcdf40604005b11998eee86872364

and i did not observe the Log. i suspect this part of code getting called in my case.

Can you suggest the areas which needed to be Diffed to start with.
Comment 4 Hans Petter Selasky freebsd_committer freebsd_triage 2022-12-16 16:11:21 UTC
Hi,

sys/dev/usb/*.[ch]

and

sys/dev/usb/controller/*.[ch]

is probably what you want to compare!

--HPS
Comment 5 Hans Petter Selasky freebsd_committer freebsd_triage 2022-12-16 16:13:54 UTC
Hi,

There has been multiple changes in this area, and I thought that I would not MFC that to 12-stable to not break existing behaviour. Also there are two more patches coming for the XHCI controller, which I know about.

--HPS
Comment 6 Teja Chitikela 2022-12-20 01:26:10 UTC
On FREEBSD -Stable 12 Branch . the Smart Card device is not getting detected.
only the keyboard got detected.No endpoint generated for Smartcard

compared the code with FreeBSD Stable - 12 and couldn't find much changes/patches which help.