Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp19240pxb; Tue, 12 Apr 2022 15:35:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk3SciXZyhEVZkefujs1XjUlZDQSrOdgJraSWhnplKckvQhXXrhAcOVXb0ZpL4k+8ZN3Gt X-Received: by 2002:a17:902:8217:b0:156:9c4f:90eb with SMTP id x23-20020a170902821700b001569c4f90ebmr38822482pln.121.1649802926191; Tue, 12 Apr 2022 15:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649802926; cv=none; d=google.com; s=arc-20160816; b=sfoYeyuFs43EOg9IGoTJmn5Rlv2tNRDr+YY5RokMvtA6dzUDMEPtqarrfrlOm6JScm 5jFkD7OwBqGJ6MXGDlNM+B8daTNbryTii/R1teTacNwF80wOD0vn37h3rZQAJy8kv8aS GT7FSmxZImjeUPJh81iWQo/qFeUMe5VJWx+DHWB/4kgWi3ADEyn9itBeNMB3+WCloMjE yPDt3cvTZoY/Gw5ycqT5+skE/+4QJB0J9n5j8JAJ2Kalhtn+VrJJxcU6QwjXn5Zwe5FM lwRMYaV+f/aTpBlrZG5UN2Uzpnt7KaYj3gLqtfZgZ2amghxxm7RwGLayNuo6EeI68rBm M8sA== 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=F0krf22tmlAZPXN5Lqoviq0RJMuqY5mfVu5FZtSSbiU=; b=GgJbp/yl3aQzWTuRsiqPMOUyzZ+NS9yfcWJpHJqXAg4mPAYbGfkjGWG7rhoemOE9lH I1voBQn8dz1d8jR9t7p7gZG/IGcWfyBVHlGvpPADAju3hQulJB8f0HUzSe1KuJnzkzxk dVLeGEvMZV+eXNat0eBC3XDxPAV3IOqqKjRKz/FsV+ptOI+UWnyYG/qw+PufjsNNE3As rHXT7cvoi6HCfezBO7MU5QlFKV5UZAqq93wbMlnD9ZI1wOLDUccWah4/0KoQVbGYJMXR 0fFfbuC5OGlA+nrGQ3484VUSkPA1b6vuA7ci7mXuZzKPmQdJryxbjSOsZ3OdvC2a1FnJ i0Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BfLNBKW+; 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=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k7-20020aa790c7000000b004fe3d0e5d61si11893593pfk.359.2022.04.12.15.35.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:35:26 -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=@intel.com header.s=Intel header.b=BfLNBKW+; 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=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 712C4197AF1; Tue, 12 Apr 2022 14:12:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377046AbiDLK43 (ORCPT + 99 others); Tue, 12 Apr 2022 06:56:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356946AbiDLKpq (ORCPT ); Tue, 12 Apr 2022 06:45:46 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A89D659A67; Tue, 12 Apr 2022 02:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649756593; x=1681292593; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=spVnMM+QgRSZn4l/UJxMcwljw0gQjm7dBFN3KL2Wmu8=; b=BfLNBKW+Jcc1kgjbSGKCgzpa6M4ePK4vkyxGpKsttfXbFHfeldet2MJz 0tZtk4uMNgaoosGVD+X8slIPrLAXuBMGXblWAm60DXPQjuzcxnOFLOLox xQJIYhKrFdaGm+4auynV+E/RUnbV968//oFVGN2KB2sTdOnahFjVuix2d y3vWf4tadhqYdyLgFVXCJM3aX5HC+Y2bglXx45ULwW5O+JdRBnglB5+q1 U0l8JXNlv2s/gvCn36cQLQeFfoEq4tR3YLyJmHFe9F1GiEPdjmfMgSyvn iVUjb+rJmMe81a54sreW7zn9IuEEZRbTS0kiAUsOoXEXwfaC8ZRatjpcf g==; X-IronPort-AV: E=McAfee;i="6400,9594,10314"; a="261771070" X-IronPort-AV: E=Sophos;i="5.90,253,1643702400"; d="scan'208";a="261771070" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2022 02:43:03 -0700 X-IronPort-AV: E=Sophos;i="5.90,253,1643702400"; d="scan'208";a="572683971" 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; 12 Apr 2022 02:43:01 -0700 Received: by lahna (sSMTP sendmail emulation); Tue, 12 Apr 2022 12:42:58 +0300 Date: Tue, 12 Apr 2022 12:42:58 +0300 From: Mika Westerberg To: "Rafael J. Wysocki" Cc: Linux PCI , Linux PM , LKML , Bjorn Helgaas Subject: Re: [PATCH v2 3/9] PCI/PM: Rearrange pci_update_current_state() Message-ID: References: <4419002.LvFx2qVVIh@kreacher> <11975904.O9o76ZdvQC@kreacher> <4721615.GXAFRqVoOG@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4721615.GXAFRqVoOG@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 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 Mon, Apr 11, 2022 at 04:21:04PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Save one config space access in pci_update_current_state() by > testing the retireved PCI_PM_CTRL register value against ^^^^^^^^^ retrieved