From: Pauli Virtanen <pav@iki.fi>
To: linux-bluetooth@vger.kernel.org
Cc: Pauli Virtanen <pav@iki.fi>
Subject: [RFC PATCH 0/2] Bluetooth: ISO: support setting send Time_Stamp and LE Read ISO TX Sync
Date: Wed, 11 Mar 2026 18:15:49 +0200 [thread overview]
Message-ID: <cover.1773245666.git.pav@iki.fi> (raw)
Add support for userspace setting BT_SCM_PKT_SEQNUM and
BT_SCM_PKT_ISO_TS as CMSG to provide timestamps and sequence numbers to
controller.
Also support obtaining sent packet timestamps via HCI LE Read ISO TX
Sync and transmitting those to user as HW timestamps.
User-provided BT_SCM_PKT_SEQNUM may make sense if userspace is not
sending SDUs every interval, and it is in the best position to determine
when it wanted things to be sent. Behavior of course varies per
controller, so not sure how useful this is in practice, and if it's
premature to expose this in case there will be future clarifications in
the Core Specification (no idea about whether that's likely).
RFC since this is not satisfactorily tested on real hardware, and there
may be some design questions and ugly bits here. Sending anyway since
there seems to be interest in this.
I also send the series adding iso-tester + emulator tests.
Pauli Virtanen (2):
Bluetooth: ISO: allow userspace to set seqnum and timestamp for
sending
Bluetooth: produce HW TX timestamps for ISO from LE Read ISO TX Sync
include/net/bluetooth/bluetooth.h | 2 +
include/net/bluetooth/hci.h | 2 +-
include/net/bluetooth/hci_core.h | 5 +-
net/bluetooth/hci_conn.c | 53 +++++++++++++++++++--
net/bluetooth/hci_core.c | 8 ++--
net/bluetooth/hci_event.c | 79 ++++++++++++++++++++++++++++++-
net/bluetooth/iso.c | 70 +++++++++++++++++++++++----
7 files changed, 199 insertions(+), 20 deletions(-)
--
2.53.0
next reply other threads:[~2026-03-11 16:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-11 16:15 Pauli Virtanen [this message]
2026-03-11 16:15 ` [RFC PATCH 1/2] Bluetooth: ISO: allow userspace to set seqnum and timestamp for sending Pauli Virtanen
2026-03-11 17:52 ` Bluetooth: ISO: support setting send Time_Stamp and LE Read ISO TX Sync bluez.test.bot
2026-03-11 16:15 ` [RFC PATCH 2/2] Bluetooth: produce HW TX timestamps for ISO from " Pauli Virtanen
2026-03-11 20:30 ` Luiz Augusto von Dentz
2026-03-11 21:19 ` Pauli Virtanen
2026-03-24 22:01 ` Pauli Virtanen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1773245666.git.pav@iki.fi \
--to=pav@iki.fi \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox