* [PATCH BlueZ v1 0/4] shared/bap: Don't disconnect a CIS still used by another ASE
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:18 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
A remote initiator, e.g. a phone in a voice call, may enable the Source
ASE of a CIS shared with a Sink ASE and then switch to the Sink ASE
alone. The acceptor disconnected the CIS when the Source ASE detached
from it, although the linked Sink ASE was still configured for it, and
as the initiator does not request the CIS again, the Sink ASE was left
enabled without a CIS and the voice stayed silent.
Keep the CIS while another ASE is still configured for it. Unit tests
cover releasing an ASE of a CIS kept by its link, of a shared CIS and
switching the direction, and a functional test counts the CIS the
acceptor is asked to accept.
Luiz Augusto von Dentz (4):
shared/bap: Don't disconnect a CIS still configured for a link
unit/test-bap: Add tests for a CIS shared by two ASEs
doc/functional-bap: Document switching the direction of a CIS
test: functional: Cover switching the direction of a CIS
doc/functional-bap.rst | 37 ++++++
src/shared/bap.c | 84 +++++++++----
test/functional/test_bap.py | 68 +++++++++++
unit/test-bap.c | 227 ++++++++++++++++++++++++++++++++++++
4 files changed, 391 insertions(+), 25 deletions(-)
--
2.56.0
^ permalink raw reply [flat|nested] 47+ messages in thread
* [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
When one ASE of a shared CIS is disabled alone, e.g. a microphone closed
while media keeps playing, the transport leaving streaming took the
owner, and so the state, of its linked transport with it: the audio
server stopped the stream of the other ASE while it kept receiving data.
Hand the owner over to a link still streaming instead (not while the
transport is being released or has a pending request), and clear the
owner of desynchronized links when removing it, which fixes a
use-after-free at teardown. A unit test and functional tests cover it.
This series applies on top of "shared/bap: Don't disconnect a CIS still
used by another ASE" (1-cis-switch), as the unit test reuses the test
helpers added there.
Kannan J (2):
transport: Hand the owner over to a link still streaming
unit/test-bap: Add test for disabling one ASE of a shared CIS
Kannan J (2):
transport: Hand the owner over to a link still streaming
unit/test-bap: Add test for disabling one ASE of a shared CIS
Luiz Augusto von Dentz (6):
transport: Clear the owner of desynchronized links when removing it
transport: Don't hand the owner over while releasing
doc/functional-bap: Document disabling one ASE of a shared owner
test: functional: Cover disabling one ASE of a shared owner
doc/functional-bap: Document releasing a shared owner
test: functional: Cover releasing a shared owner
doc/functional-bap.rst | 58 ++++++++++++++++++++++++
profiles/audio/transport.c | 62 +++++++++++++++++++++++--
test/functional/test_bap.py | 66 +++++++++++++++++++++++++++
unit/test-bap.c | 90 +++++++++++++++++++++++++++++++++++++
4 files changed, 273 insertions(+), 3 deletions(-)
--
2.56.0
^ permalink raw reply [flat|nested] 47+ messages in thread
* [PATCH BlueZ v1 1/4] shared/bap: Don't disconnect a CIS still configured for a link
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
(?)
@ 2026-11-10 22:18 ` Luiz Augusto von Dentz
2026-11-11 4:35 ` shared/bap: Don't disconnect a CIS still used by another ASE bluez.test.bot
-1 siblings, 1 reply; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:18 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
When a stream was detached from its CIS, its link was detached as well
if in QoS Configured state, which disconnected the CIS. As a server,
this happened as soon as the client disabled the Source ASE of a
bidirectional CIS, while it may enable the Sink ASE right after over
the same CIS, e.g. when a phone switches a headset from its microphone
to its speaker in a voice call:
> LE-ACL: Handle 2048 flags 0x02 dlen 10 #1155 18:59:04.179316
ATT: Write Command (0x52) len 5
Opcode: Disable (0x05)
ASE ID: 0x03
< HCI Command: Disconnect (0x01|0x0006) plen 3 #1157 18:59:04.179773
Handle: 2304 (LE-CIS)
Reason: Remote User Terminated Connection (0x13)
> LE-ACL: Handle 2048 flags 0x02 dlen 17 #1164 18:59:04.201326
ATT: Write Command (0x52) len 12
Opcode: Enable (0x03)
ASE ID: 0x01
The client does not establish the CIS again, so the Sink ASE stayed in
Enabling without a CIS and its transport never became pending, leaving
the speaker silent.
Leave the link attached, so the CIS is only disconnected once no
stream uses it anymore, by the client, or when it is released.
As the IO may then outlive the stream it was created for, its
disconnect handler no longer keeps a pointer to that stream, which may
have been freed, but cleans up every stream using the IO, e.g. moving a
Source ASE releasing to Codec Configured although the Sink ASE also
using the CIS was found first, holding a reference to each of them.
Fixes: b798cec4ca62 ("shared/bap: Add initial code for handling BAP")
Assisted-by: Claude:claude-opus-5-5
---
src/shared/bap.c | 84 ++++++++++++++++++++++++++++++++++--------------
1 file changed, 59 insertions(+), 25 deletions(-)
diff --git a/src/shared/bap.c b/src/shared/bap.c
index 8cb7fb40f16c..dd4e9e775bb0 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -1564,20 +1564,8 @@ static void bap_stream_update_io_links(struct bt_bap_stream *stream)
queue_find(bap->streams, bap_stream_io_link, stream);
}
-static bool match_stream_io(const void *data, const void *user_data)
-{
- const struct bt_bap_stream *stream = data;
- const struct bt_bap_stream_io *io = user_data;
-
- if (!stream->io)
- return false;
-
- return stream->io == io;
-}
-
static bool bap_stream_io_detach(struct bt_bap_stream *stream)
{
- struct bt_bap_stream *link;
struct bt_bap_stream_io *io;
if (!stream->io)
@@ -1588,13 +1576,10 @@ static bool bap_stream_io_detach(struct bt_bap_stream *stream)
io = stream->io;
stream->io = NULL;
- link = queue_find(stream->links, match_stream_io, io);
- if (link) {
- /* Detach link if in QoS state */
- if (link->ep->state == BT_ASCS_ASE_STATE_QOS)
- bap_stream_io_detach(link);
- }
-
+ /* A link keeps the CIS, even in QoS state, as it may be enabled
+ * next over the same CIS: it is detached in turn when it is
+ * disabled, released or the CIS is disconnected.
+ */
stream_io_unref(io);
return true;
@@ -3215,7 +3200,10 @@ static bool bap_stream_io_attach(struct bt_bap_stream *stream, int fd,
io->connecting = connecting;
stream->io = io;
- io_set_disconnect_handler(io->io, stream_io_disconnected, stream, NULL);
+ /* The IO may outlive the stream it was created for, as long as a
+ * link uses it, so the handler looks up the stream using it.
+ */
+ io_set_disconnect_handler(io->io, stream_io_disconnected, io, NULL);
return true;
}
@@ -7279,9 +7267,21 @@ bool bt_bap_match_bcast_sink_stream(const void *data, const void *user_data)
return stream->lpac->type == BT_BAP_BCAST_SINK;
}
-static bool stream_io_disconnected(struct io *io, void *user_data)
+static void stream_io_collect(void *data, void *user_data)
{
- struct bt_bap_stream *stream = user_data;
+ struct bt_bap_stream *stream = data;
+ void **args = user_data;
+
+ if (stream->io == args[0])
+ queue_push_tail(args[1], bt_bap_stream_ref(stream));
+}
+
+static void stream_io_lost(void *data, void *user_data)
+{
+ struct bt_bap_stream *stream = data;
+
+ if (!bap_stream_valid(stream))
+ return;
DBG(stream->bap, "stream %p io disconnected", stream);
@@ -7289,9 +7289,9 @@ static bool stream_io_disconnected(struct io *io, void *user_data)
* and PA Sync have been lost so switch to idle state to cleanup the
* stream.
*/
- if (stream->lpac->type == BT_BAP_BCAST_SINK) {
+ if (stream->lpac && stream->lpac->type == BT_BAP_BCAST_SINK) {
stream_set_state(stream, BT_BAP_STREAM_STATE_IDLE);
- return false;
+ return;
}
switch (stream->ep->state) {
@@ -7304,8 +7304,42 @@ static bool stream_io_disconnected(struct io *io, void *user_data)
stream_set_state(stream, BT_BAP_STREAM_STATE_QOS);
break;
}
+}
+
+static void stream_io_clear(void *data, void *user_data)
+{
+ struct bt_bap_stream *stream = data;
+
+ if (bap_stream_valid(stream))
+ bt_bap_stream_set_io(stream, -1);
+}
+
+static bool stream_io_disconnected(struct io *io, void *user_data)
+{
+ struct bt_bap_stream_io *sio = user_data;
+ struct bt_bap *bap;
+ struct queue *streams;
+ void *args[2];
+
+ bap = bt_bap_ref_safe(sio->bap);
+ if (!bap)
+ return false;
+
+ /* Every stream using the CIS, e.g. a Sink and a Source ASE sharing
+ * it, has to be cleaned up, and their state callbacks may release
+ * them or change their links, so hold a reference to each of them.
+ */
+ streams = queue_new();
+ args[0] = sio;
+ args[1] = streams;
+ queue_foreach(bap->streams, stream_io_collect, args);
+
+ queue_foreach(streams, stream_io_lost, NULL);
+ queue_foreach(streams, stream_io_clear, NULL);
+
+ queue_destroy(streams, bt_bap_stream_unref);
+ bt_bap_unref(bap);
- bt_bap_stream_set_io(stream, -1);
return false;
}
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* RE: shared/bap: Don't disconnect a CIS still used by another ASE
2026-11-10 22:18 ` [PATCH BlueZ v1 1/4] shared/bap: Don't disconnect a CIS still configured for a link Luiz Augusto von Dentz
@ 2026-11-11 4:35 ` bluez.test.bot
0 siblings, 0 replies; 47+ messages in thread
From: bluez.test.bot @ 2026-11-11 4:35 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 34027 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/series/1207686/
---Test result---
Test Summary:
CheckPatch PASS 2.14 seconds
GitLint PASS 1.59 seconds
BuildEll PASS 16.38 seconds
BluezMake PASS 231.42 seconds
MakeCheck PASS 13.76 seconds
MakeDistcheck PASS 118.19 seconds
CheckValgrind PASS 281.31 seconds
CheckSmatch WARNING 227.17 seconds
bluezmakeextell PASS 76.12 seconds
TestFunctional FAIL 3221.14 seconds
IncrementalBuild PASS 256.01 seconds
ScanBuild PASS 840.88 seconds
Details
##############################
Test: CheckSmatch - WARNING
Desc: Run smatch tool with source
Output:
src/shared/bap.c:317:25: warning: array of flexible structuressrc/shared/bap.c: note: in included file:./src/shared/ascs.h:88:25: warning: array of flexible structuressrc/shared/bap.c:317:25: warning: array of flexible structuressrc/shared/bap.c: note: in included file:./src/shared/ascs.h:88:25: warning: array of flexible structuressrc/shared/bap.c:317:25: warning: array of flexible structuressrc/shared/bap.c: note: in included file:./src/shared/ascs.h:88:25: warning: array of flexible structures
##############################
Test: TestFunctional - FAIL
Desc: Run test-functional
Output:
FAIL functional.test_adv_monitor::test_adv_monitor_GHSA_hhgc_hfgf_8m4x[hosts1-vm1]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bluetoothctl::test_bluetoothctl_show[hosts16-vm1]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bluetoothctl::test_bluetoothctl_list[hosts16-vm1]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bluetoothctl::test_bluetoothctl_script_show[hosts16-vm1]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bluetoothctl::test_bluetoothctl_script_list[hosts16-vm1]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_btmgmt::test_btmgmt_info[hosts19-vm1]: AssertionError: assert 'addr 00:00:00:00:00:00' in '\x1b[0;91mReading hci0 info failed with status 0x11 (Invalid Index)\n\x1b[0m'
+ where '\x1b[0;91mReading hci0 info failed with status 0x11 (Invalid Index)\n\x1b[0m' = CompletedProcess(args=['/home/runner/work/bluez/bluez/src/src/tools/btmgmt', '--index', '0', 'info'], returncode=0, stdout='\x1b[0;91mReading hci0 info failed with status 0x11 (Invalid Index)\n\x1b[0m').stdout
FAIL functional.test_a2dp::test_a2dp_transport_created[hosts0-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_a2dp::test_a2dp_transport_acquire[hosts0-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_a2dp::test_a2dp_disconnect_during_setconf[hosts0-vm2-accept]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_a2dp::test_a2dp_disconnect_during_setconf[hosts0-vm2-reject]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_a2dp::test_a2dp_reconnect_pending_disconnect[hosts0-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_le_connect[hosts12-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_le_conn_params[hosts12-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_le_connectable[hosts12-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_le_pair[hosts12-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_bredr_pair[hosts13-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_le_conn_update[hosts14-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_le_not_connectable[hosts15-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bluetoothctl::test_bluetoothctl_pair_bredr[hosts17-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bluetoothctl::test_bluetoothctl_pair_le[hosts18-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_agent::test_agent_pair_bredr[accept-hosts2-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_agent::test_agent_pair_bredr[reject-hosts2-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_hog::test_hog[no-sci-hosts20-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_hog::test_hog[sci-hosts20-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_mpris_proxy::test_mpris_proxy_playback_control[bredr-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_mpris_proxy::test_mpris_proxy_track_control[bredr-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_obex::test_obex_ftp_list[hosts24-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_obex::test_obex_ftp_get[hosts24-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_obex::test_obexctl_list[hosts24-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_avrcp::test_avrcp_GHSA_m2vx_pw5f_rc8v[hosts3-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_transport_created[hosts4-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_transport_acquire[hosts4-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_transport_resume[0-hosts4-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_transport_resume[0.1-hosts4-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_transport_resume[1.0-hosts4-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_reconfigure_metadata[empty-hosts5-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_reconfigure_metadata[media-hosts5-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_desync[hosts6-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_duplex_enable_one[hosts6-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_duplex_switch[hosts6-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_duplex_disable_one[hosts6-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_duplex_release_shared[hosts6-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_broadcast_transport_created[lc3-hosts7-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_broadcast_transport_created[pbp-hosts7-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_broadcast_transport_acquire[lc3-hosts7-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_broadcast_transport_acquire[pbp-hosts7-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bass_past_transport_acquire[hosts9-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_set_transport_created[hosts10-vm3-sc]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_set_transport_created[hosts10-vm3-legacy]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_set_transport_acquire[hosts10-vm3]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bass_past_earbuds_transport_acquire[hosts11-vm3]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_broadcast_earbuds_transport_created[hosts8-vm3]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_broadcast_earbuds_transport_acquire[hosts8-vm3]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_mpris_proxy::test_mpris_proxy_playback_control[le-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_mpris_proxy::test_mpris_proxy_track_control[le-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
https://github.com/bluez/bluez/pull/2789
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 47+ messages in thread
* [PATCH BlueZ v1 2/4] unit/test-bap: Add tests for a CIS shared by two ASEs
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
(?)
(?)
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
-1 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Configure a Sink and a Source ASE for the same CIS and enable the Source
ASE so the CIS is established, then cover:
- Releasing the Source ASE until its stream is freed while the Sink ASE
keeps the CIS: once the CIS is disconnected, enabling the Sink ASE
must not start streaming over it.
- Releasing the Source ASE, which has to be released once the CIS is
disconnected, caching its codec configuration, although the Sink ASE
configured first uses the CIS as well.
- Disabling the Source ASE and enabling the Sink ASE right after, as a
phone does when switching a headset from its microphone to its
speaker: the Sink ASE has to start streaming over the same CIS, which
has to stay connected, as the client does not establish it again.
Assisted-by: Claude:claude-opus-5-5
---
unit/test-bap.c | 227 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 227 insertions(+)
diff --git a/unit/test-bap.c b/unit/test-bap.c
index 99c5ae92e447..3713ad56c072 100644
--- a/unit/test-bap.c
+++ b/unit/test-bap.c
@@ -4728,6 +4728,230 @@ static void test_usr_scc_cis_loss(void)
SCC_SRC_ENABLING_CIS_LOSS);
}
+static void state_release_link(struct bt_bap_stream *stream,
+ uint8_t old_state, uint8_t new_state,
+ void *user_data)
+{
+ struct test_data *data = user_data;
+ int fds[2];
+ int err;
+
+ if (bt_bap_stream_get_dir(stream) != BT_BAP_SOURCE)
+ return;
+
+ switch (new_state) {
+ case BT_BAP_STREAM_STATE_ENABLING:
+ /* Establish the CIS for the Source ASE, which its linked Sink
+ * ASE shares.
+ */
+ err = socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0,
+ fds);
+ g_assert(err == 0);
+ g_assert(bt_bap_stream_io_connecting(stream, fds[0]) == 0);
+ data->fds[0][0] = fds[0];
+ data->fds[0][1] = fds[1];
+ break;
+ case BT_BAP_STREAM_STATE_IDLE:
+ /* Once the Source ASE is released and its stream freed,
+ * disconnect the CIS the Sink ASE kept.
+ */
+ if (data->fds[0][1] > 0) {
+ close(data->fds[0][1]);
+ data->fds[0][1] = -1;
+ }
+ break;
+ }
+}
+
+static struct test_config cfg_release_link = {
+ .cc = LC3_CONFIG_16_2,
+ .qos = LC3_QOS_16_2_1,
+ .snk = true,
+ .src = true,
+ .state_func = state_release_link,
+};
+
+#define QOS_16_2_1_DATA \
+ 0x10, 0x27, 0x00, 0x00, 0x02, 0x28, 0x00, 0x02, 0x0a, 0x00, 0x40, \
+ 0x9c, 0x00
+
+/* Sink and Source ASE configured for the same CIS: the Source ASE is
+ * enabled, disabled and released until its stream is freed, while the Sink
+ * ASE keeps the CIS, which is then disconnected. The Sink ASE is then
+ * enabled, without a CIS.
+ */
+#define SCC_RELEASE_LINK \
+ DISC_SRC_ASE_LC3, \
+ SCC_SNK(LC3_CONFIG_16_2_DATA), \
+ SCC_SRC(LC3_CONFIG_16_2_DATA), \
+ QOS_SNK(QOS_16_2_1_DATA), \
+ QOS_SRC(QOS_16_2_1_DATA), \
+ SRC_ENABLE, \
+ SRC_DISABLE, \
+ ASE_SRC_RELEASE_CC, \
+ ASE_SRC_RELEASE_IDLE, \
+ ENABLE_ASE(SNK_ID(0)), \
+ SNK_ENABLE_NOTIFY(0, 0)
+
+static void test_usr_scc_release_link(void)
+{
+ define_test("BAP/USR/SCC/BLUEZ-2 [USR Release ASE of a CIS kept by its "
+ "link]",
+ test_setup_server, test_server_state,
+ &cfg_release_link, SCC_RELEASE_LINK);
+}
+
+static gboolean disconnect_cis(gpointer user_data)
+{
+ struct test_data *data = user_data;
+
+ if (data->fds[0][1] > 0) {
+ close(data->fds[0][1]);
+ data->fds[0][1] = -1;
+ }
+
+ return FALSE;
+}
+
+static void state_release_cis(struct bt_bap_stream *stream,
+ uint8_t old_state, uint8_t new_state,
+ void *user_data)
+{
+ struct test_data *data = user_data;
+ int fds[2];
+ int err;
+
+ if (bt_bap_stream_get_dir(stream) != BT_BAP_SOURCE)
+ return;
+
+ switch (new_state) {
+ case BT_BAP_STREAM_STATE_ENABLING:
+ err = socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0,
+ fds);
+ g_assert(err == 0);
+ g_assert(bt_bap_stream_io_connecting(stream, fds[0]) == 0);
+ data->fds[0][0] = fds[0];
+ data->fds[0][1] = fds[1];
+ break;
+ case BT_BAP_STREAM_STATE_RELEASING:
+ /* The client disconnects the CIS once notified that the
+ * Source ASE is releasing, while the Sink ASE is still
+ * configured for it.
+ */
+ g_timeout_add(50, disconnect_cis, data);
+ break;
+ }
+}
+
+static struct test_config cfg_release_cis = {
+ .cc = LC3_CONFIG_16_2,
+ .qos = LC3_QOS_16_2_1,
+ .snk = true,
+ .src = true,
+ .state_func = state_release_cis,
+};
+
+/* Sink and Source ASE configured for the same CIS: the Source ASE is
+ * enabled and released, and remains releasing until the CIS is
+ * disconnected, then it is released caching its codec configuration,
+ * although the Sink ASE, configured first, was using the CIS as well.
+ */
+#define SCC_RELEASE_CIS \
+ DISC_SRC_ASE_LC3, \
+ SCC_SNK(LC3_CONFIG_16_2_DATA), \
+ SCC_SRC(LC3_CONFIG_16_2_DATA), \
+ QOS_SNK(QOS_16_2_1_DATA), \
+ QOS_SRC(QOS_16_2_1_DATA), \
+ SRC_ENABLE, \
+ ASE_SRC_RELEASE, \
+ IOV_DATA(0x0a, SRC_HND(0)), \
+ IOV_DATA(0x0b, SRC_ID(0), 0x06), \
+ SCC_SRC_NOTIFY(0, LC3_CONFIG_16_2_DATA)
+
+static void test_usr_scc_release_cis(void)
+{
+ define_test("BAP/USR/SCC/BLUEZ-3 [USR Release ASE of a shared CIS]",
+ test_setup_server, test_server_state,
+ &cfg_release_cis, SCC_RELEASE_CIS);
+}
+
+static int switch_cis_fd = -1;
+
+static void state_switch_cis(struct bt_bap_stream *stream,
+ uint8_t old_state, uint8_t new_state,
+ void *user_data)
+{
+ struct test_data *data = user_data;
+ char buf;
+ int fds[2];
+ int err;
+ int fd;
+
+ switch (bt_bap_stream_get_dir(stream)) {
+ case BT_BAP_SOURCE:
+ if (new_state != BT_BAP_STREAM_STATE_ENABLING)
+ return;
+
+ /* Establish the CIS for the Source ASE, which its linked
+ * Sink ASE shares.
+ */
+ err = socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0,
+ fds);
+ g_assert(err == 0);
+ g_assert(bt_bap_stream_io_connecting(stream, fds[0]) == 0);
+ switch_cis_fd = fds[0];
+ data->fds[0][0] = fds[0];
+ data->fds[0][1] = fds[1];
+ break;
+ case BT_BAP_SINK:
+ if (new_state != BT_BAP_STREAM_STATE_STREAMING)
+ return;
+
+ /* The Sink ASE streams over the CIS established for the
+ * Source ASE, which is still connected.
+ */
+ fd = -1;
+ bt_bap_stream_io_is_connecting(stream, &fd);
+ g_assert(fd == switch_cis_fd);
+ err = recv(data->fds[0][1], &buf, 1, MSG_DONTWAIT | MSG_PEEK);
+ g_assert(err < 0 && errno == EAGAIN);
+ break;
+ }
+}
+
+static struct test_config cfg_switch_cis = {
+ .cc = LC3_CONFIG_16_2,
+ .qos = LC3_QOS_16_2_1,
+ .snk = true,
+ .src = true,
+ .state_func = state_switch_cis,
+};
+
+/* Sink and Source ASE configured for the same CIS: the Source ASE is
+ * enabled, establishing the CIS, then disabled, and the Sink ASE is
+ * enabled right after, as when switching a headset from its microphone to
+ * its speaker. The Sink ASE has to start streaming over the same CIS, as
+ * the client does not establish it again.
+ */
+#define SCC_SWITCH_CIS \
+ DISC_SRC_ASE_LC3, \
+ SCC_SNK(LC3_CONFIG_16_2_DATA), \
+ SCC_SRC(LC3_CONFIG_16_2_DATA), \
+ QOS_SNK(QOS_16_2_1_DATA), \
+ QOS_SRC(QOS_16_2_1_DATA), \
+ SRC_ENABLE, \
+ SRC_DISABLE, \
+ ENABLE_ASE(SNK_ID(0)), \
+ SNK_ENABLE_NOTIFY(0, 0), \
+ SNK_START_NOTIFY(0, 0)
+
+static void test_usr_scc_switch_cis(void)
+{
+ define_test("BAP/USR/SCC/BLUEZ-4 [USR Switch direction of a CIS]",
+ test_setup_server, test_server_state,
+ &cfg_switch_cis, SCC_SWITCH_CIS);
+}
+
static struct test_config str_snk_ac2_8_1_1 = {
.cc = LC3_CONFIG_8_1_AC(1),
.qos = LC3_QOS_8_1_1_AC(1),
@@ -7589,6 +7813,9 @@ static void test_scc(void)
test_scc_disable();
test_scc_release();
test_usr_scc_cis_loss();
+ test_usr_scc_release_link();
+ test_usr_scc_release_cis();
+ test_usr_scc_switch_cis();
test_scc_metadata();
test_str_1_1_1_lc3();
}
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* [PATCH BlueZ v1 3/4] doc/functional-bap: Document switching the direction of a CIS
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
` (2 preceding siblings ...)
(?)
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
-1 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Describe the test where the initiator disables the Source ASE of the
acceptor and enables its Sink ASE right after, over the same CIS, as a
phone may do when switching a headset from its microphone to its
speaker.
Assisted-by: Claude:claude-opus-5-5
---
doc/functional-bap.rst | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/doc/functional-bap.rst b/doc/functional-bap.rst
index fc367e0f9181..8f3f8e62cd4a 100644
--- a/doc/functional-bap.rst
+++ b/doc/functional-bap.rst
@@ -269,6 +269,43 @@ test_bap_unicast_duplex_enable_one
made active through its link, so the test checks the state of the
transport rather than the result of the acquisition.
+test_bap_unicast_duplex_switch
+------------------------------
+
+:Setup: As above, with both transports created and linked, and
+ desynchronized on the initiator.
+
+:Steps:
+ 1. Initiator: ``transport.acquire <source transport>``.
+ 2. Initiator: ``transport.release <source transport>``, then right
+ after ``transport.acquire <sink transport>``.
+ 3. Initiator: ``transport.release <sink transport>``, then
+ ``transport.acquire <source transport>``.
+
+:Expected:
+ 1. The Source ASE transport moves to ``State: active`` on both hosts.
+ 2. The Source ASE transport moves back to ``State: idle`` and the
+ Sink ASE one to ``State: active`` on both hosts, over the CIS
+ established in step 1, which neither host disconnects while the
+ Sink ASE is still configured for it: the acceptor is asked to
+ accept a single CIS up to this point.
+ 3. Once neither ASE is enabled the CIS is disconnected, and the
+ Source ASE transport moves to ``State: active`` again on both
+ hosts, over a new CIS.
+
+:Notes: Reproduces a remote initiator, e.g. a phone in a voice call,
+ switching a headset from its microphone to its speaker over the
+ same CIS. An acceptor disconnecting the CIS when the Source ASE is
+ disabled leaves the Sink ASE enabled without a CIS, as the
+ initiator does not establish it again, so the Sink ASE transport
+ never becomes pending.
+
+ `bluetoothd` as initiator establishes a new CIS when needed, so the
+ switch still succeeds when the acceptor disconnects the CIS, over a
+ second one. The test tells them apart by counting the CIS requests
+ seen by the controller of the acceptor, recorded with `btmon`,
+ rather than by the states of the transports.
+
BROADCAST
=========
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* [PATCH BlueZ v1 4/4] test: functional: Cover switching the direction of a CIS
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
` (3 preceding siblings ...)
(?)
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
-1 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Have the initiator enable the Source ASE of the acceptor alone, then
disable it and enable its Sink ASE right after, over the same CIS, and
check that the Sink ASE transport becomes active on both sides. Then
disable it as well and enable the Source ASE again, which needs a new
CIS.
bluetoothd as initiator establishes a new CIS when needed, so the
switch also succeeds when the acceptor disconnects the CIS. Count the
CIS requests seen by the controller of the acceptor, recorded with
btmon, and check that the acceptor is asked to accept a single one for
the switch.
Assisted-by: Claude:claude-opus-5-5
---
test/functional/test_bap.py | 68 +++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
diff --git a/test/functional/test_bap.py b/test/functional/test_bap.py
index 324304204caf..56205a61e61d 100644
--- a/test/functional/test_bap.py
+++ b/test/functional/test_bap.py
@@ -733,6 +733,74 @@ def test_bap_unicast_duplex_enable_one(duplex_hosts):
assert state == "active", f"{path} {state} once the Sink ASE released"
+@pytest.fixture
+def acceptor_cis_count(hosts):
+ """
+ Function telling how many CIS the acceptor (host1) was asked to accept so
+ far, which bluetoothd does not report to the test: btmon records what the
+ controller of the acceptor sees.
+ """
+ btmon = find_exe("monitor", "btmon")
+ trace = "/tmp/acceptor-cis.btsnoop"
+
+ host = hosts[1]
+ host.pexpect.spawn([btmon, "-w", trace])
+
+ # btmon has started recording once the trace has its header
+ ready = f"until [ -s {trace} ]; do sleep 0.1; done; echo ready"
+ with host.pexpect.spawn(["sh", "-c", ready]) as ctl:
+ ctl.expect("ready")
+
+ def count():
+ events = (
+ f"{btmon} -r {trace} -P | grep -c 'LE Connected Isochronous Stream Request'"
+ )
+ with host.pexpect.spawn(["sh", "-c", events]) as ctl:
+ _, m = ctl.expect(r"(\d+)\r?\n")
+ return int(m[0])
+
+ yield count
+
+
+@duplex_host_config
+def test_bap_unicast_duplex_switch(duplex_hosts, acceptor_cis_count):
+ initiator, acceptor, to_sink, from_source, sink, source = duplex_hosts
+
+ desync(initiator, to_sink, from_source)
+
+ # Enable the remote Source ASE alone, as for the microphone of a
+ # voice call
+ initiator.send(f"transport.acquire {from_source}\n")
+ expect_all(initiator, [ACQUIRED, f"Transport {from_source} State: active"])
+ expect_all(acceptor, [ACQUIRED, f"Transport {source} State: active"])
+ assert acceptor_cis_count() == 1
+
+ # Disable it and enable the Sink ASE right after, over the same CIS
+ initiator.send(f"transport.release {from_source}\n")
+ expect_all(
+ initiator, ["Release successful", f"Transport {from_source} State: idle"]
+ )
+ expect_all(acceptor, [f"Transport {source} State: idle"])
+
+ initiator.send(f"transport.acquire {to_sink}\n")
+ expect_all(initiator, [ACQUIRED, f"Transport {to_sink} State: active"])
+ expect_all(acceptor, [ACQUIRED, f"Transport {sink} State: active"])
+
+ # The Sink ASE streams over the CIS of the Source ASE: the acceptor must
+ # not disconnect it, as the initiator does not have to request it again
+ assert acceptor_cis_count() == 1, "CIS requested again for the Sink ASE"
+
+ # Once neither is enabled the CIS is disconnected, so enabling one
+ # again needs a new CIS on both sides
+ initiator.send(f"transport.release {to_sink}\n")
+ expect_all(initiator, ["Release successful", f"Transport {to_sink} State: idle"])
+ expect_all(acceptor, [f"Transport {sink} State: idle"])
+
+ initiator.send(f"transport.acquire {from_source}\n")
+ expect_all(initiator, [ACQUIRED, f"Transport {from_source} State: active"])
+ expect_all(acceptor, [ACQUIRED, f"Transport {source} State: active"])
+
+
# Broadcast code used by the broadcast scripts, see BCAST_CODE in
# client/player.c
BCAST_CODE = (
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* [PATCH BlueZ v1 0/5] bap: Release cached ASEs on ClearConfiguration
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
` (4 preceding siblings ...)
(?)
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 1/5] shared/bap: Add bt_bap_foreach_stream and bt_bap_stream_get_rpac Luiz Augusto von Dentz
` (4 more replies)
-1 siblings, 5 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
An acceptor may keep an ASE in Codec Configured, caching its codec
configuration, once the initiator removes the transport. The initiator
then has no way to get rid of it, as it no longer has a transport to
release.
Release such cached ASEs on ClearConfiguration of an endpoint, and add
endpoint.clear to bluetoothctl to exercise it, with a functional test.
This series is independent of the other two.
Luiz Augusto von Dentz (5):
shared/bap: Add bt_bap_foreach_stream and bt_bap_stream_get_rpac
bap: Release cached ASEs on ClearConfiguration of an endpoint
client/player: Add endpoint.clear command
doc/functional-bap: Document clearing a cached configuration
test: functional: Cover clearing a cached configuration
client/player.c | 52 +++++++++++++++++++++++++++++++++++
doc/bluetoothctl-endpoint.rst | 20 ++++++++++++++
doc/functional-bap.rst | 24 ++++++++++++++++
profiles/audio/bap.c | 25 +++++++++++++++++
src/shared/bap.c | 31 +++++++++++++++++++++
src/shared/bap.h | 8 ++++++
test/functional/test_bap.py | 23 ++++++++++++++++
7 files changed, 183 insertions(+)
--
2.56.0
^ permalink raw reply [flat|nested] 47+ messages in thread* [PATCH BlueZ v1 1/5] shared/bap: Add bt_bap_foreach_stream and bt_bap_stream_get_rpac
2026-11-10 22:19 ` [PATCH BlueZ v1 0/5] bap: Release cached ASEs on ClearConfiguration Luiz Augusto von Dentz
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 2/5] bap: Release cached ASEs on ClearConfiguration of an endpoint Luiz Augusto von Dentz
` (3 subsequent siblings)
4 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Allow iterating over the streams of a session and getting the remote
PAC of a stream, so streams can be found by their remote endpoint.
Assisted-by: Claude:claude-opus-5-5
---
src/shared/bap.c | 31 +++++++++++++++++++++++++++++++
src/shared/bap.h | 8 ++++++++
2 files changed, 39 insertions(+)
diff --git a/src/shared/bap.c b/src/shared/bap.c
index 8cb7fb40f16c..e45d12144acb 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -4740,6 +4740,14 @@ bool bt_bap_stream_is_client(struct bt_bap_stream *stream)
return stream->client;
}
+struct bt_bap_pac *bt_bap_stream_get_rpac(struct bt_bap_stream *stream)
+{
+ if (!stream)
+ return NULL;
+
+ return stream->rpac;
+}
+
uint8_t bt_bap_stream_get_type(struct bt_bap_stream *stream)
{
if (!stream)
@@ -7020,6 +7028,29 @@ struct bt_bap *bt_bap_stream_get_session(struct bt_bap_stream *stream)
return stream->bap;
}
+struct stream_foreach_data {
+ bt_bap_stream_foreach_t func;
+ void *user_data;
+};
+
+static void stream_foreach(void *data, void *user_data)
+{
+ struct stream_foreach_data *d = user_data;
+
+ d->func(data, d->user_data);
+}
+
+void bt_bap_foreach_stream(struct bt_bap *bap, bt_bap_stream_foreach_t func,
+ void *user_data)
+{
+ struct stream_foreach_data d = { func, user_data };
+
+ if (!bap || !func)
+ return;
+
+ queue_foreach(bap->streams, stream_foreach, &d);
+}
+
uint8_t bt_bap_stream_get_state(struct bt_bap_stream *stream)
{
if (!stream)
diff --git a/src/shared/bap.h b/src/shared/bap.h
index 242bfbb39b30..00b74de0f272 100644
--- a/src/shared/bap.h
+++ b/src/shared/bap.h
@@ -124,6 +124,8 @@ uint8_t bt_bap_stream_get_type(struct bt_bap_stream *stream);
bool bt_bap_stream_is_client(struct bt_bap_stream *stream);
+struct bt_bap_pac *bt_bap_stream_get_rpac(struct bt_bap_stream *stream);
+
struct bt_bap_stream *bt_bap_pac_get_stream(struct bt_bap_pac *pac);
/* Session related function */
@@ -172,6 +174,12 @@ const char *bt_bap_stream_statestr(uint8_t state);
void bt_bap_foreach_pac(struct bt_bap *bap, uint8_t type,
bt_bap_pac_foreach_t func, void *user_data);
+typedef void (*bt_bap_stream_foreach_t)(struct bt_bap_stream *stream,
+ void *user_data);
+
+void bt_bap_foreach_stream(struct bt_bap *bap, bt_bap_stream_foreach_t func,
+ void *user_data);
+
int bt_bap_pac_get_vendor_codec(struct bt_bap_pac *pac, uint8_t *id,
uint16_t *cid, uint16_t *vid,
struct iovec **data, struct iovec **metadata);
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* [PATCH BlueZ v1 2/5] bap: Release cached ASEs on ClearConfiguration of an endpoint
2026-11-10 22:19 ` [PATCH BlueZ v1 0/5] bap: Release cached ASEs on ClearConfiguration Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 1/5] shared/bap: Add bt_bap_foreach_stream and bt_bap_stream_get_rpac Luiz Augusto von Dentz
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 3/5] client/player: Add endpoint.clear command Luiz Augusto von Dentz
` (2 subsequent siblings)
4 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Once a stream is released, the server may cache the codec configuration
of its ASE, leaving it in Codec Configured state, while the setup of
the stream is freed. ClearConfiguration only closed the streams that
have a setup, so it could not release such an ASE anymore.
When ClearConfiguration is given the path of the endpoint, also release
its streams in Codec Configured state that have no setup, as a client
may release an ASE in that state (ASCS Table 3.2, BAP 5.6.6).
Assisted-by: Claude:claude-opus-5-5
---
profiles/audio/bap.c | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index a0e0ba60d817..34aed93d8414 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -1319,6 +1319,27 @@ static void clear_configuration_cb(int count, void *user_data)
free(data);
}
+static struct bap_setup *bap_find_setup_by_stream(struct bap_data *data,
+ struct bt_bap_stream *stream);
+
+static void ep_release_cached(struct bt_bap_stream *stream, void *user_data)
+{
+ struct bap_ep *ep = user_data;
+
+ /* The server may have cached the codec configuration of a released
+ * ASE, which has no setup anymore, so release it again.
+ */
+ if (bt_bap_stream_get_rpac(stream) != ep->rpac ||
+ bt_bap_stream_get_state(stream) !=
+ BT_BAP_STREAM_STATE_CONFIG ||
+ bap_find_setup_by_stream(ep->data, stream))
+ return;
+
+ DBG("stream %p", stream);
+
+ bt_bap_stream_release(stream, NULL, NULL);
+}
+
static DBusMessage *clear_configuration(DBusConnection *conn, DBusMessage *msg,
void *data)
{
@@ -1338,6 +1359,10 @@ static DBusMessage *clear_configuration(DBusConnection *conn, DBusMessage *msg,
cbdata->all = (path == NULL);
DBG("%p %s %s", cbdata, ep->path, path ? path : "NULL");
+
+ if (!path && ep->rpac)
+ bt_bap_foreach_stream(ep->data->bap, ep_release_cached, ep);
+
ep_close(ep, path, clear_configuration_cb, cbdata);
return NULL;
}
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* [PATCH BlueZ v1 3/5] client/player: Add endpoint.clear command
2026-11-10 22:19 ` [PATCH BlueZ v1 0/5] bap: Release cached ASEs on ClearConfiguration Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 1/5] shared/bap: Add bt_bap_foreach_stream and bt_bap_stream_get_rpac Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 2/5] bap: Release cached ASEs on ClearConfiguration of an endpoint Luiz Augusto von Dentz
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 4/5] doc/functional-bap: Document clearing a cached configuration Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 5/5] test: functional: Cover " Luiz Augusto von Dentz
4 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Add a command calling ClearConfiguration on a remote endpoint, to close
the stream of a given transport or all the streams of the endpoint.
Assisted-by: Claude:claude-opus-5-5
---
client/player.c | 52 +++++++++++++++++++++++++++++++++++
doc/bluetoothctl-endpoint.rst | 20 ++++++++++++++
2 files changed, 72 insertions(+)
diff --git a/client/player.c b/client/player.c
index 88221076c1e0..74b09b930a1b 100644
--- a/client/player.c
+++ b/client/player.c
@@ -4030,6 +4030,55 @@ static void endpoint_set_config_bcast(struct endpoint_config *cfg)
config_endpoint_iso_group, cfg);
}
+static void clear_endpoint_setup(DBusMessageIter *iter, void *user_data)
+{
+ const char *path = user_data;
+
+ dbus_message_iter_append_basic(iter, DBUS_TYPE_OBJECT_PATH, &path);
+}
+
+static void clear_endpoint_reply(DBusMessage *message, void *user_data)
+{
+ DBusError error;
+
+ dbus_error_init(&error);
+
+ if (dbus_set_error_from_message(&error, message)) {
+ bt_shell_printf("Failed to clear configuration: %s\n",
+ error.name);
+ dbus_error_free(&error);
+ return bt_shell_noninteractive_quit(EXIT_FAILURE);
+ }
+
+ bt_shell_printf("Configuration cleared\n");
+
+ return bt_shell_noninteractive_quit(EXIT_SUCCESS);
+}
+
+static void cmd_clear_endpoint(int argc, char *argv[])
+{
+ GDBusProxy *proxy;
+ const char *path;
+
+ proxy = g_dbus_proxy_lookup(endpoints, NULL, argv[1],
+ BLUEZ_MEDIA_ENDPOINT_INTERFACE);
+ if (!proxy) {
+ bt_shell_printf("Endpoint %s not found\n", argv[1]);
+ return bt_shell_noninteractive_quit(EXIT_FAILURE);
+ }
+
+ /* The path of the endpoint itself clears all its transports */
+ path = argc > 2 ? argv[2] : g_dbus_proxy_get_path(proxy);
+
+ if (!g_dbus_proxy_method_call(proxy, "ClearConfiguration",
+ clear_endpoint_setup,
+ clear_endpoint_reply,
+ (void *) path, NULL)) {
+ bt_shell_printf("Failed to clear configuration\n");
+ return bt_shell_noninteractive_quit(EXIT_FAILURE);
+ }
+}
+
static void cmd_config_endpoint(int argc, char *argv[])
{
struct endpoint_config *cfg;
@@ -4625,6 +4674,9 @@ static const struct bt_shell_menu endpoint_menu = {
cmd_config_endpoint,
"Configure Endpoint",
endpoint_generator },
+ { "clear", "<endpoint> [transport]", cmd_clear_endpoint,
+ "Clear Endpoint Configuration",
+ endpoint_generator },
{ "presets", "<endpoint>/<UUID> [codec[:company]] [preset] "
"[codec config] [metadata]",
cmd_presets_endpoint,
diff --git a/doc/bluetoothctl-endpoint.rst b/doc/bluetoothctl-endpoint.rst
index 019e64e38452..ba30ef769ec4 100644
--- a/doc/bluetoothctl-endpoint.rst
+++ b/doc/bluetoothctl-endpoint.rst
@@ -154,6 +154,26 @@ Note:
If the endpoint was registered by an audio server, it can't be configured from bluetoothctl.
This must be done by the audio server as well.
+clear
+-----
+
+Clear Endpoint Configuration.
+
+:Usage: **> clear <endpoint> [transport]**
+:Uses: **org.bluez.MediaEndpoint(5)** method **ClearConfiguration**
+:<endpoint>: Path to the remote endpoint to clear
+:[transport]: Path to the transport whose stream to close (optional, all the
+ streams of the endpoint are closed if omitted)
+:Example Release all the streams of a remote endpoint:
+ | **> clear /org/bluez/hci0/dev_00_11_22_33_44_55/pac_sink0**
+:Example Release the stream of a single transport:
+ | **> clear /org/bluez/hci0/dev_00_11_22_33_44_55/pac_sink0 /org/bluez/hci0/dev_00_11_22_33_44_55/pac_sink0/fd0**
+
+Note:
+
+Clearing an endpoint whose codec configuration was cached by the remote, after
+its streams were released, releases them again.
+
presets
-------
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* [PATCH BlueZ v1 4/5] doc/functional-bap: Document clearing a cached configuration
2026-11-10 22:19 ` [PATCH BlueZ v1 0/5] bap: Release cached ASEs on ClearConfiguration Luiz Augusto von Dentz
` (2 preceding siblings ...)
2026-11-10 22:19 ` [PATCH BlueZ v1 3/5] client/player: Add endpoint.clear command Luiz Augusto von Dentz
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 5/5] test: functional: Cover " Luiz Augusto von Dentz
4 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Describe the test where the initiator clears an endpoint twice, the
second time releasing the ASE whose codec configuration the acceptor
cached.
Assisted-by: Claude:claude-opus-5-5
---
doc/functional-bap.rst | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/doc/functional-bap.rst b/doc/functional-bap.rst
index fc367e0f9181..ec9f056d9f83 100644
--- a/doc/functional-bap.rst
+++ b/doc/functional-bap.rst
@@ -269,6 +269,30 @@ test_bap_unicast_duplex_enable_one
made active through its link, so the test checks the state of the
transport rather than the result of the acquisition.
+test_bap_unicast_clear_cached
+-----------------------------
+
+:Setup: As above, with both transports created.
+
+:Steps:
+ 1. Initiator: ``endpoint.clear <remote PAC Source endpoint>``.
+ 2. Initiator: ``endpoint.clear <remote PAC Source endpoint>`` again.
+
+:Expected:
+ 1. ``Configuration cleared``, and the initiator removes the transport
+ of the Source ASE, which the acceptor moves to Codec Configured,
+ caching its codec configuration.
+ 2. ``Configuration cleared``, and the initiator releases the Source
+ ASE again from Codec Configured, so the acceptor moves it to Idle
+ and removes its transport. The Sink ASE transports are left in
+ ``State: idle``.
+
+:Notes: Releasing an ASE in the Codec Configured state is permitted
+ (ASCS Table 3.2, BAP 5.6.6) and is covered by BAP/UCL/SCC/BV-106-C
+ and BV-107-C. Without it, an initiator could not get rid of the
+ codec configuration an acceptor cached, as it no longer has a
+ transport for it.
+
BROADCAST
=========
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* [PATCH BlueZ v1 5/5] test: functional: Cover clearing a cached configuration
2026-11-10 22:19 ` [PATCH BlueZ v1 0/5] bap: Release cached ASEs on ClearConfiguration Luiz Augusto von Dentz
` (3 preceding siblings ...)
2026-11-10 22:19 ` [PATCH BlueZ v1 4/5] doc/functional-bap: Document clearing a cached configuration Luiz Augusto von Dentz
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
4 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Have the initiator clear its remote PAC Source endpoint twice, and
check that the acceptor removes the transport of the Source ASE once
released again from Codec Configured, leaving the Sink ASE alone.
Assisted-by: Claude:claude-opus-5-5
---
test/functional/test_bap.py | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/test/functional/test_bap.py b/test/functional/test_bap.py
index 324304204caf..74b8efdab13f 100644
--- a/test/functional/test_bap.py
+++ b/test/functional/test_bap.py
@@ -733,6 +733,29 @@ def test_bap_unicast_duplex_enable_one(duplex_hosts):
assert state == "active", f"{path} {state} once the Sink ASE released"
+@duplex_host_config
+def test_bap_unicast_clear_cached(duplex_hosts):
+ initiator, acceptor, to_sink, from_source, sink, source = duplex_hosts
+
+ # Releasing the Source ASE removes the transport of the initiator,
+ # while the acceptor may cache the codec configuration of the ASE
+ remote = from_source.rsplit("/", 1)[0]
+ initiator.send(f"endpoint.clear {remote}\n")
+ expect_all(
+ initiator, [rf"DEL[^\]]*\] Transport {from_source}", "Configuration cleared"]
+ )
+
+ # Clearing it again releases the ASE from Codec Configured, so the
+ # acceptor does not keep it configured
+ initiator.send(f"endpoint.clear {remote}\n")
+ expect_all(initiator, ["Configuration cleared"])
+ expect_all(acceptor, [rf"DEL[^\]]*\] Transport {source}"])
+
+ # The other direction is left alone
+ assert show_state(acceptor, sink) == "idle"
+ assert show_state(initiator, to_sink) == "idle"
+
+
# Broadcast code used by the broadcast scripts, see BCAST_CODE in
# client/player.c
BCAST_CODE = (
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread
* [PATCH BlueZ v1 1/8] transport: Hand the owner over to a link still streaming
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
` (5 preceding siblings ...)
(?)
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
2026-11-11 4:23 ` [BlueZ,v1,1/8] " bluez.test.bot
2026-11-26 4:30 ` bluez.test.bot
-1 siblings, 2 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Kannan J <kannan.j@intel.com>
As a server, when the client enables both ASEs of a bidirectional CIS
the audio server acquires one transport and its link gets the same
owner. The client may then disable only one of the ASEs, e.g. the
Source ASE when the microphone is closed, while the Sink ASE keeps
streaming over the same CIS. Removing the owner of the disabled
transport then also cleared it from the link and freed it, and
suspending the transport set the link, no longer owned, to idle as
well:
bap.c:ascs_ase_cp_write() Receiver Stop Ready
transport.c:media_transport_remove_owner() fd1 Owner :1.1213
transport.c:linked_transport_remove_owner() fd0 Owner :1.1213
transport.c:transport_set_state() fd1: ACTIVE -> IDLE
transport.c:transport_set_state() fd0: ACTIVE -> IDLE
> org.bluez.MediaTransport1.Release
< org.bluez.Error.NotAuthorized
The audio server stopped the stream of the Sink ASE, which kept
receiving data, and acquired it again on its next metadata update.
As a server, when a transport leaves streaming while a link sharing
its owner is still enabled, hand the owner over to the link and only
suspend the transport, so the link keeps its owner and its state.
---
profiles/audio/transport.c | 53 ++++++++++++++++++++++++++++++++++++--
1 file changed, 51 insertions(+), 2 deletions(-)
diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index 285db0d37554..39378ca19815 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -2431,6 +2431,53 @@ done:
return FALSE;
}
+static bool match_link_shares_owner(const void *data, const void *user_data)
+{
+ struct bt_bap_stream *link = (void *)data;
+ struct media_transport *transport;
+
+ if (!bap_link_enabled(link))
+ return false;
+
+ transport = find_transport_by_bap_stream(link);
+
+ return transport && transport->owner == user_data;
+}
+
+/* As a server, the client disables each ASE of a shared CIS on its own, so a
+ * link still enabled keeps streaming and takes over the owner they shared.
+ */
+static bool bap_handover_owner(struct media_transport *transport)
+{
+ struct bap_transport *bap = transport->data;
+ struct media_owner *owner = transport->owner;
+ struct bt_bap_stream *stream;
+ struct media_transport *link;
+
+ if (!owner || !owner->watch || !bap->linked || bap->desync ||
+ bt_bap_stream_is_client(bap->stream))
+ return false;
+
+ stream = queue_find(bt_bap_stream_io_get_links(bap->stream),
+ match_link_shares_owner, owner);
+ if (!stream)
+ return false;
+
+ link = find_transport_by_bap_stream(stream);
+
+ DBG("Transport %s Owner %s handed over to %s", transport->path,
+ owner->name, link->path);
+
+ transport->owner = NULL;
+ if (owner->transport == transport)
+ owner->transport = link;
+
+ /* The link now has its own owner, so it keeps its state */
+ media_transport_suspend(transport, NULL);
+
+ return true;
+}
+
static void bap_state_changed(struct bt_bap_stream *stream, uint8_t old_state,
uint8_t new_state, void *user_data)
{
@@ -2460,7 +2507,8 @@ static void bap_state_changed(struct bt_bap_stream *stream, uint8_t old_state,
bap_update_qos(transport);
else if (bt_bap_stream_io_dir(stream) != BT_BAP_BCAST_SOURCE)
bap_update_bcast_qos(transport);
- transport_update_playing(transport, FALSE);
+ if (!bap_handover_owner(transport))
+ transport_update_playing(transport, FALSE);
return;
case BT_BAP_STREAM_STATE_DISABLING:
return;
@@ -2480,7 +2528,8 @@ static void bap_state_changed(struct bt_bap_stream *stream, uint8_t old_state,
case BT_BAP_STREAM_STATE_RELEASING:
if (bt_bap_stream_io_dir(stream) == BT_BAP_BCAST_SINK)
return;
- transport_update_playing(transport, FALSE);
+ if (!bap_handover_owner(transport))
+ transport_update_playing(transport, FALSE);
goto done;
}
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* RE: [BlueZ,v1,1/8] transport: Hand the owner over to a link still streaming
2026-11-10 22:19 ` [PATCH BlueZ v1 1/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
@ 2026-11-11 4:23 ` bluez.test.bot
2026-11-26 4:30 ` bluez.test.bot
1 sibling, 0 replies; 47+ messages in thread
From: bluez.test.bot @ 2026-11-11 4:23 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 31653 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/series/1207688/
---Test result---
Test Summary:
CheckPatch PASS 0.40 seconds
GitLint PASS 0.26 seconds
BuildEll PASS 13.11 seconds
BluezMake PASS 169.41 seconds
MakeCheck PASS 3.08 seconds
MakeDistcheck PASS 95.40 seconds
CheckValgrind PASS 97.29 seconds
CheckSmatch PASS 169.43 seconds
bluezmakeextell PASS 60.03 seconds
TestFunctional FAIL 2927.99 seconds
IncrementalBuild PASS 172.30 seconds
ScanBuild PASS 578.06 seconds
Details
##############################
Test: TestFunctional - FAIL
Desc: Run test-functional
Output:
FAIL functional.test_adv_monitor::test_adv_monitor_GHSA_hhgc_hfgf_8m4x[hosts1-vm1]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bluetoothctl::test_bluetoothctl_show[hosts16-vm1]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bluetoothctl::test_bluetoothctl_list[hosts16-vm1]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bluetoothctl::test_bluetoothctl_script_show[hosts16-vm1]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bluetoothctl::test_bluetoothctl_script_list[hosts16-vm1]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_btmgmt::test_btmgmt_info[hosts19-vm1]: AssertionError: assert 'addr 00:00:00:00:00:00' in '\x1b[0;91mReading hci0 info failed with status 0x11 (Invalid Index)\n\x1b[0m'
+ where '\x1b[0;91mReading hci0 info failed with status 0x11 (Invalid Index)\n\x1b[0m' = CompletedProcess(args=['/home/runner/work/bluez/bluez/src/src/tools/btmgmt', '--index', '0', 'info'], returncode=0, stdout='\x1b[0;91mReading hci0 info failed with status 0x11 (Invalid Index)\n\x1b[0m').stdout
FAIL functional.test_a2dp::test_a2dp_transport_created[hosts0-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_a2dp::test_a2dp_transport_acquire[hosts0-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_a2dp::test_a2dp_disconnect_during_setconf[hosts0-vm2-accept]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_a2dp::test_a2dp_disconnect_during_setconf[hosts0-vm2-reject]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_a2dp::test_a2dp_reconnect_pending_disconnect[hosts0-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_le_connect[hosts12-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_le_conn_params[hosts12-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_le_connectable[hosts12-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_le_pair[hosts12-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_bredr_pair[hosts13-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_le_conn_update[hosts14-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bearer::test_bearer_le_not_connectable[hosts15-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bluetoothctl::test_bluetoothctl_pair_bredr[hosts17-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bluetoothctl::test_bluetoothctl_pair_le[hosts18-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_agent::test_agent_pair_bredr[accept-hosts2-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_agent::test_agent_pair_bredr[reject-hosts2-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_hog::test_hog[no-sci-hosts20-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_hog::test_hog[sci-hosts20-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_mpris_proxy::test_mpris_proxy_playback_control[bredr-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_mpris_proxy::test_mpris_proxy_track_control[bredr-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_obex::test_obex_ftp_list[hosts24-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_obex::test_obex_ftp_get[hosts24-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_obex::test_obexctl_list[hosts24-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_avrcp::test_avrcp_GHSA_m2vx_pw5f_rc8v[hosts3-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_transport_created[hosts4-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_transport_acquire[hosts4-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_transport_resume[0-hosts4-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_transport_resume[0.1-hosts4-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_transport_resume[1.0-hosts4-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_reconfigure_metadata[empty-hosts5-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_reconfigure_metadata[media-hosts5-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_desync[hosts6-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_duplex_enable_one[hosts6-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_broadcast_transport_created[lc3-hosts7-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_broadcast_transport_created[pbp-hosts7-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_broadcast_transport_acquire[lc3-hosts7-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_broadcast_transport_acquire[pbp-hosts7-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bass_past_transport_acquire[hosts9-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_set_transport_created[hosts10-vm3-sc]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_set_transport_created[hosts10-vm3-legacy]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_unicast_set_transport_acquire[hosts10-vm3]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bass_past_earbuds_transport_acquire[hosts11-vm3]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_broadcast_earbuds_transport_created[hosts8-vm3]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_bap::test_bap_broadcast_earbuds_transport_acquire[hosts8-vm3]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_mpris_proxy::test_mpris_proxy_playback_control[le-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
FAIL functional.test_mpris_proxy::test_mpris_proxy_track_control[le-vm2]: failed on setup with "pytest_bluezenv.rpc.RemoteError: load failed
Remote traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/rpc.py", line 102, in server_stream
result = method(*msg["a"], **msg["kw"])
File "/usr/local/lib/python3.14/dist-packages/pytest_bluezenv/../pytest_bluezenv/env.py", line 238, in wait_load
raise RuntimeError("load failed")
RuntimeError: load failed"
https://github.com/bluez/bluez/pull/2791
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 47+ messages in thread* RE: [BlueZ,v1,1/8] transport: Hand the owner over to a link still streaming
2026-11-10 22:19 ` [PATCH BlueZ v1 1/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
2026-11-11 4:23 ` [BlueZ,v1,1/8] " bluez.test.bot
@ 2026-11-26 4:30 ` bluez.test.bot
1 sibling, 0 replies; 47+ messages in thread
From: bluez.test.bot @ 2026-11-26 4:30 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 711 bytes --]
This is an automated email and please do not reply to this email.
Dear Submitter,
This series was picked up by the CI more than 2 weeks ago and the pull
request created for it is still open, which means the series was never
applied to the tree.
Series: [BlueZ,v1,1/8] transport: Hand the owner over to a link still streaming
Pull Request: https://github.com/bluez/bluez/pull/2791
Created: 2026-11-11 03:05:27+00:00
The pull request has been closed and no further action is taken on this
series.
If the change should still be considered, it must be resent to the Linux
Bluetooth mailing list (linux-bluetooth@vger.kernel.org) so that it is
picked up again.
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 47+ messages in thread
* [PATCH BlueZ v1 2/8] unit/test-bap: Add test for disabling one ASE of a shared CIS
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
` (6 preceding siblings ...)
(?)
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
2026-11-11 3:05 ` [BlueZ,v1,2/8] " bluez.test.bot
2026-11-16 17:50 ` [PATCH BlueZ v1 2/8] " patchwork-bot+bluetooth
-1 siblings, 2 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Kannan J <kannan.j@intel.com>
Configure a Sink and a Source ASE for the same CIS and have both
streaming over it, then disable and stop only the Source ASE, as when
a call ends while media keeps playing. Once the Source ASE is back to
QoS Configured, the Sink ASE has to still be linked to it and streaming
over the same CIS, which has to stay connected.
---
unit/test-bap.c | 90 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
diff --git a/unit/test-bap.c b/unit/test-bap.c
index 3713ad56c072..bfe98a885411 100644
--- a/unit/test-bap.c
+++ b/unit/test-bap.c
@@ -4952,6 +4952,95 @@ static void test_usr_scc_switch_cis(void)
&cfg_switch_cis, SCC_SWITCH_CIS);
}
+static int disable_link_cis_fd = -1;
+
+static bool match_stream_dir(const void *data, const void *user_data)
+{
+ return bt_bap_stream_get_dir((void *)data) == PTR_TO_UINT(user_data);
+}
+
+static void state_disable_link(struct bt_bap_stream *stream,
+ uint8_t old_state, uint8_t new_state,
+ void *user_data)
+{
+ struct test_data *data = user_data;
+ struct bt_bap_stream *link;
+ char buf;
+ int fds[2];
+ int err;
+ int fd;
+
+ if (bt_bap_stream_get_dir(stream) != BT_BAP_SOURCE)
+ return;
+
+ switch (new_state) {
+ case BT_BAP_STREAM_STATE_ENABLING:
+ err = socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0,
+ fds);
+ g_assert(err == 0);
+ g_assert(bt_bap_stream_io_connecting(stream, fds[0]) == 0);
+ disable_link_cis_fd = fds[0];
+ data->fds[0][0] = fds[0];
+ data->fds[0][1] = fds[1];
+ break;
+ case BT_BAP_STREAM_STATE_QOS:
+ if (old_state != BT_BAP_STREAM_STATE_DISABLING)
+ return;
+
+ /* The Sink ASE is still streaming over the CIS, linked to the
+ * Source ASE, so its transport has to stay acquired.
+ */
+ link = queue_find(bt_bap_stream_io_get_links(stream),
+ match_stream_dir,
+ UINT_TO_PTR(BT_BAP_SINK));
+ g_assert(link);
+ g_assert(bt_bap_stream_get_state(link) ==
+ BT_BAP_STREAM_STATE_STREAMING);
+
+ fd = -1;
+ bt_bap_stream_io_is_connecting(link, &fd);
+ g_assert(fd == disable_link_cis_fd);
+ err = recv(data->fds[0][1], &buf, 1, MSG_DONTWAIT | MSG_PEEK);
+ g_assert(err < 0 && errno == EAGAIN);
+ break;
+ }
+}
+
+static struct test_config cfg_disable_link = {
+ .cc = LC3_CONFIG_16_2,
+ .qos = LC3_QOS_16_2_1,
+ .snk = true,
+ .src = true,
+ .state_func = state_disable_link,
+};
+
+/* Sink and Source ASE configured for the same CIS and both streaming: the
+ * Source ASE alone is disabled and stopped, as when a call ends while media
+ * keeps playing. The Sink ASE has to keep streaming over the same CIS.
+ */
+#define SCC_DISABLE_LINK \
+ DISC_SRC_ASE_LC3, \
+ SCC_SNK(LC3_CONFIG_16_2_DATA), \
+ SCC_SRC(LC3_CONFIG_16_2_DATA), \
+ QOS_SNK(QOS_16_2_1_DATA), \
+ QOS_SRC(QOS_16_2_1_DATA), \
+ SRC_ENABLE, \
+ SRC_START, \
+ ENABLE_ASE(SNK_ID(0)), \
+ SNK_ENABLE_NOTIFY(0, 0), \
+ SNK_START_NOTIFY(0, 0), \
+ SRC_DISABLE, \
+ IOV_DATA(0x52, CP_HND, 0x06, 0x01, SRC_ID(0)), \
+ ASE_CP_RSP(0x06, SRC_ID(0), 0x00, 0x00), \
+ QOS_SRC_NOTIFY(0, 0, QOS_16_2_1_DATA)
+
+static void test_usr_scc_disable_link(void)
+{
+ define_test("BAP/USR/SCC/BLUEZ-5 [USR Disable one ASE of a shared CIS]",
+ test_setup_server, test_server_state,
+ &cfg_disable_link, SCC_DISABLE_LINK);
+}
+
static struct test_config str_snk_ac2_8_1_1 = {
.cc = LC3_CONFIG_8_1_AC(1),
.qos = LC3_QOS_8_1_1_AC(1),
@@ -7816,6 +7905,7 @@ static void test_scc(void)
test_usr_scc_release_link();
test_usr_scc_release_cis();
test_usr_scc_switch_cis();
+ test_usr_scc_disable_link();
test_scc_metadata();
test_str_1_1_1_lc3();
}
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* RE: [BlueZ,v1,2/8] unit/test-bap: Add test for disabling one ASE of a shared CIS
2026-11-10 22:19 ` [PATCH BlueZ v1 2/8] unit/test-bap: Add test for disabling one ASE of a shared CIS Luiz Augusto von Dentz
@ 2026-11-11 3:05 ` bluez.test.bot
2026-11-16 17:50 ` [PATCH BlueZ v1 2/8] " patchwork-bot+bluetooth
1 sibling, 0 replies; 47+ messages in thread
From: bluez.test.bot @ 2026-11-11 3:05 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 829 bytes --]
This is an automated email and please do not reply to this email.
Dear Submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.
----- Output -----
error: patch failed: unit/test-bap.c:4952
error: unit/test-bap.c: patch does not apply
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Please resolve the issue and submit the patches again.
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 47+ messages in thread
* Re: [PATCH BlueZ v1 2/8] unit/test-bap: Add test for disabling one ASE of a shared CIS
2026-11-10 22:19 ` [PATCH BlueZ v1 2/8] unit/test-bap: Add test for disabling one ASE of a shared CIS Luiz Augusto von Dentz
2026-11-11 3:05 ` [BlueZ,v1,2/8] " bluez.test.bot
@ 2026-11-16 17:50 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 47+ messages in thread
From: patchwork-bot+bluetooth @ 2026-11-16 17:50 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Tue, 10 Nov 2026 17:19:11 -0500 you wrote:
> From: Kannan J <kannan.j@intel.com>
>
> Configure a Sink and a Source ASE for the same CIS and have both
> streaming over it, then disable and stop only the Source ASE, as when
> a call ends while media keeps playing. Once the Source ASE is back to
> QoS Configured, the Sink ASE has to still be linked to it and streaming
> over the same CIS, which has to stay connected.
>
> [...]
Here is the summary with links:
- [BlueZ,v1,2/8] unit/test-bap: Add test for disabling one ASE of a shared CIS
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=e38984593c78
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 47+ messages in thread
* [PATCH BlueZ v1 3/8] transport: Clear the owner of desynchronized links when removing it
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
` (7 preceding siblings ...)
(?)
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
2026-11-26 4:30 ` None bluez.test.bot
-1 siblings, 1 reply; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
The links of a transport are given its owner when it is acquired while
synchronized, but removing the owner only cleared them if the transport
was still synchronized. Setting Desynchronized in between left the links
with a pointer to the owner that was freed, which is used when the link
is freed in turn:
media_request_reply() transport.c:282
media_transport_remove_owner() transport.c:389
media_transport_free() transport.c:1854
Clear the links that share the owner being removed regardless of
Desynchronized, as linked_transport_remove_owner() only does it for the
ones that actually have it.
Fixes: 1db06505df5a ("audio: Add ability to desynchronized linked transport")
Assisted-by: Claude:claude-opus-5-5
---
profiles/audio/transport.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index 39378ca19815..d3aac8ca66bd 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -370,7 +370,10 @@ static void transport_bap_remove_owner(struct media_transport *transport,
{
struct bap_transport *bap = transport->data;
- if (bap && bap->linked && !bap->desync)
+ /* Also when desynchronized, as the links may have been given the owner
+ * before, and the owner is about to be freed.
+ */
+ if (bap && bap->linked)
queue_foreach(bt_bap_stream_io_get_links(bap->stream),
linked_transport_remove_owner, owner);
}
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* [PATCH BlueZ v1 4/8] transport: Don't hand the owner over while releasing
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
` (8 preceding siblings ...)
(?)
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
2026-11-11 3:05 ` [BlueZ,v1,4/8] " bluez.test.bot
2026-11-16 17:50 ` [PATCH BlueZ v1 4/8] " patchwork-bot+bluetooth
-1 siblings, 2 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
As a server, handing the owner over to a link still streaming also
happened when the audio server released the transport. Release sets the
transport to suspending before disabling its ASE, and disabling a Sink
ASE reaches the handover synchronously, before the request of Release
is installed. The handover cleared the owner of the transport, so the
removal of the owner by Release did nothing, and the link, which kept
the owner, was left owned and never moved to idle:
transport_set_state() fd0: ACTIVE -> SUSPENDING
bap_handover_owner() fd1 Owner :1.2 handed over to fd0
transport_set_state() fd1: SUSPENDING -> IDLE
Don't hand the owner over when the transport is being released, as
Release removes the owner itself, nor when the owner has a request
pending, as it would stay with the link although it was made through
the transport, which is the one that completes it.
Assisted-by: Claude:claude-opus-5-5
---
profiles/audio/transport.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index d3aac8ca66bd..f8aba2bc58ff 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -2457,8 +2457,12 @@ static bool bap_handover_owner(struct media_transport *transport)
struct bt_bap_stream *stream;
struct media_transport *link;
- if (!owner || !owner->watch || !bap->linked || bap->desync ||
- bt_bap_stream_is_client(bap->stream))
+ /* A pending request is answered through its transport, and a transport
+ * being released has its owner removed by Release itself.
+ */
+ if (!owner || owner->pending || !owner->watch || !bap->linked ||
+ bap->desync || bt_bap_stream_is_client(bap->stream) ||
+ transport->state == TRANSPORT_STATE_SUSPENDING)
return false;
stream = queue_find(bt_bap_stream_io_get_links(bap->stream),
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* RE: [BlueZ,v1,4/8] transport: Don't hand the owner over while releasing
2026-11-10 22:19 ` [PATCH BlueZ v1 4/8] transport: Don't hand the owner over while releasing Luiz Augusto von Dentz
@ 2026-11-11 3:05 ` bluez.test.bot
2026-11-16 17:50 ` [PATCH BlueZ v1 4/8] " patchwork-bot+bluetooth
1 sibling, 0 replies; 47+ messages in thread
From: bluez.test.bot @ 2026-11-11 3:05 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 851 bytes --]
This is an automated email and please do not reply to this email.
Dear Submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.
----- Output -----
error: patch failed: profiles/audio/transport.c:2457
error: profiles/audio/transport.c: patch does not apply
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Please resolve the issue and submit the patches again.
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 47+ messages in thread
* Re: [PATCH BlueZ v1 4/8] transport: Don't hand the owner over while releasing
2026-11-10 22:19 ` [PATCH BlueZ v1 4/8] transport: Don't hand the owner over while releasing Luiz Augusto von Dentz
2026-11-11 3:05 ` [BlueZ,v1,4/8] " bluez.test.bot
@ 2026-11-16 17:50 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 47+ messages in thread
From: patchwork-bot+bluetooth @ 2026-11-16 17:50 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Tue, 10 Nov 2026 17:19:13 -0500 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> As a server, handing the owner over to a link still streaming also
> happened when the audio server released the transport. Release sets the
> transport to suspending before disabling its ASE, and disabling a Sink
> ASE reaches the handover synchronously, before the request of Release
> is installed. The handover cleared the owner of the transport, so the
> removal of the owner by Release did nothing, and the link, which kept
> the owner, was left owned and never moved to idle:
>
> [...]
Here is the summary with links:
- [BlueZ,v1,4/8] transport: Don't hand the owner over while releasing
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=578b16afd93c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 47+ messages in thread
* [PATCH BlueZ v1 5/8] doc/functional-bap: Document disabling one ASE of a shared owner
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
` (9 preceding siblings ...)
(?)
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
-1 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Describe the test where the audio server of the acceptor acquires one
transport of a bidirectional CIS, its link sharing the owner, and the
initiator then disables only the Source ASE.
Assisted-by: Claude:claude-opus-5-5
---
doc/functional-bap.rst | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/doc/functional-bap.rst b/doc/functional-bap.rst
index 8f3f8e62cd4a..453458feff4d 100644
--- a/doc/functional-bap.rst
+++ b/doc/functional-bap.rst
@@ -306,6 +306,39 @@ test_bap_unicast_duplex_switch
seen by the controller of the acceptor, recorded with `btmon`,
rather than by the states of the transports.
+test_bap_unicast_duplex_disable_one
+-----------------------------------
+
+:Setup: As above, with both transports created and linked.
+
+:Steps:
+ 1. Initiator: ``transport.acquire <source transport>``, without
+ desynchronizing, so both ASEs are enabled together.
+ 2. Initiator: ``transport.desync <source transport> on``, then
+ ``transport.release <source transport>``.
+ 3. Acceptor: ``transport.show <sink transport>``.
+
+:Expected:
+ 1. ``Acquire successful: fd <fd> MTU <read>:<write>`` on both hosts,
+ and both transports of the acceptor move to ``State: active``:
+ `bluetoothctl` acquires one of them as an audio server would,
+ and its link shares the owner.
+ 2. ``Release successful``, and the transport of the Source ASE moves
+ to ``State: idle`` on both hosts.
+ 3. The transport of the Sink ASE is still ``State: active``.
+
+:Notes: Reproduces a remote initiator, e.g. a phone ending a call,
+ disabling the Source ASE of a headset while the Sink ASE keeps
+ receiving media. The transport of the Source ASE leaving streaming
+ used to take the owner, and so the state, of its link with it: the
+ audio server stopped the stream of the Sink ASE, which kept
+ receiving data, and acquired it again on its next update.
+
+ The initiator has to acquire the transport without having set
+ ``Desynchronized``, as that is what makes the acceptor share the
+ owner between the two transports, and set it only to disable the
+ ASEs one at a time.
+
BROADCAST
=========
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* [PATCH BlueZ v1 6/8] test: functional: Cover disabling one ASE of a shared owner
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
` (10 preceding siblings ...)
(?)
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
-1 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Have the initiator acquire the transport of the Source ASE without
desynchronizing, so both ASEs are enabled together and bluetoothctl on
the acceptor acquires one transport, as an audio server would, its link
sharing the owner. Then desynchronize and release the transport to
disable the Source ASE alone, as when a microphone is closed while media
keeps playing, and check that the transport of the Sink ASE stays
active, as its ASE keeps streaming.
Assisted-by: Claude:claude-opus-5-5
---
test/functional/test_bap.py | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/test/functional/test_bap.py b/test/functional/test_bap.py
index 56205a61e61d..b76417824f97 100644
--- a/test/functional/test_bap.py
+++ b/test/functional/test_bap.py
@@ -801,6 +801,40 @@ def test_bap_unicast_duplex_switch(duplex_hosts, acceptor_cis_count):
expect_all(acceptor, [ACQUIRED, f"Transport {source} State: active"])
+@duplex_host_config
+def test_bap_unicast_duplex_disable_one(duplex_hosts):
+ initiator, acceptor, to_sink, from_source, sink, source = duplex_hosts
+
+ # Acquire the transport of the Source ASE without desynchronizing, so
+ # both ASEs are enabled together and bluetoothctl on the acceptor, as an
+ # audio server would, acquires one transport, whose link shares the
+ # owner
+ initiator.send(f"transport.acquire {from_source}\n")
+ expect_all(initiator, [ACQUIRED, f"Transport {from_source} State: active"])
+ expect_all(
+ acceptor,
+ [
+ ACQUIRED,
+ f"Transport {source} State: active",
+ f"Transport {sink} State: active",
+ ],
+ )
+
+ # Disable the Source ASE alone, as when a microphone is closed while
+ # media keeps playing
+ desync(initiator, to_sink, from_source)
+ initiator.send(f"transport.release {from_source}\n")
+ expect_all(
+ initiator, ["Release successful", f"Transport {from_source} State: idle"]
+ )
+ expect_all(acceptor, [f"Transport {source} State: idle"])
+
+ # The Sink ASE keeps streaming, so its transport has to stay active
+ time.sleep(2)
+ state = show_state(acceptor, sink)
+ assert state == "active", f"{sink} {state} while its ASE keeps streaming"
+
+
# Broadcast code used by the broadcast scripts, see BCAST_CODE in
# client/player.c
BCAST_CODE = (
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* [PATCH BlueZ v1 7/8] doc/functional-bap: Document releasing a shared owner
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
` (11 preceding siblings ...)
(?)
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
-1 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Describe the test where the audio server of the acceptor releases the
transport it acquired, whose link shares the owner.
Assisted-by: Claude:claude-opus-5-5
---
doc/functional-bap.rst | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/doc/functional-bap.rst b/doc/functional-bap.rst
index 453458feff4d..7dbbb7eb39e2 100644
--- a/doc/functional-bap.rst
+++ b/doc/functional-bap.rst
@@ -339,6 +339,31 @@ test_bap_unicast_duplex_disable_one
owner between the two transports, and set it only to disable the
ASEs one at a time.
+test_bap_unicast_duplex_release_shared
+--------------------------------------
+
+:Setup: As above, with both transports created and linked.
+
+:Steps:
+ 1. Initiator: ``transport.acquire <sink transport>``, without
+ desynchronizing, so both ASEs are enabled together.
+ 2. Acceptor: ``transport.release <sink transport>``.
+
+:Expected:
+ 1. ``Acquire successful: fd <fd> MTU <read>:<write>`` on both hosts,
+ and both transports of the acceptor move to ``State: active``:
+ `bluetoothctl` acquires the Sink ASE one as an audio server
+ would, and its link shares the owner.
+ 2. ``Release successful``, and both transports of the acceptor move
+ to ``State: idle``.
+
+:Notes: The audio server releasing the transport it acquired has to
+ release the linked one with it, even though a transport leaving
+ streaming hands its owner over to a link that is still streaming
+ (see the previous test): a transport that is being released has its
+ owner removed by ``Release`` itself, so the link, which shares it,
+ has to follow, or it stays owned and never goes idle.
+
BROADCAST
=========
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* [PATCH BlueZ v1 8/8] test: functional: Cover releasing a shared owner
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
` (12 preceding siblings ...)
(?)
@ 2026-11-10 22:19 ` Luiz Augusto von Dentz
-1 siblings, 0 replies; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-10 22:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Have the initiator acquire the transport of the Sink ASE without
desynchronizing, so both ASEs are enabled together and bluetoothctl on
the acceptor acquires its transport, as an audio server would, its link
sharing the owner, then release it and check that both transports move
to idle.
Assisted-by: Claude:claude-opus-5-5
---
test/functional/test_bap.py | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/test/functional/test_bap.py b/test/functional/test_bap.py
index b76417824f97..c382d1a9ad46 100644
--- a/test/functional/test_bap.py
+++ b/test/functional/test_bap.py
@@ -835,6 +835,38 @@ def test_bap_unicast_duplex_disable_one(duplex_hosts):
assert state == "active", f"{sink} {state} while its ASE keeps streaming"
+@duplex_host_config
+def test_bap_unicast_duplex_release_shared(duplex_hosts):
+ initiator, acceptor, to_sink, from_source, sink, source = duplex_hosts
+
+ # Acquire the transport of the Sink ASE without desynchronizing, so both
+ # ASEs are enabled together and bluetoothctl on the acceptor, as an
+ # audio server would, acquires the Sink ASE transport, its link sharing
+ # the owner
+ initiator.send(f"transport.acquire {to_sink}\n")
+ expect_all(initiator, [ACQUIRED, f"Transport {to_sink} State: active"])
+ expect_all(
+ acceptor,
+ [
+ ACQUIRED,
+ f"Transport {source} State: active",
+ f"Transport {sink} State: active",
+ ],
+ )
+
+ # Release the transport it acquired: its link shares the owner, so it
+ # has to be released along with it
+ acceptor.send(f"transport.release {sink}\n")
+ expect_all(
+ acceptor,
+ [
+ "Release successful",
+ f"Transport {sink} State: idle",
+ f"Transport {source} State: idle",
+ ],
+ )
+
+
# Broadcast code used by the broadcast scripts, see BCAST_CODE in
# client/player.c
BCAST_CODE = (
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread
* [PATCH BlueZ v3 3/6] bap: Release cached ASEs on ClearConfiguration of an endpoint
@ 2026-11-11 20:37 Luiz Augusto von Dentz
2026-11-27 4:58 ` None bluez.test.bot
0 siblings, 1 reply; 47+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-11 20:37 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Once a stream is released, the server may cache the codec configuration
of its ASE, leaving it in Codec Configured state, while the setup of
the stream is freed. ClearConfiguration only closed the streams that
have a setup, so it could not release such an ASE anymore.
When ClearConfiguration is given the path of the endpoint, also release
its streams in Codec Configured state that have no setup, as a client
may release an ASE in that state (ASCS Table 3.2, BAP 5.6.6).
Assisted-by: Claude:claude-opus-5-5
---
profiles/audio/bap.c | 159 ++++++++++++++++++++++++++++++++++++++++---
1 file changed, 150 insertions(+), 9 deletions(-)
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index a0e0ba60d817..507b910cf8ce 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -46,6 +46,7 @@
#include "src/shared/gatt-client.h"
#include "src/shared/gatt-server.h"
#include "src/shared/bap.h"
+#include "src/shared/ascs.h"
#include "src/shared/tmap.h"
#include "src/shared/gmap.h"
@@ -138,6 +139,7 @@ struct bap_data {
struct queue *bcast;
struct queue *bcast_snks;
struct queue *server_streams;
+ struct queue *cached_releases;
GIOChannel *listen_io;
bool pa_synced;
unsigned int pa_timer;
@@ -149,6 +151,8 @@ struct bap_data {
static struct queue *sessions;
+static void cached_release_cancel(void *data);
+
static int setup_config(struct bap_setup *setup, bap_setup_ready_func_t cb,
void *user_data);
static int bap_select_all(struct bap_data *data, bool reconfigure,
@@ -196,6 +200,7 @@ static void bap_data_free(struct bap_data *data)
queue_destroy(data->srcs, ep_unregister);
queue_destroy(data->bcast, ep_unregister);
queue_destroy(data->server_streams, NULL);
+ queue_destroy(data->cached_releases, cached_release_cancel);
data->bcast_snks = NULL;
queue_destroy(bcast_snks, setup_free);
@@ -996,8 +1001,9 @@ static int setup_close(struct bap_setup *setup, bap_setup_close_func_t cb,
struct ep_close_data {
int remaining;
int count;
+ int err;
const char *path;
- void (*cb)(int count, void *user_data);
+ void (*cb)(int count, int err, void *user_data);
void *user_data;
};
@@ -1013,7 +1019,7 @@ static void ep_close_setup_cb(struct bap_setup *setup, void *user_data)
return;
if (epdata->cb)
- epdata->cb(epdata->count, epdata->user_data);
+ epdata->cb(epdata->count, epdata->err, epdata->user_data);
free(epdata);
}
@@ -1035,8 +1041,126 @@ static void ep_close_setup(void *data, void *user_data)
epdata->count++;
}
+static struct bap_setup *bap_find_setup_by_stream(struct bap_data *data,
+ struct bt_bap_stream *stream);
+
+struct cached_release_data {
+ struct bap_ep *ep;
+ struct ep_close_data *epdata;
+};
+
+/* The release of a cached stream, done once the stream is idle */
+struct cached_release {
+ struct bt_bap_stream *stream;
+ struct ep_close_data *epdata;
+ int refs;
+ bool done;
+};
+
+static void cached_release_unref(struct cached_release *cr)
+{
+ if (--cr->refs)
+ return;
+
+ free(cr);
+}
+
+static void cached_release_done(struct cached_release *cr, int err)
+{
+ if (cr->done)
+ return;
+
+ cr->done = true;
+
+ if (err)
+ cr->epdata->err = err;
+
+ ep_close_setup_cb(NULL, cr->epdata);
+}
+
+static bool match_cached_release(const void *data, const void *match_data)
+{
+ const struct cached_release *cr = data;
+
+ return cr->stream == match_data;
+}
+
+static void bap_cached_release_idle(struct bap_data *data,
+ struct bt_bap_stream *stream)
+{
+ struct cached_release *cr;
+
+ cr = queue_remove_if(data->cached_releases, match_cached_release,
+ stream);
+ if (!cr)
+ return;
+
+ cached_release_done(cr, 0);
+ cached_release_unref(cr);
+}
+
+static void cached_release_cancel(void *data)
+{
+ struct cached_release *cr = data;
+
+ cached_release_done(cr, -ECANCELED);
+ cached_release_unref(cr);
+}
+
+static void ep_release_cached_cb(struct bt_bap_stream *stream, uint8_t code,
+ uint8_t reason, void *user_data)
+{
+ struct cached_release *cr = user_data;
+
+ /* The ASE is idle once it is notified, so only a failure completes
+ * the release here.
+ */
+ if (code != BT_ASCS_RSP_SUCCESS)
+ cached_release_done(cr, -EIO);
+
+ cached_release_unref(cr);
+}
+
+static void ep_release_cached(struct bt_bap_stream *stream, void *user_data)
+{
+ struct cached_release_data *data = user_data;
+ struct bap_ep *ep = data->ep;
+ struct cached_release *cr;
+
+ /* The server may have cached the codec configuration of a released
+ * ASE, which has no setup anymore, so release it again.
+ */
+ if (bt_bap_stream_get_rpac(stream) != ep->rpac ||
+ bt_bap_stream_get_state(stream) !=
+ BT_BAP_STREAM_STATE_CONFIG ||
+ bap_find_setup_by_stream(ep->data, stream))
+ return;
+
+ DBG("stream %p", stream);
+
+ cr = new0(struct cached_release, 1);
+ cr->stream = stream;
+ cr->epdata = data->epdata;
+ cr->refs = 2;
+
+ data->epdata->remaining++;
+
+ if (!ep->data->cached_releases)
+ ep->data->cached_releases = queue_new();
+
+ queue_push_tail(ep->data->cached_releases, cr);
+
+ if (!bt_bap_stream_release(stream, ep_release_cached_cb, cr)) {
+ queue_remove(ep->data->cached_releases, cr);
+ data->epdata->remaining--;
+ free(cr);
+ }
+}
+
static void ep_close(struct bap_ep *ep, const char *transport_path,
- void (*cb)(int count, void *user_data), void *user_data)
+ bool cached,
+ void (*cb)(int count, int err, void *user_data),
+ void *user_data)
{
struct ep_close_data *epdata;
@@ -1051,6 +1175,15 @@ static void ep_close(struct bap_ep *ep, const char *transport_path,
if (ep)
queue_foreach(ep->setups, ep_close_setup, epdata);
+ /* The cached streams have to be released before replying, as an ASE
+ * still being released can't be configured again.
+ */
+ if (cached && ep && ep->rpac) {
+ struct cached_release_data data = { ep, epdata };
+
+ bt_bap_foreach_stream(ep->data->bap, ep_release_cached, &data);
+ }
+
epdata->path = NULL;
ep_close_setup_cb(NULL, epdata);
}
@@ -1302,14 +1435,16 @@ struct clear_configuration_data {
bool all;
};
-static void clear_configuration_cb(int count, void *user_data)
+static void clear_configuration_cb(int count, int err, void *user_data)
{
struct clear_configuration_data *data = user_data;
DBusMessage *reply;
DBG("%p", data);
- if (!data->all && count == 0)
+ if (err)
+ reply = btd_error_failed(data->msg, strerror(-err));
+ else if (!data->all && count == 0)
reply = btd_error_invalid_args(data->msg);
else
reply = dbus_message_new_method_return(data->msg);
@@ -1338,7 +1473,8 @@ static DBusMessage *clear_configuration(DBusConnection *conn, DBusMessage *msg,
cbdata->all = (path == NULL);
DBG("%p %s %s", cbdata, ep->path, path ? path : "NULL");
- ep_close(ep, path, clear_configuration_cb, cbdata);
+
+ ep_close(ep, path, !path, clear_configuration_cb, cbdata);
return NULL;
}
@@ -1403,7 +1539,7 @@ static void reconfigure_select_cb(int err, void *user_data)
free(data);
}
-static void reconfigure_close_cb(int count, void *user_data)
+static void reconfigure_close_cb(int count, int err, void *user_data)
{
struct reconfigure_data *data = user_data;
@@ -1424,7 +1560,7 @@ static void ep_close_if_reconfigure(void *obj, void *user_data)
if (ep->reconfigure) {
data->remaining++;
- ep_close(ep, NULL, reconfigure_close_cb, data);
+ ep_close(ep, NULL, false, reconfigure_close_cb, data);
}
}
@@ -1464,7 +1600,7 @@ static DBusMessage *reconfigure(DBusConnection *conn, DBusMessage *msg,
queue_foreach(data->snks, ep_close_if_reconfigure, cbdata);
queue_foreach(data->srcs, ep_close_if_reconfigure, cbdata);
- reconfigure_close_cb(0, cbdata);
+ reconfigure_close_cb(0, 0, cbdata);
return NULL;
}
@@ -3031,6 +3167,8 @@ static void bap_state(struct bt_bap_stream *stream, uint8_t old_state,
setup_free(setup);
else
queue_remove(data->server_streams, stream);
+
+ bap_cached_release_idle(data, stream);
break;
case BT_BAP_STREAM_STATE_CONFIG:
if (setup) {
@@ -4054,6 +4192,9 @@ static int bap_disconnect(struct btd_service *service)
queue_destroy(data->server_streams, NULL);
data->server_streams = NULL;
+ queue_destroy(data->cached_releases, cached_release_cancel);
+ data->cached_releases = NULL;
+
bt_bap_detach(data->bap);
btd_service_disconnecting_complete(service, 0);
--
2.56.0
^ permalink raw reply related [flat|nested] 47+ messages in thread* [PATCH BlueZ v2 2/2] unit: Test HoG report map reads after reconnect
@ 2026-09-25 22:03 Giuseppe Piscitelli
2026-10-11 1:20 ` None bluez.test.bot
0 siblings, 1 reply; 47+ messages in thread
From: Giuseppe Piscitelli @ 2026-09-25 22:03 UTC (permalink / raw)
To: linux-bluetooth
From: Giuseppe Piscitelli <35407790+ooonea@users.noreply.github.com>
Exercise reconnect after an ATT error and after cancelling a pending
Report Map read. Require a fresh read and validate the resulting
UHID_CREATE2 descriptor on a simulated transport.
Stub Bluetooth address lookup for the Unix socketpair fixture. Both
cases fail without resetting report_map_id on detach.
Assisted-by: OpenAI Codex:gpt-6
---
v2: Resend without quoted email history; code unchanged.
Makefile.am | 2 +-
unit/test-hog.c | 139 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 140 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 1d46b9b..1621794 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -767,7 +767,7 @@ unit_test_gatt_LDADD = src/libshared-glib.la \
unit_tests += unit/test-hog
unit_test_hog_SOURCES = unit/test-hog.c \
- $(btio_sources) \
+ btio/btio.h \
profiles/input/hog-lib.h profiles/input/hog-lib.c \
profiles/scanparam/scpp.h profiles/scanparam/scpp.c \
profiles/battery/bas.h profiles/battery/bas.c \
diff --git a/unit/test-hog.c b/unit/test-hog.c
index 45ffe71..405af8a 100644
--- a/unit/test-hog.c
+++ b/unit/test-hog.c
@@ -17,6 +17,8 @@
#include <string.h>
#include <sys/socket.h>
#include <fcntl.h>
+#include <stdarg.h>
+#include <linux/uhid.h>
#include <glib.h>
@@ -30,9 +32,28 @@
#include "src/shared/gatt-db.h"
#include "attrib/gattrib.h"
+#include "btio/btio.h"
#include "profiles/input/hog-lib.h"
+gboolean bt_io_get(GIOChannel *io, GError **error, BtIOOption opt, ...)
+{
+ va_list args;
+
+ va_start(args, opt);
+
+ while (opt != BT_IO_OPT_INVALID) {
+ g_assert(opt == BT_IO_OPT_SOURCE_BDADDR ||
+ opt == BT_IO_OPT_DEST_BDADDR);
+ memset(va_arg(args, bdaddr_t *), 0, sizeof(bdaddr_t));
+ opt = va_arg(args, int);
+ }
+
+ va_end(args);
+
+ return TRUE;
+}
+
struct test_pdu {
bool valid;
const uint8_t *data;
@@ -211,10 +232,128 @@ static void test_hog(gconstpointer data)
g_assert(bt_hog_attach(context->hog, context->attrib));
}
+static ssize_t receive(int fd, void *buf, size_t size)
+{
+ gint64 deadline = g_get_monotonic_time() + 5 * G_TIME_SPAN_SECOND;
+ ssize_t len;
+
+ do {
+ while (g_main_context_iteration(NULL, FALSE))
+ ;
+
+ len = recv(fd, buf, size, MSG_DONTWAIT);
+ if (len >= 0)
+ return len;
+
+ g_usleep(1000);
+ } while (g_get_monotonic_time() < deadline);
+
+ return -1;
+}
+
+static void expect_read(int fd, uint8_t handle)
+{
+ uint8_t buf[32];
+ ssize_t len = receive(fd, buf, sizeof(buf));
+
+ g_assert_cmpint(len, ==, 3);
+ g_assert_cmpuint(buf[0], ==, BT_ATT_OP_READ_REQ);
+ g_assert_cmpuint(buf[1], ==, handle);
+ g_assert_cmpuint(buf[2], ==, 0);
+}
+
+static void respond(int fd, const void *buf, size_t size)
+{
+ g_assert_cmpint(send(fd, buf, size, 0), ==, size);
+}
+
+static void test_reconnect(gconstpointer data)
+{
+ const uint8_t info[] = { 0x0b, 0x11, 0x01, 0x00, 0x00 };
+ const uint8_t error[] = { 0x01, 0x0a, 0x05, 0x00, 0x0e };
+ const uint8_t map[] = { 0x0b, 0x05, 0x01, 0x09, 0x02, 0xa1, 0x01,
+ 0x09, 0x30, 0x15, 0x81, 0x25, 0x7f, 0x75,
+ 0x08, 0x95, 0x01, 0x81, 0x06, 0xc0 };
+ struct gatt_db *db = gatt_db_new();
+ struct gatt_db_attribute *service;
+ struct bt_hog *hog;
+ struct uhid_event ev;
+ GIOChannel *channel;
+ GAttrib *attrib;
+ bt_uuid_t uuid;
+ int att[2], uhid[2];
+ bool cancel = GPOINTER_TO_INT(data);
+
+ g_assert_cmpint(socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_NONBLOCK,
+ 0, att), ==, 0);
+ g_assert_cmpint(socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_NONBLOCK,
+ 0, uhid), ==, 0);
+ bt_uuid16_create(&uuid, 0x1812);
+ service = gatt_db_add_service(db, &uuid, true, 5);
+ g_assert(service);
+ bt_uuid16_create(&uuid, 0x2a4a);
+ g_assert(gatt_db_service_add_characteristic(service, &uuid,
+ BT_ATT_PERM_READ, 0x02, NULL, NULL, NULL));
+ bt_uuid16_create(&uuid, 0x2a4b);
+ g_assert(gatt_db_service_add_characteristic(service, &uuid,
+ BT_ATT_PERM_READ, 0x02, NULL, NULL, NULL));
+ gatt_db_service_set_active(service, true);
+ channel = g_io_channel_unix_new(att[0]);
+ g_io_channel_set_close_on_unref(channel, TRUE);
+ attrib = g_attrib_new(channel, 23, false);
+ g_io_channel_unref(channel);
+ hog = bt_hog_new(uhid[0], "report-map-test", 1, 1, 1, 0, db);
+ g_assert(hog);
+ g_assert(bt_hog_attach(hog, attrib));
+ expect_read(att[1], 3);
+ respond(att[1], info, sizeof(info));
+ expect_read(att[1], 5);
+
+ if (!cancel) {
+ respond(att[1], error, sizeof(error));
+
+ while (g_main_context_iteration(NULL, FALSE))
+ ;
+ }
+
+ bt_hog_detach(hog, false);
+ g_attrib_unref(attrib);
+ close(att[1]);
+ g_assert_cmpint(socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_NONBLOCK,
+ 0, att), ==, 0);
+ channel = g_io_channel_unix_new(att[0]);
+ g_io_channel_set_close_on_unref(channel, TRUE);
+ attrib = g_attrib_new(channel, 23, false);
+ g_io_channel_unref(channel);
+ g_assert(bt_hog_attach(hog, attrib));
+ expect_read(att[1], 3);
+ respond(att[1], info, sizeof(info));
+ expect_read(att[1], 5);
+ respond(att[1], map, sizeof(map));
+ g_assert_cmpint(receive(uhid[1], &ev, sizeof(ev)), ==, sizeof(ev));
+ g_assert_cmpuint(ev.type, ==, UHID_CREATE2);
+ g_assert_cmpuint(ev.u.create2.rd_size, ==, sizeof(map) - 1);
+ g_assert_cmpmem(ev.u.create2.rd_data, ev.u.create2.rd_size,
+ map + 1, sizeof(map) - 1);
+ bt_hog_detach(hog, true);
+ bt_hog_unref(hog);
+ g_attrib_unref(attrib);
+ gatt_db_unref(db);
+ close(att[1]);
+ close(uhid[0]);
+ close(uhid[1]);
+ tester_test_passed();
+}
+
int main(int argc, char *argv[])
{
tester_init(&argc, &argv);
+ tester_add("/hog/report-map/error-reconnect", GINT_TO_POINTER(false),
+ NULL, test_reconnect, NULL);
+ tester_add("/hog/report-map/cancel-reconnect", GINT_TO_POINTER(true),
+ NULL, test_reconnect, NULL);
+
define_test("/TP/HGRF/RH/BV-01-I", test_hog,
raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28),
raw_pdu(0x11, 0x06, 0x01, 0x00, 0x04, 0x00, 0x12,
^ permalink raw reply related [flat|nested] 47+ messages in thread* (no subject)
@ 2023-10-16 18:43 Dorcas Litunya
2023-10-17 20:21 ` none Junio C Hamano
0 siblings, 1 reply; 47+ messages in thread
From: Dorcas Litunya @ 2023-10-16 18:43 UTC (permalink / raw)
To: Junio C Hamano; +Cc: christian.couder, git
Bcc:
Subject: Re: [PATCH] t/t7601: Modernize test scripts using functions
Reply-To:
In-Reply-To: <xmqq1qdumrto.fsf@gitster.g>
On Mon, Oct 16, 2023 at 09:53:55AM -0700, Junio C Hamano wrote:
> Dorcas AnonoLitunya <anonolitunya@gmail.com> writes:
>
> > Subject: Re: [PATCH] t/t7601: Modernize test scripts using functions
>
> Let's try if we can pack a bit more information. For example
>
> Subject: [PATCH] t7601: use "test_path_is_file" etc. instead of "test -f"
>
> would clarify what kind of modernization is done by this patch.
>
> > The test script is currently using the command format 'test -f' to
> > check for existence or absence of files.
>
> "is currently using" -> "uses".
>
> > Replace it with new helper functions following the format
> > 'test_path_is_file'.
>
> I am not sure what role "the format" plays in this picture.
> test_path_is_file is not new---it has been around for quite a while.
>
> > Consequently, the patch also replaces the inverse command '! test -f' or
> > 'test ! -f' with new helper function following the format
> > 'test_path_is_missing'
>
> A bit more on this later.
>
So should I replace this in the next version or leave this as is?
> > This adjustment using helper functions makes the code more readable and
> > easier to understand.
>
> Looking good. If I were writing this, I'll make the whole thing
> more like this, though:
>
> t7601: use "test_path_is_file" etc. instead of "test -f"
>
> Some tests in t7601 use "test -f" and "test ! -f" to see if a
> path exists or is missing. Use test_path_is_file and
> test_path_is_missing helper functions to clarify these tests a
> bit better. This especially matters for the "missing" case,
> because "test ! -f F" will be happy if "F" exists as a
> directory, but the intent of the test is that "F" should not
> exist, even as a directory.
>
>
> > diff --git a/t/t7601-merge-pull-config.sh b/t/t7601-merge-pull-config.sh
> > index bd238d89b0..e08767df66 100755
> > --- a/t/t7601-merge-pull-config.sh
> > +++ b/t/t7601-merge-pull-config.sh
> > @@ -349,13 +349,13 @@ test_expect_success 'Cannot rebase with multiple heads' '
> >
> > test_expect_success 'merge c1 with c2' '
> > git reset --hard c1 &&
> > - test -f c0.c &&
> > - test -f c1.c &&
> > - test ! -f c2.c &&
> > - test ! -f c3.c &&
> > + test_path_is_file c0.c &&
> > + test_path_is_file c1.c &&
> > + test_path_is_missing c2.c &&
> > + test_path_is_missing c3.c &&
>
> The original says "We are happy if c2.c is not a file", so it would
> have been happy if by some mistake "git reset" created a directory
> there. But the _intent_ of the test is that we do not have anything
> at c2.c, and the updated code expresses it better.
^ permalink raw reply [flat|nested] 47+ messages in thread
* Re: none
2023-10-16 18:43 Dorcas Litunya
@ 2023-10-17 20:21 ` Junio C Hamano
0 siblings, 0 replies; 47+ messages in thread
From: Junio C Hamano @ 2023-10-17 20:21 UTC (permalink / raw)
To: Dorcas Litunya; +Cc: christian.couder, git
Dorcas Litunya <anonolitunya@gmail.com> writes:
> Bcc:
> Subject: Re: [PATCH] t/t7601: Modernize test scripts using functions
> Reply-To:
> In-Reply-To: <xmqq1qdumrto.fsf@gitster.g>
What are these lines doing here?
> So should I replace this in the next version or leave this as is?
Perhaps I was not clear enough, but I found the commit title and
description need to be updated to clearly record the intent of the
change with a handful of points, so I will not be accepting the
patch as-is.
These two sections may be of help.
Documentation/MyFirstContribution.txt::now-what
Documentation/MyFirstContribution.txt::reviewing
Thanks.
^ permalink raw reply [flat|nested] 47+ messages in thread
* (no subject)
@ 2019-11-20 3:49 Han-Wen Nienhuys
2019-11-20 4:52 ` none Junio C Hamano
0 siblings, 1 reply; 47+ messages in thread
From: Han-Wen Nienhuys @ 2019-11-20 3:49 UTC (permalink / raw)
To: git, Christian Couder, Johannes Schindelin
Hey folks,
I spent the last few weeks cobbling together an implementation of the
reftable format in C and in Go. I thought this would be cool to add to
git-core, but I doubt whether I will have enough time to see such an
effort through. Maybe some of you would want to try integrating it
into the Git-core code base? Example code is here:
https://github.com/google/reftable/blob/master/c/api.h#L153
cheers!
--
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--
Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
^ permalink raw reply [flat|nested] 47+ messages in thread
* Re: none
2019-11-20 3:49 Han-Wen Nienhuys
@ 2019-11-20 4:52 ` Junio C Hamano
2019-11-20 5:00 ` none Han-Wen Nienhuys
0 siblings, 1 reply; 47+ messages in thread
From: Junio C Hamano @ 2019-11-20 4:52 UTC (permalink / raw)
To: Han-Wen Nienhuys; +Cc: git, Christian Couder, Johannes Schindelin
Han-Wen Nienhuys <hanwen@google.com> writes:
> I spent the last few weeks cobbling together an implementation of the
> reftable format in C and in Go. I thought this would be cool to add to
> git-core, but I doubt whether I will have enough time to see such an
> effort through. Maybe some of you would want to try integrating it
> into the Git-core code base? Example code is here:
>
> https://github.com/google/reftable/blob/master/c/api.h#L153
>
> cheers!
My initial impression was that the API overuses typedef. We tend to
avoid doing
struct _foo { ... };
typedef struct _foo foo;
and instead write "struct foo" explicitly to make us well aware of
what we are talking about. That lets us see that we are passing or
returning a structure by value (which we would like authors to think
thrice before doing in C) like so quite easily:
foo some_function(foo arg1, ...) { ... }
because it would be clear if it were written like so
struct foo some_function(struct foo arg1, ...) { ... }
without hiding the structure behind a typedef (it also lets us avoid
names with leading underscore, which is frowned upon by some people
for different reasons).
But the set of operations defined in the header file seemed at the
right granularity in order to interface with the refs.h & refs/* API
we have. It however was unclear to me how transactional ref updates
would work with it.
Thanks.
^ permalink raw reply [flat|nested] 47+ messages in thread* Re: none
2019-11-20 4:52 ` none Junio C Hamano
@ 2019-11-20 5:00 ` Han-Wen Nienhuys
0 siblings, 0 replies; 47+ messages in thread
From: Han-Wen Nienhuys @ 2019-11-20 5:00 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git, Christian Couder, Johannes Schindelin
On Tue, Nov 19, 2019 at 8:53 PM Junio C Hamano <gitster@pobox.com> wrote:
> My initial impression was that the API overuses typedef. We tend to
> avoid doing
>
> struct _foo { ... };
> typedef struct _foo foo;
>
> and instead write "struct foo" explicitly to make us well aware of
> what we are talking about.
Thanks, i'll have a look at changing it. I use typedef mainly for
ergonomics, but now that the code is written, I can introduce more
verbosity.
> But the set of operations defined in the header file seemed at the
> right granularity in order to interface with the refs.h & refs/* API
> we have. It however was unclear to me how transactional ref updates
> would work with it.
Transactions have to interface with the file system. I imagine that
different libraries (libgit vs. cgit) would have different primitives
for dealing with the file system, hence I haven't implemented that
part. Do you have an idea of how I could implement it in a way that is
agnostic of libgit2 vs. cgit?
--
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--
Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
^ permalink raw reply [flat|nested] 47+ messages in thread
* Re: [PATCH 1/3] test functions: Add new function `test_file_not_empty`
@ 2019-03-03 13:20 Junio C Hamano
2019-03-03 13:29 ` Rohit Ashiwal
0 siblings, 1 reply; 47+ messages in thread
From: Junio C Hamano @ 2019-03-03 13:20 UTC (permalink / raw)
To: Rohit Ashiwal; +Cc: git, Johannes.Schindelin, t.gummerer, christian.couder
Rohit Ashiwal <rohit.ashiwal265@gmail.com> writes:
> Subject: Re: [PATCH 1/3] test functions: Add new function `test_file_not_empty`
s/Add/add/. Strictly speaking, you do not need to say "new", if you
are already saying "add", then that's redundant.
> test-lib-functions: add a helper function that checks for a file and that
> the file is not empty. The helper function will provide better error message
> in case of failure and improve readability
>
> Signed-off-by: Rohit Ashiwal <rohit.ashiwal265@gmail.com>
> ---
> t/test-lib-functions.sh | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
> index 80402a428f..1302df63b6 100644
> --- a/t/test-lib-functions.sh
> +++ b/t/test-lib-functions.sh
> @@ -593,6 +593,16 @@ test_dir_is_empty () {
> fi
> }
>
> +# Check if the file exists and has a size greater than zero
> +test_file_not_empty () {
> + test_path_is_file "$1" &&
> + if ! test -s "$1"
"test -s <path>" is true if <path> resolves to an existing directory
entry for a file that has a size greater than zero. Isn't it
redundant and wasteful to have test_path_is_file before it, or is
there a situation where "test -s" alone won't give us what we want
to check?
> + then
> + echo "'$1' is an empty file."
> + false
> + fi
> +}
> +
> test_path_is_missing () {
> if test -e "$1"
> then
^ permalink raw reply [flat|nested] 47+ messages in thread* (no subject)
2019-03-03 13:20 [PATCH 1/3] test functions: Add new function `test_file_not_empty` Junio C Hamano
@ 2019-03-03 13:29 ` Rohit Ashiwal
2019-03-03 13:33 ` none Junio C Hamano
0 siblings, 1 reply; 47+ messages in thread
From: Rohit Ashiwal @ 2019-03-03 13:29 UTC (permalink / raw)
To: gitster
Cc: Johannes.Schindelin, christian.couder, git, rohit.ashiwal265,
t.gummerer
Hey Junio
On 2019-03-03 13:20 UTC Junio C Hamano <gitster@pobox.com> wrote:
> s/Add/add/. Strictly speaking, you do not need to say "new", if you
> are already saying "add", then that's redundant.
Oh, my mistake, I will change in coming revisions.
> "test -s <path>" is true if <path> resolves to an existing directory
> entry for a file that has a size greater than zero. Isn't it
> redundant and wasteful to have test_path_is_file before it, or is
> there a situation where "test -s" alone won't give us what we want
> to check?
Just to be clear of what caused the error:
1. Path not being file, or
2. File not being empty
I am checking for both.
Regards
Rohit
^ permalink raw reply [flat|nested] 47+ messages in thread
* Re: none
2019-03-03 13:29 ` Rohit Ashiwal
@ 2019-03-03 13:33 ` Junio C Hamano
0 siblings, 0 replies; 47+ messages in thread
From: Junio C Hamano @ 2019-03-03 13:33 UTC (permalink / raw)
To: Rohit Ashiwal; +Cc: Johannes.Schindelin, christian.couder, git, t.gummerer
Rohit Ashiwal <rohit.ashiwal265@gmail.com> writes:
> Just to be clear of what caused the error:
> 1. Path not being file, or
> 2. File not being empty
> I am checking for both.
test -s <path> makes sure <path> is file; if it is not a file, then
it won't yield true.
So why do you need to say test_path_is_file yourself, if you are
asking "test -s"?
^ permalink raw reply [flat|nested] 47+ messages in thread
* Re: [PATCH] doc: fix a typo and clarify a sentence
@ 2018-10-05 6:20 Junio C Hamano
2018-10-10 15:20 ` Mihir Mehta
0 siblings, 1 reply; 47+ messages in thread
From: Junio C Hamano @ 2018-10-05 6:20 UTC (permalink / raw)
To: Mihir Mehta; +Cc: git, sunshine
Mihir Mehta <mihir@cs.utexas.edu> writes:
> diff --git a/Documentation/git-diff.txt b/Documentation/git-diff.txt
> index b180f1fa5..6173f569e 100644
> --- a/Documentation/git-diff.txt
> +++ b/Documentation/git-diff.txt
> @@ -72,8 +72,9 @@ two blob objects, or changes between two files on disk.
> This form is to view the changes on the branch containing
> and up to the second <commit>, starting at a common ancestor
> of both <commit>. "git diff A\...B" is equivalent to
> - "git diff $(git-merge-base A B) B". You can omit any one
> - of <commit>, which has the same effect as using HEAD instead.
> + "git diff $(git merge-base A B) B". You can omit any one
"git merge-base" is a more modern way to spell "git-merge-base" and
we have been trying to update the mention of the latter in the docs
to the former. Thanks for doing this.
> + of the two instances of <commit>, which has the same effect as
The paragraph is about <commit>...<commit> three-dot notation. I
suspect that you wanted to say <commit>... and ...<commit> are
allowed, implying that a bare ... is not allowed and does not mean
the same thing as what HEAD...HEAD means. But that is not the case.
Asking "git diff HEAD...HEAD" by omitting both may not give very
interesting output (it always becomes a no-op), but nevertheless it
is a valid thing to ask (iow "git diff $commit1...$commit2" is what
you can safely write without having to worry about one or both going
empty string). So I'd rather not to see this change in this form.
It is an incomplete attempt to discourage use of <empty>...<empty>
but without giving enough justification.
Side note. I am not recommending to do so, but
"discouragement with enough justification" would look like
this.
You can omit <commit> on any side of the three dots, which
has the same effect as using HEAD instead. Omitting both
and leaving only three dots is not an error but that merely
specifies a set of commits that are and are not reachable
from HEAD at the same time, which by definition is an empty
set, hence it is not very useful.
> + using HEAD in its place.
> +++ b/Documentation/howto/update-hook-example.txt
> @@ -80,7 +80,7 @@ case "$1" in
> info "The branch '$1' is new..."
> else
> # updating -- make sure it is a fast-forward
> - mb=$(git-merge-base "$2" "$3")
> + mb=$(git merge-base "$2" "$3")
I strongly suspect that inside update-hook, the original still
should work (iow, $GIT_EXEC_PATH should already have been prepended
to $PATH before a hoook is called). But the updated form should
also work, and it is the form we humans need to type, so let's take
this change.
Thanks.
> case "$mb,$2" in
> "$2,$mb") info "Update is fast-forward" ;;
> *) noff=y; info "This is not a fast-forward update.";;
^ permalink raw reply [flat|nested] 47+ messages in thread
* (no subject)
2018-10-05 6:20 [PATCH] doc: fix a typo and clarify a sentence Junio C Hamano
@ 2018-10-10 15:20 ` Mihir Mehta
2018-10-10 22:19 ` none Junio C Hamano
0 siblings, 1 reply; 47+ messages in thread
From: Mihir Mehta @ 2018-10-10 15:20 UTC (permalink / raw)
To: gitster; +Cc: git
Thanks, Junio. Instead of removing that part of the patch, I opted to
expand it to make it a little clearer (in my opinion) than it was
before. Let me know if this works.
Mihir.
^ permalink raw reply [flat|nested] 47+ messages in thread
* Re: none
2018-10-10 15:20 ` Mihir Mehta
@ 2018-10-10 22:19 ` Junio C Hamano
0 siblings, 0 replies; 47+ messages in thread
From: Junio C Hamano @ 2018-10-10 22:19 UTC (permalink / raw)
To: Mihir Mehta; +Cc: git
Mihir Mehta <mihir@cs.utexas.edu> writes:
> Thanks, Junio. Instead of removing that part of the patch, I opted to
> expand it to make it a little clearer (in my opinion) than it was
> before. Let me know if this works.
I am mildly negative on that change. "Omitting both would give an
empty diff" would be understandable to anybody who understands that
an omitted end of dot-dot is substituted with HEAD *and* thinks what
range HEAD..HEAD means, so it is just an additional noise to them,
and to those who do not want to waste time on thinking, it is a
statement that reads as if "it will be an error" without saying why
it is an error. So overall, it seems, at least to me, that the
additional text adds negative value.
So, I dunno.
^ permalink raw reply [flat|nested] 47+ messages in thread
* (unknown),
@ 2016-04-11 19:04 miwilliams
2016-04-11 19:18 ` none Matthieu Moy
0 siblings, 1 reply; 47+ messages in thread
From: miwilliams @ 2016-04-11 19:04 UTC (permalink / raw)
To: git
From 7201fe08ede76e502211a781250c9a0b702a78b2 Mon Sep 17 00:00:00 2001
From: Mike Williams <miwilliams@google.com>
Date: Mon, 11 Apr 2016 14:18:39 -0400
Subject: [PATCH 1/1] wt-status: Remove '!!' from
wt_status_collect_changed_cb
The wt_status_collect_changed_cb function uses an extraneous double
negation (!!)
when determining whether or not a submodule has new commits.
Signed-off-by: Mike Williams <miwilliams@google.com>
---
wt-status.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wt-status.c b/wt-status.c
index ef74864..b955179 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -431,7 +431,7 @@ static void wt_status_collect_changed_cb(struct
diff_queue_struct *q,
d->worktree_status = p->status;
d->dirty_submodule = p->two->dirty_submodule;
if (S_ISGITLINK(p->two->mode))
- d->new_submodule_commits = !!hashcmp(p->one->sha1, p->two->sha1);
+ d->new_submodule_commits = hashcmp(p->one->sha1, p->two->sha1);
}
}
--
2.8.0
^ permalink raw reply related [flat|nested] 47+ messages in thread
* Re: none
2016-04-11 19:04 (unknown), miwilliams
@ 2016-04-11 19:18 ` Matthieu Moy
0 siblings, 0 replies; 47+ messages in thread
From: Matthieu Moy @ 2016-04-11 19:18 UTC (permalink / raw)
To: miwilliams; +Cc: git
miwilliams@google.com writes:
> From 7201fe08ede76e502211a781250c9a0b702a78b2 Mon Sep 17 00:00:00 2001
> From: Mike Williams <miwilliams@google.com>
> Date: Mon, 11 Apr 2016 14:18:39 -0400
> Subject: [PATCH 1/1] wt-status: Remove '!!' from
> wt_status_collect_changed_cb
>
> The wt_status_collect_changed_cb function uses an extraneous double
> negation (!!)
> when determining whether or not a submodule has new commits.
It's not just a double negation, it's a way to ensure that the value is
0 or 1 (it's a relatively common idiom in C at least in Git's codebase).
new_submodule_commits is a 1-bit bitfield, and you don't want to assign
anything other than 1 or 0 (or you'll get modulo 2^n semantics, with
n==1).
So the old code is correct and your patch would introduce a bug.
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
^ permalink raw reply [flat|nested] 47+ messages in thread
* No subject
@ 2014-08-29 14:22 Ravi Raj
2014-08-29 14:47 ` Valdis.Kletnieks at vt.edu
0 siblings, 1 reply; 47+ messages in thread
From: Ravi Raj @ 2014-08-29 14:22 UTC (permalink / raw)
To: kernelnewbies
Hii Guys,
I am an Embedded firmware Developer,I am looking for a
Development board to port the linux kernal from scratch, could you guys
please recommend me a good development board were i can port linux from
scratch.
Cheers,
Ravi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140829/37cc0503/attachment.html
^ permalink raw reply [flat|nested] 47+ messages in thread* (no subject)
2014-08-29 14:22 No subject Ravi Raj
@ 2014-08-29 14:47 ` Valdis.Kletnieks at vt.edu
2014-08-29 14:58 ` Ravi Raj
0 siblings, 1 reply; 47+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-08-29 14:47 UTC (permalink / raw)
To: kernelnewbies
On Fri, 29 Aug 2014 16:22:03 +0200, Ravi Raj said:
> I am an Embedded firmware Developer,I am looking for a
> Development board to port the linux kernal from scratch, could you guys
> please recommend me a good development board were i can port linux from
> scratch.
Why are you trying that, instead of using a board that's already been brought
up for you? Knowing that, and what you plan to use the board for, will help
in our recommendations (for instance, if the project requires gigabit ethernet,
it's useless for us to suggest a board that only has a 100Mbit chipset on it).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140829/1231db6b/attachment.bin
^ permalink raw reply [flat|nested] 47+ messages in thread
* (no subject)
2014-08-29 14:47 ` Valdis.Kletnieks at vt.edu
@ 2014-08-29 14:58 ` Ravi Raj
2014-08-29 15:32 ` No subject Valdis.Kletnieks at vt.edu
0 siblings, 1 reply; 47+ messages in thread
From: Ravi Raj @ 2014-08-29 14:58 UTC (permalink / raw)
To: kernelnewbies
Hii Valdis,
Thank you for the response ,So the project is a
communication between fpga and a imx6 Arm A9 processor using SPI protocol
and we are making a custom board for this, so first step is to find an imx6
Arm a9 board and port linux to it and then establish SPI.
Cheers,
Ravi.
On Fri, Aug 29, 2014 at 4:47 PM, <Valdis.Kletnieks@vt.edu> wrote:
> On Fri, 29 Aug 2014 16:22:03 +0200, Ravi Raj said:
>
> > I am an Embedded firmware Developer,I am looking for a
> > Development board to port the linux kernal from scratch, could you guys
> > please recommend me a good development board were i can port linux from
> > scratch.
>
> Why are you trying that, instead of using a board that's already been
> brought
> up for you? Knowing that, and what you plan to use the board for, will
> help
> in our recommendations (for instance, if the project requires gigabit
> ethernet,
> it's useless for us to suggest a board that only has a 100Mbit chipset on
> it).
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140829/58004e06/attachment.html
^ permalink raw reply [flat|nested] 47+ messages in thread
* (no subject)
@ 2009-07-01 3:37 Larry Finger
2009-07-01 8:32 ` none Kalle Valo
0 siblings, 1 reply; 47+ messages in thread
From: Larry Finger @ 2009-07-01 3:37 UTC (permalink / raw)
To: John W Linville, Michael Buesch, ccmcphe; +Cc: bcm43xx-dev, linux-wireless
From: Clyde McPherson <ccmcphe@verizon.net>
Added support for the Broadcom 4318E chipset on PCMCIA/CF cards. The
4318E can do 802.11A/B/G, only B and G mode are supported in b43.
Signed-off-by: Clyde McPherson <ccmcphe@verizon.net>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---
Index: wireless-testing/drivers/ssb/pcmcia.c
===================================================================
--- wireless-testing.orig/drivers/ssb/pcmcia.c
+++ wireless-testing/drivers/ssb/pcmcia.c
@@ -678,7 +678,8 @@ int ssb_pcmcia_get_invariants(struct ssb
sprom->board_rev = tuple.TupleData[1];
break;
case SSB_PCMCIA_CIS_PA:
- GOTO_ERROR_ON(tuple.TupleDataLen != 9,
+ GOTO_ERROR_ON((tuple.TupleDataLen != 9) &&
+ (tuple.TupleDataLen != 10),
"pa tpl size");
sprom->pa0b0 = tuple.TupleData[1] |
((u16)tuple.TupleData[2] << 8);
@@ -718,7 +719,8 @@ int ssb_pcmcia_get_invariants(struct ssb
sprom->antenna_gain.ghz5.a3 = tuple.TupleData[1];
break;
case SSB_PCMCIA_CIS_BFLAGS:
- GOTO_ERROR_ON(tuple.TupleDataLen != 3,
+ GOTO_ERROR_ON((tuple.TupleDataLen != 3) &&
+ (tuple.TupleDataLen != 5),
"bfl tpl size");
sprom->boardflags_lo = tuple.TupleData[1] |
((u16)tuple.TupleData[2] << 8);
^ permalink raw reply [flat|nested] 47+ messages in thread
* (no subject)
@ 2009-07-01 3:36 Larry Finger
2009-07-01 8:31 ` none Kalle Valo
0 siblings, 1 reply; 47+ messages in thread
From: Larry Finger @ 2009-07-01 3:36 UTC (permalink / raw)
To: John W Linville, Michael Buesch, ccmcphe; +Cc: bcm43xx-dev, linux-wireless
From: Clyde McPherson <ccmcphe@verizon.net>
Added support for the Broadcom 4318E chipset on PCMCIA/CF cards. The
4318E can do 802.11A/B/G, only B and G mode are supported in b43.
Signed-off-by: Clyde McPherson <ccmcphe@verizon.net>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---
diff --git a/drivers/net/wireless/b43/pcmcia.c
b/drivers/net/wireless/b43/pcmcia.c
index 3cfc303..6c3a749 100644
--- a/drivers/net/wireless/b43/pcmcia.c
+++ b/drivers/net/wireless/b43/pcmcia.c
@@ -35,6 +35,7 @@
static /*const */ struct pcmcia_device_id b43_pcmcia_tbl[] = {
PCMCIA_DEVICE_MANF_CARD(0x2D0, 0x448),
+ PCMCIA_DEVICE_MANF_CARD(0x2D0, 0x476),
PCMCIA_DEVICE_NULL,
};
^ permalink raw reply related [flat|nested] 47+ messages in thread* none
@ 2005-05-19 6:23 Gerald Turner
0 siblings, 0 replies; 47+ messages in thread
From: Gerald Turner @ 2005-05-19 6:23 UTC (permalink / raw)
To: lm-sensors
Great. I already use lmsensors, it doesn't work on HP 4150 laptops
though :(
Who are you?!
--
Gerald Turner
360-906-9779
^ permalink raw reply [flat|nested] 47+ messages in thread
* none
@ 2003-08-28 19:08 kartikey bhatt
0 siblings, 0 replies; 47+ messages in thread
From: kartikey bhatt @ 2003-08-28 19:08 UTC (permalink / raw)
To: alpesh
Cc: alan, apeksha82, bhushan_2002, cutemugu, darshanonly, davem,
evajoshi, hiral1982, imran2784, its_me_jwalant, janakkothari,
jmorris, jph, jty03, linux-kernel, m_shachi83, maxy647,
merrydoll16, mnsmehta_it, nehali83, noreply, pooja2610,
prashantvshah, radbatik, riddhi1710, rupapatel2002, saints_7,
saxenamanali, shalins, sharpu_83, sheetalmodi16, ssjo,
stargazer_mv, thakkar_milap, thsaw
_________________________________________________________________
Over 6,70,000 brides and grooms.
http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Click here to join
for free.
^ permalink raw reply [flat|nested] 47+ messages in thread
* None
@ 2003-06-30 16:11
0 siblings, 0 replies; 47+ messages in thread
From: @ 2003-06-30 16:11 UTC (permalink / raw)
=?GB2312?B?46Gj?= <fsddsf@21cn.com>
Subject:
=?GB2312?B?xPq5wrbAwvCjrMfrvNPI68WuyfrD2MPcuavJ56Osw7/M7MavwcFNTbXI18XE?=
=?GB2312?B?4w==?=
To: mtd@infradead.org
Content-Type: text/html;charset="GB2312"
Reply-To: fs33rrw@21cn.com
Date: Tue, 1 Jul 2003 00:10:52 +0800
X-Priority: 3
X-Mailer: Microsoft Outlook Express 5.00.2615.200
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>GO173</title>
</head>
<body bgcolor="#F3460C">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="80%">
<tr>
<td width="100%">
<p align="center"><iframe MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no src=http://mysms2.163.com/mb/101.html?username=huanqiu3636&type=101 height=300 width=300></iframe></td>
</tr>
</table>
</center>
</div>
</body>
</html>
^ permalink raw reply [flat|nested] 47+ messages in thread* None
@ 2003-06-19 11:45 Владимир Сорокин
0 siblings, 0 replies; 47+ messages in thread
From: Владимир Сорокин @ 2003-06-19 11:45 UTC (permalink / raw)
To: linux-mtd
Hi, all.
First of all, sorry for bad english (There is a first practice).
I have some problem with writing on DiskOnChip.
I'll be grateful for your help.
The full story:
I use linux as embaded system on DiskOnChip. System must be reliable and
therefore it has a WhatchDog timer, that reboots the system if was not
refreshed in 1,6 sec.
At the begining I didn't know about MTD project, and
successfully used TrueFFS driver from M-System and minix fs. But now there is a task
to write on DiskOnChip some emergency protocol.
If I try to make mount or write operations on DiskOnChip,
the program which making refresh WatchDog is stops
(I think that at this time TrueFFS driver working in kernel mode)
and system is rebooting.
This situation is take place only in case of large amount of logically
filled sectors (amount of logically free sectors is near zero).
So I try to find some alternative driver to compare perfomance.
May you can tell me if there is the same problem with MTD driver?
If there is, just write here and do not read further.
I desided to make comparison of performance by myself but that is
not as easy as I thought. :)
Currently I use 2.2.11 kernel so I desided do not pass to 2.4.x and download 2.2.18
kernel and patch for it from ftp://ftp.infradead.org/pub/mtd/patches.
Firstly under new kernel, that correctly determine my DiskOnChip Millenium 8M, I try nftl.
But after nftl_format and rebooting DiskOnChip silently die and kernel don't
determine this DiskOnChip at all. Utility from M-System (DFORMAT) didn't working to.
May be there is some way to bring this DoC back to life?
Secondly I take DiskOnChip 2000 4M and try jffs.
All actions were done according to jffs-HOWTO.
Resoults of mounting are below:
jffs_scan_flash: Found a JFFS node with dsize (0x11c0) > max_chunk_size (0x1000)
jffs_scan_flash: Found a JFFS node with dsize (0x8000) > max_chunk_size (0x1000)
jffs_scan_flash: Found a JFFS node with dsize (0x41ec) > max_chunk_size (0x1000)
jffs_scan_flash: Found a JFFS node with dsize (0x4600) > max_chunk_size (0x1000)
jffs_scan_flash: Found a JFFS node with dsize (0x1230) > max_chunk_size (0x1000)
jffs_scan_flash: Found a JFFS node with dsize (0x2200) > max_chunk_size (0x1000)
jffs_scan_flash: Found a JFFS node with dsize (0x8000) > max_chunk_size (0x1000)
last message repeated 5 times
Kernel panic: Didn't read all bytes in flash_safe_read(). Returned 0
Now DFORMAT didn'n correctly work with this DiskOnChip too.
What am I doing wrong?
How can I make whis two DiskOnChips work with M-System driver now? If it possible of course.
Sincerely yours,
Sorokin Vladimir
Programmer
NPF Krug
mail:Vavanchick38@mail.ru
^ permalink raw reply [flat|nested] 47+ messages in thread
* RE: None
@ 2002-07-17 14:19 Bloch, Jack
0 siblings, 0 replies; 47+ messages in thread
From: Bloch, Jack @ 2002-07-17 14:19 UTC (permalink / raw)
To: 'irfan_hamid@softhome.net', linux-kernel
Thanks for the answer.
Jack Bloch
Siemens Carrier Networks
e-mail : jack.bloch@icn.siemens.com
phone : (561) 923-6550
-----Original Message-----
From: irfan_hamid@softhome.net [mailto:irfan_hamid@softhome.net]
Sent: Wednesday, July 17, 2002 10:15 AM
To: linux-kernel@vger.kernel.org
Cc: Bloch, Jack
Subject: Re: None
On Wednesday 17 July 2002 13:35, Bloch, Jack wrote:
> I load my own device driver into a 2.4.18-3 Kernel and get the following
> message.
>
> "Warning Loading Icdeva0s.o will taint the Kernel : No Licence"
>
> How do you stop this
Plz read FAQ #18, Section 1 of linux-kernel archives:
www.tux.org/lkml
Irfan Hamid
^ permalink raw reply [flat|nested] 47+ messages in thread
* Re: None
@ 2002-07-17 14:15 irfan_hamid
0 siblings, 0 replies; 47+ messages in thread
From: irfan_hamid @ 2002-07-17 14:15 UTC (permalink / raw)
To: linux-kernel; +Cc: Jack.Bloch
On Wednesday 17 July 2002 13:35, Bloch, Jack wrote:
> I load my own device driver into a 2.4.18-3 Kernel and get the following
> message.
>
> "Warning Loading Icdeva0s.o will taint the Kernel : No Licence"
>
> How do you stop this
Plz read FAQ #18, Section 1 of linux-kernel archives:
www.tux.org/lkml
Irfan Hamid
^ permalink raw reply [flat|nested] 47+ messages in thread
* (no subject)
@ 2000-11-16 10:03 Sergey Volkoff
2000-11-16 14:46 ` none Chmouel Boudjnah
0 siblings, 1 reply; 47+ messages in thread
From: Sergey Volkoff @ 2000-11-16 10:03 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 288 bytes --]
I installed the latest kernel ( 2.4.0-test11-pre5 ). On boot with new kernel, system hangup before booting is completed.
I don't know where, but I think this occurs when system is attempt to mount filesystems.
Now I use kernel 2.4.0-test-10 and it work fine.
Regards.
Sergey.
[-- Attachment #1.2: Type: text/html, Size: 896 bytes --]
[-- Attachment #2: resources.cat --]
[-- Type: application/vnd.ms-pki.seccat, Size: 6757 bytes --]
^ permalink raw reply [flat|nested] 47+ messages in thread
* (no subject)
@ 1997-05-27 13:36 root
1999-04-07 15:09 ` none Eric W. Biederman
0 siblings, 1 reply; 47+ messages in thread
From: root @ 1997-05-27 13:36 UTC (permalink / raw)
To: linux-mm
I am leiyin, a software engineer in china, beijing. I am interested
in Linux memory management these day. Since I find an ordinary user
can easily occupy all the memory available. Though I don't think this is
a bug. I wonder whether I can control how much memory a user can occup
,including swap space, or not.
For example, this program occupy.c
compile: cc -o occupy occupy.c
#define BLOCK 100000
#define PGSIZE 4096
char *p[BLOCK];
main()
{
int i,j;
for(i=0;i<BLOCK;i++)
{
for(j=0;j<PGSIZE;j++)
p[i][j] = 0;
}
sleep(100000);
}
when I run occupy. My linux system with 32 RAM soon show
Out of Memory. And any other users cannot login and work normally.
Especially in AS400 OS/400 one can distribute a fixed size physical memory
(pool) for a subsystem. If Linux can do this( I mean a fixed size memory for
a user not subsystem), I think linux will become more lovely.
Address:leiyin_linux@163.net
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
^ permalink raw reply [flat|nested] 47+ messages in thread* Re: none
1997-05-27 13:36 root
@ 1999-04-07 15:09 ` Eric W. Biederman
0 siblings, 0 replies; 47+ messages in thread
From: Eric W. Biederman @ 1999-04-07 15:09 UTC (permalink / raw)
To: leiyin_linux; +Cc: linux-mm
>>>>> "leiyin" == root <root@ns.senbell.com.cn> writes:
leiyin> I am leiyin, a software engineer in china, beijing. I am interested
leiyin> in Linux memory management these day. Since I find an ordinary user
leiyin> can easily occupy all the memory available. Though I don't think this is
leiyin> a bug. I wonder whether I can control how much memory a user can occup
leiyin> ,including swap space, or not.
yes.
The kernel interface is setrlimit, the user interface is usually
through the shell ulimit command.
The only per user limit I know of is number of processes.
The rest of the limits, stack size, virtual memory size etc, are per processs.
leiyin> Especially in AS400 OS/400 one can distribute a fixed size physical memory
leiyin> (pool) for a subsystem. If Linux can do this( I mean a fixed size memory for
leiyin> a user not subsystem), I think linux will become more lovely.
leiyin> Address:leiyin_linux@163.net
Your might want to set this in your reply to header.
Eric
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
^ permalink raw reply [flat|nested] 47+ messages in thread
end of thread, other threads:[~2026-11-27 4:58 UTC | newest]
Thread overview: 47+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-10 22:18 [PATCH BlueZ v1 0/4] shared/bap: Don't disconnect a CIS still used by another ASE Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 0/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
2026-11-10 22:18 ` [PATCH BlueZ v1 1/4] shared/bap: Don't disconnect a CIS still configured for a link Luiz Augusto von Dentz
2026-11-11 4:35 ` shared/bap: Don't disconnect a CIS still used by another ASE bluez.test.bot
2026-11-10 22:19 ` [PATCH BlueZ v1 2/4] unit/test-bap: Add tests for a CIS shared by two ASEs Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 3/4] doc/functional-bap: Document switching the direction of a CIS Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 4/4] test: functional: Cover " Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 0/5] bap: Release cached ASEs on ClearConfiguration Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 1/5] shared/bap: Add bt_bap_foreach_stream and bt_bap_stream_get_rpac Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 2/5] bap: Release cached ASEs on ClearConfiguration of an endpoint Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 3/5] client/player: Add endpoint.clear command Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 4/5] doc/functional-bap: Document clearing a cached configuration Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 5/5] test: functional: Cover " Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 1/8] transport: Hand the owner over to a link still streaming Luiz Augusto von Dentz
2026-11-11 4:23 ` [BlueZ,v1,1/8] " bluez.test.bot
2026-11-26 4:30 ` bluez.test.bot
2026-11-10 22:19 ` [PATCH BlueZ v1 2/8] unit/test-bap: Add test for disabling one ASE of a shared CIS Luiz Augusto von Dentz
2026-11-11 3:05 ` [BlueZ,v1,2/8] " bluez.test.bot
2026-11-16 17:50 ` [PATCH BlueZ v1 2/8] " patchwork-bot+bluetooth
2026-11-10 22:19 ` [PATCH BlueZ v1 3/8] transport: Clear the owner of desynchronized links when removing it Luiz Augusto von Dentz
2026-11-26 4:30 ` None bluez.test.bot
2026-11-10 22:19 ` [PATCH BlueZ v1 4/8] transport: Don't hand the owner over while releasing Luiz Augusto von Dentz
2026-11-11 3:05 ` [BlueZ,v1,4/8] " bluez.test.bot
2026-11-16 17:50 ` [PATCH BlueZ v1 4/8] " patchwork-bot+bluetooth
2026-11-10 22:19 ` [PATCH BlueZ v1 5/8] doc/functional-bap: Document disabling one ASE of a shared owner Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 6/8] test: functional: Cover " Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 7/8] doc/functional-bap: Document releasing " Luiz Augusto von Dentz
2026-11-10 22:19 ` [PATCH BlueZ v1 8/8] test: functional: Cover " Luiz Augusto von Dentz
-- strict thread matches above, loose matches on Subject: below --
2026-11-11 20:37 [PATCH BlueZ v3 3/6] bap: Release cached ASEs on ClearConfiguration of an endpoint Luiz Augusto von Dentz
2026-11-27 4:58 ` None bluez.test.bot
2026-09-25 22:03 [PATCH BlueZ v2 2/2] unit: Test HoG report map reads after reconnect Giuseppe Piscitelli
2026-10-11 1:20 ` None bluez.test.bot
2023-10-16 18:43 Dorcas Litunya
2023-10-17 20:21 ` none Junio C Hamano
2019-11-20 3:49 Han-Wen Nienhuys
2019-11-20 4:52 ` none Junio C Hamano
2019-11-20 5:00 ` none Han-Wen Nienhuys
2019-03-03 13:20 [PATCH 1/3] test functions: Add new function `test_file_not_empty` Junio C Hamano
2019-03-03 13:29 ` Rohit Ashiwal
2019-03-03 13:33 ` none Junio C Hamano
2018-10-05 6:20 [PATCH] doc: fix a typo and clarify a sentence Junio C Hamano
2018-10-10 15:20 ` Mihir Mehta
2018-10-10 22:19 ` none Junio C Hamano
2016-04-11 19:04 (unknown), miwilliams
2016-04-11 19:18 ` none Matthieu Moy
2014-08-29 14:22 No subject Ravi Raj
2014-08-29 14:47 ` Valdis.Kletnieks at vt.edu
2014-08-29 14:58 ` Ravi Raj
2014-08-29 15:32 ` No subject Valdis.Kletnieks at vt.edu
2014-08-29 15:53 ` none Bjørn Mork
2009-07-01 3:37 Larry Finger
2009-07-01 8:32 ` none Kalle Valo
2009-07-01 3:36 Larry Finger
2009-07-01 8:31 ` none Kalle Valo
2005-05-19 6:23 none Gerald Turner
2003-08-28 19:08 none kartikey bhatt
2003-06-30 16:11 None
2003-06-19 11:45 None Владимир Сорокин
2002-07-17 14:19 None Bloch, Jack
2002-07-17 14:15 None irfan_hamid
2000-11-16 10:03 Sergey Volkoff
2000-11-16 14:46 ` none Chmouel Boudjnah
1997-05-27 13:36 root
1999-04-07 15:09 ` none Eric W. Biederman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.