Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp497263lqs; Thu, 13 Jun 2024 17:29:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzlpB70MNXciTSt2Z1Nj+eIAcCchsZlSHwvzCS0IvWV7R/NcprPK9eHLJoaTO3D3T++LnlBXQXUJK2fiERkgyOmbhHJ8eGaBRzmmMgLg== X-Google-Smtp-Source: AGHT+IHAg9tJwwa7cfMBXMkUOswZKzMmSaqIgHnqG75IFa6xRbQTwA/tPkDGMmIvYjXSDtsFkXHc X-Received: by 2002:a05:6a00:9a0:b0:705:d8f5:765e with SMTP id d2e1a72fcca58-705d8f577ecmr908095b3a.5.1718324979594; Thu, 13 Jun 2024 17:29:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718324979; cv=pass; d=google.com; s=arc-20160816; b=rX+uBcx93T03lvpM2OuACpCK/CiKxjSiOsl2BPehuM84G6oQZ7qkegaDxkZw91WNqc JRXcnY9gaAgRU+dfzyzXuFj/1fHe8fYzbCKgjAX15vVUTrB39TYJ7pSLkMmZ85Dsz/uK jByVEt1M0Tvk53dosDqWE/EeW5MUmoInB2SEaMTXQWzubPj5X7qWJbElJ9ns8ySjbb93 CfBENvYLBHnI/21K+oca6qC1hNnluXG+q4eXySwzdlaKuovKu4Ka2QQ3vOn+mvsuQBzo /0YbKxws3qr5AgnXJTGKzsYtlnPjtFZtaPXMWTUmL9ONiNPysjhK9eP9N3cLR3hGDSDh xNOQ== ARC-Message-Signature: i=2; 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:message-id:date:subject:cc:to :from:dkim-signature; bh=vAXuwHTaTYrsYM6s/dd4FG1g6cVtV1H7rdN2ktdyH7c=; fh=0iB9YGO6gyxCZWfsPysF2zwpMjeYBa4yA+114yjtq0A=; b=moJWlow/tyLbkisUCJbr6eNxxXZirx8kk1nrbvC23NWIm9ZxzV9sPqrY6F8VHQ4q4v 3MPGcJUJsr8/wNHZ8vSuWtP/lDqhXzrP2g4j0z3m/lR2Pj4xGN+56Pz/OSI8OMb7xNbe kRS3dqoWhOiTi0ztwnZ0yInmdzaJu7LyJabDkC34AilEK/rwNrVdAAhf38cTLKH5Y6fb Iup4aRtuTYG6xT1WPjAfO/9C3+0tj2NeE45KRYv9a0SuH0CsUllKMA21x7hkkMBBBTV7 8UhQ2jna1do0N1wngkfPlppvRrzGZL6niGQWNVXhvlwEgfFcQdKApaR+4TYBQ6JVN+Hf TtwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k4jTeNhc; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-214146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccbc7d57si2476555b3a.383.2024.06.13.17.29.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 17:29:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k4jTeNhc; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-214146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 C8E8B283BA7 for ; Fri, 14 Jun 2024 00:29:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6CBA4A1E; Fri, 14 Jun 2024 00:29:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="k4jTeNhc" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAD2010E5 for ; Fri, 14 Jun 2024 00:29:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718324970; cv=none; b=U1X7trC/MqVEozBgPkoFmd6tMSdf/xykAUk0n5vSgOEiI+DymRfO4r1vv21Il/LzfIPZ0ZVrwD+4gMXb8uF7/uYID+hcp2JYILjwIyHBcAw2F1i4GJDWF3tIqecwNeGnmvwDHy3kvTwoAiQhG91m19o/kbcOAILYpQnNVvadpUk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718324970; c=relaxed/simple; bh=T2he062ue1HNH8zhVhTmZYo97bqquj2cJtHADAM2+wQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p+P6RHzUxoIDRzf8Mp23yU0PJJpqwxDhFmDWhAOODdV8mHZCLAniV7BTifUU45zNso0uZ4V8DYDhGLUT9/8HeZ2nULNxQUFLgMsnaxDIKwQYadhzHpVloABvN5EVtb5f6EnywDODBwD/dkSMmVtM5jt4sshaPMPhkpVZauIvrmg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=k4jTeNhc; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1f6559668e1so14573575ad.3 for ; Thu, 13 Jun 2024 17:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1718324968; x=1718929768; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vAXuwHTaTYrsYM6s/dd4FG1g6cVtV1H7rdN2ktdyH7c=; b=k4jTeNhcXiU5xbTxGYcBd6b0gM/QBZyu3Wdg+36mdfW9Uozs5NOMdnfkCx2AQn/2YF dg3yCWSLeIP8TROdmbFEPcaNVC2th9knOkGitlZiGXdYPjB/B3CE1ZkQnjrxC4+2arGm qU0S16/F+r5/Ro0G8dEJi6+dVjQmsKn6t0pAM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718324968; x=1718929768; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vAXuwHTaTYrsYM6s/dd4FG1g6cVtV1H7rdN2ktdyH7c=; b=d3l023H7kJg80E8QoGhAXdkQpfHy7wf3Teemx7w3hvHkmcPVMxtOPj+Nzq/rya0c6z vYpT0AAgAYmLZRr1RBdPR40iKuIHyk5ZS1vVO7KMabWtfJkQLc1pl6nA4ddfoiKe+5/X T9cL4oL7iS01ODuu4Icn7Y5Cb4Z+d8kdXo3p3gGJCphVkl7qD3MFhpd7u2NFwCXRpwFq 81fRQVAskmyBkhG+0d+myrwX5CtaTciAwML8quhCK0Ri2SsBedl9+WpfvEnCEk1U7e8s jd3/X8d6B6OaqeTxr5UMw02fOR2GT8scbP40Ppg9PrvvedxsCDIArUTdHNlfBeAHj1AR PCsA== X-Forwarded-Encrypted: i=1; AJvYcCUkeDpYMEYmOGcL8XmqDHnipfht0BfK0LeL0GriHH4uU2k09cFjdpURRer9NM1QHZhTh6+y6Z/9Y2u+1di2jMBP1XHMnMoyvOs9S/5/ X-Gm-Message-State: AOJu0Ywu84mP3v+enHW11+HapbeoWV8L0AWdsi6iGizQRsBYvQxNWPF6 /1j8yQipnZgSb7yJfU8IrWp82Nhv6KPGih5MIToalUPWQuIB+839Xptu/So4iw== X-Received: by 2002:a17:902:ce87:b0:1f5:e635:21e8 with SMTP id d9443c01a7336-1f8625ce721mr14599345ad.2.1718324967771; Thu, 13 Jun 2024 17:29:27 -0700 (PDT) Received: from rekanorman3.syd.corp.google.com ([2401:fa00:9:14:b30:9938:9b1b:b70b]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f855f3946esm20203555ad.269.2024.06.13.17.29.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 17:29:26 -0700 (PDT) From: Reka Norman To: Mathias Nyman Cc: Reka Norman , stable@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v2] xhci: Apply XHCI_RESET_TO_DEFAULT quirk to TGL Date: Fri, 14 Jun 2024 10:28:19 +1000 Message-ID: <20240614002917.4014146-1-rekanorman@chromium.org> X-Mailer: git-send-email 2.45.2.627.g7a2c4fd464-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit TGL systems have the same issue as ADL, where a large boot firmware delay is seen if USB ports are left in U3 at shutdown. So apply the XHCI_RESET_TO_DEFAULT quirk to TGL as well. The issue it fixes is a ~20s boot time delay when booting from S5. It affects TGL devices, and TGL support was added starting from v5.3. Cc: stable@vger.kernel.org Signed-off-by: Reka Norman --- Changes in v2: - Add cc stable drivers/usb/host/xhci-pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index c040d816e626..137bd3da1128 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -49,6 +49,7 @@ #define PCI_DEVICE_ID_INTEL_DENVERTON_XHCI 0x19d0 #define PCI_DEVICE_ID_INTEL_ICE_LAKE_XHCI 0x8a13 #define PCI_DEVICE_ID_INTEL_TIGER_LAKE_XHCI 0x9a13 +#define PCI_DEVICE_ID_INTEL_TIGER_LAKE_PCH_XHCI 0xa0ed #define PCI_DEVICE_ID_INTEL_COMET_LAKE_XHCI 0xa3af #define PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI 0x51ed #define PCI_DEVICE_ID_INTEL_ALDER_LAKE_N_PCH_XHCI 0x54ed @@ -372,7 +373,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |= XHCI_MISSING_CAS; if (pdev->vendor == PCI_VENDOR_ID_INTEL && - (pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI || + (pdev->device == PCI_DEVICE_ID_INTEL_TIGER_LAKE_PCH_XHCI || + pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI || pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_N_PCH_XHCI)) xhci->quirks |= XHCI_RESET_TO_DEFAULT; -- 2.45.2.627.g7a2c4fd464-goog