Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3678302lfo; Mon, 23 May 2022 11:09:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN1UCdZcpLvhtLiE0txOKoSYjW8N+/f24659DVtkeM+sXNo+tTvYCvj1KsVzQ7y93zAGYj X-Received: by 2002:a17:903:246:b0:153:857c:a1f6 with SMTP id j6-20020a170903024600b00153857ca1f6mr23640931plh.153.1653329391936; Mon, 23 May 2022 11:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653329391; cv=none; d=google.com; s=arc-20160816; b=gM7zeSc13vn1TgRkXRqZH32njh4kb9aGsZb09xOSApaFWfyibul9FF58iWenijeJQX kCTSViwyKxx+A9UPoDb4KshMXyD1E4vWs2vJjG2GG3GkJay2nWhycVXEB2i28GPLaUU2 UOuIdeKv1KaU8eIREKQ8wbTXbm9A79pC98KzqfEnir126Ha4x9GqN7tWojdsFI4pUccW BBoJKh2RlU4iGk7V+KIuGX+JMZyf9Xd0m1ojYpPqXrZa24p0urJhYFNkKf7/h49FA16i qsVmLps7v3X0RsCw0umBt2Q9zR+cssZQF/T149D2WsxpWh4vm7EJT5xwAbc/YL6BfNIt ag5Q== 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=RyNbnvCf/ce84Kd7FC5fpE1voWHT8yaYhRuaWr7Bzb8=; b=UoIJjj9fqgZqViSRxNbviurGMDlgph1aIyxfmrI/eBb5xfzg+SJFzf4Gm4c4kS0F94 fk/16iG0lCRj6/oqy8wkczO/jPFdM6HQEzxuuy2176zwVakC1f6kD0flmbqud9rTw96w j+s78/bQ0oRQoByqYCbTBTsuQkOKIxnyqllNOIzWSYyR8y60NV33HAR+W95PuYGu7lmf eIabVD7sEvCS0ISHfZ2djZoJ/8NYl06zX85XQl9bhb+mqVt//Zzcdky5tkjZtiQAUj+7 X8UbBq7zBqruMSWEitaY9Arv8y/4o1TjHGi4lnse3api8tWr+qb+bjIVDIoMclwO+mZT 2G6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=I8PXs7bG; 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 t10-20020a170902e84a00b00161f4c50ef4si10924092plg.312.2022.05.23.11.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 11:09:51 -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=I8PXs7bG; 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A46AF13F90A; Mon, 23 May 2022 11:09:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241879AbiEWRxe (ORCPT + 99 others); Mon, 23 May 2022 13:53:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240668AbiEWRaJ (ORCPT ); Mon, 23 May 2022 13:30:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCD4A39177; Mon, 23 May 2022 10:26:37 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B64E2611CE; Mon, 23 May 2022 17:26:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0E2CC385A9; Mon, 23 May 2022 17:26:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653326771; bh=COq4E386Kj6CEmG7VcQHWL7EBg1abKP2T8YeYMjuBuY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I8PXs7bG21zY48a2H2cITHLFLV5n9OLqMUIhu8TTSQmEg6Ig0dUElMhkb6qEt+Nvg YfzgT/26w0oM+0Cq+UOPuri6wsavb93lxEF/m2Qjckd9RCDjmMelqAio3fJ0W11WFU 2JlIgFKUhCRrT4R/IdJ0og894REKDpu2jtzh0+Do= 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.17 053/158] PCI/PM: Avoid putting Elo i2 PCIe Ports in D3cold Date: Mon, 23 May 2022 19:03:30 +0200 Message-Id: <20220523165839.526959442@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165830.581652127@linuxfoundation.org> References: <20220523165830.581652127@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 @@ -2920,6 +2920,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 { }