Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2601867rdb; Mon, 4 Dec 2023 02:08:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHN9T/oLDk5uInd2TnYpLZVwl9T6rYFwhamLsj4NM9FwxPU0kbSWCyu6ExQxMJCMSIfosv6 X-Received: by 2002:a92:d0c1:0:b0:35d:5027:bc4c with SMTP id y1-20020a92d0c1000000b0035d5027bc4cmr4410987ila.17.1701684492300; Mon, 04 Dec 2023 02:08:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701684492; cv=none; d=google.com; s=arc-20160816; b=KSQYKWdS5MIBkwNpG1PPbJkEbzRaWBgS9LHnplSxwi5N5hQ7f2eAfd2ADaPZagiWQM Ua4Qi8/n/da4T+MCVCyVrwcTVQgiLxWyPo1KhpDje2cvwm8JU0OT+MCiZoyWLzh7Qs4N YJRxmrTb7WL63XTUiA6uzBN7TpFb4vfNH2eZwUHxcoQydMJc3NyAUNBbW7L/jwtZrRUy BoF6NA2OL6b0dQsITZAbnx6F0VWRdcBlR9uAReHcGX5QBUzItlZjLjuZNUL4h4cb2Gbq tW0KPv9HvawEtLTY4eWEyYPY9+fWjXgC2liXW87JFbIelGdEZ+QJQqEH6+eX6w7Ddm78 e8QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=kyr5GPSjSh/RYjNCjbA/rUu758zWFmvYwoDQF0VLZc0=; fh=kFQREZe4wAUURmUHy3mY+Cx7SMBi5ScG+zu7JBzNYUE=; b=Gkyfc8kGPO5XEemK/2F7bdumHJr7dcXEELJFuyTidqt/HvzpindPxjVeAR3zXaUeBR s+sRr8I7kpmqoFbU7IOJBy3Mnk5GIb40uxTM+mJkpLd75MJK1XmVn6g1/C63tss+dVvJ zOf922PgRY+nAkZsfxd7TCrHEcyPBYbOI/xdFlqzWlpdMjwmgP2fK0MsrljSbQE+NJ9E xRwWyIIfMl8ahV4GIw7zvSYsaNrqBHAoeSViE45MFqZQPgov9YPV1Qn1FKzkr4z30sAW 5v2YNZPlG2x4KQMJpRLFjvonn0X8gUH/01k+f5+eq46aq1sMq9LiA0LKocLkWuiqfyMf cCqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JSGELP0I; spf=pass (google.com: domain of linux-bluetooth+bounces-360-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cb10-20020a056a02070a00b005c69365abbbsi1094853pgb.318.2023.12.04.02.08.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 02:08:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-360-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JSGELP0I; spf=pass (google.com: domain of linux-bluetooth+bounces-360-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id ED0F9280ED5 for ; Mon, 4 Dec 2023 10:08:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 879EF1EB4B; Mon, 4 Dec 2023 10:08:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="JSGELP0I" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB080B6; Mon, 4 Dec 2023 02:07:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701684479; x=1733220479; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LB2msYuHbVBbT2sen68LQlC3A1iL6Pk3GW17gEzOLH0=; b=JSGELP0IcQVi5WmsTT0w+2vhHTpPdPHSCLZLmqDmoG1G5i5ucgzERHAs jcBTGkyNGTm6eF+JoK8eku2kNeTIHIKaw43A+HKevLte5hpvv22jHNHbH rljO6fSiH6xFMkWWmtvlUi/m+tWjygHI7zTFDjeoqgSk0ETnGnvq5uWib dW/ktoZ9WgOmc8MId00YWRzVNGutIujl0fpE6CPTF486od04+JyfhftOq 7GhXNO4Zv4GnGTjAT1gGobxr2i8mxN/NAM974ozN9TkMF+FYMa6oKb1rk kQJSf9cWff53F5j3YR+Z30TpnI0cEHoFO/1vtis/41b4EahIO5ZUVqNY5 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="373898273" X-IronPort-AV: E=Sophos;i="6.04,249,1695711600"; d="scan'208";a="373898273" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 02:07:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="888481091" X-IronPort-AV: E=Sophos;i="6.04,249,1695711600"; d="scan'208";a="888481091" Received: from mattu-haswell.fi.intel.com ([10.237.72.199]) by fmsmga002.fm.intel.com with ESMTP; 04 Dec 2023 02:07:56 -0800 From: Mathias Nyman To: Cc: , linux-bluetooth@vger.kernel.org, mario.limonciello@amd.com, regressions@lists.linux.dev, regressions@leemhuis.info, Basavaraj.Natikar@amd.com, pmenzel@molgen.mpg.de, bugs-a21@moonlit-rail.com, Mathias Nyman , stable@vger.kernel.org Subject: [PATCH 1/2] Revert "xhci: Enable RPM on controllers that support low-power states" Date: Mon, 4 Dec 2023 12:08:58 +0200 Message-Id: <20231204100859.1332772-1-mathias.nyman@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <3d3b8fd3-a1b9-9793-b709-eda447ebd1ab@linux.intel.com> References: <3d3b8fd3-a1b9-9793-b709-eda447ebd1ab@linux.intel.com> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This reverts commit a5d6264b638efeca35eff72177fd28d149e0764b. This patch was an attempt to solve issues seen when enabling runtime PM as default for all AMD 1.1 xHC hosts. see commit 4baf12181509 ("xhci: Loosen RPM as default policy to cover for AMD xHC 1.1") This was not enough, regressions are still seen, so start from a clean slate and revert both of them. This patch went to stable and should be reverted from there as well Fixes: a5d6264b638e ("xhci: Enable RPM on controllers that support low-power states") Cc: stable@vger.kernel.org Cc: Mario Limonciello Cc: Basavaraj Natikar Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-pci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 95ed9404f6f8..bde43cef8846 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -695,9 +695,7 @@ static int xhci_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) /* USB-2 and USB-3 roothubs initialized, allow runtime pm suspend */ pm_runtime_put_noidle(&dev->dev); - if (pci_choose_state(dev, PMSG_SUSPEND) == PCI_D0) - pm_runtime_forbid(&dev->dev); - else if (xhci->quirks & XHCI_DEFAULT_PM_RUNTIME_ALLOW) + if (xhci->quirks & XHCI_DEFAULT_PM_RUNTIME_ALLOW) pm_runtime_allow(&dev->dev); dma_set_max_seg_size(&dev->dev, UINT_MAX); -- 2.25.1