Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp68409pxh; Thu, 7 Apr 2022 14:13:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFmfkuNdSfg3itf2OGv8g2EXOGLcaqFihJjL6soCkkLyK2ftUsP30v+Y0Vv3VHgY2CSLfy X-Received: by 2002:a17:902:d2d0:b0:156:c07d:8228 with SMTP id n16-20020a170902d2d000b00156c07d8228mr15766527plc.27.1649365982647; Thu, 07 Apr 2022 14:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649365982; cv=none; d=google.com; s=arc-20160816; b=KMlfRNHaSvTwAt1D55EtpqgYozwIW6MF1GRejdqKuCZBd7G0PHVhzSbhVd1hPzv5vV +bOE61AwakFjzfy6ME+a19AIDsIkVkiZPAludEVVLHXXI+zRLwWj8FdxT/y2XrEbNHjn BngIdaKDIGK3+8h7L1UkHJnY2jTmXn+vqPRbs/4umlU9WRDQNT5HuBJqnlyafNjxcTfl eCRIGvqUk5ZJHTCPz1ZAfm59jdAUbpK9iOKPMM1+ykSUOMMshJgVKGNlGhNlpMlAcFiV fv8ZI2OFJwpja9BXggl5CCD5i26T8zHKuBpbnb1nVVjiP+9yXF1zODFRi1NA8LKub0p8 DrrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=e9LUhLTXv/aMhgGrq19jsgBoR3kDsKP5D7qRQDZmp2Y=; b=vvxiL2ls/Mzw5d8+VCz6ERfYS2euFq8ujWbzyNfsFhhuSyykme3CgOLZteJ5x7vMAN J3laeriikc6j5ctxA5VYMByI0tqhBbmLNvI+HJuQqSP3vp+C7F+rdSaBC/mDzYPJN5jf d9zHSfqmYasY51MpYXfOfwtt3EipdB31zJvY93Tn9xzddH2YtbkBMGmtrWh7ligmFOWq rLp/A+nlvB0nPzy3LPBQEqxsv9zkdk0NirJJTXbyIXwvlNpdYg25ViOrOP4YX4ToplPc NweL1Qo9E9hCxBubLLlnrE61NBsJijLSb0Wq7zjUkAiAH5HsRTvLTqcxBPof9wB6UmVm 5alw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M7RcDyUJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p8-20020a056a000b4800b004fa3a8e009bsi21548588pfo.338.2022.04.07.14.13.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 14:13:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M7RcDyUJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5548529F584; Thu, 7 Apr 2022 13:05:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243287AbiDGIxc (ORCPT + 99 others); Thu, 7 Apr 2022 04:53:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243563AbiDGIxQ (ORCPT ); Thu, 7 Apr 2022 04:53:16 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAAEB2ACD; Thu, 7 Apr 2022 01:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649321476; x=1680857476; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=rvvRdha+qpxn4dQmcryB8CJAVWXcpexk0ryCTlfgnEM=; b=M7RcDyUJ8/zzkWPSzZUJ0vXtK90kP2GO9rH+/AGbzKUkk56Vi+KZz7GP EvZtKbhTCoJyz11aM/aK0h87S2XPr+ywhmka/zOJWGSiWOKTdgpLZbCh/ 20nShUHl+Mmf29NZdJFdx5Wa9tv/KAExK1o5ZEhS4s4Wa3vyrgIk6H8+s WDnyLZ/MOEqjuPUAtFsTBpd84WjsN7j7yYEidPsmEIv1Cm9B0ps+RFc4c lgmw5aPt4BUZ/u65q+HyjT2NqjjOfeZqyq7aeydFPfjmhNYugvRKx7kgj 8t/my32LeBI1Ibx5nwdf0m7l57tD37Re+qSDZe+F4FOCwnlGPECtRTyJZ A==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="241860122" X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="241860122" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2022 01:51:13 -0700 X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="570963311" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.162]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2022 01:51:10 -0700 Received: by lahna (sSMTP sendmail emulation); Thu, 07 Apr 2022 11:50:46 +0300 Date: Thu, 7 Apr 2022 11:50:46 +0300 From: Mika Westerberg To: "Rafael J. Wysocki" Cc: Linux PCI , LKML , Linux ACPI , Bjorn Helgaas , Linux PM Subject: Re: [PATCH v1] PCI: PM: Power up all devices during runtime resume Message-ID: References: <4412361.LvFx2qVVIh@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4412361.LvFx2qVVIh@kreacher> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 On Wed, Apr 06, 2022 at 09:00:52PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Currently, endpoint devices may not be powered up entirely during > runtime resume that follows a D3hot -> D0 transition of the parent > bridge. > > Namely, even if the power state of an endpoint device, as indicated > by its PCI_PM_CTRL register, is D0 after powering up its parent > bridge, it may be still necessary to bring its ACPI companion into > D0 and that should be done before accessing it. However, the current > code assumes that reading the PCI_PM_CTRL register is sufficient to > establish the endpoint device's power state, which may lead to > problems. > > Address that by forcing a power-up of all PCI devices, including the > platform firmware part of it, during runtime resume. > > Link: https://lore.kernel.org/linux-pm/11967527.O9o76ZdvQC@kreacher > Fixes: 5775b843a619 ("PCI: Restore config space on runtime resume despite being unbound") > Reported-by: Abhishek Sahu > Tested-by: Abhishek Sahu > Signed-off-by: Rafael J. Wysocki Reviewed-by: Mika Westerberg