Message ID | 20240215133155.9198-1-ilpo.jarvinen@linux.intel.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-66982-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp496927dyb; Thu, 15 Feb 2024 08:01:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV0w1StcfYR7/wk4197/EF/OVNsfyfD+zuPSJjJq2w3m0nDzlKhZiCn2hGgUTivggQhm4v6CwGEte2N2CZOzH8ADVoCzQ== X-Google-Smtp-Source: AGHT+IExDa1gp6Hzb+yzj/NtJYr56erj/d1Y53FTaiJ75MyUvt5xC+218nQhP0GcSx3dJmWvm4jG X-Received: by 2002:a17:906:b0d9:b0:a3c:fc05:4cf2 with SMTP id bk25-20020a170906b0d900b00a3cfc054cf2mr1871827ejb.1.1708012903990; Thu, 15 Feb 2024 08:01:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708012903; cv=pass; d=google.com; s=arc-20160816; b=WMypAHxJ21wZFOSw0qO77FusuBKiimIFd66QEFVJwx+6v9IvHdcBJ4q4aRI3JRydPk keFAQkcxnQgwDNul0ZFFpKvzEy68rt2mmzjIPjS0Dvp1hIlkaPacXQ+/FswJa2zubJUj RS2RtEhxjqkNY6ETSAhPRnJiOWIis36l4GE9GK7nKZ6P12zvfKI/2NaOy+yNsWQiKNeZ ch5nL2qBxwNbglowK9zz9WLP6AYpUw6Xd4++g1tVkqUlE3WlFExYB3TnG6IoaJzkWSu4 T06H6bSR4o5hGC6OKC97P2Yf2bPfZGSbANJjoXD79S0khsORrPaDbhGaTS4CL7g7dQAK Ac0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=2hXUTRQVu5jJiuo9dhIfQX0xHaR43DwRDpcN7SKlk8c=; fh=bZgH7cvFMYTo2BRZtNkbOqMFtgoyFo2hikCUnIQrjRg=; b=ZwZPuAvEWM37nMPxN2Qz3FHN62XHk0i7OybxuyvjbpW8em1Cm3RsbLlIz7/3qTOTKL 0hDN3o95eFT61AQsvagoFP80f0jr0/eiw1uvfP8/r2AG3oE/4/GgpyOsIA+uLh3D4clR VLXs3ZUj7ZiwmXSLQ4V8hyGSZEGuFpicEXeqC8Gb0XemWTFIdqdMAngF8pdI9Is9z2of Zou2bPo92MC0yrR4GQ+E05SaVU5ezY20Yuk8MwDYoN8W/asAnj8TbyA0Yxnau3TViDe1 H1CszXxaqXj/pxidQz9zKGnxuj6358GlpSfai4IrwzEI7PZ66xfQ9mg4Bj9+Gw1oiD1M VqDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lGbE+k79; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-66982-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66982-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z9-20020a170906714900b00a3dbb2790e0si87341ejj.572.2024.02.15.08.01.43 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 08:01:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66982-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lGbE+k79; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-66982-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66982-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9AD331F25E1C for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 13:32:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7289B130AFA; Thu, 15 Feb 2024 13:32:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lGbE+k79" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 572CD130ACA; Thu, 15 Feb 2024 13:32:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708003931; cv=none; b=O30jorAmf5HdZXKNUlV/vGpOGNktyuvMFl0fqGCb07m3AwcAtJhdzYRmx44VqWKUe6j0+Rgpyqz+q0N9kpbahWEtjjPENclcP+mL4rPtl/HoiCOyLLiUB1+12ECn79ozWqoXbXu/pvnzJb99SS9sEsBYl2BzZPLmoLRLanTjZrw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708003931; c=relaxed/simple; bh=xP2x+0oCU2VUeBJg+acvjjGA26vEwKMDv8882I1yP2E=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=QBPd4llGO8a6ybra+X6sxElKlxhikKF2ZHm/hONOeX+C2y2TSxXfasv5qVloCknkGqG99X986TcpgQWyjR+FExS8tPRNAhPZcuwg8mX8VP7n5xaWBUEyRfUSq1RRaiRst+jhFZbCmaMyUMSpuWEcaXvN42c/82rFPNzg13rb4e4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lGbE+k79; arc=none smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708003931; x=1739539931; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xP2x+0oCU2VUeBJg+acvjjGA26vEwKMDv8882I1yP2E=; b=lGbE+k79nWmScRnYJNW4RCLDE4hwxz9s/yRkjA6yhfqw9Z8M232rj5ru CHDupxg6iI1JBkmhlj+i2svKlZaB886t52rXEWxLpGTxkSZDxHN4OV/+L W1/z01pYn5FRFniVlLo1S9oVpBJnNEbk6WYvc3d0JIXTh2Z62vV9rWYNi QQt4sY43vgiua74EMQogqPEmh/ZOf/crDvDa2f8ozrQrvW0PgSGOr3Fk3 EYCisicUo+T2AfVwwn3G2+Z7VvQeXbrKBfRRnfHqaGBDLQWNFYExL70iF nSjPDmpd53FVxyVKQwwx+XGV0RCap/JZ4dVVGHpzsOedy4U9JOTWL4mLj w==; X-IronPort-AV: E=McAfee;i="6600,9927,10984"; a="2000321" X-IronPort-AV: E=Sophos;i="6.06,161,1705392000"; d="scan'208";a="2000321" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2024 05:32:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,161,1705392000"; d="scan'208";a="3489788" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.32.150]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2024 05:32:05 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: Alex Deucher <alexander.deucher@amd.com>, amd-gfx@lists.freedesktop.org, Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>, Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>, dri-devel@lists.freedesktop.org, Jason Gunthorpe <jgg@ziepe.ca>, Leon Romanovsky <leon@kernel.org>, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, "Pan, Xinhui" <Xinhui.Pan@amd.com>, =?utf-8?q?C?= =?utf-8?q?hristian_K=C3=B6nig?= <christian.koenig@amd.com> Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Subject: [PATCH 0/3] PCI LNKCTL2 RMW Accessor Cleanup Date: Thu, 15 Feb 2024 15:31:52 +0200 Message-Id: <20240215133155.9198-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790981338883073548 X-GMAIL-MSGID: 1790981338883073548 |
Series | PCI LNKCTL2 RMW Accessor Cleanup | |
Message
Ilpo Järvinen
Feb. 15, 2024, 1:31 p.m. UTC
This series converts open-coded LNKCTL2 RMW accesses to use RMW accessor. These patches used to be part of PCIe BW controller series [1] which will require RMW ops to LNKCTL2 be properly locked. However, since these RMW accessor patches are useful as cleanups on their own I chose to send them now separately to reduce the size of the BW controller series. [1] https://lore.kernel.org/linux-pci/20240105112547.7301-1-ilpo.jarvinen@linux.intel.com/ Ilpo Järvinen (3): drm/radeon: Use RMW accessors for changing LNKCTL2 drm/amdgpu: Use RMW accessors for changing LNKCTL2 RDMA/hfi1: Use RMW accessors for changing LNKCTL2 drivers/gpu/drm/amd/amdgpu/cik.c | 41 +++++++++++-------------------- drivers/gpu/drm/amd/amdgpu/si.c | 41 +++++++++++-------------------- drivers/gpu/drm/radeon/cik.c | 40 +++++++++++------------------- drivers/gpu/drm/radeon/si.c | 40 +++++++++++------------------- drivers/infiniband/hw/hfi1/pcie.c | 30 ++++++---------------- 5 files changed, 68 insertions(+), 124 deletions(-)