From patchwork Sun Jun 13 09:29:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongdong Liu X-Patchwork-Id: 1491391 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4G2q7T1mgGz9sWD for ; Sun, 13 Jun 2021 19:30:29 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231190AbhFMJcU (ORCPT ); Sun, 13 Jun 2021 05:32:20 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:9109 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231192AbhFMJcT (ORCPT ); Sun, 13 Jun 2021 05:32:19 -0400 Received: from dggeme758-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G2q3t0FQFzZdL0; Sun, 13 Jun 2021 17:27:22 +0800 (CST) Received: from SZX1000464847.huawei.com (10.21.59.169) by dggeme758-chm.china.huawei.com (10.3.19.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Sun, 13 Jun 2021 17:30:14 +0800 From: Dongdong Liu To: , , , , , CC: , Subject: [RESEND PATCH V3 0/6] PCI: Enable 10-Bit tag support for PCIe devices Date: Sun, 13 Jun 2021 17:29:09 +0800 Message-ID: <1623576555-40338-1-git-send-email-liudongdong3@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.21.59.169] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggeme758-chm.china.huawei.com (10.3.19.104) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 10-Bit Tag capability, introduced in PCIe-4.0 increases the total Tag field size from 8 bits to 10 bits. This patchset is to enable 10-Bit tag for PCIe EP devices (include VF) and RP devices. V2->V3: - Use cached Device Capabilities Register suggested by Christoph. - Fix code style to avoid > 80 char lines. - Renamve devcap2 to pcie_devcap2. V1->V2: Fix some comments by Christoph. - Store the devcap2 value in the pci_dev instead of reading it multiple times. - Change pci_info to pci_dbg to avoid the noisy log. - Rename ext_10bit_tag_comp_path to ext_10bit_tag. - Fix the compile error. - Rebased on v5.13-rc1. Dongdong Liu (6): PCI: Use cached Device Capabilities Register PCI: Use cached Device Capabilities 2 Register PCI: Add 10-Bit Tag register definitions PCI: Enable 10-Bit tag support for PCIe Endpoint devices PCI/IOV: Enable 10-Bit tag support for PCIe VF devices PCI: Enable 10-Bit tag support for PCIe RP devices drivers/media/pci/cobalt/cobalt-driver.c | 4 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 4 +- drivers/pci/iov.c | 8 +++ drivers/pci/pci.c | 13 ++--- drivers/pci/pcie/aspm.c | 11 ++-- drivers/pci/pcie/portdrv_pci.c | 75 +++++++++++++++++++++++++ drivers/pci/probe.c | 65 ++++++++++++++++----- drivers/pci/quirks.c | 3 +- include/linux/pci.h | 5 ++ include/uapi/linux/pci_regs.h | 5 ++ 10 files changed, 156 insertions(+), 37 deletions(-) --- 2.7.4