Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2123789ioo; Mon, 23 May 2022 10:34:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFd+1AkbR7BN9WXx540t8nVqWeE4KZx4gAby5KCorG2Fdejki+fIGdrOROyOJXys7oQSEz X-Received: by 2002:a17:90b:4f85:b0:1df:feb1:e27a with SMTP id qe5-20020a17090b4f8500b001dffeb1e27amr130938pjb.66.1653327256154; Mon, 23 May 2022 10:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653327256; cv=none; d=google.com; s=arc-20160816; b=NpZ6ApfI4Qy1EILevrNZTNmZqFFLyHD2HgShrAo6Iq2Pja9IgzckSnAdA74WA0N3Mv uBtnIJb8Eip0k91tHWWo9RbFKj+EpRhZgh5jNYHh38tFV7YiduxEBalaSAG6wZu8NDnx J1E696hWd133qBffWJwfdH19B8cjyDIN8LRTc4AzJjT+x1eF+QIhPo+6wTSsCTG6FtGX ZWDg6OKn8to+Hq8mNbM98kadBmhoUBW3haarAkk6eP8X9gkVsl9wAGlNyNy/Lsol7Ts+ LjzC2MYuIUFSTpRf+3FPkWDsfY7oNVc+YQ4Banilk9CLGu+ciY+8mh0vaKK5zhKTlXMr LCRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=loNiCYtuwme60YERyIlRBxCMF+CSO9+MUPnGI7lm0K0=; b=zvBwjfCmF/tIq2zD41AhLyLxqhIj40yCXvCC4nozT0R7LD70Pl69wHBHqco7yDq/R4 KRIPJsu5W8jfx+3nVT/okod3QaGr95GFy+s4l2r4Khxnk0ZMDRrqxdnHETjl+ns8EblV h2LMphSDrPsR+ZK6lORIZS5YLPw1v9RL5WQTn78lE+jK/6VGP6bH+8Hg/nzfIv+eATmV 84acQaM5yEY/93YDHVdTX3cVeTwNG8UxoB8jKXKBZ+JUBmGNr0jxvVCxmATjr5nUSpHL hHiNZamBBQUql5Gjrj9xfEkGTsNMrjyT3yCySDAubJI4qHKegNr5ar/5q6+SnyHiSiHX joFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Zhnelaaj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w13-20020a1709027b8d00b0015f0063568bsi9019840pll.340.2022.05.23.10.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 10:34:16 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Zhnelaaj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EBB8B1026; Mon, 23 May 2022 10:31:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241283AbiEWR0k (ORCPT + 99 others); Mon, 23 May 2022 13:26:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240216AbiEWRRc (ORCPT ); Mon, 23 May 2022 13:17:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFCC569CEF; Mon, 23 May 2022 10:17:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1C9A6B8121C; Mon, 23 May 2022 17:15:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81529C385A9; Mon, 23 May 2022 17:15:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653326117; bh=riyIxm/6DV0D51V6qS4eIgtQ8gmXffvMp6/SrgHtugg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zhnelaajp4yDkd4ycE2hYvINNjzVR9L1vQhhoVxjZ1yKldvoovSaIg6fsKPPm7QOb 3ARTSQ6v9stH7tlI4XHSCXnez+x2mRXpqwvoQKe8xWVRa0nuXSG6QDZSbQ7Uew7Elx QjjE+A7JR6++iVPWvsLd1mu/8QgVMvyxvA2V8DPY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Gottwald , "Rafael J. Wysocki" , Bjorn Helgaas Subject: [PATCH 5.4 29/68] PCI/PM: Avoid putting Elo i2 PCIe Ports in D3cold Date: Mon, 23 May 2022 19:04:56 +0200 Message-Id: <20220523165807.394701006@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165802.500642349@linuxfoundation.org> References: <20220523165802.500642349@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki commit 92597f97a40bf661bebceb92e26ff87c76d562d4 upstream. If a Root Port on Elo i2 is put into D3cold and then back into D0, the downstream device becomes permanently inaccessible, so add a bridge D3 DMI quirk for that system. This was exposed by 14858dcc3b35 ("PCI: Use pci_update_current_state() in pci_enable_device_flags()"), but before that commit the Root Port in question had never been put into D3cold for real due to a mismatch between its power state retrieved from the PCI_PM_CTRL register (which was accessible even though the platform firmware indicated that the port was in D3cold) and the state of an ACPI power resource involved in its power management. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=215715 Link: https://lore.kernel.org/r/11980172.O9o76ZdvQC@kreacher Reported-by: Stefan Gottwald Signed-off-by: Rafael J. Wysocki Signed-off-by: Bjorn Helgaas Cc: stable@vger.kernel.org # v5.15+ Signed-off-by: Greg Kroah-Hartman --- drivers/pci/pci.c | 10 ++++++++++ 1 file changed, 10 insertions(+) --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -2613,6 +2613,16 @@ static const struct dmi_system_id bridge DMI_MATCH(DMI_BOARD_VENDOR, "Gigabyte Technology Co., Ltd."), DMI_MATCH(DMI_BOARD_NAME, "X299 DESIGNARE EX-CF"), }, + /* + * Downstream device is not accessible after putting a root port + * into D3cold and back into D0 on Elo i2. + */ + .ident = "Elo i2", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Elo Touch Solutions"), + DMI_MATCH(DMI_PRODUCT_NAME, "Elo i2"), + DMI_MATCH(DMI_PRODUCT_VERSION, "RevB"), + }, }, #endif { }