Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3012434rwl; Thu, 13 Apr 2023 14:27:48 -0700 (PDT) X-Google-Smtp-Source: AKy350a6mIidLtJ/NmQRN4VHpufjkXO8CglSdKz11yCbsFfAmr/ovsYieN8hFRaq3VOGpDt29vAm X-Received: by 2002:a17:90a:4586:b0:23f:9925:6f8b with SMTP id v6-20020a17090a458600b0023f99256f8bmr3180178pjg.17.1681421267769; Thu, 13 Apr 2023 14:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681421267; cv=none; d=google.com; s=arc-20160816; b=sz2PqmygX6EuzcYSPDOunWGeTVhgqW5buLcUKEVq01i4w5gzfdnyX3lWYJT3sZp4FZ chlth+CHMchmt5euwJxIx7kpqTMRJWq2bLDhKUPx5loOf5NrB0xY3KCC/b556bHe01e8 uyLlC5t1dSkWsae67PtwAQ0LflpQIE7boKfrr42YBqJTrJNNVm2rjdtN5zRuyNzNlKsz zkSr4nYSsvHGTOxO0gv7oQ8ULIz8/BgMBIFU6hCXI3exZiHpfi+kTPM889Z/ti/3IEy+ ShhOKSP6bZtuTphjDEwBZsNDArnsLCwX1lS61ZUZ2j5WTz2eveuLWhgP29XtvXDlaQcJ 4vcw== 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=HXQ8jUfJwbIg3NDG9vBVw3k54x+BbeOjYASzArDu9D0=; b=cXClX5BIfVOHnSza6GDE1Q9dxxgPtN/8URQFbz96HKHTBw+Ae6ZdK9b+3d2L+GyXuU YKz0gtiz2bzdYud4m9pMIZpQGXD3UQ9OI/Ub8OvJIq5CG/E+C6SOrPaauyJc4bGF94OD bolmr7Ok6o7IxVOdFy/1TxRR77s30J1K0zWbeIx6f60yHr61ov5yxMz/XtWLdBVV9h0b 5smB2kr1aXFxq87gp32raVxsu305hax5948Aoaru2if2aN1eSLvNMaeeeqhq3FAtoaZY EcYtrk4ap308fGJUFr/+lPFiIy4NcCxILgdjmbJQhBPXeZgtkQK/p1hPaUUNdcTwY+98 3rKA== 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 cl3-20020a17090af68300b00246bd5445d7si2792344pjb.104.2023.04.13.14.27.06; Thu, 13 Apr 2023 14:27:47 -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 S229713AbjDMVOc convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Apr 2023 17:14:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbjDMVOb (ORCPT ); Thu, 13 Apr 2023 17:14:31 -0400 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5F3E172C for ; Thu, 13 Apr 2023 14:14:30 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2CBB82403BB for ; Thu, 13 Apr 2023 23:14:29 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PyC4m0CSxz6tm4; Thu, 13 Apr 2023 23:14:15 +0200 (CEST) Message-ID: <71f5c4c6615ebce24526ac256f84abb6a2d95534.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: Thu, 13 Apr 2023 21:14:15 +0000 In-Reply-To: References: <20230307222422.2608483-1-luiz.dentz@gmail.com> <167849522070.21816.4954897604805294201.git-patchwork-notify@kernel.org> 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 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 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. 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? -- Pauli Virtanen