Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FE60C61DA4 for ; Mon, 13 Mar 2023 03:19:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229996AbjCMDTG (ORCPT ); Sun, 12 Mar 2023 23:19:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbjCMDTE (ORCPT ); Sun, 12 Mar 2023 23:19:04 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E34FC2799D for ; Sun, 12 Mar 2023 20:19:01 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id k10so43078631edk.13 for ; Sun, 12 Mar 2023 20:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; t=1678677540; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AaTbJOlzDqoyTznkZQew61s0LEM4GBuB+uw2lDWthD4=; b=SreQplaOaiKXW0B6GkZdUz6D9Sa8v+5a40rGEdoJ775vEgiQ7rGzPPoJB2nGkdPgPj MrRQnJrU82a6hHvFFpf8YjH/URrfgV0bOVovjOaGrsudExde0AztAa92HAOCXQNViqP/ 70pOPj5yn3//8pP7ik8k8O6D36LP6LP71Cx1ezuLAL6B6Tva+t2Yy2yogC3Uqskevt7H LfcBAyBNUUgTv4alNcfEjT3u8gldjn0kYejutF2SuTLxD5whjtZYLSCzsTBFMhRod19Z JSKRelOmYUg2qG+mRrq6BrYlHo7TE/ubAUvDuM/0PqYtFQ9gUS1x0+2HCPBDSDULmXYv wXyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678677540; 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=AaTbJOlzDqoyTznkZQew61s0LEM4GBuB+uw2lDWthD4=; b=LYOy6t4d/wOMcHqULNL4S4HiAhAAjKNscgrFDdMR/26vq/Ud/ep8UGb4o4fzlORZ5o nsGEZnCYfPwrjFGljZUDoAw+jbOFiL7w5pQdEXcp/UXlSlTwz1IsKgf5oYi57NgXmB7U f6F8eaOo5BUV9zTixMdtuR00BEPmxo6MfAMsY2uIFcPqpz1em64jbHIdYdOJFtZVe4KA M7/3TJtWCyn9fn+xWmOQMRVRB5QhNYs96UbiHNqQFO26agIrqhgDD7fk8F7xuTU3aJBd ohdmt3XvDRfazyOiepzhgFZLJxi613+1chA+YqxESNUFI56UEnEnzCrc3MFioLvlXZN0 Ehrg== X-Gm-Message-State: AO0yUKXF+XVq0bpS7r5FFmL1W/GqWQw+K3g/1MnqIThAFK2+Jko/lxeI HzVTvKrtJdpoxnLPvjHoha2cwviLEwcNA5Lkm9f+iA== X-Google-Smtp-Source: AK7set9w8TNcS+IZtR8IG8YLrACA9rb8f2+mU6VRo2IEjowuxVnE18r7Gt3VjLgTfeJg8cMqPLkf4sh/ejlKubZk5g8= X-Received: by 2002:a50:9f0b:0:b0:4fb:f19:883 with SMTP id b11-20020a509f0b000000b004fb0f190883mr2233841edf.1.1678677540018; Sun, 12 Mar 2023 20:19:00 -0700 (PDT) MIME-Version: 1.0 References: <20230209020916.6475-1-steev@kali.org> <20230209020916.6475-3-steev@kali.org> In-Reply-To: From: Steev Klimaszewski Date: Sun, 12 Mar 2023 22:18:48 -0500 Message-ID: Subject: Re: [PATCH v5 2/4] Bluetooth: hci_qca: Add support for QTI Bluetooth chip wcn6855 To: Johan Hovold Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Sven Peter , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-bluetooth@vger.kernel.org, Mark Pearson , Tim Jiang Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Johan, > > > As I mentioned elsewhere, you need to update also this function so that > > > wcn6855 can be powered down. > > > > Sorry, I do have that locally, I just haven't pushed a v6 as I was > > looking at Tim's v2 of the qca2066 and was wondering if I should or > > shouldn't continue working on my version of the driver? > > I only skimmed that patch a while ago, but that ones not strictly needed > for wcn6855, right? Things seems to work well here with just this series > applied. Works, but, not quite well, and with the nvm bits from Tim's patch, we end up getting closer? I think that is the best way to put it. With what we currently have, we end up loading hpnv21.bin for our nvm patch file, however, we actually want (at least on my Thinkpad X13s) the .b8c file from the Windows partition for our nvm patch; With the b8c file symlinked to .bin with just my patch set, I am able to connect a pair of Air Pods Gen1 to the ThinkPad and play back audio, as well as use them for input. With the .bin file that comes from linux-firmware, they will still connect, however, they will randomly disconnect, as well as the audio output is all garbled. I think, ideally, we get v6+ in, and then we can figure out what to do about the bits that Tim's patch adds. I've tried them locally, but I'm not confident enough in my knowledge to address the issues that are brought up in the code review there. > > > With power-off handling fixed, this seems to work as quite well on my > > > X13s with 6.3-rc1. Nice job! > > > > > > Btw, apart from the frame reassembly error, I'm also seeing: > > > > > > Bluetooth: Received HCI_IBS_WAKE_ACK in tx state 0 > > > > > > during probe. > > > > > I'm still not sure where the frame reassembly error comes from, and I > > don't know how to get more info to figure it out either, if anyone > > happens to have any guidance for that, I would love some. > > Additionally, it doesn't always happen. It seems to happen on the > > first load of the module, however, running modprobe -r && modprobe in > > a loop (with the powerdown properly modified so the log isn't full of > > splats), it doesn't seem to occur every time. Likewise for the > > WAKE_ACK. > > Ok. Looks like the Chromium team tried to suppress these errors when > switching line speed by toggling rts, but the frame-assembly error I get > appears to happen before that. I am still trying to figure it out here as well, but I want to get v6 out there. > Johan