Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1793435ybg; Thu, 30 Jul 2020 02:52:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvBLwPC5tqdtDgrMO99TWCee2Uzfmdgg2wAf2o4j66tBbeuQa1wfrDBUBAvW9u8fcLWrJW X-Received: by 2002:aa7:cc98:: with SMTP id p24mr1870616edt.333.1596102766224; Thu, 30 Jul 2020 02:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596102766; cv=none; d=google.com; s=arc-20160816; b=SVQ3QfuHfAJ45RI4YkhJpU0jPRGONaNxBtqmdQufqJURiSQQOZyXOZARGO7qhozGk2 6Pf4+ANEQQP/5DQMgRMH70Zhdy3+zJ6Ntsu6ewlszGDf6y9A5GFXasAcbVmK/FxT7z9S QqAM9x41odzvQ7J7es7TjRk5xb2FzVNyFWzGkeIvo9Zc6+qBtJwDbHEnCA/fqkkZ7wfP EMgaQPabVJY4fFFY1EUOzkX6ZwnLbLxvaHxOVOsWKWXzp47Yb4X+PO5QBY3Lh0OGQzJz /4G2n71YhIqqZTO7xmAK7CPyRqMjimXFvBbS05zshlgIiDyXUCTYnfSZtaxm4Q8zPALr JCVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=LJDODr/yArMREkYZ3xrftrvP0RDMYmGCT1ZWkWEjpSs=; b=tr62y9RwpIUvw6rWbNYBl7XlUTlqbFFU2pLz7VK1vhlHx1V81YmOwe7uFCGi/K6Vj8 dcKPJKMm66lg8Bz360VjeDv3fvf54ewKuPgy/yKl+w4RFJfB2kTWrKiyXtRKGAw4dhxP jGaW2k7ZO5v1U6nQ0vbfief9MCCxjpOqgE6aG1EtbG0XJe5ZlhcWZ/w3t1Aa2/jkyZoY sfzTWkcOzEGVSL2k/JT0myGpRJUGzSBb/eYT5odnFDCJThugi3q8FHNFcJlQQZmRlrx3 FldAYfSTlquw5ms+xHowqJYGMtBh5BKy+Jncc684GExE+UCcpKj6anzWNrclDBMIPV9b ntdQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si2959674edw.303.2020.07.30.02.52.07; Thu, 30 Jul 2020 02:52:46 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726790AbgG3Ju6 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 30 Jul 2020 05:50:58 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:44788 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726868AbgG3Ju5 (ORCPT ); Thu, 30 Jul 2020 05:50:57 -0400 Received: from mail-pj1-f69.google.com ([209.85.216.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1k15DC-0001oX-EB for linux-bluetooth@vger.kernel.org; Thu, 30 Jul 2020 09:50:54 +0000 Received: by mail-pj1-f69.google.com with SMTP id cp23so1883458pjb.9 for ; Thu, 30 Jul 2020 02:50:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=z6azR+BaptW7sOFFycRZIdapi2fWCVCt97iunL8FEoU=; b=ZhS/UExQYhyFCNYFdrp+o5ry0jFAADi2Q92GpmTimUbqkDGASrY/dx+vCeuujy21jn cOx7mzxO+yFprqseq+kHwUMiGZwxRUIhP+ZfHWVSFbx06krhELjfbNVQXLK9B9211fGZ jxVx+zwnipqmXtCk4OBoWtEzRlUQxAReHIGpdKFeghVHBgG6nGYgfpMfFKdvN7Ht5HNK KJ59oq9kGHG5jYH8xhPObJnN8P9wHmaxdY3tRwGe3eY7dOua1uaEu/S7Ytz8EsC/CtbH sacn1M1y5kxftlLhNAC4LK+hXZU6YOd5sRWf4PirQei2nQmhiF9627/0JvyiDjQ0IrFG aVjg== X-Gm-Message-State: AOAM5328+yA/IyB9cR4N5StMLbZ4CH2a0r6yXjd8AYiy/Gur+GkbkP62 RqzcUnIhZJ4esrWt82DHIRYvn7JYx9D7nfqOIx/S9evvz0Mf9SqC2TgLHqpk/e3Ztx4Ui3s3mL5 PDxnZIrNYadbxI7jLOdimlxN790kIUGzD4+jBjONHTeDAaA== X-Received: by 2002:a63:6dc1:: with SMTP id i184mr33887098pgc.345.1596102653022; Thu, 30 Jul 2020 02:50:53 -0700 (PDT) X-Received: by 2002:a63:6dc1:: with SMTP id i184mr33887060pgc.345.1596102652602; Thu, 30 Jul 2020 02:50:52 -0700 (PDT) Received: from [192.168.1.208] (220-133-187-190.HINET-IP.hinet.net. [220.133.187.190]) by smtp.gmail.com with ESMTPSA id q17sm5410652pfh.32.2020.07.30.02.50.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2020 02:50:52 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: [PATCH] Revert "Bluetooth: btusb: Disable runtime suspend on Realtek devices" From: Kai-Heng Feng In-Reply-To: Date: Thu, 30 Jul 2020 17:50:48 +0800 Cc: Abhishek Pandit-Subedi , chromeos-bluetooth-upstreaming , Bluetooth Kernel Mailing List , Alex Lu , linux-pm@vger.kernel.org, Johan Hedberg , linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <8FE329BB-706A-4D16-950C-A7571FE0B40A@canonical.com> References: <20200729161740.1.Ib03d0827c8e48fc3df887fec698f79fa335c9274@changeid> <8DFB5D1A-AA7E-4960-9937-4FD00827937B@canonical.com> To: Marcel Holtmann X-Mailer: Apple Mail (2.3608.120.23.2.1) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org > On Jul 30, 2020, at 15:30, Marcel Holtmann wrote: > > Hi Kai-Heng, > >>> On Jul 30, 2020, at 07:17, Abhishek Pandit-Subedi wrote: >>> >>> This reverts commit 7ecacafc240638148567742cca41aa7144b4fe1e. >>> >>> Testing this change on a board with RTL8822CE, I found that enabling >>> autosuspend has no effect on the stability of the system. The board >>> continued working after autosuspend, suspend and reboot. >> >> The original issue was found on 8723DE. Do you have one to test with? >> The rtw88 codebase has changed a lot and maybe it's already fixed in mainline. >> Let me do some test and I'll report back. >> >>> >>> The original commit makes it impossible to enable autosuspend on working >>> systems so it should be reverted. Disabling autosuspend should be done >>> via module param or udev in userspace instead. >>> >>> Signed-off-by: Abhishek Pandit-Subedi >>> --- >>> We have a few Chromebooks using the RTL 8822CE part over USB and they >>> are running without problems with autosuspend enabled. While bringing up >>> a new board, I found some power regressions that I was able to narrow >>> down to this change so I'm requesting a revert. >>> >>> I tested this on Hp Chromebook 14a (running 4.14 kernel and 5.4 kernel) >>> with this revert: >>> * Enabled autosuspend, used it normally with a HID device >>> * Suspended the Chromebook and verified it worked normally on resume >>> * Rebooted the Chromebook and verified Bluetooth was working on next >>> boot >>> >>> I didn't see the issue that was originally reported with this fix. For >>> the original reporter, if you're still seeing this issue, there are >>> other ways to disable autosuspend for your device: >>> * set module param: enable_autosuspend=0 >>> * change your kconfig so BT_HCIBTUSB_AUTOSUSPEND=n >>> * use a udev rule to disable autosuspend for specific vid:pid >>> >>> Keeping this change in the kernel makes it impossible to enable >>> autosuspend so it should be reverted. >> >> It's apparently a driver/firmware/hardware issue, so the fix should keep inside the kernel. >> However, the fix can be more precise and target only 8723DE. > > lets do that and lets do it quickly since the merge window is close. Otherwise I really have to revert that patch. Ok, I no longer observe the original issue with the patch reverted. Acked-by: Kai-Heng Feng > > Regards > > Marcel >