Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1222462pxj; Fri, 18 Jun 2021 02:17:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGRmt15gHlxf2iUx5qYqO+Ngvs2ll+MDxYOA8Udm1kDHoaP5TcsZ1Os8oFdUqcWeQ/B9bt X-Received: by 2002:a17:906:edb3:: with SMTP id sa19mr9872950ejb.75.1624007871076; Fri, 18 Jun 2021 02:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624007871; cv=none; d=google.com; s=arc-20160816; b=AnTKWdIDZFDWhZVpclaiXZDlKLJqxOvOzbyGzu7MHYeKrO5RqE+5/mYgorlbvIzuJk hSTEsh1Tw8rMlxUGxXWl0kaZvQm7gWtE51QF0taslE/3gcFiJxtwvyo5ttsOjtaff2UD WF6JltT8JdHmStd2UDPO8m+IDOLtdy2y42Y8NkvEP9DMHuu91ZrRg2A3PD7msgPoUNoz 0xEl+Yaxu33MgCy2Vci3QfkEyQs5L75hwqV7T+PagTSjTzUAGsfF8e9eBv8Tq1IE5F9x M9ZaNLtHfBRUSFn7lLgLsctGiNfMb/p/giyfCBEIZLUNYgGf8m45U3y4aR7fgyk8Hcql lzEA== 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=PNadQEIR3cQzWjVHVl6U6Trj5czCwGU5K/9fEbS0IFU=; b=wyX/Wr3UFUoul2pmEGSy5B8NzVYRidHw0/941ZtcMuPywD6AsoYvEbX5HRamGngk8I zDj8RxJouQx4HdqQNmlrUfXc4MccCTGjIL+DnraaouTG+89D1QP5ExpqNx50DDtJKcUv h78nr9uGsuKxYRKXrR8qnRYhye4WDUTnf9tpIx6Gm75tfYq1z/dXlB2+3q9kJKtptwBO FqGZKJg12SZO5Mbgs2LmM0BFuGnnC+D0mznQjEgstXdomo98S04z6qpG4UJE6Aphyy6K RR2jxFRLklNFT/9S0PM+PRBGMeieEkrIDaVkd/QovMxxCzakEl4iyWdObuKi3SBLJwsZ Ttjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NU8H2cHG; 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 e10si8011716edz.393.2021.06.18.02.17.20; Fri, 18 Jun 2021 02:17:51 -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=NU8H2cHG; 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 S232676AbhFRIDO (ORCPT + 99 others); Fri, 18 Jun 2021 04:03:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232453AbhFRIDD (ORCPT ); Fri, 18 Jun 2021 04:03:03 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2695EC06175F for ; Fri, 18 Jun 2021 01:00:46 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id t19-20020a17090ae513b029016f66a73701so272126pjy.3 for ; Fri, 18 Jun 2021 01:00:46 -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=PNadQEIR3cQzWjVHVl6U6Trj5czCwGU5K/9fEbS0IFU=; b=NU8H2cHGLU8WEZ5cFDQ1P4KyBmnlbSWQ3asS8zTU2HWSpaLBo1Qq1YgqMQRniXV215 zsPaU4Lv+/GkMn8szM2Mww/8H9FOeSNPT5cYd6zx9YJLYb/JNUn67jGYBeRn/ydFG8/A 8ZN88h6ngwT4VeZmiHLk+IpA8YnqvoW6VkLFQ= 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=PNadQEIR3cQzWjVHVl6U6Trj5czCwGU5K/9fEbS0IFU=; b=qZEzWoD71HuHSS0qkSKIC0Gtlj3BfrrKVIN3hRSGxZYPBGetv4F9eRsCBdUIrVsm2S A2DiIA7WsakacQjsIRM036S3RWDmX0WYinyREOTKQIU6kGTLJRpPjWyASals8LGDE0bo Kc3gIzYGFfV3U9Fq6G7pjxN7J5kapgBssBqcZGrCa+6DzCFhDnwNn9wXVlQuNuSt5n+d CUxBqfX/gGflEO37dMaeEhoMBMn6nTPyoRClE6mx/cXtCEG75Z6V8uPQaF2UDTxdTF40 0kFwBkPgIwcko8FJZ9ts5jAKQzCRM4i+c6H/YnxqBbyTE986oNyryzga5BKmHllOUEFR 0T3w== X-Gm-Message-State: AOAM532g89xyanAkbnwuwVPNM3IbHh8kIEkWHmJCUncerMFSlV7UZKlu 8qfkC2DrShwqR+AagprEji/gWtAx3gEkuQ== X-Received: by 2002:a17:90a:4e02:: with SMTP id n2mr5852194pjh.80.1624003245264; Fri, 18 Jun 2021 01:00:45 -0700 (PDT) Received: from josephsih-z840.tpe.corp.google.com ([2401:fa00:1:10:6cbb:95eb:e2ae:8479]) by smtp.gmail.com with ESMTPSA id v21sm7341671pfu.77.2021.06.18.01.00.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 01:00:44 -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 v4 1/4] Bluetooth: btusb: disable Intel link statistics telemetry events Date: Fri, 18 Jun 2021 16:00:36 +0800 Message-Id: <20210618160016.v4.1.I41aec59e65ffd3226d368dabeb084af13cc133c8@changeid> X-Mailer: git-send-email 2.32.0.288.g62a8d224e6-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 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 | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index a9855a2dd561..4c3b26c5e507 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -2850,7 +2850,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); @@ -2904,14 +2903,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. - */ - btintel_read_debug_features(hdev, &features); - - /* 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) @@ -2950,7 +2941,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, ""); @@ -3000,14 +2990,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. - */ - btintel_read_debug_features(hdev, &features); - - /* 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.288.g62a8d224e6-goog