Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6159319pxv; Thu, 29 Jul 2021 07:54:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxI6HE9ZLRNzWaArUPwgbheg3sfccShXLg4mVnTwtjQmzE/mV7pW06ydN0YJI/1VQ53QTe X-Received: by 2002:a17:906:a195:: with SMTP id s21mr4952624ejy.181.1627570448694; Thu, 29 Jul 2021 07:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627570448; cv=none; d=google.com; s=arc-20160816; b=wHET1hhf3mqPjaT5X1bOuleHDT+TP6LJOsm6BJpPTd/E30mVs+iIylC43X/C0SCoyf Y7k+3xoRppyS+nc3BiZKi3sxv6fbBy31wla2j2SsgZ3YrCF1/uSyOfu7btn9IoIFFa1+ DTtsrrv+DtbMTcGsBWWxPcOEJCqCuiVjccRpfPWzVYN9qEQ/IOaz9vf6PqlR5sR2SCiy ssC6ceBgc5x0KUZNOHnjwM1NHq/ZWzynjwp6uUDkUXzsfKxn9849K9XXhIc7/kwdUi6o KDhOcZycxq5uS9YezORAZ42rphop2azwPjTmkFfgJXERznCL8zsBnsWl5wZopot82lHy w+nQ== 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 :message-id:date:subject:cc:to:from; bh=hbsnxlqQ2mljQNXmOrhnKjNhGxi315hsmE0LO8VFAvc=; b=EkL0AZf2HxSyp1PL92kUXaFa2yqMcZrpZEII3KDIjW8y2T8eGL9FA8lDTAPYPpRSA3 6MeXz3VJK0ZaV0V+ycewBlMLpjNj74SnmmPbVngl/YDpo4qLtuMo6KrB7qOgRctfanCo RhpwiLhQd2TtzdtzGVYIwCu5tLkjMRjwzgLysfHKdYUD5wi1n1iu+0eCN65QiwLnI6nC QTpbUIGPiPDabQew+ardHVPi58tM5JLyHLEe2GR/HP9pX74tvho1DJoxjrFS8KvnnY78 9l1XS9w+/QwsH3OF8U/AgzlGNcK1eE/1ehErUHxbhKGo5SIYZYwhByaIjhXix6DyLgGE d/3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si2980008ejq.648.2021.07.29.07.53.44; Thu, 29 Jul 2021 07:54:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237708AbhG2Otx (ORCPT + 99 others); Thu, 29 Jul 2021 10:49:53 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:44090 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229864AbhG2Otu (ORCPT ); Thu, 29 Jul 2021 10:49:50 -0400 Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 3.0.0) id 0f8846d825f27bfa; Thu, 29 Jul 2021 16:49:45 +0200 Received: from kreacher.localnet (89-64-80-223.dynamic.chello.pl [89.64.80.223]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 53D6A669F44; Thu, 29 Jul 2021 16:49:44 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux PCI , Mika Westerberg Cc: Linux ACPI , Linux PM , LKML , Bjorn Helgaas , Kai-Heng Feng , Utkarsh H Patel , Koba Ko Subject: [PATCH v1 0/2] PCI: PM: Fix handling of device that can only signal PME from D3cold Date: Thu, 29 Jul 2021 16:46:27 +0200 Message-ID: <4668274.31r3eYUQgx@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 89.64.80.223 X-CLIENT-HOSTNAME: 89-64-80-223.dynamic.chello.pl X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvtddrheefgdegtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkfgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepvdevgfetueetheekudeuvdduteelvefftdfftdejjeeukeffteeikefgiefghedunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucfkphepkeelrdeigedrkedtrddvvdefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepkeelrdeigedrkedtrddvvdefpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhrtghpthhtoheplhhinhhugidqphgtihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehmihhkrgdrfigvshhtvghrsggvrhhgsehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhg pdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohephhgvlhhgrggrsheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepkhgrihdrhhgvnhhgrdhfvghnghestggrnhhonhhitggrlhdrtghomhdprhgtphhtthhopehuthhkrghrshhhrdhhrdhprghtvghlsehinhhtvghlrdgtohhmpdhrtghpthhtohepkhhosggrrdhkohestggrnhhonhhitggrlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=9 Fuz1=9 Fuz2=9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series is a replacement for the following patch: https://patchwork.kernel.org/project/linux-pm/patch/3149540.aeNJFYEL58@kreacher/ allowing devices that only can signal PME from D3cold to be put into low-power states and signal wakeup from D3cold (if they get into it). However, the patch above works by adding a special case to pci_pme_capable() which actually is not necessary. Instead of doing that, it is sufficient to make pci_target_state() handle the case in which the device cannot signal PME from D0 consistently (patch [1/2] in this series) and make __pci_enable_wake() enable PM signaling for devices that can signal PME from D3cold (patch [2/2] in this series). Please see the patch changelogs for details. Thanks!