public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Bluetooth: ISO: support setting send Time_Stamp and LE Read ISO TX Sync
@ 2026-03-11 16:15 Pauli Virtanen
  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 16:15 ` [RFC PATCH 2/2] Bluetooth: produce HW TX timestamps for ISO from " Pauli Virtanen
  0 siblings, 2 replies; 7+ messages in thread
From: Pauli Virtanen @ 2026-03-11 16:15 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-24 22:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-11 16:15 [RFC PATCH 0/2] Bluetooth: ISO: support setting send Time_Stamp and LE Read ISO TX Sync Pauli Virtanen
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox