From patchwork Thu Apr 11 01:32:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 1922320 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VFMdv1mKBz1yYL for ; Thu, 11 Apr 2024 11:33:07 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rujJE-0004hI-EM; Thu, 11 Apr 2024 01:33:00 +0000 Received: from mail-pf1-f182.google.com ([209.85.210.182]) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rujJC-0004gI-2v for kernel-team@lists.ubuntu.com; Thu, 11 Apr 2024 01:32:58 +0000 Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-6ed04c91c46so5358108b3a.0 for ; Wed, 10 Apr 2024 18:32:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712799176; x=1713403976; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=59mrKkNtekEgiaY238JoqF5N2EE3kwP1Htc32GkA70w=; b=KIetOcuYC8gFzXkKCasNZHtgpR+JHoAEMr6jwY+lSMSwnbt0VlO/Y4YGlPpAezDcdj H58ZUo9n2pm7JJ4eZ6jq+wqSwqwtB6UyezX7THZR2e/ZUx3wVNTjQNkWzym+EtvrcCbo fVBfMx33BVkSCO45flbGAP39Pzr0e3yjqjwTc9SleTQU/sIpOhxzqpwZ6tUNl4QYcPvS pMVg5Q6Vo1UsKJ0aKVRKpY0u0p7WQ5o70U49qKvufNnvqJzK3exkn3a0OOG+9Et2sLXG gylbvd0Gm7tRWF0+fBBXSigjFECn3y0PNv28aPBpO1oW49KGx5TRrU7CBgBWBVA8Bb+h tGvg== X-Gm-Message-State: AOJu0YyR0nt46BfzcE/kOpVp1IhoKD1URg6Ep2ZKKL4nphho/cMrlCjL GjDZUdwn2J2UJ5HfDmHxCGhj31Jx3ysxigrjYizMblB7RSqvMhph8HM3dlEL X-Google-Smtp-Source: AGHT+IFZMSS+g9E0nDwjHcNyQZcOSIURF7Wza74co2YcUVs/Gr0M6wjCDPRcDOixaqBBgRGtXMR62A== X-Received: by 2002:a05:6a00:17a0:b0:6ea:b1f5:112b with SMTP id s32-20020a056a0017a000b006eab1f5112bmr5676328pfg.21.1712799175861; Wed, 10 Apr 2024 18:32:55 -0700 (PDT) Received: from localhost (211-75-139-218.hinet-ip.hinet.net. [211.75.139.218]) by smtp.gmail.com with ESMTPSA id s23-20020a056a00179700b006ecf3ff65absm289136pfg.104.2024.04.10.18.32.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 18:32:55 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/7][Noble] Fix after-suspend-mediacard/sdhc-insert test failed Date: Thu, 11 Apr 2024 09:32:46 +0800 Message-Id: <20240411013253.184137-1-acelan.kao@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.210.182; envelope-from=acelan@gmail.com; helo=mail-pf1-f182.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: "Chia-Lin Kao (AceLan)" BugLink:https://bugs.launchpad.net/bugs/2042500 [Impact] checkbox test case, after-suspend-mediacard/sdhc-insert, failed. [Fix] The new series of the fix has been merged into v6.9 6d4266675279 PCI/ASPM: Update save_state when configuration changes 64dbb2d70744 PCI/ASPM: Disable L1 before configuring L1 Substates c198fafa0125 PCI/ASPM: Call pci_save_ltr_state() from pci_save_pcie_state() 17423360a27a PCI/ASPM: Save L1 PM Substates Capability for suspend/resume 1e11b5494c3d PCI/ASPM: Move pci_save_ltr_state() to aspm.c f3994bba8200 PCI/ASPM: Always build aspm.c fa84f4435a62 PCI/ASPM: Move pci_configure_ltr() to aspm.c [Test Case] 1. suspend and resume. 2. check if the error appears in dmesg ~~~ pcieport 0000:00:1c.0: pciehp: Slot(5): Card not present rtsx_pci 0000:05:00.0: Unable to change power state from D0 to D3hot, device inaccessible rtsx_pci 0000:05:00.0: Unable to change power state from D3cold to D0, device inaccessible ~~~ [Where the problems could occur] Hard to evaluate, these patches change the PCI/ASPM behavior and may lead to PCI devices work abnormal. Bjorn Helgaas (1): PCI/ASPM: Disable L1 before configuring L1 Substates David E. Box (5): PCI/ASPM: Move pci_configure_ltr() to aspm.c PCI/ASPM: Always build aspm.c PCI/ASPM: Move pci_save_ltr_state() to aspm.c PCI/ASPM: Save L1 PM Substates Capability for suspend/resume PCI/ASPM: Call pci_save_ltr_state() from pci_save_pcie_state() Vidya Sagar (1): PCI/ASPM: Update save_state when configuration changes drivers/pci/pci.c | 75 ++--------- drivers/pci/pci.h | 13 +- drivers/pci/pcie/Makefile | 2 +- drivers/pci/pcie/aspm.c | 268 +++++++++++++++++++++++++++++++++++++- drivers/pci/probe.c | 62 +-------- include/linux/pci.h | 2 +- 6 files changed, 292 insertions(+), 130 deletions(-) Acked-by: Stefan Bader Acked-by: Roxana Nicolescu