Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1764414rdb; Thu, 25 Jan 2024 05:40:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJ0dZCEx1WLF2erQ/iFQevTZrI1beLINIeisYj7/Z9Ky8iuw1cKyR4oy36CZ6hq1v4DBaV X-Received: by 2002:a17:902:fc8f:b0:1d5:dcf4:afe5 with SMTP id mf15-20020a170902fc8f00b001d5dcf4afe5mr1116467plb.132.1706190007787; Thu, 25 Jan 2024 05:40:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706190007; cv=pass; d=google.com; s=arc-20160816; b=nPUIAObZoQ/Vcs7IWm8ZAaYe5tGKfJiLpUM7LMX+RP1ZyCB4oyG98fYg90JGFm2V9O wykb6Ejtp8C5APPsbu6Lhfc1n7rmBY4tLg8tjR+Gx+mv6yFWT8WfoGeSHZ3VbuJn0Sbq TgfefwP2y1NhsH4JCuwFMzA3MqwmqYOmyc5jXNC3NAFF8V1TAl7Wvh90XFe+WTCT9dvY PBVgDRNRukwO0SXjeiLql/n1BhVkhbEG65rV/e9mRFZLtHYEsQA62SsW2Okd7/g1PaPz OiO85PqFPaTfx4M3g6yVXxzOB3vVDQ/Jcsb+YcZchy8jjw9VrJkdN8GsVE6bNOCpzMni +uAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=5lfDeObWyvenc38qfma1JeNasaT76DJPrJnz2DZsA9c=; fh=jIzpVIdFyGceiSFyto/PtA9ITGMoMIlpS6hXDIeKQtQ=; b=H6aUtZOglsq4I40z6TU7pRn+02GF8sRzt4dnrWJvZK/8WtxcZKM3n3FWVOLAF8Hamd vt52r4di4TelMiGbi+Q917D9TPkH/dpXMhQNEne8u1bkoBZjhbC4/BqT+tSWfeJ3U6Bl 8vO1/iCQqULATb9jnbF9BldO5pH1U6/QxopIXMYQsog7iDPYIIzmYaaSG0RAILFbZHkN m3acIhEImrzXrpU55nnkZZ6zyNFrqs4DxPyJOQjIXa7NSol5HG3J3k0f/1pHR8m9QHYf Mpf53KYWSjjB1jnx9jzytuXZbIunqB7YzojQv5tRErlyNZZVjwDA5Kpe0GL9sYC0yJeH O74Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WKarW5Jw; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1361-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1361-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c1-20020a170902b68100b001d6f1b54acfsi363074pls.455.2024.01.25.05.40.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 05:40:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1361-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WKarW5Jw; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1361-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1361-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 115922928D3 for ; Thu, 25 Jan 2024 13:40:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6850855E5A; Thu, 25 Jan 2024 13:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WKarW5Jw" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 770B055C12 for ; Thu, 25 Jan 2024 13:40:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706190001; cv=none; b=dOIFbiaYH9cKw11yl745BiyuyCoCZOhzZYuA+tLvk8kH8doJ2nOC4Y1CuzdiyGsQOu/A1+FnQ0AEM8OMIgOEKAcskwYX4JiPcfB/pWu8XUPYL4vUoodSNO8mLXZVv/mV/eFOjtat60lho3edDqlo6sQiklp+YaTCvkO+z4iIbmk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706190001; c=relaxed/simple; bh=WjocFrwW9NDLGstkXFRh15G8gZP/XvkcAu85wAyXrs0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PjftpcAG0JjuYnVfp+MBIsCMkQqwCFRvGwl0xrEljk4J3XWhn6mLa2sLFMFosnoEBhr5opcAHMocn1KVwHW6MjCObs1IMhu93FNm+xnxPZGcdpxwYr9+IoBOOmhrLP6e+BQ2jFOkzNTGttOaHguX8IebL0LvxJ/XmEPkeLJQdo4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WKarW5Jw; arc=none smtp.client-ip=209.85.128.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-5edfcba97e3so68130217b3.2 for ; Thu, 25 Jan 2024 05:40:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706189999; x=1706794799; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5lfDeObWyvenc38qfma1JeNasaT76DJPrJnz2DZsA9c=; b=WKarW5Jw0k3wpI1Lact4VRdBlmyAyYU6I30ihOM/og6Yc3jTT1x+ttrd5HYpuTeTdC 3PKRc5B/ozGf2HwAjBBuHqUpmRRasQUqI5AXFqZtj5qAr4euR8yGI8AssBhXwn0AKWzX u5I1LAPk7t/0Tw55r0h+k4U0q/oGEdsL0S8sC96eFYPm6viNgm7Y6Ihvw8mTejo60dBn 0/evWgL3kgz5wMC9u0VutEsP0I+JqdEL5Qz20OviK+HikVoNSC/3bu+hcdLYmTWgh4tM Ph1Un5vCEtImJ8SXJWkCMhxHBuvSgBvAvS6XoB+0/8F2IDN6ID4bUiMSAuLiVI0Wd8vJ tZ+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706189999; x=1706794799; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5lfDeObWyvenc38qfma1JeNasaT76DJPrJnz2DZsA9c=; b=dTOLyEE/peItMvmIAYRXjIV4Q2mHBdhQodTr9/FD3Z7DUlEs/3t9hyOLodU3SpL/3c 5QL0flDfzA3+03+85G/9zVhHgZB1reAizpgj/mOJw4IeK/DmNIBJj5yYclqzkRSd3f/k +X5pCN/kPOVsmZPl8TnZY+JdBqFv6nIaPRsSbsJ8H7hyqnY6WxQIWiR8e/aTSr2XOgit Ky2X3wTZh3nMrfLeR3EXPb9wfxPTe0tlZMXBlGEKsM1MvjvS7AxN3WbA4Wh+XHr6B/8Z fY6g2rFvTd1J4hx2IQCF2UzrnpA1JS/hn5vxBxiUtAZQ6hrKRojU6+xB1MaQVbNypAvU WCcw== X-Gm-Message-State: AOJu0YwFJUdMQZlty+a3y9b6HbYGOiv3NnqJSb61Wyaht3X6dN83ciAB YrGpp293pcNCZp2KHc3fLuZTPZDPtDFrYqkz1b7i+PwDKCzHVD+ZTBt7rUKseFBALzF4Jfvi3/X gD4EQqzOrR2cd3WieF048F8ttnto= X-Received: by 2002:a0d:d707:0:b0:5ed:8cf7:8233 with SMTP id z7-20020a0dd707000000b005ed8cf78233mr653376ywd.87.1706189999290; Thu, 25 Jan 2024 05:39:59 -0800 (PST) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240124-disto-patches-v1-0-97e0eb5625a3@gmail.com> <20240124-disto-patches-v1-1-97e0eb5625a3@gmail.com> In-Reply-To: From: Emil Velikov Date: Thu, 25 Jan 2024 13:39:47 +0000 Message-ID: Subject: Re: [PATCH BlueZ 1/9] Enable alternate Bluetooth connection modes To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org, Vicki Pfau , Rachel Blackman Content-Type: text/plain; charset="UTF-8" Hi Luiz, On Thu, 25 Jan 2024 at 03:54, Luiz Augusto von Dentz wrote: > > Hi Emil, > > > I'm sort of surprised by this, we do only use the PHYs listed as > supported by the controller, so is there a bug or is this really a way > to disable PHYs that the controllers report as supported but in > reality don't really work properly? In case of the latter I think we > would be better off having a quirk added in the kernel so it can be > marked to the controllers we know misbehaves rather than limiting all > controllers to 1M PHY by default. > Using pristine bluez, bluetoothctl/mgmt/phy lists (omitting the slot phys): Supported phys: LE1MTX LE1MRX LE2MTX LE2MRX LECODEDTX LECODEDRX Configurable phys: LE2MTX LE2MRX LECODEDTX LECODEDRX Selected phys: LE1MTX LE1MRX With this patch + the LE/SupportedPHY config set to "LE1MTX LE1MRX LE2MTX LE2MRX LECODEDTX LECODEDRX", as per the original patch we get. Note: I've intentionally dropped the override for submission, happy to bring it back if you prefer. Supported phys: LE1MTX LE1MRX LE2MTX LE2MRX LECODEDTX LECODEDRX Configurable phys: LE2MTX LE2MRX LECODEDTX LECODEDRX Selected phys: LE1MTX LE1MRX LE2MTX LE2MRX LECODEDTX LECODEDRX Note: I've intentionally dropped the override for upstreaming, happy to bring it back if you prefer. So from what I can tell, the controller reports that all (as far as we're concerned) PHYs are supported. Yet the selected and configurable PHYs are mutually exclusive, which doesn't quite compute here. Mind you, my bluetooth knowledge is a bit limited - I'm just going by the code. What would you say is the best way to move forward with this? It doesn't seem like a kernel quirk is needed IMHO. Generally, if you feel that a different name and/or semantics for the toggle would help, I'm all ears. Thanks in advance, Emil