Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp384101lqo; Fri, 10 May 2024 02:55:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVqrZT2YY7CUYJLG6IoGF0Ausgfn7sxzteNYQWUedH8eagk2l8D18yHukuZ6l7jKR9dZTy4nboQ2iVzgx6OvJ5eYABhJhaIi18QDDB0g== X-Google-Smtp-Source: AGHT+IHH8j4Ean6msnmVMUx3luP2zAiEouK3sSgtNFFrrvl75Kjd2WgC9drHBWxYlISgElIHnoPp X-Received: by 2002:a05:620a:1248:b0:792:ba5c:85ea with SMTP id af79cd13be357-792c75a0384mr200525285a.18.1715334909912; Fri, 10 May 2024 02:55:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715334909; cv=pass; d=google.com; s=arc-20160816; b=cdB7FbIPPR/iteWBuxMJagqsdCW4l3OSBag6lqsqAZaInaAAaHN4XTgwJQ+XsyFl+e gHxxBp+s1TczPJMHiUMBgBaS4x26X6g5hDu57WQHV/GIYkgeMjMuOLKcskmbWVb8SFoj yiSbmW0EC6ewdlzba8hWlY1O67v5DwvKeuN+y/Sr2SeuQD1L4ixTqB0Nna56rKBKfVIt NhMBpTP6oUUI3r2SwMMKUrMZqIQwrTiMNrAOaTz3keP2g5N9ON170PACgIaXrXFKn3fO TAhvDmZnEKFKMW8rV+Q6w3VhGK0vFPeh5QDf9vlW9sQrAl1C96/2pcRE+4HrrpbU6A1m DheA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=zsAX12i3wiGs8NpHFwK4gaLZUeZbeVFiTubMbmtjtjM=; fh=KTHkEEve0yaTqV6NUP3Z8wYvtfaYAg4JL15xWSD5k6Q=; b=0iJ6IwPFkwLi8gCCnS5r/6XBai7oSAobIMGSixh75HC6NfVVcsE2z6myY7A16wo/5j 6KLhu9HJlplzzXqKa7CbjYyiyY6Vtox60zPmUs+4jt5h11xix9pOTptsqjE/EDJ+YKwu KQz+jUXAeuGMXpJFRmpbnkL0TK67hNbmQlfW6eIm2mhWTMcg1DmvcCj0RZHWnB0Rctws uur75EWfUc0mZ6UpYPXDQwRfyPQ1xVLiJRWpr5ffq6NGiMIj2Xqe4zPSMgzEM8geKBDk 7FolkZlr/5vUJML4ugg+uBDaynkjXIiGK3pegzVq1e0V4vv2JoXa10eYt4lr/WryHYE5 06dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm3 header.b=lUnbSe3v; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=M5Xq2BMv; arc=pass (i=1 spf=pass spfdomain=svenpeter.dev dkim=pass dkdomain=svenpeter.dev dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=svenpeter.dev); spf=pass (google.com: domain of linux-bluetooth+bounces-4461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svenpeter.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf309d99si296927385a.235.2024.05.10.02.55.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 02:55:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm3 header.b=lUnbSe3v; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=M5Xq2BMv; arc=pass (i=1 spf=pass spfdomain=svenpeter.dev dkim=pass dkdomain=svenpeter.dev dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=svenpeter.dev); spf=pass (google.com: domain of linux-bluetooth+bounces-4461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svenpeter.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9101D1C20DBB for ; Fri, 10 May 2024 09:55:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57CFC4AEFA; Fri, 10 May 2024 09:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=svenpeter.dev header.i=@svenpeter.dev header.b="lUnbSe3v"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="M5Xq2BMv" X-Original-To: linux-bluetooth@vger.kernel.org Received: from wfout7-smtp.messagingengine.com (wfout7-smtp.messagingengine.com [64.147.123.150]) (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 641CD15FCE1 for ; Fri, 10 May 2024 09:55:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.150 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715334904; cv=none; b=orxRNqX8IUVGVgu+T3aUaALwhQZSwbiNX+Z61AXWwdQWyV1X8bP9TR3uf4BHAjtQpRtTRvh7IM9kXcoAnUGfWLQfN8ISJBEHDFScpqMPJSsOLVgc+RiB4DIWNj0N395U2fRUmxBrFyiOV0m68y4kA5QpekpxoEecB4C+zLd5WOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715334904; c=relaxed/simple; bh=zyYfLt4Ecs8HU/x+zjq4DFkOpZ4wMvlgECzsCL41iqA=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=uDITcA4OA9l69hz13SUOhVISLscf/bKiQVAJD8aUWGnxSWJz6xaB3TDgB3XKsldGsmumgjkRQeMngFVnhv73AGY3FcUR56vChWrsmEsHrA7F+3N6PO9ZLXW8JfakU/YLg01RWzRdUSq/SC5DM64BCpWhdaH6UqipyiM8T6mY2KI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=svenpeter.dev; spf=pass smtp.mailfrom=svenpeter.dev; dkim=pass (2048-bit key) header.d=svenpeter.dev header.i=@svenpeter.dev header.b=lUnbSe3v; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=M5Xq2BMv; arc=none smtp.client-ip=64.147.123.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=svenpeter.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=svenpeter.dev Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.west.internal (Postfix) with ESMTP id 291151C00067; Fri, 10 May 2024 05:55:01 -0400 (EDT) Received: from imap47 ([10.202.2.97]) by compute1.internal (MEProxy); Fri, 10 May 2024 05:55:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1715334900; x= 1715421300; bh=zsAX12i3wiGs8NpHFwK4gaLZUeZbeVFiTubMbmtjtjM=; b=l UnbSe3vvJ65EIfoOs6o22VLB3Xfhx2zUELZHMUBPbSnABGRS9Z2WGUmpI9ij+z5T h/PBo2NgNublSXDhZKgIRqRXWJwZ/5rrmbqmkMuItJZg/JY1lXja4b3tjZayadAj 171mwwgYqkrlqYkuj/FWfCSE06AKxfLvKBBX/CbYDX8X0tpOroJo2vbC6tGIu4JX 8BOnjtSelvZ60Jc6KOsVnyBE4tr98qC1rup1tETSlNit+nROfklwKQ1/0oPz5pQY Cvb24JHdQ753hjazzM1jHcCOkUnoQQDNCTQwZZKIexn+MixrdNV+RYYYvOteCEvW 6tbSN2J6/vSFRu8dyYtOQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1715334900; x=1715421300; bh=zsAX12i3wiGs8NpHFwK4gaLZUeZb eVFiTubMbmtjtjM=; b=M5Xq2BMvKcAoUAQ9HgnGrL6dzZjs6aT8ryY0VuaT22XN lhZQYs2AwfepeDbtjBVwPmy5vjN6uBmIdN9l9ZpYfUpEj6vhGBqc5GEYv9aDRgeR cwru4/ASI/4jkvB2h0x0AmIEDEtu4TxdDqzU8ajQecwi88JhvcR2dJWkGj3HHrnC +IXzu3TXw0+NKWoYowDRyj4s0KJ8RS3H2rqq2ZptHb8ZxD4AzZllzHxA+OalyitU SSCRGViyGQ2qbJxkxHbEnuWUsW34bNjI4l39GAi15HRKIN5gvs1l3FvqgAP7/Tt0 7O2JHQGPekR5OodFnj9K1Tuwu5Bvas0yibAQPNGxmw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdefkedgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfufhv vghnucfrvghtvghrfdcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrf grthhtvghrnhepleevgfegffehvedtieevhfekheeftedtjeetudevieehveevieelgffh ieevieeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshhvvghnsehsvhgvnhhpvghtvghrrdguvghv X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3C359A60079; Fri, 10 May 2024 05:55:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-443-g0dc955c2a-fm-20240507.001-g0dc955c2 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <4e194251-d175-49d0-af03-b2cdd8a30fe0@app.fastmail.com> In-Reply-To: <70078624-d766-4db6-8ddb-511251baf0f2@marcan.st> References: <20240405204037.3451091-1-luiz.dentz@gmail.com> <70078624-d766-4db6-8ddb-511251baf0f2@marcan.st> Date: Fri, 10 May 2024 11:54:40 +0200 From: "Sven Peter" To: "Hector Martin" , "Luiz Augusto von Dentz" , "Janne Grunau" Cc: linux-bluetooth@vger.kernel.org, "regressions@lists.linux.dev" , asahi@lists.linux.dev Subject: Re: [PATCH v1] Bluetooth: hci_sync: Use advertised PHYs on hci_le_ext_create_conn_sync Content-Type: text/plain Hi, On Fri, May 10, 2024, at 05:13, Hector Martin wrote: > Hi, > > On 2024/05/10 7:41, Luiz Augusto von Dentz wrote: > > >> If I print the actual value then we got: >> >> Primary PHY: Reserved (0x81) >> >> I guess one needs to disregard the reserved range, well until they are >> no longer reserved then it will no longer work. Perhaps we should talk >> to broadcom to know what is up with using reserved values and if that >> is an apple thing then perhaps we could ask them to provide firmware >> that acts according to the spec. > > Apple and Broadcom do not support Linux on this platform. The kernel has > to work with the existing firmware (which is the firmware macOS uses), > we don't get to request changes. If the firmware has quirks the kernel > has to deal with it, that's how it goes. It would be great if we had > vendor support, but that is not something we can control. This is common > (Linux is full of quirks to support noncompliant hardware/firmware). While I agree with Hector here that they won't even talk to us it's sometimes possible to figure out what exactly they were thinking with their reserved values. Apple provides "Additional Tools for XCode" which include their "PacketLogger" which contains most of their vendor specific hacks with a human readable explanation. I wasn't able to generate this specific event with my hardware here but I was able to inject a custom event into their trace format and then load it and see how it's decoded. From a very brief look it appears that they AND Primary_PHY/Secondary_PHY with 0x1f to decode it and then support all values defined in the bluetooth spec, i.e. "no packets", "LE 1M", "LE 2M" and "LE coded". No idea what the higher bits mean though since they are ignored and don't seem to be decoded. Sven