From patchwork Fri Nov 1 08:31:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 13858937 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2044.outbound.protection.outlook.com [40.107.105.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 021C3156C5F for ; Fri, 1 Nov 2024 08:31:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.44 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730449908; cv=fail; b=dfbZWO5Hk7XQGbItu2uZQiWbYCVoyefiXXYgOs0fhVyx5ZJX+smQORDOZmoWM6kTecPyJ8bar1swsyvNdj4g7kBO04fauh38pBHK5eyE/APAzIEA0aoVPENbbz5UfLpIx4uUeLVbqBZBiS/tQ2BRSgiPVI3+EiK77aqE0Ib6lFk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730449908; c=relaxed/simple; bh=FL0cUW0EAtpzEtRQi0hgAxNWQWbInjeG2FmpVLrKWM4=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=Znf0BRwOQQGA1L2H274HBuCJAG2QvhSybocaZutIfEozk4+OPraKC+RQqQAI8wOjLJobNyakIQ5BQ2WXu1ESlUbOVp2SfHumZ1qBC25qjSuA4T8Aq9OTrImmaJpact0cjj67wJxw8ZMRBp2t5v5n5SlurNZneRwC7Igyflr+h2s= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=hkPEiTnG; arc=fail smtp.client-ip=40.107.105.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="hkPEiTnG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yjIo4eZVulqm/oCpAex0i5bjuqbQHOROIls+8fFAeOEjh6BMCPaazQ/EgrC6QRPd+QRsr0oq/iSeTQ+x7dJBZKGc9XyidJLU9LqZs9fuEmEYRWcjscv05rCFMqSLjqzxlb/0QoM9SWyd4fbftR8k+TS704/54TXTPPYkI5AeMJz1NFd9IhdEGlsVuKm2N0MgUdeYO56EM4as9EMduEy1cK2tYr3iCVQ1BCWDd20Ux5JfWuv7K2+ff8oS0Z0Sx8xUjfPCPVlKXPbXVbp83tJYaaZPA7exXv0RxVc9vV+PRiYxcfiGcTfjKU4BFTSYfBezOppAEH7ef2v/jjQ1d3Ig1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JyqY4Dg44qmIlUhmCwjwmVxWzMOdnSp/nnZYCC1g/X4=; b=XDhE2OzRftH9YecbBV/xE0dHl0JqpKFycvmEEAEiNzW4R05stzR1dkvWFviwrteRZcs8j2LPVW0VES0zczOK9B72AcXBMGeX0xI2/hnVfPHcEKSbS971g7xOZ7ntS8WZS5cL1GfjX8zB6cfx5j5OtSyDpcsnUi8gpDo8a3v4csSkuvdHAbE5YHnqA/bEI+Nz3bEah9NhLIu39Yt7tM1AKCJbaMq2pnKokRz5QzRi/5u5E2tAfSgE3KVaBwUAzA1dbCKMAFoQ+M94QwpUZvT8GLvsXi+bQPsrn7Y7Pqp81SnFPObzm2kh4vbOdtEFYbbUzi68I3goOLFlXRE7OxQcgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JyqY4Dg44qmIlUhmCwjwmVxWzMOdnSp/nnZYCC1g/X4=; b=hkPEiTnGXdWWy2nS2Uw2qFT5RiONYcvdcslqGlMaODAhzv9rXFDsW80j8AhdMvdmZaFxFmIlK0L7vetyR/1clWAbmK3veRliBerIbsm1vZFzaFaAPwE3MqWlPwb3N3MyZC+upTfkfeyajIcVtGUi3c5HlWY4yI97XeUeB01IfOV/lpEFdGQyUcIMI2DcGNDcgoHOxWUCnla4tM1VCAx8+VnP/uOH1UjuH7p+BelXK4jIrh5ycZezUaGoovC1Nrbv/Be+iFCp9S2w7zrx+Svv0/Sskn54S/8r6sjaNf811LRXJaZeazs5Z6hJ5msrje0LcaNcMBEuggn1zLpoc4xN0Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) by PA2PR04MB10215.eurprd04.prod.outlook.com (2603:10a6:102:409::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Fri, 1 Nov 2024 08:31:43 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::5e22:869c:33c:9654]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::5e22:869c:33c:9654%4]) with mapi id 15.20.8093.027; Fri, 1 Nov 2024 08:31:43 +0000 From: Iulia Tanasescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Iulia Tanasescu Subject: [PATCH BlueZ 0/5] iso-tester: Add tests for Broadcast Receiver sync to 2 BIGs Date: Fri, 1 Nov 2024 10:31:14 +0200 Message-ID: <20241101083119.4510-1-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: AM4PR07CA0033.eurprd07.prod.outlook.com (2603:10a6:205:1::46) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|PA2PR04MB10215:EE_ X-MS-Office365-Filtering-Correlation-Id: cd34be5f-e747-4863-06eb-08dcfa4f9d75 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: dtpcb3kbHf4TB3hXzU+8k44x2ygIzFWBCMfrsnEaKlhI3boLzYnCqqX0Ita4pU5RPQLjD1QnyjmqkDD8gMzFa4TPwqNeSKdq2cEKveLFwb/E514tfC6VZcF2+oL0ue7arz5fJ9z47sAlIX8qkiO+vNbe7tekUy2VSEz/od963OLIlXYZ2rPB50tM1qk+Eht+21OIRyy8Ib/QjiGCN0Pcv6VPA4yl2IHtg2pBH7KgdRa79TUjJAGVpL+So+pn36Tb9oo7Hm+MqFEM/6yHlosykmzGza3CKD0C1wzlxatP5ZDxI8sq/zGpLMHHFz0pRmKB+Y6xPFS/PmHWHFhn7RQqeo2ztHVcM/6EXgbDyoQ/hgYLra+oA2ovpml06pp1bxCS5Mu7ab+WkRCT4dO0qlRC2A8J4QcIbt0ZOxjMzaoRenRJ1T3F+8aYrwQLJh6BFMwiMLj+BhNfj+AWm3Ydc1zFlyrQg5fX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qgdkGGMXl5xzGy9f3p9Ah1upnoWWatSGoWg4z95+s45hqcrezDlkHzNGd5nVoTsPJf9n7VTx/IShvzMj0pYWtMLlns/lPIp5UmGmOwJeucXuhNhYAnLdhw+UpxcQeyQSJHlwAY42GgnflZEUZgQ7VrAGukYjnm/73xvjZXUt22Df3zGu280MCXoWthz7an3G7AwlFAvw5fCyTkFH/2wr6edxXvZyo4e20a7SkM83tKa/dFiVTv9uLHAzKr0XWxb54b3lyFdUYcnmkp7nLlZdueKYx3xEN9yh0ocfiNGvoFNvVCGpd96Ca0hXe9fT2F5rs+lHcGCNLFvsXm4g+UJ2r1u6Dh4rZYzqARt3b5nZ0SoBClCRHxP9y4HuJH9fBgpMHXcDu3RZgCLe0C3PAU6Rv7rZ6cD3YK1IhRUsg6MwpMfLS7plgM0zFTzL1YH+YwSweGBc0LLhZrl33iINJtoq0Nok9og0zQR08kCeO8yw3KIaE+GDwgOC2/89En0jxeVKMEsZervYDgt/cdWxuxdBCLBYim7iEdN7IXUmtkOTjYmW/vIa+gB6hOcTUDIKRNcxG11L7W7gC6M8kPgXt6gTuQYkBYjs0qXTP8vIRx547XVRz2k3xkYBsNsuOPL+faq7pf06A== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd34be5f-e747-4863-06eb-08dcfa4f9d75 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2024 08:31:43.1880 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: noTlrPPocBWf5UQyMt+oK9AlV3IQvNUy3RMATtOWdNLs6GprlV0ObRZPAsWWGGQMxeeslsVHL18+rOTOUq+Odw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10215 This adds new Broadcast Receiver tests, for a Broadcast Sink synchronizing to 2 Broadcasters, with and without defer setup. ISO Broadcaster Receiver2 - Success ISO Broadcaster Receiver2 Defer - Success This also adds emulator support for creating PA sync with multiple trains and for sync with multiple BIGs. This patch depends on the kernel support introduced by https://patchwork.kernel.org/project/bluetooth/cover/20241101082339.4278-1-iulia.tanasescu@nxp.com/ Iulia Tanasescu (5): btdev: Add support for syncing to multiple PA trains btdev: Add support for syncing to multiple BIGs iso-tester: Fix memory leaks in iso_accept_cb iso-tester: Add test for Broadcast Receiver sync to 2 BIGs iso-tester: Add test for Broadcast Receiver Defer sync to 2 BIGs emulator/btdev.c | 233 ++++++++++++++++++++++++++++++++++----------- tools/iso-tester.c | 177 ++++++++++++++++++++++++++-------- 2 files changed, 318 insertions(+), 92 deletions(-) base-commit: 9e0bc3e63c924037fb483f3b1f08e5348399f8a2