Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1920148rwe; Sat, 15 Apr 2023 08:13:52 -0700 (PDT) X-Google-Smtp-Source: AKy350a0zGR37a0GJSyN3gExpMNB0bYlBtfWC4l/YIYuGnVV8QJYP2ocNmhjJAB6f0aoMBmbQ3Yf X-Received: by 2002:a17:90b:18f:b0:23f:962e:826b with SMTP id t15-20020a17090b018f00b0023f962e826bmr9329194pjs.15.1681571632275; Sat, 15 Apr 2023 08:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681571632; cv=none; d=google.com; s=arc-20160816; b=kfWJABHNT6vXkc7EQODGQGVwoMi0TCTJzB89YFHO/NbBymmqI/eu4qPTJeSoFVAEB1 mTzqCQSUAtBl36oaU2uOwi55yk0bYWacBNKVDn4ZcdtIue9ZAEPEaMCjJNJFvAJKryrc oSvX2zRl3iR1SLtGu2+l8UMHBjylKps2cC2vcTLhm0l/FN7OPVgATczJkJLj6oaolniq 8qUmf2SB2x62cWcfw5BICzJF2RimvF6J4W3EY+bmI1MOiqWoGeny6TIZCIv5ysIeZCkL OaaHbuVt2F0QPbH26DNsqAvkjxI8Ahk5FaoDiVPl/DU3QgIXrZl5iDmf98D+ixowb8gh GFjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=glUpkmey7KHZ18bQzTbURvjhk5MesfZa1ptYrfCK2Po=; b=CN+veUJGCsjMFMUTjCHUjLedQPUoYaMgCAfCdo4womoK/WWoMNgGLw0ryTZOOu7poK 6ol9wCCOn5hmpLAbgXg2QC9MvGNpO9KEzO/34d4RJjlnrWvbmPYs1qnBq5qOfC3Z3dwe 5vszLtFSMHFucB/BSMf27UWrbU6FSswBMOS33azEA/bCmYO/uSrskTkY/3IWPdcHh4VJ OoG+DKEQisdjykQLiHQiFR3xz6mLYQiq2K7aN9jaFbAiAkpwXFPiyDnA1m7qIXzcmdbU LUlxOxo412QQoj8ty3v4T7z7YOYg3P97jYFq01ofaAUlgknLOaQgOSiUqkl7G+RJpkZ4 z6Tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7-20020a17090a450700b0024765a9e7f8si1205019pjg.135.2023.04.15.08.13.30; Sat, 15 Apr 2023 08:13:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229782AbjDOO51 convert rfc822-to-8bit (ORCPT + 99 others); Sat, 15 Apr 2023 10:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbjDOO50 (ORCPT ); Sat, 15 Apr 2023 10:57:26 -0400 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4EEB35AE for ; Sat, 15 Apr 2023 07:57:24 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 13F00240237 for ; Sat, 15 Apr 2023 16:57:23 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PzGcy49ZFz9rxD; Sat, 15 Apr 2023 16:57:22 +0200 (CEST) Message-ID: <311d30efa5f7d27d65b07f4dc5958e2a8ca5b7a2.camel@iki.fi> Subject: Re: [RFC v2 01/12] shared/crypto: Add bt_crypto_sirk From: Pauli Virtanen To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org, =?ISO-8859-1?Q?Fr=E9d=E9ric?= Danis Date: Sat, 15 Apr 2023 14:57:22 +0000 In-Reply-To: References: <20230307222422.2608483-1-luiz.dentz@gmail.com> <167849522070.21816.4954897604805294201.git-patchwork-notify@kernel.org> <71f5c4c6615ebce24526ac256f84abb6a2d95534.camel@iki.fi> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NEUTRAL,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org pe, 2023-04-14 kello 14:56 -0700, Luiz Augusto von Dentz kirjoitti: > Hi Pauli, > > On Thu, Apr 13, 2023 at 2:14 PM Pauli Virtanen wrote: > > > > Hi Luiz, > > > > to, 2023-04-13 kello 11:48 -0700, Luiz Augusto von Dentz kirjoitti: > > [clip] > > > Btw, not sure you if are following the list but I'm working on adding > > > support for handling multiple CIS to the same peer: > > > > > > https://patchwork.kernel.org/project/bluetooth/list/?series=739574 > > > > > > That should allow you to set a different CIS ID if you want to use > > > different sockets for input and output. > > > > Great, I saw the patchset but didn't yet have time to take a proper look. > > > > > Id also would like to discuss how we do some test automation using > > > pipewire endpoints in the future, we probably want to enable it via > > > test-runner but we probably need to enable it loading pipewire daemons > > > etc under the vm that test-runner creates, Frederic started adding > > > some support but it doesn't look like it loads pipewire so Im not > > > really sure how it supposed to be loaded: > > > > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/tools/test-runner.c#n1108 > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/tools/test-runner.c#n277 > > > > Yes, there'd be two daemons to start in the VM, pipewire and wireplumber, > > and running with default config should then result to the endpoints being > > created. > > > > The interaction is probably simplest via the command-line tools. > > In principle something more clever and better controlled is possible, > > but I'd need to think a bit more what's best here. > > > > Output from `pw-dump -m` can be polled and parsed for determining > > when daemons are ready, what bluetooth sinks/devices appeared after > > connect, etc. `pw-cat` can be used for playback and recording. > > Yep, in terms of tests the ideal solution would be simulate BAP > qualification tests: > > https://www.bluetooth.org/docman/handlers/DownloadDoc.ashx?doc_id=524716 > > Ive started to write them as unit tests: > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/unit/test-bap.c > > It is somewhat laborious to write all the PDUs manually like that but > if we managed to write all the tests we could perhaps enable it > working with the full stack rather than limiting it bt_bap instance, > but perhaps it is overkill since we could instead automate > qualification tests via auto-pts. > > > > Some tests probably can be written along these lines, but without > > trying now I don't know yet how well the above would work. > > > > A separate question is how the virtual BT device that is going to > > interact with the endpoints is going to be implemented. Hand-coded > > data sent via emulator bthost? > > We can do both a hand-coded tests with bthost or hook a second > instance of btdev to BlueZ so we test BlueZ vs BlueZ, well in theory > we could even bring another stack as well like zephyr into the > picture, anyway what we need to know is how to setup the environment > for pipewire and wireplumber, note that we don't have the so called > user session under test-runner environment, so I wonder if we need > wireplumber? I sent an example patch to the list that adds an option to launch PW with tools/test-runner so that you get the endpoints registered. You have to disable a few things for it to run in plain environment (ALSA device reservations and flatpak portal want DBus user session, logind integration wants logind). The "session manager" is some JACK terminology, not really related to user sessions, in PW it is what coordinates audio device discovery, and connects clients to devices, so you have to run one. -- Pauli Virtanen