Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1436968lqh; Mon, 6 May 2024 07:45:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWLYmh97J8Oj6G5H4Gk0t675Q3FHhyucXMJXpg7/HLWI2EHjvEpGhLFu9eoWpWyFeITUNp0Hok/VTRfCH5VnPulMBPwFStUY4h225yKfg== X-Google-Smtp-Source: AGHT+IFW8EyDrpLx7BS8W/zg9jseAZD0nuepwGevmdnJExxWEdPCIPiF4IOYDqIJrOrjT+I/7WrW X-Received: by 2002:a05:620a:d83:b0:792:9148:960 with SMTP id q3-20020a05620a0d8300b0079291480960mr7067550qkl.22.1715006730491; Mon, 06 May 2024 07:45:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715006730; cv=pass; d=google.com; s=arc-20160816; b=v5WPlYsa0388L70swAtQ3i4jXSCQlopqFeNcVdc6qs+QFv6uXHE5TY0s9JSWZqagZC tNiDZUpwWEld6/eHWZDJ83L2FkHfTCpBXm3IDutlvQr704TRM3tjiPzlDlR+wEdl/lxg zN6f5AcPpFnmPgQyp2WlLuehWbBPDd0E00LxypP16Ka43DQZ6QERBUzPo3LMjvjXcaWY lwNUAlqKGOZxxfbr/F8eSfKh9pF38++GMA2PcVAM5r3XF7+CvJLQajHdhZle/IFNgjU3 ZIE3ewV9Sq1Kqsk4SLHfEz9+oKnaM2kt4fcRKwffBcfOYPeyKWIhRKzAgqyKxYJ3JhNw lrKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:date:from :dkim-signature; bh=1K57L2uvHYGq1jFrfCgwf9KQ1FvNMS6kFYDQMeRDT4o=; fh=RBuzQfzkcRgXAUvrU0IuuNgnn+20DhgjPKJzDASBujU=; b=fls/QdsASece1QWGqdThRbkOrjelWuDLOn5KIPc+KA1O8R4UqmhQQi5Wwge8tRo/0J I1MT3cR+XxFuKxxoGjJZBgdko3b4OKfR6exHAOfwbMcsc1yCtArMPC+GL+392APpMdet t1ifXUgFjqwIDKVvYA0apBxMkLG3wZJZGP55gr7M5R+Sd4vQyI4xeo31hYsMG/ve4MPa xtUXN/EJvbFzRAXEgTJMVh5j2nqkOQDvS90rJl/RwyPvReyw9oaJDe75/wjcj09HgfgI 3EMKCmR9b+q608hYR10Hga2F72/+Wg3ENg+78idXcWmHAlLDr/GFl/RQGplFctkL/iY8 ivFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cN6LDqTR; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-170015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r18-20020a05622a035200b0043c7a71fa5csi9703430qtw.242.2024.05.06.07.45.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 07:45:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cN6LDqTR; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-170015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170015-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 270BB1C20D4A for ; Mon, 6 May 2024 14:45:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA104153584; Mon, 6 May 2024 14:45:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cN6LDqTR" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 782EF153512; Mon, 6 May 2024 14:45:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715006723; cv=none; b=bbYL+5FIa8PYNtlLDBp/RIlIA0JHDbti4wFkdTV6QtpYXbWFlz0OhyhXa5qOyzTgmNWjPZVWUyX1uVLjDu1v/p2d70Nb6tS3cyzexQf/8sC1kmxuhExzazE2/OWz+h8LOd7tWIRx1SCIDwg2EjNQrZBY8xW2kpkhViUAX6qmKEo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715006723; c=relaxed/simple; bh=qqPt7Wt7gYvZOnYBUvmkMGDflLZVCnnovZFb11ykGlc=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=mTRy1lwNnQAC+WV7IudMbjQ2Kbwq8Q6CiwTVCcfVxMBzriPoWpA1peFf2QFFUvoocsfYzfaHl0XLrL7l97W2AleXFcgO54/biQMGu6vZWSbLRpx3qxt1zwAlQz85iZunklpgYmPrTXq/TcnPGkwNel7NR5xRmYud4PutR/igulM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cN6LDqTR; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715006721; x=1746542721; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=qqPt7Wt7gYvZOnYBUvmkMGDflLZVCnnovZFb11ykGlc=; b=cN6LDqTRjfASwhXbl7ZCmTVUGqdgFuVo2xfUTyouF2G4nP12DjFaAZF4 UZJN0o+Ey9appAXzMTdc+PHM5stBXHXFdT1nBws/eWUHd7llbXcdse0zf /2aV2HwLMmOtCg+cr3rJKhgEOSgT8gw/7RoTOawvsytqd8N2/S+6ILW3B 8ODVIk6vS5QsJmHUqfVCjDJyAayDQMF1XDO3LwjdY7bz8SDLUR/Dhz+df GSQD7Z+ZkFgV4ee3n5y+dGGaEnCwlDfvrSj580cFauYRP+YLSqpdQGCx6 VGMfILYpxaeFQL+qELy7LlymBdDW4B2XfWlWqXeXtp00m2QYXYjwNLZa0 g==; X-CSE-ConnectionGUID: le1S7EXtSVqElWiC0g7MrQ== X-CSE-MsgGUID: DuGJc6QfQpmiolRUmg6xxg== X-IronPort-AV: E=McAfee;i="6600,9927,11065"; a="33260549" X-IronPort-AV: E=Sophos;i="6.07,258,1708416000"; d="scan'208";a="33260549" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 07:45:03 -0700 X-CSE-ConnectionGUID: jPYMcEo7SUur/4ZIDivb+w== X-CSE-MsgGUID: G5TNy78UT2K8v2ENday/Wg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,258,1708416000"; d="scan'208";a="28579550" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.68]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 07:45:02 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Mon, 6 May 2024 17:44:57 +0300 (EEST) To: Kai-Heng Feng cc: bhelgaas@google.com, linux-pci@vger.kernel.org, LKML Subject: Re: [PATCH] PCI/ASPM: Fix a typo in ASPM restoring logic In-Reply-To: <20240506051602.1990743-1-kai.heng.feng@canonical.com> Message-ID: References: <20240506051602.1990743-1-kai.heng.feng@canonical.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323328-470952821-1715006697=:1111" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-470952821-1715006697=:1111 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 6 May 2024, Kai-Heng Feng wrote: > There's a typo that makes parent device uses child LNKCTL value and vice > versa. This causes Micron NVMe to trigger a reboot upon system resume. >=20 > Correct the typo to fix the issue. >=20 > Fixes: 64dbb2d70744 ("PCI/ASPM: Disable L1 before configuring L1 Substate= s") > Signed-off-by: Kai-Heng Feng > --- > drivers/pci/pcie/aspm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c > index 2428d278e015..47761c7ef267 100644 > --- a/drivers/pci/pcie/aspm.c > +++ b/drivers/pci/pcie/aspm.c > @@ -177,8 +177,8 @@ void pci_restore_aspm_l1ss_state(struct pci_dev *pdev= ) > =09/* Restore L0s/L1 if they were enabled */ > =09if (FIELD_GET(PCI_EXP_LNKCTL_ASPMC, clnkctl) || > =09 FIELD_GET(PCI_EXP_LNKCTL_ASPMC, plnkctl)) { > -=09=09pcie_capability_write_word(parent, PCI_EXP_LNKCTL, clnkctl); > -=09=09pcie_capability_write_word(pdev, PCI_EXP_LNKCTL, plnkctl); > +=09=09pcie_capability_write_word(parent, PCI_EXP_LNKCTL, plnkctl); > +=09=09pcie_capability_write_word(pdev, PCI_EXP_LNKCTL, clnkctl); Reviewed-by: Ilpo J=E4rvinen --=20 i. --8323328-470952821-1715006697=:1111--