Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp874939pxb; Thu, 30 Sep 2021 20:40:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz22gl7ZWhbjC0Ano5iJetIkFQ3KuT+lfrzR9w+Uz8XihI+qLj8RlgfMBBmVUbJpoOkqzGw X-Received: by 2002:a05:6402:450:: with SMTP id p16mr11585940edw.162.1633059602774; Thu, 30 Sep 2021 20:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633059602; cv=none; d=google.com; s=arc-20160816; b=daa7uNSyyzZEgAwvrX1WMPZRx50lt+CCYKoWlWqHUhdc2hSWK0Ju+VmhdNei8NsW4G S7irms48bHhZwfgzzI8B5eBs66fbr2YV2BtYDWiiJnVLg3dnTVqn7sENcl61df3uDG4d Dy2ioB0hmPKhu2CPVLZS3RpHBbMhp1EtLuIMxmrNA9tQbdKgNogpbdTPrkM1vLINA915 Zm4j2d/8KCfWR1Z1XaFvOBkxJgkrvcl7x5IjIKOTwHpeSjREzvWNmFJvHEjtPYV1RQYJ rKWgM7tIcvY7g5no6OLx+P99ol9UMynhfdDSNSwcqUbOQT+bh4kxaCVbzbj/QqiZ/kN/ xBBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:reply-to:cc:from:to:dkim-signature:date; bh=wbT/YxksNbpXIxygDUBBltEQxbsIjbL1dpqdJhyCWhs=; b=zsJyyeYVYYt9qDkUJ6nMJvrV8d81rVwaACQ8PVmpx/GP90bRhMlH70VES0EBzb6nhN O3g1Kc+JVYUz+49GZSaybWtNAE0yh57a9iJxnXBr3aWTJu3U6PWRXDsqW/Zvv6B1+GE2 nN55tz6HykN37zetk7fpj1e2uuK3I27TkI86rRtsZl7dRxd3TPPJoN5b3zUYhZunV4pu 7qX84CxyppkuZeqbIRYZo3l9DEyRGRjKY+CAUH9/LYrXei0G02kM8xLHo2aRbcu0opvA 3EDHzADgGfGyGFYVPmhudAZnLX6PEF0HzIfNJMNQnQSmigJ8wRNLlaorq/Ap6JY/+Q5n J+/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=jQTOqCJ1; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 2si5331160ejh.749.2021.09.30.20.39.17; Thu, 30 Sep 2021 20:40:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=jQTOqCJ1; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230389AbhJADjI (ORCPT + 99 others); Thu, 30 Sep 2021 23:39:08 -0400 Received: from mail-0301.mail-europe.com ([188.165.51.139]:41734 "EHLO mail-0301.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230405AbhJADjH (ORCPT ); Thu, 30 Sep 2021 23:39:07 -0400 Date: Fri, 01 Oct 2021 03:37:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1633059441; bh=wbT/YxksNbpXIxygDUBBltEQxbsIjbL1dpqdJhyCWhs=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=jQTOqCJ17snc2K7xVW85S02omw7lzG3eBod0NjAsxgOaH3tQO8UlUNC7EC3Zwj7d8 /xvI4dAc2co/C5eyA0poho2CXP1VWXXgeOIXLHBW1oAnAtdNLug6GHryyCVjpCP2Lh jEWIH1fBr6zvEMZzK5EVXD4eG6HlH/Zgry01Udzc= To: Marcel Holtmann From: Orlando Chamberlain Cc: danielwinkler@google.com, Johan Hedberg , linux-bluetooth , regressions@lists.linux.dev, sonnysasaka@chromium.org, linux-kernel@vger.kernel.org Reply-To: Orlando Chamberlain Subject: Re: [PATCH] Bluetooth: add quirk disabling query LE tx power Message-ID: <275acce4-9eab-9cba-7145-5a75a69ca530@protonmail.com> In-Reply-To: References: <4970a940-211b-25d6-edab-21a815313954@protonmail.com> <20210930063106.19881-1-redecorating@protonmail.com> <20210930141256.19943-1-redecorating@protonmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_QyD3q1wsYzPCN4Wpoew4UPb3trelXIZ8pQMlvRTglU" X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This is a multi-part message in MIME format. --b1_QyD3q1wsYzPCN4Wpoew4UPb3trelXIZ8pQMlvRTglU Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 1/10/21 03:58, Marcel Holtmann wrote: > so I really need the btmon traces from the device init (so unload and rel= oad the module) and we need to see what commands are supported and what com= mands are failing. I'll attach the full file I got with btmon -w MacBookPro16,1.btsnoop, but t= hese seem like the important bits: < HCI Command: Read Local Supported Commands (0x04|0x0002) plen 0=09#43 [hc= i0] 9.217379 > HCI Event: Command Complete (0x0e) plen 68=09=09=09=09#44 [hci0] 9.218033 Read Local Supported Commands (0x04|0x0002) ncmd 1 Status: Success (0x00) Commands: 223 entries =09## many many lines here ## =09LE Read Transmit Power (Octet 38 - Bit 7) =09LE Read RF Path Compensation (Octet 39 - Bit 0) =09LE Write RF Path Compensation (Octet 39 - Bit 1) =09LE Set Privacy Mode (Octet 39 - Bit 2) =09Read Local Simple Pairing Options (Octet 41 - Bit=20 At the end of the trace: < HCI Command: LE Read Transmit Power (0x08|0x004b) plen 0=09=09#69 [hci0] = 9.226953 > HCI Event: Command Complete (0x0e) plen 4=09=09=09=09#70 [hci0] 9.227515 LE Read Transmit Power (0x08|0x004b) ncmd 1 Status: Unknown HCI Command (0x01) =3D Close Index: F8:FF:C2:06:46:63=09=09=09=09=09[hci0] 9.227666 I'm guessing that this means it reports that it supports the command but it= doesn't, so if this is the case, I'd have to change the description of the quirk to = clarify that. > Since you say this is on a MacBook, I assume this is an UART based Broadc= om chip. Sometimes Broadcom has been really flaky with their actually imple= mented commands. However in some cases firmware updates do fix this. So any= chance you can boot OS X and check that the latest firmware is loaded. Bluetooth for this device is indeed through uart: # lspci -vvvnnd '8086:a328' 00:1e.0 Communication controller [0780]: Intel Corporation Cannon Lake PCH = Serial IO UART Host Controller [8086:a328] (rev 10) Subsystem: Intel Corporation Device [8086:7270] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Ste= pping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=3Dfast >TAbort- SERR- Kernel driver in use: intel-lpss Kernel modules: intel_lpss_pci $ cat /sys/bus/pci/devices/0000:00:1e.0/dw-apb-uart.0/serial0/serial0-0/mod= alias acpi:BCM2E7C:APPLE-UART-BLTH: I've just updated macOS to 11.6, which should have updated firmware. The is= sue is still present. --b1_QyD3q1wsYzPCN4Wpoew4UPb3trelXIZ8pQMlvRTglU Content-Type: application/octet-stream; name=MacBookPro161.btsnoop Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=MacBookPro161.btsnoop YnRzbm9vcAAAAAABAAAH0QAAACUAAAA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