Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4464181pxb; Sat, 6 Nov 2021 14:36:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXot0LY7UhJEVVQP6kJnDwrRNVr8LGvJpy8wcCEMdo4ePvhBSKf00df3v8PIg8h+3Fv7mI X-Received: by 2002:aa7:cada:: with SMTP id l26mr51108830edt.376.1636234595654; Sat, 06 Nov 2021 14:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636234595; cv=none; d=google.com; s=arc-20160816; b=Ai0aGAEqNqXlkaQUj3mXMWKRn+qgeIcE9QdPYHXb60rNpEROZHjnc/T1sMclqt2xZU f+v9LpJTjRTRUh2DM6EdzRFA0paMYMRHavpNYuUWEFpGAtYTh0Q1NTZyKYuLAKc7oaEz 9HwE69vJo01fSnzY6j5V1ONCPGoiVgQTyxe0IL/nehK0ZztBVfQiUT32Oh53TGxlZ+9D FdrJOWK/rxdxG7cp4An9LOb5SLUa7ovFc50bbK38ab3ykvJR4/mJJlvAvraHTqffpSBt 274hLW8+JvRmLXLZspx49jZNi5ZSBlzZvqSMx1kIoaYyjM9s1udt5l91SdNJzkCOBVS7 D5Og== 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:dkim-signature; bh=Nmb1M9O/JIBM5JUrg6G0Ibis/I8TW93QGKNiMCUrFsM=; b=OyLtRyOYBD6NL3PsfKhYLXJIn51SxIn6jjXkDJ9GRESJ/GqRahnANuT4V4dnQFxClW dNwUo3uLwdg+ZJqyAj4pdyTlPPv5RwdLNr5HOBmjicU4vAnD0mU/2MHVYefFq1yAQw2B JZfIls7KKAAL3AH8BzTSfeGap6d7VktQ5yrIjGbT2ZqOxk9VTCsbecPMipeL42MNW+60 PKqi+lo49SdwrpydlZs+S/pPsrQJ7xhGrqpgLYxkdA6FeJcgBc2Y/jlRhvCtKJOsoaAo d7jMquMoqgoK26YALYq8noLC1FvCouKEyRUhE6yFqzzl7tVvSOdNg8+TZC6ZdNYFn5dh lMsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="dK/47sib"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hz5si20305579ejc.440.2021.11.06.14.36.12; Sat, 06 Nov 2021 14:36:35 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="dK/47sib"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234703AbhKFRz4 (ORCPT + 99 others); Sat, 6 Nov 2021 13:55:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231783AbhKFRzz (ORCPT ); Sat, 6 Nov 2021 13:55:55 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CC9BC061570; Sat, 6 Nov 2021 10:53:14 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id r4so43890395edi.5; Sat, 06 Nov 2021 10:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Nmb1M9O/JIBM5JUrg6G0Ibis/I8TW93QGKNiMCUrFsM=; b=dK/47sibv8Wr60JRe+vl0U19QFJj01MX3+jPN9YGCWYaqlFnJaqAaGb53IiagmbJeF GUdExybXDFi+tRldLxTTCG49slMorjaffLMy+swIPeiS5vhV3Dv0m1HDF6/6+iVmPd7S yLogCznIi1H2M9Jy25K2DvMUYXJ0x9NUvAE3qfwt/2utUH5YaLQojvrfiY1L0Lq93gSz 9GNXA3V3muCei7onjWM4Ipdm6erAklN9z+bfaaCNyALf8B5Dsq+71n6pVCgkR+XuyY6U i9i2US6s8Bg9n/17iGogixFmCf7R0aDzmLvy9BuivzbY/RUBeMkdURwhCXX2HRD1IeI8 E+hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Nmb1M9O/JIBM5JUrg6G0Ibis/I8TW93QGKNiMCUrFsM=; b=REp/nYeLURVsSyAXZ4QJG1uk36Jhq03MEMvRnSuwTHX0AO81M+cWaKHSWjBvDkR+V8 9aHcyrdO/rO/WrZYuXpLW5RB9wAj1ffsQcc1ZogbGB69UvCWeg4lHPR5ZIpNNxuLtn1z J3Dson9/QCRuu9/3MLb7LoC6hP0aytbQ5goHe24qMM0Hjmr9Nl4QshY2olCH0s0qcIKX P15rz9jd8zIIA7bxu9HvOP2qgkINKJVj/PZyEJZseyvrwr/+s+w/ebi8ARSnJZ/6l3ez NceLaZQFHGw6s2HZlZ2qzL5vx79GUZwlkcZbDHHUj3lO737NUQk5anYSqzZrA/GzeJA0 6YJw== X-Gm-Message-State: AOAM533xQ6/1UGGmBsgQ2iGmEGfpkgDVBISV/b3uEk7YKEb4t/V056NO XdUUQaUwh+3o9uazm3xB4J8= X-Received: by 2002:a05:6402:5204:: with SMTP id s4mr55795506edd.113.1636221192791; Sat, 06 Nov 2021 10:53:12 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:109:9f0:f6a6:7fbe:807a:e1cc]) by smtp.googlemail.com with ESMTPSA id g10sm6364857edr.56.2021.11.06.10.53.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Nov 2021 10:53:12 -0700 (PDT) From: "Saheed O. Bolarinwa" To: helgaas@kernel.org Cc: "Bolarinwa O. Saheed" , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v4 0/4] PCI/ASPM: Remove struct aspm_latency Date: Sat, 6 Nov 2021 18:53:01 +0100 Message-Id: <20211106175305.25565-1-refactormyself@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Bolarinwa O. Saheed" To validate and set link latency capability, `struct aspm_latency` and related members defined within `struct pcie_link_state` are used. However, since there are not many access to theses values, it is possible to directly access and compute these values. Doing this will also reduce the dependency on `struct pcie_link_state`. The series removes `struct aspm_latency` and related members within `struct pcie_link_state`. All latencies are now calculated when needed. VERSION CHANGES: - v2: » - directly access downstream by calling `pci_function_0()` » instead of using the `struct pcie_link_state` - v3: » - rebase on Linux 5.15-rc2 - v4 (this version) - Create a seprate path to move pci_function_0() upward MERGE NOTICE: These series are based on » 'commit e4e737bb5c17 ("Linux 5.15-rc2")' Saheed O. Bolarinwa (4): PCI/ASPM: Move pci_function_0() upward PCI/ASPM: Do not cache link latencies PCI/ASPM: Remove struct pcie_link_state.acceptable PCI/ASPM: Remove struct aspm_latency drivers/pci/pcie/aspm.c | 88 +++++++++++++++++------------------------ 1 file changed, 37 insertions(+), 51 deletions(-) -- 2.20.1