Repository navigation
tools/asahi: centauri-scan: follow btcentauri_t6050 RX descriptor skip - #3987
Merged
Merged
Conversation
Commit c1d23e2 ("Bluetooth: btcentauri_t6050: skip malformed RX descriptors") moved the event-ring consume step out of cen_io_work() into a new cen_rx_consume() helper and added dev_warn_ratelimited() calls. The Bluetooth harness copies cen_io_work() from the driver but had neither name, so bt-production failed to compile with -Werror=implicit-function-declaration, and the no-longer-called cen_rx_buffer() stub tripped -Werror=unused-function. Both centauri-scan-tests runs have failed on main since. Copy cen_rx_consume() from the driver along with the other ring helpers, so the harness still checks the real rx_head update and ring-7 post, and stub dev_warn_ratelimited() the same way as dev_err(). No test or negative control changes. Fixes: c1d23e2 ("Bluetooth: btcentauri_t6050: skip malformed RX descriptors") Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
RyanTheTide
approved these changes
Dec 2, 2026
RyanTheTide
left a comment
Contributor
There was a problem hiding this comment.
Reviewed 0510750. The harness now extracts the production RX consume helper and stubs only the diagnostic like its existing dev_err stub. Its ring bookkeeping assertions and negative controls stay in place. The reported 968/970 to 970/970 comparison isolates the harness compile regression.
This was referenced Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What: Fixes the
centauri-scan-testshost-test harness, which has failed onmainsince c1d23e2 ("Bluetooth: btcentauri_t6050: skip malformed RX descriptors"). The Bluetooth harness copiescen_io_work()from the driver. The driver now callscen_rx_consume()anddev_warn_ratelimited(), and the harness didn't have either, so it no longer compiled. That turned every PR's hosted host-tests red.Tested: no runtime change. Local host-tests in the workflow's Ubuntu 24.04 image (gcc 13, clang 18, rust 1.96.0):
mainat1b95b711gives 968/970, failing only the twocentauri-scan-testsjobs. This commit on that base gives 970/970.Risk: two-way door · none (test harness only, no kernel code)
Not yet: nothing. A test for the new malformed-descriptor skip path in
cen_io_work()would be a separate follow-up; the old stop-on-malformed path had no test either.Details
c1d23e2 moved the event-ring consume step (advance
rx_head, repost the buffer, advancerx_post, post ring 7) out ofcen_io_work()into a newcen_rx_consume()helper. It also logs bad descriptors withdev_warn_ratelimited(). The harness buildsbt-production.cwith-Wall -Wextra -Werror, so gcc 13 stopped on two errors:dev_warn_ratelimitedandcen_rx_consumecen_rx_bufferdefined but not used, since onlycen_rx_consume()calls it nowThe fix follows the harness's existing split. Pure ring bookkeeping is copied from the driver (
cen_rx_pending,cen_tx_ready, nowcen_rx_consume). Ring and hardware I/O stays stubbed (cen_post,cen_rx_buffer,cen_tail,cen_transmit). Becausecen_rx_consume()is copied rather than stubbed, test 1 still checks the realrx_headadvance and ring-7 post.dev_warn_ratelimited(...)becomes((void)0), likedev_errin the same prelude and other harnesses intools/asahi/.4ce92d0 ("fall back to host duplicate filtering") doesn't reach this harness: it changes
cen_transmit(), which is stubbed, andcen_hci_reset_dup_filter(), which isn't copied. No test, assertion or negative control changes. Both BT controls (bt-drops-rx-reschedule,bt-drops-tx-reschedule) still fail where they should.Evidence
Image
localhost/aurora-linux-host-tests:ubuntu2404(ca34f1dd2adb): ubuntu:24.04, gcc 13.3.0, clang 18.1.3, rust 1.96.0, Python 3.14. Run aspython3 -I tools/asahi/run-host-tests.py --jobs 10, with--network=none, on 20 threads.main1b95b71centauri-scan-tests, FAILcentauri-scan-tests --negative-controlsmain87c01c2 + this commit,--only centauri--negative-controlsoutput with this commit:checkpatch.pl --strict -g HEAD: 0 errors, 0 warnings, 0 checks.