Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3492825yba; Tue, 16 Apr 2019 12:29:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6hLKVoXeWRGPl2wTCG6I2NcsrMqNZxfhj6ecGnjNA++45D6HpQMW+rgR4XizUep1saq96 X-Received: by 2002:a63:614c:: with SMTP id v73mr77380684pgb.395.1555442998475; Tue, 16 Apr 2019 12:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555442998; cv=none; d=google.com; s=arc-20160816; b=nlQsX6mWp2qCwGp0Ob8IkKgsQAT+7wy+fFv9xrwtjTUFJc/Z2bpA3esPLmw/vWPFU2 PKPclFw4n/HLsl/MZt1P41AHg4G00tcgN6dG9W6Z0aqZYR31XXKWQQYtuUv9vSJn8DMP YX6mZ38+e9uhm+xe9dbvsoIU7PEwJOuTKh7CK2T46U3taLwv+07MjfHn8vI+xilr9YxB S685vxfDt+3ZVkGLoWhe/wNjJdwYclu9AsqOTrWtlUVvgIZCwurAoik/UECsGyiDv4BW wbPvBRURr7GHtl8Q3H6nxoNvNvqYE1aC85+RKLR7JM4f2j2uEbAWqru5cvN/e5OiDfm9 9XSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=lw5gs+PtfDdiKUFQWZZtM5tczxgys5BaFBrMk31PVlo=; b=cZlmGH6CacQmT+cWGrMomWjCMyD+AgGXkF5Grbb+v2WiSDJ+phyCOivfgQwc4768+H jo+b+O8X2aAUoXO6cLU5Q9m0Dc1KiR5G4OXR4NZfjOd1gN70UZGRDzhePfc7t2/TJTg9 qfW44QunT4V0wNv9hEbtx9VHaX4pHy4V2xCv+ww4iwpNfgUPC/slIJNv2Rm0AfQGwer3 PaPvu4pzmJ6ot8bopRk7UmrfpiYjfECN8aSIxN5Cdi02e9NUYBNoS23Eb/v0tl10kR1q euiqGxkqf4RBVL+axYtKeV1ekc81iS0LzSudyjSQ6pcq/GmBSVQ1Te96UveXE4j0/fUP WV2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=dz+n0k0y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si47559325pfc.223.2019.04.16.12.29.42; Tue, 16 Apr 2019 12:29:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=dz+n0k0y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730252AbfDPT1t (ORCPT + 99 others); Tue, 16 Apr 2019 15:27:49 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:2664 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730078AbfDPT1s (ORCPT ); Tue, 16 Apr 2019 15:27:48 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 16 Apr 2019 12:27:45 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 16 Apr 2019 12:27:48 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 16 Apr 2019 12:27:48 -0700 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 16 Apr 2019 19:27:47 +0000 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 16 Apr 2019 19:27:47 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 16 Apr 2019 19:27:47 +0000 Received: from vidyas-desktop.nvidia.com (Not Verified[10.24.37.38]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Tue, 16 Apr 2019 12:27:47 -0700 From: Vidya Sagar To: , , , , , , , , , , CC: , , , , , , , , , Subject: [PATCH V3 01/16] PCI: Add #defines for some of PCIe spec r4.0 features Date: Wed, 17 Apr 2019 00:57:15 +0530 Message-ID: <20190416192730.15681-2-vidyas@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190416192730.15681-1-vidyas@nvidia.com> References: <20190416192730.15681-1-vidyas@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1555442865; bh=lw5gs+PtfDdiKUFQWZZtM5tczxgys5BaFBrMk31PVlo=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=dz+n0k0yLd9WOpq2VkYQZQ/RDloTemwo+BOVSccKBw70T0VZFo9/CHXmfPkuqfaoA Z2dB34xAXDKDWvWWc7QMoOcvFL/oadd1Z5oEermVHuu7VMaW/KdFDojJ90dPUZU8Kb w0UlfS0PV0e9cWA7y+LNg1BVP0qcaavBMrtffJr5eMC5ypBPEWLGXBITBqH2GBHtCp SbWLWnwIkLHdT/foEnTJWZsu7kWpBq7M+FL/Tk2uRashX4CzdBYxVfjUFhlOugtZdJ FIpM/4D8mMinWD82lh7oS1NT0H50G6N6S/qaAzmg6j39rKSLrIE6Z65x8PMd9wojQo B7VEp1JldzYnQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add #defines only for the Data Link Feature and Physical Layer 16.0 GT/s features. Signed-off-by: Vidya Sagar Reviewed-by: Thierry Reding --- Changes from [v2]: * Updated commit message and description to explicitly mention that defines are added only for some of the features and not all. Changes from [v1]: * None include/uapi/linux/pci_regs.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index 5c98133f2c94..3e01b55d548d 100644 --- a/include/uapi/linux/pci_regs.h +++ b/include/uapi/linux/pci_regs.h @@ -705,7 +705,9 @@ #define PCI_EXT_CAP_ID_DPC 0x1D /* Downstream Port Containment */ #define PCI_EXT_CAP_ID_L1SS 0x1E /* L1 PM Substates */ #define PCI_EXT_CAP_ID_PTM 0x1F /* Precision Time Measurement */ -#define PCI_EXT_CAP_ID_MAX PCI_EXT_CAP_ID_PTM +#define PCI_EXT_CAP_ID_DLF 0x25 /* Data Link Feature */ +#define PCI_EXT_CAP_ID_PL 0x26 /* Physical Layer 16.0 GT/s */ +#define PCI_EXT_CAP_ID_MAX PCI_EXT_CAP_ID_PL #define PCI_EXT_CAP_DSN_SIZEOF 12 #define PCI_EXT_CAP_MCAST_ENDPOINT_SIZEOF 40 @@ -1045,4 +1047,22 @@ #define PCI_L1SS_CTL1_LTR_L12_TH_SCALE 0xe0000000 /* LTR_L1.2_THRESHOLD_Scale */ #define PCI_L1SS_CTL2 0x0c /* Control 2 Register */ +/* Data Link Feature */ +#define PCI_DLF_CAP 0x04 /* Capabilities Register */ +#define PCI_DLF_LOCAL_DLF_SUP_MASK 0x007fffff /* Local Data Link Feature Supported */ +#define PCI_DLF_EXCHANGE_ENABLE 0x80000000 /* Data Link Feature Exchange Enable */ +#define PCI_DLF_STS 0x08 /* Status Register */ +#define PCI_DLF_REMOTE_DLF_SUP_MASK 0x007fffff /* Remote Data Link Feature Supported */ +#define PCI_DLF_REMOTE_DLF_SUP_VALID 0x80000000 /* Remote Data Link Feature Support Valid */ + +/* Physical Layer 16.0 GT/s */ +#define PCI_PL_16GT_CAP 0x04 /* Capabilities Register */ +#define PCI_PL_16GT_CTRL 0x08 /* Control Register */ +#define PCI_PL_16GT_STS 0x0c /* Status Register */ +#define PCI_PL_16GT_LDPM_STS 0x10 /* Local Data Parity Mismatch Status Register */ +#define PCI_PL_16GT_FRDPM_STS 0x14 /* First Retimer Data Parity Mismatch Status Register */ +#define PCI_PL_16GT_SRDPM_STS 0x18 /* Second Retimer Data Parity Mismatch Status Register */ +#define PCI_PL_16GT_RSVD 0x1C /* Reserved */ +#define PCI_PL_16GT_LE_CTRL 0x20 /* Lane Equalization Control Register */ + #endif /* LINUX_PCI_REGS_H */ -- 2.17.1