Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9352621rwr; Thu, 11 May 2023 13:43:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7DV6wmCoivS/Nw+/ZJNtqTnwfo7INgGKE2wGHUJw12Dwfc1dHbHSd7TgE4/GcVQS/S8ETm X-Received: by 2002:a17:90b:3e81:b0:252:a0dc:7950 with SMTP id rj1-20020a17090b3e8100b00252a0dc7950mr1824849pjb.2.1683837783704; Thu, 11 May 2023 13:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683837783; cv=none; d=google.com; s=arc-20160816; b=B619j8IXUczwB6rLQJxwwilr0zvR1s7b2NqI6I8ihCicBArhhC5qUNgw810buEhnpq dkkcamItpapPp4h5JstVZamJ2DmPwYXCxpabSvBpuqfKAfn8EFq+yl/SheHiD+HwXzVq td/NOkPRVSeeNFEy5jFSz8Ut6iB6CKWEY8F5b5LJKViPGcY6eTeqpnvcZdVmolhmCHp4 JbFDAae5PTimEkkuFi37FwiYO1v4NpSkBpKcIDowqQAO1C/M8QLNpDgHMEmqspHneDKg oPxrNrwwvl9EycYamMpgIzI8GLAT/CaFZ79XOaLaaHUs/JtSzBOp/HzyUrawM1TwUtRZ dp6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=Djid6ahH3bFgUx5vmt4XjvT/HJb2qWLdfN2m1iNSSQ8=; b=RDTYUwMhIa1NIfwHKc0UMLHBH44qLVVM33PXmGx8q0iIiCONePeSyh0D4aY86CXD+O 3RxFrCx0X/s518nj70/qrT1tAERQhYyHpTN4D9GVErtvJWBdTZ4miQA10zrCvKilPAA9 C7JXJHa81XJ0tpZvLjvGQzA+FRFzz9ahoPu07Ptphjv33EBlZ2nLmwqASK5Mt3tloGGs z+X91K51luDp+9sTM8SnHV+A2h1yDI4DObjNazeIa3hev8drdftJMmw05PHrWipQo9iI nyhB8l5Mk68T/iFxdUTKgyOb6GfEAP/Sey1e8IjqllgUMp2OkuYSFBJzJjadrocQMGH2 4MWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gVQFL4M6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w24-20020a17090aea1800b0024de4be9639si29084593pjy.34.2023.05.11.13.42.49; Thu, 11 May 2023 13:43:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gVQFL4M6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239551AbjEKUAR (ORCPT + 99 others); Thu, 11 May 2023 16:00:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238946AbjEKUAP (ORCPT ); Thu, 11 May 2023 16:00:15 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C3705276; Thu, 11 May 2023 13:00: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=1683835214; x=1715371214; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=Q5gZor7ZoJyjEgavshxpohrnJsBgB2CTzJ8PmHxBTpI=; b=gVQFL4M66TYyV3Ur9HGnmk+sCZMy6uI/RFLKmB3VD0hGu/6v3bSTeBjc 7NdKsEL0+PXLl4gXrO0/fiw+MrgkdoKvziYQCpmSVubfM9/uC6NV8Q3Sw MFbrbmUn7PXc5a7v5jYdeePD9XRaWEkUivmEp0gFTJx2dx3fzvR/mUW9f ie9zdM3HSelOHtlMDu9Ef+S9xaKFy+RDBpEPPf8uFPH1Uu2myOpSpq4WJ RsCPqdACM19ziQO6vtEfXAoVfcOGIF6dO4Ww6EPFVICTHxx/wMl73zGHQ NWyKw+N97CfYjbsWyzNW/F51ZmLeHEV0xOwfT13enP/x4Zj1ciAlwk7Yd A==; X-IronPort-AV: E=McAfee;i="6600,9927,10707"; a="378751728" X-IronPort-AV: E=Sophos;i="5.99,268,1677571200"; d="scan'208";a="378751728" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2023 13:00:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10707"; a="702873995" X-IronPort-AV: E=Sophos;i="5.99,268,1677571200"; d="scan'208";a="702873995" Received: from jsanche3-mobl1.ger.corp.intel.com ([10.252.39.112]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2023 13:00:05 -0700 Date: Thu, 11 May 2023 23:00:02 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Heiner Kallweit cc: linux-pci@vger.kernel.org, Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , =?ISO-8859-2?Q?Krzysztof_Wilczy=F1ski?= , Lukas Wunner , nic_swsd@realtek.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Netdev , LKML Subject: Re: [PATCH 14/17] r8169: Use pcie_lnkctl_clear_and_set() for changing LNKCTL In-Reply-To: <98b3b70a-86c0-78c0-b734-0764bb5a21fc@gmail.com> Message-ID: <985b617-c5d7-dce3-318b-f2f8412beed3@linux.intel.com> References: <20230511131441.45704-1-ilpo.jarvinen@linux.intel.com> <20230511131441.45704-15-ilpo.jarvinen@linux.intel.com> <98b3b70a-86c0-78c0-b734-0764bb5a21fc@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-2047432099-1683835210=:1900" X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-2047432099-1683835210=:1900 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Thu, 11 May 2023, Heiner Kallweit wrote: > On 11.05.2023 15:14, Ilpo Järvinen wrote: > > Don't assume that only the driver would be accessing LNKCTL. ASPM > > policy changes can trigger write to LNKCTL outside of driver's control. > > > > Use pcie_lnkctl_clear_and_set() which does proper locking to avoid > > losing concurrent updates to the register value. > > > > Wouldn't it be more appropriate to add proper locking to the > underlying pcie_capability_clear_and_set_word()? As per discussion for the other patch, that's where this series is now aiming to in v2. -- i. --8323329-2047432099-1683835210=:1900--