From patchwork Wed Apr 24 14:07:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13641934 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2047.outbound.protection.outlook.com [40.107.105.47]) (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 D22C415B996 for ; Wed, 24 Apr 2024 14:08:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.47 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713967686; cv=fail; b=TN73089+W5SoslGwZYWkZyDuKerrK0RJpjc389D9ne7YsWrOeA5uJZ7K1NPdSPRWY0L9UY7RZouGv2p5aNs0sZEog9RaYiFUd3sNs1Ve9ftoHy3atsZRRNHo2O3mGTraa99oa4ujTfCCRJ/sggFeIS1srqGFibnlPgZcQ2bU4Dw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713967686; c=relaxed/simple; bh=iejaXdpErS8cMi952+n4L1J+dFtl5tzX6Q2QWlG2LGQ=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=kIAaJ80vIZU8wIXE7D7IowmFRCb/TCyHwTZu4aFWjb6zMu2BP48jTAk5ycuSR+Jp8GLy9i6L3NyeLInCa6OT+IX+mjkpheKEkG+QIfF0YxtRrUIWoMi3Tf4pjYnydJXKRp5JWBiLx9FgqVFTJGHQPiD1DApSWs0b067BxppQU10= 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=EvlzF2mx; arc=fail smtp.client-ip=40.107.105.47 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="EvlzF2mx" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d5JXD7gtEnm3qMQMDNB/M1zTCq6MG/UzqOZWERwnqCYqFNK8DhqN/Vc1KHlHDTNI5CfxPbNmQyWcRNbVcPGV/tydVghNnQW8NxWAV+iTwNJc2u6rpY8yjMezyn5+qb6d5eNDfi8VC7uxTF2qIe+CVKkBc24nTw7Doygu3bjs+jY58FQ7LxCQMLwYhv3GzL7AciY+TQhnCxIUg97bbHAUYHNJeG+DIMEmmnILkG5uxxjwM54MfWW8JEEB9xlKS3GF2wvL0/wH9F2VxL3esJLVct9gEBEazUIORRWJybtmeJjJmkBNpOGGp++hfJcKHGw21dywl7BmRAYznpFRV9AwOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=jjKUjS2DjXbb8BnhsSsQvjunkn0xpQJhSNuX0l07wdY=; b=cREil+jKMdnEFOG/yVEVNsxX9Dwf375AL4YQo6HzHNa9hrLOxlGT9trDLToq9Sa+khfqwiLTWvfc8DF6qiieh9lMM/6iSdowb8mKlvm6CGzVPtPryn0P6+WFhDxT4hBXe/kC3W3t4ATMXoHXONnkB/aqQl8XWJu3kvajn6I/mPkUP7n6r3spIjEChjXYRPDhJAygWgR6aVccFi67ltyN4B91LlwAx0/dKUmsnyxogrvM780Zb0YKLhhH3Vm3RItP67xdbAeA80OWYUP988gtZQes8aHb+EO/P2aKh39h8HOvTMh3KNZDag9ktCQLcpfihouKsn76dycVmws9wmR9nw== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jjKUjS2DjXbb8BnhsSsQvjunkn0xpQJhSNuX0l07wdY=; b=EvlzF2mxAEAGhxGwcVbSmwZAdMuBOFG12OXRo1xbeMG0X3ZklKButys52cuGyxWfln6JPakV4CbeoLjj1Mn0GXgmZkmaMbXbOgqvHruPnsvqvVputdJ1y+PLbDDwwUtsw1WIFkex4fkDSdB7+7ccoy2X5INWmSAlnIzAJ+oMvaM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB5384.eurprd04.prod.outlook.com (2603:10a6:20b:2b::17) by DU2PR04MB8582.eurprd04.prod.outlook.com (2603:10a6:10:2d9::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Wed, 24 Apr 2024 14:08:02 +0000 Received: from AM6PR04MB5384.eurprd04.prod.outlook.com ([fe80::ab73:5047:a22:9439]) by AM6PR04MB5384.eurprd04.prod.outlook.com ([fe80::ab73:5047:a22:9439%4]) with mapi id 15.20.7472.044; Wed, 24 Apr 2024 14:08:02 +0000 From: Vlad Pruteanu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, iulia.tanasescu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Vlad Pruteanu Subject: [PATCH BlueZ v2 0/4] bap: Replace the global bcast_pa_requests with a per adapter queue Date: Wed, 24 Apr 2024 17:07:37 +0300 Message-Id: <20240424140741.73899-1-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 X-ClientProxiedBy: AS4PR09CA0026.eurprd09.prod.outlook.com (2603:10a6:20b:5d4::9) To AM6PR04MB5384.eurprd04.prod.outlook.com (2603:10a6:20b:2b::17) 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: AM6PR04MB5384:EE_|DU2PR04MB8582:EE_ X-MS-Office365-Filtering-Correlation-Id: 20478885-5ad5-45ab-0c6a-08dc6467f376 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9mX/2r63THx5S/4hoHgENP41+OU77qJV5mQg3VTuV6oZ6inRd4rVFFXpPCby0WKr6p0+jXAHMCduDOhhmVd4M9Mk5xjCbF4HMwul5HuapgGfwMXDW17wF0SqUHcNYGkVtpDhXvnPEYNpHtHMo6YTirWuSurP81OOkvB+lj/tPImmJFj1XFn9z3Hqu2Opbq/aMyrksgVLrW0QQFTpafgHbLTd6mghDOWzVG3GYm/XpozWaeL+0QgANFX1t9IyuHHqEDLyQKThhN3b4toPpFISACdTmXABqu+7JaC7vejx3tZbKTICxkfVNABxVEXoM252eYGC2KnPSsYG9lOtIZQsmAts3DGUUSZHs4tK+glhljLArloHC5uUXlJ9QkvGJSgA97GTUcF2ab3JW7Ak7rz5jkXxnmzIp2qpZY8wcNuGUnTMDW9IUSJdBIKjFJtBGNMXZkpPg5xwZjgC666HLPTyKEAAEkjm4eAcVxPZ6cYBN63JdOov/5CAJhM0BzlcBUbL7WlKLBqgXObvZFRe2Vv/KIHlx079vjeZhelCP8lQ1GG3i/n5XuHjk8rr1ZLaqpugEbdMUA5g5wMM8E1445Bih81unm5BIn0CTp2NctsN+3SCy1EPJ9EbEDLQQZUdjwlyA7BxHsHGHaV4dSz3xfXuAcr6AKixNg8jaReqrNSkD5AL3QMfKckId0VIL3nuE6MlyF/0fQUPZJV5rPJ0NUdyLMeoBHdWoQ+XMMUDA/kn1akxGLSNemLi8PIP6EphIdhA1cxAMfbm2zCrbdBxg9pp4b9p2e3UelsMzr8eU5MjEXKme/H6XEdbl6clxGAd6zBfIAjjs6pGBfNej+4rNnllFQLJB0rKMG5PE8lbZLftuK/A7AXgU0fb1JwpngklQR1buRJpcv4KS9prugNFvj4jDWDZM+MyaqUzoqr1GpejRWIOsGHbBs0vzUlMXKHP8DEzcZOKJlepXozTWeN3GeQ/ZK+oBWYZit2Y5NvYppAv50vyHzS3c68jPIaI9WI1+YnUzHc2uhhilqAPx2t10sJzg6KlS8ZBImQvPIT5WTOttg/f2/HTTgbKctra3F5C19qjBB05i19c5ekXoKoVsHS8gPrp87ibf/McsScqHx+hjdCiagUo216RN6/xvg2PMURfD9ZsiYy1NTcHdUVciigRWF/VldZZOgOel7bhkUEQ2xY9clfuGzUWjrk8f36LA300l0HgSsEM1/gfj0cvJmM273wPhWKEr//rkDg/guEMBjAMmagS1TotyBlMv3MtByLQBp7GgwTMj15eNgYRca3BoDssk3lHjsulNrEBvfQFJsdhh63MYbZWN/GNa8btoBajEQhGg9p9z5j5FWb06H6n2Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB5384.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007)(52116005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9V2j4c2jU0mRf8Hlql4tuGWCZ50VkSczEVm4wLxbyHMPkosiweZVpM4XJXUFSL1WVEngovL3MPmMP64wTl5n0i/GUhMUJj1iIgC5wi9yy4iZlPkiQ3guE/uHkl4wsCGMbg337G8g23grBXYw4i68Rjoxqht5KPwp/JLcfpnq1mu8ZSyduU7Yv+pgmp9l2Tgw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N1oeREOnoS/8bLAyRY6jgh1zG+oaEMtKG0Yr0I+xeuDgjVilBWTSXxll5Jlmchf56vchqort8uBq6qhzoncZlY+5eUdM6BnDASXGcpKpRmofTisbH7zyF7Y+x9pTbPnsL3A+Y8Cnh9KW7wcwFcC2nTLtZdr5WwtGcZPROjU1gRHJ3rJeEJmXbjbE8lz6A1OPbo9gCLQZdJp7T/3UWe3xk1CBq/UsEwib00sZfSx0pSRfrvkBDsjCShm37OvnoPY4YicGsktjPdPKBkvLjzLJdXkqeM1LyT4v/I38lDSoC1vhnXHzGEfzrBaxrISOnDK3f5rwg7YT X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20478885-5ad5-45ab-0c6a-08dc6467f376 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB5384.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2024 14:08:01.6240 (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: s+L6jxlsQk5VDSB+cB2hI31JwkPX2xIOUYthIQWs9lyQkddJEuFKyEDNB4rRwCBS6IFB0AYdCEDbuP970UHoUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8582 This replaces the current implementation that uses a global bcast_pa_requestsqueue with one that runs on a per adapter basis. In order to implement this the btd_adapter field of bap_data has been replaced by a new struct, bap_adapter, which includes btd_adapter, bcast_pa_req queue and pa_timer_id. Vlad Pruteanu (4): bap: Initialize bap_data for scanned device in bap_bcast_probe bap: Replace adapter in bap_data with bap_adapter bap: Improve handling of pa_req timer bap: Remove deleted devices from pa_req queue profiles/audio/bap.c | 196 +++++++++++++++++++++++++++++-------------- 1 file changed, 131 insertions(+), 65 deletions(-)