Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp422247pxt; Thu, 5 Aug 2021 03:06:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5RfvlXCH16Xa4ZSpyGJZlTGUpmdb5yne4NNYVKEAy6kgMD7xQiLeTmC6O8uVBzgUK7KMf X-Received: by 2002:aa7:d146:: with SMTP id r6mr5496738edo.264.1628157970613; Thu, 05 Aug 2021 03:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628157970; cv=none; d=google.com; s=arc-20160816; b=pnkExOLswFYhqlqqfnOj8EhvDlBjh2DYsgDwMjZM0LoEXVl17joP7g2+RNukFqdvwZ rJ+rqh8mMBn3dJFhAiCtUEoJURudGP3ub7FrQ9sQ1uv1G3a7llm4TXlK3Vt3R/02cSRU F8WH8o0qjjm+R6pF9mxc1sNBklw11wMMr00ZP/ohLoQGKQaQuMb1Ws629eoL+jo0Nve8 u6OKVTI1OQIhhfMvyG5izIp9sdb4Fb0aqM9ODOpe5jL1ou3BBTy28C5sTDuvo0di8n8F JXq5vYUWELRBQSdzAbb92VuOYOg/zBY9N1/fyYALDUuY728L7hruy8qMJ393TaKC75OY +RJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HinnzQs+V+jlpiaHdzAVaf4tg7IFpH4tXsZwcgOSnzM=; b=FpJg/kbxY2jbdK5rSG/JmS1cYCib5N7tR4uTNaQAw2L+BqaXJTmzYzWN3NX5yZlP2h 7Ac2cDIbeIAT0xxzZW64rvYnCfkSGjcaBwyuEEY8UKg1wPVfba/IvteeFevAeV+9WC7X /A3ab2Kxe7SZLBiCDSGFkca53ubL6tMkevKH0oWxr8BGvZ2v6HeteNisJTvHV7T2eW5t Qv5X/0p8VHtklSoKgpsJJk0ST5uu7PG4CLHTiBZBtXc4t7rM5Bkp47dbAFkplSsGUzqF /SeaWUxKmW9JqPEOR9qFKPQvIshjV818O/9TxYhNSWlM/a5wGJ+MIwoHzagaCpCz0M4q JwvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gEotc+qo; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si4832526ejf.272.2021.08.05.03.05.30; Thu, 05 Aug 2021 03:06:10 -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=@chromium.org header.s=google header.b=gEotc+qo; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239999AbhHEKDX (ORCPT + 99 others); Thu, 5 Aug 2021 06:03:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239975AbhHEKDW (ORCPT ); Thu, 5 Aug 2021 06:03:22 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CF8CC0613C1 for ; Thu, 5 Aug 2021 03:03:07 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id t7-20020a17090a5d87b029017807007f23so10273791pji.5 for ; Thu, 05 Aug 2021 03:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HinnzQs+V+jlpiaHdzAVaf4tg7IFpH4tXsZwcgOSnzM=; b=gEotc+qo98CQ3Sm4nZHM9JTaYRfNGwOwG6Beq9BXXg6GhMXhdsZUNIOjHtWNDS3zem v4QcdN6PgDDffsxDkAk962JQn67LcVHhyC5yuBQKQbOrgCRJX7DKHZfMBS2NVdY3yCCE SAVk4W5UuL8+Jk5nuX0aw3dvxDLadK6f9ZmWw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HinnzQs+V+jlpiaHdzAVaf4tg7IFpH4tXsZwcgOSnzM=; b=HYWnOLaDmkZ5dxQdFvGsyDkdZpHukMlT5mPK/mbsg3J2ER/Yq12v3ALWl4uGMCmnhR N2Dcdz8j/ttDf/C8GzQ6QycHWkyzLXH4C4Md9F5+pNjIhh9l8t1kRSlXM8ZczxVsPAHC UNHE6HvJeJvRZ0G47zTE/MwU8zxuDR7qKlyHXkjazI2J1fjjUMt3aG+hRT+B8IrDqO18 XdvxfrOSx+vH1bFjcaVuxYWZdwdjqIPH5noE4YHF0SbYGZFY1OzocKyfY6AJEIgHHwSO byAUlFxOiDmrNl5W5TUOd+JSUkLyUjn8xphNqDS78UyGPYafgoxXgemr0AMLjR7tmRm3 g/AA== X-Gm-Message-State: AOAM531+5iO5s+nMJaT+1sapGeIwN0PzhpcuENl1mRF5bU1J7x2TaSlS Qrib9EXoGoqtvHUfPabmMq/Q5g8jSu5Kkg== X-Received: by 2002:a65:5288:: with SMTP id y8mr108678pgp.275.1628157786630; Thu, 05 Aug 2021 03:03:06 -0700 (PDT) Received: from josephsih-z840.tpe.corp.google.com ([2401:fa00:1:10:2c18:41ac:c6a8:ddfe]) by smtp.gmail.com with ESMTPSA id jz24sm5436194pjb.9.2021.08.05.03.03.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Aug 2021 03:03:05 -0700 (PDT) From: Joseph Hwang To: linux-bluetooth@vger.kernel.org, marcel@holtmann.org, luiz.dentz@gmail.com, pali@kernel.org Cc: josephsih@google.com, chromeos-bluetooth-upstreaming@chromium.org, Joseph Hwang , Miao-chen Chou , Chethan T N , Kiran K , Johan Hedberg , linux-kernel@vger.kernel.org Subject: [PATCH v6 1/4] Bluetooth: btusb: disable Intel link statistics telemetry events Date: Thu, 5 Aug 2021 18:02:57 +0800 Message-Id: <20210805180227.v6.1.I41aec59e65ffd3226d368dabeb084af13cc133c8@changeid> X-Mailer: git-send-email 2.32.0.554.ge1b32706d8-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org To avoid the overhead on both the controller and the host, the Intel link statistics telemetry events are disabled by default. Reviewed-by: Miao-chen Chou Signed-off-by: Chethan T N Signed-off-by: Kiran K Signed-off-by: Joseph Hwang --- Changes in v6: - Rebase on the latest commit. Changes in v5: - Rebase this patch 1/4 to resolve conflicts. - There are changes in patches 3/4 and 4/4. Changes in v4: - The original 2 patches in Series-version 3 are split into 2 patches from each patch per reviewers' comments. There are A total of 4 patches in this series now. - The callback function is renamed from hdev->set_vs_dbg_evt to hdev->set_quality_report. Note that there are two different specifications which will be integrated soon and enabled/disabled with the same callback. One is Android Bluetooth Quality Report (BQR), and the other Intel link statistics telemetry events here. While most Bluetooth controller vendors have supported or are supporting the Android specification in their controllers, it looks making sense to use set_quality_report as the callback name. - Similarly, the config option BT_FEATURE_VS_DBG_EVT is renamed as BT_FEATURE_QUALITY_REPORT which depends on BT now. - The BQR is controller specific. There needs to be a valid hdev in the first place. This is fixed in set_exp_feature(). - In set_exp_feature(), bluez will only set experimental feature to set BQR when the feature is supported. Please refer to bluez CLs. - Also refer to bluez patches for the decoding support of btmon. Changes in v3: - fix the long line in the commit message Changes in v2: - take care of intel_newgen as well as intel_new - fix the long lines in mgmt.c drivers/bluetooth/btusb.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 8c4e3977cce2..30462de288c7 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -2870,7 +2870,6 @@ static int btusb_setup_intel_new(struct hci_dev *hdev) u32 boot_param; char ddcname[64]; int err; - struct intel_debug_features features; BT_DBG("%s", hdev->name); @@ -2924,15 +2923,6 @@ static int btusb_setup_intel_new(struct hci_dev *hdev) btintel_load_ddc_config(hdev, ddcname); } - /* Read the Intel supported features and if new exception formats - * supported, need to load the additional DDC config to enable. - */ - err = btintel_read_debug_features(hdev, &features); - if (!err) { - /* Set DDC mask for available debug features */ - btintel_set_debug_features(hdev, &features); - } - /* Read the Intel version information after loading the FW */ err = btintel_read_version(hdev, &ver); if (err) @@ -2971,7 +2961,6 @@ static int btusb_setup_intel_newgen(struct hci_dev *hdev) u32 boot_param; char ddcname[64]; int err; - struct intel_debug_features features; struct intel_version_tlv version; bt_dev_dbg(hdev, ""); @@ -3021,15 +3010,6 @@ static int btusb_setup_intel_newgen(struct hci_dev *hdev) */ btintel_load_ddc_config(hdev, ddcname); - /* Read the Intel supported features and if new exception formats - * supported, need to load the additional DDC config to enable. - */ - err = btintel_read_debug_features(hdev, &features); - if (!err) { - /* Set DDC mask for available debug features */ - btintel_set_debug_features(hdev, &features); - } - /* Read the Intel version information after loading the FW */ err = btintel_read_version_tlv(hdev, &version); if (err) -- 2.32.0.554.ge1b32706d8-goog