Patrick Georgi | ea063cb | 2020-05-08 19:28:13 +0200 | [diff] [blame] | 1 | /* inteltool - dump all registers on an Intel CPU + chipset based system */ |
Patrick Georgi | 7333a11 | 2020-05-08 20:48:04 +0200 | [diff] [blame] | 2 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 3 | |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 4 | #include <stdio.h> |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 5 | #include <stdlib.h> |
Nico Huber | d91c932 | 2017-10-03 15:45:45 +0200 | [diff] [blame] | 6 | #include <string.h> |
Stefan Reinauer | a7b296d | 2011-11-14 12:40:34 -0800 | [diff] [blame] | 7 | #include <inttypes.h> |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 8 | #include <getopt.h> |
Stefan Reinauer | 2319027 | 2008-08-20 13:41:24 +0000 | [diff] [blame] | 9 | #include <fcntl.h> |
Stefan Reinauer | 1162f25 | 2008-12-04 15:18:20 +0000 | [diff] [blame] | 10 | #include <sys/mman.h> |
Idwer Vollering | 3f91d81 | 2010-10-24 13:50:13 +0000 | [diff] [blame] | 11 | #include <unistd.h> |
Youness Alaoui | d8214d7e | 2018-03-13 16:58:52 -0400 | [diff] [blame] | 12 | #include <errno.h> |
Maxim Polyakov | d8163ed | 2019-10-09 18:35:23 +0300 | [diff] [blame] | 13 | #include <limits.h> |
Stefan Tauner | 0c8b7d1 | 2013-04-05 20:38:08 +0200 | [diff] [blame] | 14 | #include "inteltool.h" |
Nico Huber | 99b02a1 | 2017-04-05 17:39:57 +0200 | [diff] [blame] | 15 | #include "pcr.h" |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 16 | |
Andrey Korolyov | 046d217 | 2016-01-05 19:59:06 +0300 | [diff] [blame] | 17 | #ifdef __NetBSD__ |
| 18 | #include <machine/sysarch.h> |
| 19 | #endif |
| 20 | |
Youness Alaoui | d8214d7e | 2018-03-13 16:58:52 -0400 | [diff] [blame] | 21 | #define MAX_PCR_PORTS 8 /* how often may `--pcr` be specified */ |
| 22 | |
| 23 | enum long_only_opts { |
| 24 | LONG_OPT_PCR = 0x100, |
Maxim Polyakov | d8163ed | 2019-10-09 18:35:23 +0300 | [diff] [blame] | 25 | LONG_OPT_RANGE = 0x101, |
Youness Alaoui | d8214d7e | 2018-03-13 16:58:52 -0400 | [diff] [blame] | 26 | }; |
| 27 | |
Stefan Tauner | 04c0600 | 2012-10-13 02:19:30 +0200 | [diff] [blame] | 28 | /* |
| 29 | * http://pci-ids.ucw.cz/read/PC/8086 |
| 30 | * http://en.wikipedia.org/wiki/Intel_Tick-Tock |
| 31 | * http://en.wikipedia.org/wiki/List_of_Intel_chipsets |
| 32 | * http://en.wikipedia.org/wiki/Intel_Xeon_chipsets |
| 33 | */ |
Stefan Reinauer | 9f7af6e | 2008-05-14 14:22:59 +0000 | [diff] [blame] | 34 | static const struct { |
| 35 | uint16_t vendor_id, device_id; |
Uwe Hermann | 9a6b6b5 | 2008-05-14 21:20:55 +0000 | [diff] [blame] | 36 | char *name; |
Stefan Reinauer | 9f7af6e | 2008-05-14 14:22:59 +0000 | [diff] [blame] | 37 | } supported_chips_list[] = { |
Stefan Tauner | 04c0600 | 2012-10-13 02:19:30 +0200 | [diff] [blame] | 38 | /* Host bridges/DRAM controllers (Northbridges) */ |
| 39 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443LX, "443LX" }, |
| 40 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX, "443BX" }, |
| 41 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX_NO_AGP, "443BX without AGP" }, |
| 42 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82810, "810" }, |
| 43 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82810_DC, "810-DC100" }, |
| 44 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82810E_DC, "810E DC-133" }, |
| 45 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82830M, "830M" }, |
| 46 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82845, "845" }, |
| 47 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82865, "865" }, |
| 48 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82915, "915G/P/GV/GL/PL/910GL" }, |
| 49 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82945P, "945P" }, |
| 50 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82945GM, "945GM" }, |
| 51 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82945GSE, "945GSE" }, |
Stefan Tauner | 1a00cf0 | 2012-10-13 06:23:52 +0200 | [diff] [blame] | 52 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82946, "946GZ/PL" }, |
Stefan Tauner | 04c0600 | 2012-10-13 02:19:30 +0200 | [diff] [blame] | 53 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82965PM, "965PM" }, |
| 54 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82Q965, "Q963/82Q965" }, |
| 55 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82975X, "975X" }, |
Loïc Grenié | 8429de7 | 2009-11-02 15:01:49 +0000 | [diff] [blame] | 56 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82G33, "P35/G33/G31/P31" }, |
| 57 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82Q33, "Q33" }, |
Stefan Tauner | 04c0600 | 2012-10-13 02:19:30 +0200 | [diff] [blame] | 58 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82Q35, "Q35" }, |
| 59 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82X38, "X38/X48" }, |
| 60 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_32X0, "3200/3210" }, |
Youness Alaoui | 085d87b | 2017-04-13 12:55:31 -0400 | [diff] [blame] | 61 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82XX4X, |
| 62 | "GL40/GS40/GM45/GS45/PM45" }, |
Damien Zammit | 9c98664 | 2015-08-17 21:04:41 +1000 | [diff] [blame] | 63 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82Q45, "Q45/Q43" }, |
| 64 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82G45, "G45/G43/P45/P43" }, |
| 65 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82G41, "G41" }, |
| 66 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82B43, "B43 (Base)" }, |
| 67 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82B43_2, "B43 (Soft)" }, |
Stefan Tauner | 04c0600 | 2012-10-13 02:19:30 +0200 | [diff] [blame] | 68 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82X58, "X58" }, |
Youness Alaoui | 085d87b | 2017-04-13 12:55:31 -0400 | [diff] [blame] | 69 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I5000P, |
| 70 | "Intel i5000P Memory Controller Hub" }, |
| 71 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I5000X, |
| 72 | "Intel i5000X Memory Controller Hub" }, |
| 73 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I5000Z, |
| 74 | "Intel i5000Z Memory Controller Hub" }, |
| 75 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I5000V, |
| 76 | "Intel i5000V Memory Controller Hub" }, |
Stefan Tauner | 04c0600 | 2012-10-13 02:19:30 +0200 | [diff] [blame] | 77 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SCH_POULSBO, "SCH Poulsbo" }, |
Youness Alaoui | 085d87b | 2017-04-13 12:55:31 -0400 | [diff] [blame] | 78 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ATOM_DXXX, |
| 79 | "Atom D400/500 Series" }, |
Idwer Vollering | 312fc96 | 2010-12-17 22:34:58 +0000 | [diff] [blame] | 80 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ATOM_NXXX, "Atom N400 Series" }, |
Stefan Tauner | 04c0600 | 2012-10-13 02:19:30 +0200 | [diff] [blame] | 81 | /* Host bridges /DRAM controllers integrated in CPUs */ |
Youness Alaoui | 085d87b | 2017-04-13 12:55:31 -0400 | [diff] [blame] | 82 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_0TH_GEN, |
| 83 | "0th generation (Nehalem family) Core Processor" }, |
| 84 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_1ST_GEN, |
| 85 | "1st generation (Westmere family) Core Processor" }, |
| 86 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_2ND_GEN_D, |
| 87 | "2nd generation (Sandy Bridge family) Core Processor (Desktop)" }, |
| 88 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_2ND_GEN_M, |
| 89 | "2nd generation (Sandy Bridge family) Core Processor (Mobile)" }, |
| 90 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_2ND_GEN_E3, |
| 91 | "2nd generation (Sandy Bridge family) Core Processor (Xeon E3)" }, |
| 92 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_D, |
| 93 | "3rd generation (Ivy Bridge family) Core Processor (Desktop)" }, |
| 94 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_M, |
| 95 | "3rd generation (Ivy Bridge family) Core Processor (Mobile)" }, |
| 96 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_E3, |
| 97 | "3rd generation (Ivy Bridge family) Core Processor (Xeon E3 v2)" }, |
| 98 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_015c, |
| 99 | "3rd generation (Ivy Bridge family) Core Processor" }, |
| 100 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_4TH_GEN_D, |
| 101 | "4th generation (Haswell family) Core Processor (Desktop)" }, |
| 102 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_4TH_GEN_M, |
| 103 | "4th generation (Haswell family) Core Processor (Mobile)" }, |
| 104 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_4TH_GEN_E3, |
| 105 | "4th generation (Haswell family) Core Processor (Xeon E3 v3)" }, |
| 106 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_4TH_GEN_U, |
| 107 | "4th generation (Haswell family) Core Processor ULT" }, |
| 108 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_5TH_GEN_U, |
| 109 | "5th generation (Broadwell family) Core Processor ULT" }, |
Angel Pons | f007ab7 | 2022-10-07 00:25:33 +0200 | [diff] [blame] | 110 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_5TH_GEN_D, |
| 111 | "5th generation (Broadwell family) Core Processor (Desktop)" }, |
| 112 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_5TH_GEN_M, |
| 113 | "5th generation (Broadwell family) Core Processor (Mobile)" }, |
Maximilian Schander | cb2d21d | 2017-10-28 14:45:48 +0200 | [diff] [blame] | 114 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_6TH_GEN_M, |
| 115 | "6th generation (Skylake-H family) Core Processor (Mobile)" }, |
| 116 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_6TH_GEN_WST, |
| 117 | "6th generation (Skylake-S/H family) Core Processor (Workstation)" }, |
Christoph Pomaska | 48ac29e | 2018-01-01 01:48:21 +0100 | [diff] [blame] | 118 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_6TH_GEN_D, |
| 119 | "6th generation (Skylake-S family) Core Processor (Desktop)" }, |
Nico Huber | 54fe32f | 2017-10-03 16:03:07 +0200 | [diff] [blame] | 120 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_6TH_GEN_D2, |
| 121 | "6th generation (Skylake-S family) Core Processor (Desktop)" }, |
Maxim Polyakov | 1317689 | 2019-08-27 18:20:08 +0300 | [diff] [blame] | 122 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_6TH_GEN_E, |
| 123 | "6th generation (Skylake family) Core Processor Xeon E (Server)" }, |
Michael Niewöhner | 0d1366d | 2020-03-14 22:39:30 +0100 | [diff] [blame] | 124 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_6TH_GEN_U, |
| 125 | "6th generation (Skylake family) Core Processor (Mobile)" }, |
| 126 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_6TH_GEN_Y, |
| 127 | "6th generation (Skylake family) Core Processor (Mobile)" }, |
Martin Roth | 51dde6f | 2014-12-07 22:11:54 -0700 | [diff] [blame] | 128 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BAYTRAIL, "Bay Trail" }, |
Matthew Garrett | 2bf28e5 | 2018-07-23 21:09:47 -0700 | [diff] [blame] | 129 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_7TH_GEN_U, |
| 130 | "7th generation (Kaby Lake family) Core Processor (Mobile)" }, |
| 131 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_7TH_GEN_Y, |
| 132 | "7th generation (Kaby Lake family) Core Processor (Mobile)" }, |
| 133 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_7TH_GEN_U_Q, |
| 134 | "7th generation (Kaby Lake family) Core Processor (Mobile)" }, |
Christian Walter | 9a8c5e7 | 2019-05-06 17:50:57 +0200 | [diff] [blame] | 135 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_7TH_GEN_E3, |
| 136 | "7th generation (Kaby Lake family) Core Processor Xeon E3-1200" }, |
Matt DeVillier | 3c78445 | 2019-06-11 23:23:46 -0500 | [diff] [blame] | 137 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_8TH_GEN_U_1, |
| 138 | "8th generation (Coffee Lake family) Core Processor (Mobile)" }, |
| 139 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_8TH_GEN_U_2, |
| 140 | "8th generation (Whiskey Lake family) Core Processor (Mobile)" }, |
Johanna Schander | d756c27 | 2019-12-29 14:31:01 +0100 | [diff] [blame] | 141 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_10TH_GEN_U, |
| 142 | "10th generation (Icelake family) Core Processor (Mobile)" }, |
Matt DeVillier | 62e883d | 2020-08-08 11:17:31 -0500 | [diff] [blame] | 143 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_CML_U1, |
| 144 | "10th generation (Comet Lake family) Core Processor (Mobile)" }, |
| 145 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_CML_U2, |
| 146 | "10th generation (Comet Lake family) Core Processor (Mobile)" }, |
| 147 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_CML_U3, |
| 148 | "10th generation (Comet Lake family) Core Processor (Mobile)" }, |
Stefan Reinauer | 91893ee | 2020-10-23 01:40:41 +0000 | [diff] [blame] | 149 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HEWITTLAKE, |
| 150 | "Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D (Hewitt Lake)" }, |
Jonathan Zhang | b18e194 | 2021-05-03 13:12:23 -0700 | [diff] [blame] | 151 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SAPPHIRERAPIDS_SP, |
| 152 | "Xeon Scalable Processor 4th generation (Sapphire Rapids SP)" }, |
Michał Żygowski | 8ac40f3 | 2021-07-09 16:00:16 +0200 | [diff] [blame] | 153 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_TGL_ID_U_2, |
| 154 | "11th generation (Tiger Lake UP3 family) Core Processor (Mobile)" }, |
| 155 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_TGL_ID_U_4, |
| 156 | "11th generation (Tiger Lake UP3 family) Core Processor (Mobile)" }, |
| 157 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_TGL_ID_Y_2, |
| 158 | "11th generation (Tiger Lake UP4 family) Core Processor (Mobile)" }, |
| 159 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_TGL_ID_Y_4, |
| 160 | "11th generation (Tiger Lake UP4 family) Core Processor (Mobile)" }, |
| 161 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_TGL_ID_H_4, |
| 162 | "11th generation (Tiger Lake H family) Core Processor (Mobile)" }, |
| 163 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_TGL_ID_H_6, |
| 164 | "11th generation (Tiger Lake H family) Core Processor (Mobile)" }, |
| 165 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_TGL_ID_H_8, |
| 166 | "11th generation (Tiger Lake H family) Core Processor (Mobile)" }, |
Michał Kopeć | 2d8edeb | 2022-04-05 10:40:03 +0200 | [diff] [blame] | 167 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_ADL_ID_S_8_8, |
| 168 | "12th generation (Alder Lake S family) Core Processor (Desktop)" }, |
| 169 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_ADL_ID_S_8_4, |
| 170 | "12th generation (Alder Lake S family) Core Processor (Desktop)" }, |
| 171 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_ADL_ID_S_6_4, |
| 172 | "12th generation (Alder Lake S family) Core Processor (Desktop)" }, |
| 173 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_ADL_ID_S_8_0, |
| 174 | "12th generation (Alder Lake S family) Core Processor (Desktop)" }, |
| 175 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_ADL_ID_S_6_0, |
| 176 | "12th generation (Alder Lake S family) Core Processor (Desktop)" }, |
Kacper Stojek | fb9110b | 2022-08-17 10:28:20 +0200 | [diff] [blame] | 177 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_ADL_ID_P_6_8, |
| 178 | "12th generation (Alder Lake P family) Core Processor"}, |
| 179 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_ADL_ID_P_4_8, |
| 180 | "12th generation (Alder Lake P family) Core Processor"}, |
| 181 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_ADL_ID_P_2_8, |
| 182 | "12th generation (Alder Lake P family) Core Processor"}, |
Brandon Weeks | 7ee7b13 | 2023-12-26 15:55:03 -0800 | [diff] [blame] | 183 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_ADL_ID_N_0_8, |
| 184 | "12th generation (Alder Lake N family) Intel Processor"}, |
| 185 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_ADL_ID_N_0_4, |
| 186 | "12th generation (Alder Lake N family) Intel Processor"}, |
| 187 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_ADL_ID_N_0_4_1, |
| 188 | "12th generation (Alder Lake N family) Intel Processor"}, |
Matt DeVillier | 00e9c91 | 2024-01-15 13:35:30 -0600 | [diff] [blame] | 189 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_RPL_ID_H_8_6, |
| 190 | "13th generation (Raptor Lake H family) Core Processor"}, |
Filip Lewiński | eacc1c7 | 2024-04-12 16:39:47 +0200 | [diff] [blame] | 191 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_MTL_ID_M, |
| 192 | "14th generation (Meteor Lake M family) Core Processor"}, |
| 193 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_MTL_ID_P_1, |
| 194 | "14th generation (Meteor Lake P family) Core Processor"}, |
| 195 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_MTL_ID_P_2, |
| 196 | "14th generation (Meteor Lake P family) Core Processor"}, |
| 197 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_MTL_ID_P_3, |
| 198 | "14th generation (Meteor Lake P family) Core Processor"}, |
| 199 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_MTL_ID_P_4, |
| 200 | "14th generation (Meteor Lake P family) Core Processor"}, |
| 201 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_MTL_ID_P_5, |
| 202 | "14th generation (Meteor Lake P family) Core Processor"}, |
Stefan Tauner | 04c0600 | 2012-10-13 02:19:30 +0200 | [diff] [blame] | 203 | /* Southbridges (LPC controllers) */ |
| 204 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371XX, "371AB/EB/MB" }, |
Arthur Heymans | 026f7df | 2017-04-10 22:26:13 +0200 | [diff] [blame] | 205 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH10, "ICH10" }, |
Angel Pons | 65adc70 | 2021-11-14 15:34:02 +0100 | [diff] [blame] | 206 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH10D, "ICH10D" }, |
Idwer Vollering | 66dcda9 | 2020-07-09 14:16:39 +0200 | [diff] [blame] | 207 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH10DO, "ICH10DO" }, |
Warren Turkal | 9702b6b | 2009-06-30 14:11:42 +0000 | [diff] [blame] | 208 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH10R, "ICH10R" }, |
Anton Kochkov | da0b456 | 2010-05-30 12:33:12 +0000 | [diff] [blame] | 209 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9DH, "ICH9DH" }, |
| 210 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9DO, "ICH9DO" }, |
| 211 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9R, "ICH9R" }, |
| 212 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9, "ICH9" }, |
| 213 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9M, "ICH9M" }, |
| 214 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9ME, "ICH9M-E" }, |
Stefan Reinauer | 1162f25 | 2008-12-04 15:18:20 +0000 | [diff] [blame] | 215 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8M, "ICH8-M" }, |
Lubomir Rintel | 2a13bad | 2015-03-01 10:14:15 +0100 | [diff] [blame] | 216 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8ME, "ICH8M-E" }, |
Corey Osgood | f366ce0 | 2010-08-17 08:33:44 +0000 | [diff] [blame] | 217 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8, "ICH8" }, |
| 218 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_NM10, "NM10" }, |
Stefan Reinauer | 9f7af6e | 2008-05-14 14:22:59 +0000 | [diff] [blame] | 219 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7MDH, "ICH7-M DH" }, |
Stefan Reinauer | f9b9945 | 2008-05-14 20:05:00 +0000 | [diff] [blame] | 220 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7M, "ICH7-M" }, |
Stefan Reinauer | 9f7af6e | 2008-05-14 14:22:59 +0000 | [diff] [blame] | 221 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7, "ICH7" }, |
Stefan Reinauer | f9b9945 | 2008-05-14 20:05:00 +0000 | [diff] [blame] | 222 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7DH, "ICH7DH" }, |
Pat Erley | ca3548e | 2010-04-21 06:23:19 +0000 | [diff] [blame] | 223 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6, "ICH6" }, |
Idwer Vollering | 312fc96 | 2010-12-17 22:34:58 +0000 | [diff] [blame] | 224 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH5, "ICH5" }, |
Stefan Reinauer | 9f7af6e | 2008-05-14 14:22:59 +0000 | [diff] [blame] | 225 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH4M, "ICH4-M" }, |
| 226 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH4, "ICH4" }, |
Uwe Hermann | 710e8b1 | 2008-05-17 21:33:35 +0000 | [diff] [blame] | 227 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH2, "ICH2" }, |
Stefan Reinauer | 9f7af6e | 2008-05-14 14:22:59 +0000 | [diff] [blame] | 228 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH0, "ICH0" }, |
Maciej Pijanka | 90d1740 | 2009-09-30 17:05:46 +0000 | [diff] [blame] | 229 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH, "ICH" }, |
Stefan Tauner | 04c0600 | 2012-10-13 02:19:30 +0200 | [diff] [blame] | 230 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I63XX, "631xESB/632xESB/3100" }, |
| 231 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SCH_POULSBO_LPC, "SCH Poulsbo" }, |
Stefan Tauner | 088f569 | 2013-05-28 11:30:25 +0200 | [diff] [blame] | 232 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_3400_DESKTOP, "3400 Desktop" }, |
| 233 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_3400_MOBILE, "3400 Mobile" }, |
| 234 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_P55, "P55" }, |
| 235 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PM55, "PM55" }, |
| 236 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H55, "H55" }, |
| 237 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QM57, "QM57" }, |
| 238 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H57, "H57" }, |
| 239 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM55, "HM55" }, |
| 240 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q57, "Q57" }, |
| 241 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM57, "HM57" }, |
Youness Alaoui | 085d87b | 2017-04-13 12:55:31 -0400 | [diff] [blame] | 242 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_3400_MOBILE_SFF, |
| 243 | "3400 Mobile SFF" }, |
Stefan Tauner | 088f569 | 2013-05-28 11:30:25 +0200 | [diff] [blame] | 244 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B55_A, "B55" }, |
| 245 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QS57, "QS57" }, |
| 246 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_3400, "3400" }, |
| 247 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_3420, "3420" }, |
| 248 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_3450, "3450" }, |
| 249 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B55_B, "B55" }, |
Nico Huber | 76d6049 | 2013-03-29 17:57:15 +0100 | [diff] [blame] | 250 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z68, "Z68" }, |
| 251 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_P67, "P67" }, |
| 252 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UM67, "UM67" }, |
| 253 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM65, "HM65" }, |
| 254 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H67, "H67" }, |
| 255 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM67, "HM67" }, |
| 256 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q65, "Q65" }, |
| 257 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QS67, "QS67" }, |
| 258 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q67, "Q67" }, |
| 259 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QM67, "QM67" }, |
| 260 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B65, "B65" }, |
| 261 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C202, "C202" }, |
| 262 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C204, "C204" }, |
| 263 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C206, "C206" }, |
| 264 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H61, "H61" }, |
Stefan Tauner | 04c0600 | 2012-10-13 02:19:30 +0200 | [diff] [blame] | 265 | { PCI_VENDOR_ID_INTEL, 0x1d40, "X79" }, |
| 266 | { PCI_VENDOR_ID_INTEL, 0x1d41, "X79" }, |
Nico Huber | 76d6049 | 2013-03-29 17:57:15 +0100 | [diff] [blame] | 267 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z77, "Z77" }, |
| 268 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z75, "Z75" }, |
| 269 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q77, "Q77" }, |
| 270 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q75, "Q75" }, |
| 271 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B75, "B75" }, |
| 272 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H77, "H77" }, |
| 273 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C216, "C216" }, |
| 274 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QM77, "QM77" }, |
| 275 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QS77, "QS77" }, |
| 276 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM77, "HM77" }, |
| 277 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UM77, "UM77" }, |
| 278 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM76, "HM76" }, |
| 279 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM75, "HM75" }, |
| 280 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM70, "HM70" }, |
| 281 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_NM70, "NM70" }, |
Johanna Schander | d756c27 | 2019-12-29 14:31:01 +0100 | [diff] [blame] | 282 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICELAKE_LP_U, |
| 283 | "Icelake U LPC" }, |
Youness Alaoui | 085d87b | 2017-04-13 12:55:31 -0400 | [diff] [blame] | 284 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_FULL, |
| 285 | "Lynx Point Low Power Full Featured Engineering Sample" }, |
| 286 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_PREM, |
| 287 | "Lynx Point Low Power Premium SKU" }, |
| 288 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_BASE, |
| 289 | "Lynx Point Low Power Base SKU" }, |
Angel Pons | 4684dc0 | 2020-02-21 18:37:51 +0100 | [diff] [blame] | 290 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_WILDCATPOINT_LP_PREM, |
| 291 | "Wildcat Point Low Power Premium SKU" }, |
Youness Alaoui | 085d87b | 2017-04-13 12:55:31 -0400 | [diff] [blame] | 292 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_WILDCATPOINT_LP, |
Angel Pons | 4684dc0 | 2020-02-21 18:37:51 +0100 | [diff] [blame] | 293 | "Wildcat Point Low Power Base SKU" }, |
Stefan Tauner | 04c0600 | 2012-10-13 02:19:30 +0200 | [diff] [blame] | 294 | { PCI_VENDOR_ID_INTEL, 0x2310, "DH89xxCC" }, |
Martin Roth | 51dde6f | 2014-12-07 22:11:54 -0700 | [diff] [blame] | 295 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BAYTRAIL_LPC, "Bay Trail" }, |
Maximilian Schander | cb2d21d | 2017-10-28 14:45:48 +0200 | [diff] [blame] | 296 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_PRE, |
| 297 | "Sunrise Point Desktop Engineering Sample" }, |
Felix Singer | 0a7543d | 2019-02-19 23:49:11 +0100 | [diff] [blame] | 298 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_PRE, |
| 299 | "Sunrise Point-LP Engineering Sample" }, |
| 300 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_U_BASE_SKL, |
| 301 | "Sunrise Point-LP U Base/Skylake" }, |
| 302 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_Y_PREM_SKL, |
| 303 | "Sunrise Point-LP Y Premium/Skylake" }, |
| 304 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_U_PREM_SKL, |
| 305 | "Sunrise Point-LP U Premium/Skylake" }, |
| 306 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_U_BASE_KBL, |
| 307 | "Sunrise Point-LP U Base/Kabylake" }, |
| 308 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_Y_PREM_KBL, |
| 309 | "Sunrise Point-LP Y Premium/Kabylake" }, |
| 310 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_U_PREM_KBL, |
| 311 | "Sunrise Point-LP U Premium/Kabylake" }, |
Matthew Garrett | 2bf28e5 | 2018-07-23 21:09:47 -0700 | [diff] [blame] | 312 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_U_IHDCP_BASE, |
Felix Singer | 0a7543d | 2019-02-19 23:49:11 +0100 | [diff] [blame] | 313 | "Sunrise Point-LP U iHDCP 2.2 Base/Kabylake" }, |
Matthew Garrett | 2bf28e5 | 2018-07-23 21:09:47 -0700 | [diff] [blame] | 314 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_U_IHDCP_PREM, |
Felix Singer | 0a7543d | 2019-02-19 23:49:11 +0100 | [diff] [blame] | 315 | "Sunrise Point-LP U iHDCP 2.2 Premium/Kabylake" }, |
Matthew Garrett | 2bf28e5 | 2018-07-23 21:09:47 -0700 | [diff] [blame] | 316 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_Y_IHDCP_PREM, |
Felix Singer | 0a7543d | 2019-02-19 23:49:11 +0100 | [diff] [blame] | 317 | "Sunrise Point-LP Y iHDCP 2.2 Premium/Kabylake" }, |
Matt DeVillier | 3c78445 | 2019-06-11 23:23:46 -0500 | [diff] [blame] | 318 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CANNONPOINT_LP_U_PREM, |
| 319 | "Cannon Point-LP U Premium/CoffeeLake/Whiskeylake" }, |
Matt DeVillier | 62e883d | 2020-08-08 11:17:31 -0500 | [diff] [blame] | 320 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_COMETPOINT_LP_U_PREM, |
| 321 | "Comet Point-LP U Premium/Cometlake" }, |
| 322 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_COMETPOINT_LP_U_BASE, |
| 323 | "Comet Point-LP U Base/Cometlake" }, |
Michał Żygowski | 8ac40f3 | 2021-07-09 16:00:16 +0200 | [diff] [blame] | 324 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TIGERPOINT_U_SUPER, |
| 325 | "Tiger Point U Engineering Sample" }, |
| 326 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TIGERPOINT_U_PREM, |
| 327 | "Tiger Point U Premium/Tigerlake" }, |
| 328 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TIGERPOINT_U_BASE, |
| 329 | "Tiger Point U Base/Tigerlake" }, |
| 330 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TIGERPOINT_Y_SUPER, |
| 331 | "Tiger Point Y Engineering Sample" }, |
| 332 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TIGERPOINT_Y_PREM, |
| 333 | "Tiger Point Y Premium/Tigerlake" }, |
Maximilian Schander | cb2d21d | 2017-10-28 14:45:48 +0200 | [diff] [blame] | 334 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H110, "H110" }, |
| 335 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H170, "H170" }, |
| 336 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z170, "Z170" }, |
| 337 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q170, "Q170" }, |
| 338 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q150, "Q150" }, |
| 339 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B150, "B150" }, |
| 340 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C236, "C236" }, |
| 341 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C232, "C232" }, |
| 342 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QM170, "QM170" }, |
| 343 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM170, "HM170" }, |
Nico Huber | ed9c9ce | 2017-03-30 17:45:36 +0200 | [diff] [blame] | 344 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CM236, "CM236" }, |
Maximilian Schander | cb2d21d | 2017-10-28 14:45:48 +0200 | [diff] [blame] | 345 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM175, "HM175" }, |
| 346 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QM175, "QM175" }, |
| 347 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CM238, "CM238" }, |
Maxim Polyakov | ec32e61 | 2019-08-16 19:15:12 +0300 | [diff] [blame] | 348 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C621, "C621" }, |
Jingle Hsu | 4067fa3 | 2020-11-03 20:46:41 +0800 | [diff] [blame] | 349 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C621A, "C621A" }, |
Maxim Polyakov | ec32e61 | 2019-08-16 19:15:12 +0300 | [diff] [blame] | 350 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C622, "C622" }, |
| 351 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C624, "C624" }, |
| 352 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C625, "C625" }, |
| 353 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C626, "C626" }, |
| 354 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C627, "C627" }, |
| 355 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C628, "C628" }, |
| 356 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C629, "C629" }, |
| 357 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C624_SUPER, "C624 Super SKU" }, |
| 358 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C627_SUPER_1, "C627 Super SKU" }, |
| 359 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C621_SUPER, "C621 Super SKU" }, |
| 360 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C627_SUPER_2, "C627 Super SKU" }, |
| 361 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C628_SUPER, "C628 Super SKU" }, |
Jonathan Zhang | 4caa05e | 2021-05-03 14:06:22 -0700 | [diff] [blame] | 362 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_EBG, "Emmits Burg" }, |
Timofey Komarov | 6c80082 | 2021-06-25 12:07:32 +0300 | [diff] [blame] | 363 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H270, "H270" }, |
| 364 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z270, "Z270" }, |
| 365 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q270, "Q270" }, |
| 366 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q250, "Q250" }, |
| 367 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B250, "B250" }, |
| 368 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z370, "Z370" }, |
| 369 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H310C, "H310C" }, |
| 370 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_X299, "X299" }, |
Thomas Heijligen | 725369f | 2019-02-19 10:51:34 +0000 | [diff] [blame] | 371 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H310, "H310" }, |
| 372 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H370, "H370" }, |
| 373 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z390, "Z390" }, |
| 374 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q370, "Q370" }, |
| 375 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B360, "B360" }, |
| 376 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C246, "C246" }, |
| 377 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C242, "C242" }, |
| 378 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QM370, "QM370" }, |
| 379 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM370, "HM370" }, |
| 380 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CM246, "CM246" }, |
qeed | b775a62 | 2018-06-19 19:52:19 -0400 | [diff] [blame] | 381 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C8_MOBILE, "C8 Mobile"}, |
| 382 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C8_DESKTOP, "C8 Desktop"}, |
| 383 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z87, "Z87"}, |
| 384 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z85, "Z85"}, |
| 385 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM86, "HM86"}, |
| 386 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H87, "H87"}, |
| 387 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM87, "HM87"}, |
| 388 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q85, "Q85"}, |
| 389 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q87, "Q87"}, |
| 390 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QM87, "QM87"}, |
| 391 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B85, "B85"}, |
| 392 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C222, "C222"}, |
| 393 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C224, "C224"}, |
| 394 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C226, "C226"}, |
| 395 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H81, "H81"}, |
Angel Pons | aa4cd73 | 2022-10-07 00:18:04 +0200 | [diff] [blame] | 396 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C9_MOBILE, "C9 Mobile"}, |
| 397 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C9_DESKTOP, "C9 Desktop"}, |
| 398 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM97, "HM97"}, |
| 399 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z97, "Z97"}, |
| 400 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H97, "H97"}, |
Nico Huber | 94473af | 2018-11-20 12:10:29 +0100 | [diff] [blame] | 401 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_APL_LPC, "Apollo Lake" }, |
Thomas Heijligen | da02719 | 2019-01-12 19:20:50 +0100 | [diff] [blame] | 402 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_DNV_LPC, "Denverton" }, |
Sean Rhodes | 645dde7 | 2021-10-22 09:31:22 +0100 | [diff] [blame] | 403 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_GLK_LPC, "Gemini Lake" }, |
Michał Żygowski | 8ac40f3 | 2021-07-09 16:00:16 +0200 | [diff] [blame] | 404 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H510, "H510" }, |
| 405 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H570, "H570" }, |
| 406 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z590, "Z590" }, |
| 407 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q570, "Q570" }, |
| 408 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B560, "B560" }, |
| 409 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_W580, "W580" }, |
| 410 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C256, "C256" }, |
| 411 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C252, "C252" }, |
| 412 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM570, "HM570" }, |
| 413 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QM580, "QM580" }, |
| 414 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_WM590, "WM590" }, |
Maximilian Brune | 8d1051f | 2022-08-08 12:55:57 +0200 | [diff] [blame] | 415 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H610E, "H610E" }, |
| 416 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q670E, "Q670E" }, |
| 417 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_R680E, "R680E" }, |
Michał Kopeć | 2d8edeb | 2022-04-05 10:40:03 +0200 | [diff] [blame] | 418 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H610, "H610" }, |
| 419 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B660, "B660" }, |
| 420 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H670, "H670" }, |
| 421 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q670, "Q670" }, |
| 422 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z690, "Z690" }, |
| 423 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_W680, "W680" }, |
Michał Kopeć | 2d8edeb | 2022-04-05 10:40:03 +0200 | [diff] [blame] | 424 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_WM690, "WM690" }, |
| 425 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM670, "HM670" }, |
Michał Żygowski | 472d83b | 2023-06-16 12:49:12 +0200 | [diff] [blame] | 426 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_W790, "W790" }, |
| 427 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Z790, "Z790" }, |
| 428 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_H770, "H770" }, |
| 429 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B760, "B760" }, |
Michał Kopeć | 2d8edeb | 2022-04-05 10:40:03 +0200 | [diff] [blame] | 430 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HM770, "HM770" }, |
Michał Żygowski | 472d83b | 2023-06-16 12:49:12 +0200 | [diff] [blame] | 431 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_WM790, "WM790" }, |
| 432 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C262, "C262" }, |
| 433 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_C266, "C266" }, |
Kacper Stojek | 76d2b66 | 2022-10-17 14:30:24 +0200 | [diff] [blame] | 434 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_EHL, "Elkhart Lake" }, |
Karol Zmyslowski | b2f5a22 | 2023-03-10 19:44:04 +0100 | [diff] [blame] | 435 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_JSL, "Jasper Lake" }, |
Brandon Weeks | 7ee7b13 | 2023-12-26 15:55:03 -0800 | [diff] [blame] | 436 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ADL_N, "Alder Lake-N"}, |
Matt DeVillier | 00e9c91 | 2024-01-15 13:35:30 -0600 | [diff] [blame] | 437 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_RPL_P, "Raptor Lake" }, |
Kacper Stojek | 76d2b66 | 2022-10-17 14:30:24 +0200 | [diff] [blame] | 438 | |
Patrick Rudolph | 2d26a36 | 2017-11-07 19:51:21 +0100 | [diff] [blame] | 439 | /* Intel GPUs */ |
| 440 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_G35_EXPRESS, |
| 441 | "Intel(R) G35 Express Chipset Family" }, |
| 442 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_G35_EXPRESS_1, |
| 443 | "Intel(R) G35 Express Chipset Family" }, |
| 444 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_965_EXPRESS, |
| 445 | "Mobile Intel(R) 965 Express Chipset Family" }, |
| 446 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_965_EXPRESS_1, |
| 447 | "Mobile Intel(R) 965 Express Chipset Family" }, |
| 448 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_965_EXPRESS_2, |
| 449 | "Mobile Intel(R) 965 Express Chipset Family" }, |
| 450 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_965_EXPRESS_3, |
| 451 | "Mobile Intel(R) 965 Express Chipset Family" }, |
| 452 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_4_SERIES, |
| 453 | "Mobile Intel(R) 4 Series Express Chipset Family" }, |
| 454 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_4_SERIES_1, |
| 455 | "Mobile Intel(R) 4 Series Express Chipset Family" }, |
| 456 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_G45, |
| 457 | "Intel(R) G45/G43 Express Chipset Family" }, |
| 458 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_G45_1, |
| 459 | "Intel(R) G45/G43 Express Chipset Family" }, |
| 460 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q45, |
| 461 | "Intel(R) Q45/Q43 Express Chipset Family" }, |
| 462 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_Q45_1, |
| 463 | "Intel(R) Q45/Q43 Express Chipset Family" }, |
| 464 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_G41, |
| 465 | "Intel(R) G41 Express Chipset Family" }, |
| 466 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_G41_1, |
| 467 | "Intel(R) G41 Express Chipset Family" }, |
| 468 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B43, |
| 469 | "Intel(R) B43 Express Chipset Family" }, |
| 470 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B43_1, |
| 471 | "Intel(R) B43 Express Chipset Family" }, |
| 472 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B43_2, |
| 473 | "Intel(R) B43 Express Chipset Family" }, |
| 474 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_B43_3, |
| 475 | "Intel(R) B43 Express Chipset Family" }, |
| 476 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_GRAPHICS, |
| 477 | "Intel(R) HD Graphics" }, |
| 478 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_GRAPHICS_1, |
| 479 | "Intel(R) HD Graphics" }, |
| 480 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_GRAPHICS_2, |
| 481 | "Intel(R) HD Graphics" }, |
| 482 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_2000, |
| 483 | "Intel(R) HD 2000 Graphics" }, |
| 484 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_2000_1, |
| 485 | "Intel(R) HD 2000 Graphics" }, |
| 486 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_3000, |
| 487 | "Intel(R) HD 3000 Graphics" }, |
| 488 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_3000_1, |
| 489 | "Intel(R) HD 3000 Graphics" }, |
| 490 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_3000_2, |
| 491 | "Intel(R) HD 3000 Graphics" }, |
| 492 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_3000_3, |
| 493 | "Intel(R) HD 3000 Graphics" }, |
| 494 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_3000_4, |
| 495 | "Intel(R) HD 3000 Graphics" }, |
| 496 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_3000_5, |
| 497 | "Intel(R) HD 3000 Graphics" }, |
| 498 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_2500, |
| 499 | "Intel(R) HD 2500 Graphics" }, |
| 500 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_2500_1, |
| 501 | "Intel(R) HD 2500 Graphics" }, |
| 502 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_2500_2, |
| 503 | "Intel(R) HD 2500 Graphics" }, |
| 504 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_4000, |
| 505 | "Intel(R) HD 4000 Graphics" }, |
| 506 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_4000_1, |
| 507 | "Intel(R) HD 4000 Graphics" }, |
| 508 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_4000_2, |
| 509 | "Intel(R) HD 4000 Graphics" }, |
Sellerie | 409a5dc | 2019-07-26 15:09:18 +0200 | [diff] [blame] | 510 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_4400, |
| 511 | "Intel(R) HD 4400 Graphics" }, |
Arashk Mahshidfar | e607ddc | 2022-05-20 11:20:21 +0430 | [diff] [blame] | 512 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_4400_1, |
| 513 | "Intel(R) HD 4400 Graphics" }, |
Patrick Rudolph | 2d26a36 | 2017-11-07 19:51:21 +0100 | [diff] [blame] | 514 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_4600, |
| 515 | "Intel(R) HD 4600 Graphics" }, |
| 516 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_4600_1, |
| 517 | "Intel(R) HD 4600 Graphics" }, |
| 518 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_5000, |
| 519 | "Intel(R) HD 5000 Graphics" }, |
| 520 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_5000_1, |
| 521 | "Intel(R) HD 5000 Graphics" }, |
| 522 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_5000_2, |
| 523 | "Intel(R) HD 5000 Graphics" }, |
Felix Singer | 24b000a | 2019-01-02 14:44:54 +0100 | [diff] [blame] | 524 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_510, |
| 525 | "Intel(R) HD Graphics 510" }, |
| 526 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_515, |
| 527 | "Intel(R) HD Graphics 515" }, |
| 528 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_520, |
| 529 | "Intel(R) HD Graphics 520" }, |
| 530 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_530_1, |
| 531 | "Intel(R) HD Graphics 530" }, |
| 532 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HD_530_2, |
| 533 | "Intel(R) HD Graphics 530" }, |
| 534 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_615_1, |
| 535 | "Intel(R) UHD Graphics 615" }, |
| 536 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_615_2, |
| 537 | "Intel(R) UHD Graphics 615" }, |
| 538 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_617, |
| 539 | "Intel(R) UHD Graphics 617" }, |
| 540 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_620_1, |
| 541 | "Intel(R) UHD Graphics 620" }, |
| 542 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_620_2, |
| 543 | "Intel(R) UHD Graphics 620" }, |
| 544 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_620_3, |
| 545 | "Intel(R) UHD Graphics 620" }, |
| 546 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_630_1, |
| 547 | "Intel(R) UHD Graphics 630" }, |
| 548 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_630_2, |
| 549 | "Intel(R) UHD Graphics 630" }, |
| 550 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_630_3, |
| 551 | "Intel(R) UHD Graphics 630" }, |
| 552 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_630_4, |
| 553 | "Intel(R) UHD Graphics 630" }, |
| 554 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_630_5, |
| 555 | "Intel(R) UHD Graphics 630" }, |
| 556 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_630_6, |
| 557 | "Intel(R) UHD Graphics 630" }, |
| 558 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_630_7, |
| 559 | "Intel(R) UHD Graphics 630" }, |
| 560 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UHD_640, |
| 561 | "Intel(R) UHD Graphics 640" }, |
| 562 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IRIS_540, |
| 563 | "Intel(R) Iris Graphics 540" }, |
| 564 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IRIS_550, |
| 565 | "Intel(R) Iris Graphics 550" }, |
| 566 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IRIS_PRO_580, |
| 567 | "Intel(R) Iris Pro Graphics 580" }, |
| 568 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IRIS_PLUS_650, |
| 569 | "Intel(R) Iris Plus Graphics 650" }, |
| 570 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IRIS_PLUS_655, |
| 571 | "Intel(R) Iris Plus Graphics 655" }, |
Johanna Schander | d756c27 | 2019-12-29 14:31:01 +0100 | [diff] [blame] | 572 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IRIS_PLUS_G7, |
| 573 | "Intel(R) Iris Plus Graphics G7" }, |
Michał Żygowski | 8ac40f3 | 2021-07-09 16:00:16 +0200 | [diff] [blame] | 574 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TGL_GT2_UY, |
| 575 | "Intel(R) Iris Xe Graphics" }, |
| 576 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TGL_GT2_Y, |
| 577 | "Intel(R) Iris Xe Graphics" }, |
| 578 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TGL_GT1, |
| 579 | "Intel(R) UHD Graphics for 11th Gen Intel(R) Processors" }, |
| 580 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TGL_GT1_2, |
| 581 | "Intel(R) UHD Graphics for 11th Gen Intel(R) Processors" }, |
| 582 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TGL_GT2_ULT_1, |
| 583 | "Intel(R) UHD Graphics for 11th Gen Intel(R) Processors" }, |
| 584 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TGL_GT2_ULT_2, |
| 585 | "Intel(R) UHD Graphics for 11th Gen Intel(R) Processors" }, |
Michał Kopeć | 2d8edeb | 2022-04-05 10:40:03 +0200 | [diff] [blame] | 586 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ADL_S_GT1, |
| 587 | "Intel(R) AlderLake-S GT1" }, |
| 588 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ADL_S_GT1_2, |
| 589 | "Intel(R) AlderLake-S GT1" }, |
| 590 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ADL_S_GT1_3, |
| 591 | "Intel(R) AlderLake-S GT1" }, |
| 592 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ADL_S_GT1_4, |
| 593 | "Intel(R) AlderLake-S GT1" }, |
Brandon Weeks | 7ee7b13 | 2023-12-26 15:55:03 -0800 | [diff] [blame] | 594 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ADL_N_UHD, |
| 595 | "Intel(R) UHD Graphics" }, |
| 596 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ADL_N_UHD_2, |
| 597 | "Intel(R) UHD Graphics" }, |
| 598 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ADL_N_UHD_3, |
Matt DeVillier | 62e883d | 2020-08-08 11:17:31 -0500 | [diff] [blame] | 599 | "Intel(R) UHD Graphics" }, |
Matt DeVillier | 00e9c91 | 2024-01-15 13:35:30 -0600 | [diff] [blame] | 600 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_RPL_H_IRIS_XE, |
| 601 | "Intel(R) Iris Xe Graphics [RPL-P]" }, |
Filip Lewiński | eacc1c7 | 2024-04-12 16:39:47 +0200 | [diff] [blame] | 602 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_MTL_M_GT2, |
| 603 | "Intel(R) MeteorLake-M GT2" }, |
| 604 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_MTL_P_GT2_1, |
| 605 | "Intel(R) MeteorLake-P GT2" }, |
| 606 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_MTL_P_GT2_2, |
| 607 | "Intel(R) MeteorLake-P GT2" }, |
| 608 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_MTL_P_GT2_3, |
| 609 | "Intel(R) MeteorLake-P GT2" }, |
| 610 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_MTL_P_GT2_4, |
| 611 | "Intel(R) MeteorLake-P GT2" }, |
Stefan Reinauer | 9f7af6e | 2008-05-14 14:22:59 +0000 | [diff] [blame] | 612 | }; |
| 613 | |
Stefan Reinauer | f7f2f25 | 2009-09-01 09:52:14 +0000 | [diff] [blame] | 614 | #ifndef __DARWIN__ |
Stefan Reinauer | 1162f25 | 2008-12-04 15:18:20 +0000 | [diff] [blame] | 615 | static int fd_mem; |
| 616 | |
Stefan Reinauer | cff573d | 2011-03-18 22:08:39 +0000 | [diff] [blame] | 617 | void *map_physical(uint64_t phys_addr, size_t len) |
Stefan Reinauer | 1162f25 | 2008-12-04 15:18:20 +0000 | [diff] [blame] | 618 | { |
| 619 | void *virt_addr; |
| 620 | |
| 621 | virt_addr = mmap(0, len, PROT_WRITE | PROT_READ, MAP_SHARED, |
| 622 | fd_mem, (off_t) phys_addr); |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 623 | |
Stefan Reinauer | 1162f25 | 2008-12-04 15:18:20 +0000 | [diff] [blame] | 624 | if (virt_addr == MAP_FAILED) { |
Stefan Reinauer | a7b296d | 2011-11-14 12:40:34 -0800 | [diff] [blame] | 625 | printf("Error mapping physical memory 0x%08" PRIx64 "[0x%zx]\n", |
| 626 | phys_addr, len); |
Stefan Reinauer | 1162f25 | 2008-12-04 15:18:20 +0000 | [diff] [blame] | 627 | return NULL; |
| 628 | } |
| 629 | |
| 630 | return virt_addr; |
| 631 | } |
| 632 | |
Stefan Reinauer | f7f2f25 | 2009-09-01 09:52:14 +0000 | [diff] [blame] | 633 | void unmap_physical(void *virt_addr, size_t len) |
Stefan Reinauer | 1162f25 | 2008-12-04 15:18:20 +0000 | [diff] [blame] | 634 | { |
| 635 | munmap(virt_addr, len); |
| 636 | } |
| 637 | #endif |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 638 | |
Jacob Garber | 6faccd1 | 2019-07-01 11:21:55 -0600 | [diff] [blame] | 639 | static void print_version(void) |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 640 | { |
| 641 | printf("inteltool v%s -- ", INTELTOOL_VERSION); |
| 642 | printf("Copyright (C) 2008 coresystems GmbH\n\n"); |
| 643 | printf( |
| 644 | "This program is free software: you can redistribute it and/or modify\n" |
| 645 | "it under the terms of the GNU General Public License as published by\n" |
| 646 | "the Free Software Foundation, version 2 of the License.\n\n" |
| 647 | "This program is distributed in the hope that it will be useful,\n" |
| 648 | "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" |
| 649 | "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" |
Martin Roth | eb20e60 | 2016-01-12 13:30:50 -0700 | [diff] [blame] | 650 | "GNU General Public License for more details.\n\n"); |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 651 | } |
| 652 | |
Jacob Garber | 6faccd1 | 2019-07-01 11:21:55 -0600 | [diff] [blame] | 653 | static void print_usage(const char *name) |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 654 | { |
Michael Niewöhner | 9952e72 | 2020-03-13 22:22:26 +0100 | [diff] [blame] | 655 | printf("usage: %s [-vh?gGrplmedPMaAsfSRx]\n", name); |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 656 | printf("\n" |
| 657 | " -v | --version: print the version\n" |
| 658 | " -h | --help: print this help\n\n" |
Alexander Couzens | aa3dd5d | 2015-01-03 02:52:10 +0100 | [diff] [blame] | 659 | " -s | --spi: dump southbridge spi and bios_cntrl registers\n" |
Stefan Tauner | 37fcd58 | 2016-05-10 23:16:33 +0200 | [diff] [blame] | 660 | " -f | --gfx: dump graphics registers (UNSAFE: may hang system!)\n" |
Iru Cai | 904538b | 2016-06-08 22:39:22 +0800 | [diff] [blame] | 661 | " -R | --ahci: dump AHCI registers\n" |
Idwer Vollering | b123e0d | 2014-08-25 23:59:42 +0200 | [diff] [blame] | 662 | " -g | --gpio: dump southbridge GPIO registers\n" |
Nico Huber | 09dcbf0 | 2013-04-01 15:08:04 +0200 | [diff] [blame] | 663 | " -G | --gpio-diffs: show GPIO differences from defaults\n" |
Idwer Vollering | b123e0d | 2014-08-25 23:59:42 +0200 | [diff] [blame] | 664 | " -r | --rcba: dump southbridge RCBA registers\n" |
| 665 | " -p | --pmbase: dump southbridge Power Management registers\n\n" |
Michael Niewöhner | 9952e72 | 2020-03-13 22:22:26 +0100 | [diff] [blame] | 666 | " -l | --lpc: dump southbridge LPC/eSPI Interface registers\n\n" |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 667 | " -m | --mchbar: dump northbridge Memory Controller registers\n" |
Stefan Tauner | 572f074 | 2016-05-05 17:29:39 +0200 | [diff] [blame] | 668 | " -S FILE | --spd=FILE: create a file storing current timings (implies -m)\n" |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 669 | " -e | --epbar: dump northbridge EPBAR registers\n" |
| 670 | " -d | --dmibar: dump northbridge DMIBAR registers\n" |
| 671 | " -P | --pciexpress: dump northbridge PCIEXBAR registers\n\n" |
| 672 | " -M | --msrs: dump CPU MSRs\n" |
Maxim Polyakov | d8163ed | 2019-10-09 18:35:23 +0300 | [diff] [blame] | 673 | " --cpu-range <start>[-<end>]: (optional) set CPU cores range for -M (--msrs) option\n" |
Sven Schnelle | 4b7b320 | 2012-01-08 15:27:18 +0100 | [diff] [blame] | 674 | " -A | --ambs: dump AMB registers\n" |
Pratik Prajapati | 91664d4 | 2017-07-24 13:53:26 -0700 | [diff] [blame] | 675 | " -x | --sgx: dump SGX status\n" |
Pratik Prajapati | 1e67816 | 2020-09-03 11:28:19 -0700 | [diff] [blame] | 676 | " -t | --tme: dump TME status\n" |
Pratikkumar Prajapati | c262b44 | 2022-12-19 09:52:34 -0800 | [diff] [blame] | 677 | " -k | --keylocker: dump Key Locker status\n" |
Stefan Tauner | 37fcd58 | 2016-05-10 23:16:33 +0200 | [diff] [blame] | 678 | " -a | --all: dump all known (safe) registers\n" |
Youness Alaoui | d8214d7e | 2018-03-13 16:58:52 -0400 | [diff] [blame] | 679 | " --pcr=PORT_ID: dump all registers of a PCR port\n" |
| 680 | " (may be specified max %d times)\n" |
| 681 | "\n", MAX_PCR_PORTS); |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 682 | exit(1); |
| 683 | } |
| 684 | |
Felix Singer | 19e3534 | 2019-10-25 00:16:22 +0200 | [diff] [blame] | 685 | static void print_system_info(struct pci_dev *nb, struct pci_dev *sb, struct pci_dev *gfx) |
| 686 | { |
| 687 | unsigned int id, i; |
| 688 | char *sbname = "unknown", *nbname = "unknown", *gfxname = "unknown"; |
| 689 | |
| 690 | id = cpuid(1); |
| 691 | |
| 692 | /* Determine names */ |
| 693 | for (i = 0; i < ARRAY_SIZE(supported_chips_list); i++) { |
| 694 | if (nb->device_id == supported_chips_list[i].device_id) |
| 695 | nbname = supported_chips_list[i].name; |
| 696 | } |
| 697 | for (i = 0; i < ARRAY_SIZE(supported_chips_list); i++) { |
| 698 | if (sb->device_id == supported_chips_list[i].device_id) |
| 699 | sbname = supported_chips_list[i].name; |
| 700 | } |
| 701 | if (gfx) { |
| 702 | for (i = 0; i < ARRAY_SIZE(supported_chips_list); i++) |
| 703 | if (gfx->device_id == supported_chips_list[i].device_id) |
| 704 | gfxname = supported_chips_list[i].name; |
| 705 | } |
| 706 | |
| 707 | /* Intel has suggested applications to display the family of a CPU as |
| 708 | * the sum of the "Family" and the "Extended Family" fields shown |
| 709 | * above, and the model as the sum of the "Model" and the 4-bit |
| 710 | * left-shifted "Extended Model" fields. |
| 711 | * http://download.intel.com/design/processor/applnots/24161832.pdf |
| 712 | */ |
| 713 | printf("CPU: ID 0x%x, Processor Type 0x%x, Family 0x%x, Model 0x%x, Stepping 0x%x\n", |
| 714 | id, (id >> 12) & 0x3, ((id >> 8) & 0xf) + ((id >> 20) & 0xff), |
| 715 | ((id >> 12) & 0xf0) + ((id >> 4) & 0xf), (id & 0xf)); |
| 716 | |
| 717 | printf("Northbridge: %04x:%04x (%s)\n", |
| 718 | nb->vendor_id, nb->device_id, nbname); |
| 719 | |
| 720 | printf("Southbridge: %04x:%04x (%s)\n", |
| 721 | sb->vendor_id, sb->device_id, sbname); |
| 722 | |
| 723 | if (gfx) |
| 724 | printf("IGD: %04x:%04x (%s)\n", |
| 725 | gfx->vendor_id, gfx->device_id, gfxname); |
| 726 | } |
| 727 | |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 728 | int main(int argc, char *argv[]) |
| 729 | { |
| 730 | struct pci_access *pacc; |
Iru Cai | 904538b | 2016-06-08 22:39:22 +0800 | [diff] [blame] | 731 | struct pci_dev *sb = NULL, *nb, *gfx = NULL, *ahci = NULL, *dev; |
Stefan Tauner | 572f074 | 2016-05-05 17:29:39 +0200 | [diff] [blame] | 732 | const char *dump_spd_file = NULL; |
Maciej Suminski | 3455672 | 2017-08-09 11:30:14 +0200 | [diff] [blame] | 733 | int opt, option_index = 0; |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 734 | |
Uwe Hermann | 9a6b6b5 | 2008-05-14 21:20:55 +0000 | [diff] [blame] | 735 | int dump_gpios = 0, dump_mchbar = 0, dump_rcba = 0; |
| 736 | int dump_pmbase = 0, dump_epbar = 0, dump_dmibar = 0; |
Sven Schnelle | 4b7b320 | 2012-01-08 15:27:18 +0100 | [diff] [blame] | 737 | int dump_pciexbar = 0, dump_coremsrs = 0, dump_ambs = 0; |
Pratik Prajapati | 1e67816 | 2020-09-03 11:28:19 -0700 | [diff] [blame] | 738 | int dump_spi = 0, dump_gfx = 0, dump_ahci = 0, dump_sgx = 0, dump_tme = 0; |
Pratikkumar Prajapati | c262b44 | 2022-12-19 09:52:34 -0800 | [diff] [blame] | 739 | int dump_lpc = 0, dump_keylocker = 0; |
Nico Huber | 09dcbf0 | 2013-04-01 15:08:04 +0200 | [diff] [blame] | 740 | int show_gpio_diffs = 0; |
Youness Alaoui | d8214d7e | 2018-03-13 16:58:52 -0400 | [diff] [blame] | 741 | size_t pcr_count = 0; |
| 742 | uint8_t dump_pcr[MAX_PCR_PORTS]; |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 743 | |
Maxim Polyakov | d8163ed | 2019-10-09 18:35:23 +0300 | [diff] [blame] | 744 | unsigned int cores_range_start = 0, cores_range_end = UINT_MAX; |
| 745 | |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 746 | static struct option long_options[] = { |
| 747 | {"version", 0, 0, 'v'}, |
| 748 | {"help", 0, 0, 'h'}, |
| 749 | {"gpios", 0, 0, 'g'}, |
Nico Huber | 09dcbf0 | 2013-04-01 15:08:04 +0200 | [diff] [blame] | 750 | {"gpio-diffs", 0, 0, 'G'}, |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 751 | {"mchbar", 0, 0, 'm'}, |
| 752 | {"rcba", 0, 0, 'r'}, |
| 753 | {"pmbase", 0, 0, 'p'}, |
Michael Niewöhner | 9952e72 | 2020-03-13 22:22:26 +0100 | [diff] [blame] | 754 | {"lpc", 0, 0, 'l'}, |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 755 | {"epbar", 0, 0, 'e'}, |
| 756 | {"dmibar", 0, 0, 'd'}, |
| 757 | {"pciexpress", 0, 0, 'P'}, |
| 758 | {"msrs", 0, 0, 'M'}, |
Maxim Polyakov | d8163ed | 2019-10-09 18:35:23 +0300 | [diff] [blame] | 759 | {"cpu-range", required_argument, 0, LONG_OPT_RANGE}, |
Sven Schnelle | 4b7b320 | 2012-01-08 15:27:18 +0100 | [diff] [blame] | 760 | {"ambs", 0, 0, 'A'}, |
Alexander Couzens | aa3dd5d | 2015-01-03 02:52:10 +0100 | [diff] [blame] | 761 | {"spi", 0, 0, 's'}, |
Vladimir Serbinenko | fb69a69 | 2015-10-10 13:20:32 +0200 | [diff] [blame] | 762 | {"spd", 0, 0, 'S'}, |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 763 | {"all", 0, 0, 'a'}, |
Vladimir Serbinenko | 188aec0 | 2015-05-20 14:04:41 +0200 | [diff] [blame] | 764 | {"gfx", 0, 0, 'f'}, |
Iru Cai | 904538b | 2016-06-08 22:39:22 +0800 | [diff] [blame] | 765 | {"ahci", 0, 0, 'R'}, |
Pratik Prajapati | 91664d4 | 2017-07-24 13:53:26 -0700 | [diff] [blame] | 766 | {"sgx", 0, 0, 'x'}, |
Youness Alaoui | d8214d7e | 2018-03-13 16:58:52 -0400 | [diff] [blame] | 767 | {"pcr", required_argument, 0, LONG_OPT_PCR}, |
Pratik Prajapati | 1e67816 | 2020-09-03 11:28:19 -0700 | [diff] [blame] | 768 | {"tme", 0, 0, 't'}, |
Pratikkumar Prajapati | c262b44 | 2022-12-19 09:52:34 -0800 | [diff] [blame] | 769 | {"keylocker", 0, 0, 'k'}, |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 770 | {0, 0, 0, 0} |
| 771 | }; |
| 772 | |
Pratikkumar Prajapati | c262b44 | 2022-12-19 09:52:34 -0800 | [diff] [blame] | 773 | while ((opt = getopt_long(argc, argv, "vh?gGrplmedPMaAsfRS:xtk", |
Uwe Hermann | 9a6b6b5 | 2008-05-14 21:20:55 +0000 | [diff] [blame] | 774 | long_options, &option_index)) != EOF) { |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 775 | switch (opt) { |
| 776 | case 'v': |
| 777 | print_version(); |
| 778 | exit(0); |
| 779 | break; |
Vladimir Serbinenko | fb69a69 | 2015-10-10 13:20:32 +0200 | [diff] [blame] | 780 | case 'S': |
| 781 | dump_spd_file = optarg; |
| 782 | dump_mchbar = 1; |
| 783 | break; |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 784 | case 'g': |
| 785 | dump_gpios = 1; |
| 786 | break; |
Vladimir Serbinenko | 188aec0 | 2015-05-20 14:04:41 +0200 | [diff] [blame] | 787 | case 'f': |
| 788 | dump_gfx = 1; |
| 789 | break; |
Iru Cai | 904538b | 2016-06-08 22:39:22 +0800 | [diff] [blame] | 790 | case 'R': |
| 791 | dump_ahci = 1; |
| 792 | break; |
Nico Huber | 09dcbf0 | 2013-04-01 15:08:04 +0200 | [diff] [blame] | 793 | case 'G': |
| 794 | show_gpio_diffs = 1; |
| 795 | break; |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 796 | case 'm': |
| 797 | dump_mchbar = 1; |
| 798 | break; |
| 799 | case 'r': |
| 800 | dump_rcba = 1; |
| 801 | break; |
| 802 | case 'p': |
| 803 | dump_pmbase = 1; |
| 804 | break; |
Michael Niewöhner | 9952e72 | 2020-03-13 22:22:26 +0100 | [diff] [blame] | 805 | case 'l': |
| 806 | dump_lpc = 1; |
| 807 | break; |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 808 | case 'e': |
| 809 | dump_epbar = 1; |
| 810 | break; |
| 811 | case 'd': |
| 812 | dump_dmibar = 1; |
| 813 | break; |
| 814 | case 'P': |
| 815 | dump_pciexbar = 1; |
| 816 | break; |
| 817 | case 'M': |
| 818 | dump_coremsrs = 1; |
| 819 | break; |
Maxim Polyakov | d8163ed | 2019-10-09 18:35:23 +0300 | [diff] [blame] | 820 | case LONG_OPT_RANGE: |
| 821 | if (strlen(optarg) == 0) { |
| 822 | print_usage(argv[0]); |
| 823 | exit(1); |
| 824 | } |
| 825 | const int sscanf_ret = sscanf(optarg, "%u-%u", &cores_range_start, &cores_range_end); |
| 826 | if (sscanf_ret == 1) { |
| 827 | /* the end of the range is not specified - only for one core */ |
| 828 | cores_range_end = cores_range_start; |
| 829 | } else if (sscanf_ret != 2) { |
| 830 | print_usage(argv[0]); |
| 831 | exit(1); |
| 832 | } else if (cores_range_end < cores_range_start) { |
| 833 | printf("Error: invalid cores range <%u-%u>!\n", |
| 834 | cores_range_start, cores_range_end); |
| 835 | exit(1); |
| 836 | } |
| 837 | break; |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 838 | case 'a': |
| 839 | dump_gpios = 1; |
Nico Huber | 09dcbf0 | 2013-04-01 15:08:04 +0200 | [diff] [blame] | 840 | show_gpio_diffs = 1; |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 841 | dump_mchbar = 1; |
| 842 | dump_rcba = 1; |
| 843 | dump_pmbase = 1; |
Michael Niewöhner | 9952e72 | 2020-03-13 22:22:26 +0100 | [diff] [blame] | 844 | dump_lpc = 1; |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 845 | dump_epbar = 1; |
| 846 | dump_dmibar = 1; |
| 847 | dump_pciexbar = 1; |
| 848 | dump_coremsrs = 1; |
Sven Schnelle | 4b7b320 | 2012-01-08 15:27:18 +0100 | [diff] [blame] | 849 | dump_ambs = 1; |
Alexander Couzens | aa3dd5d | 2015-01-03 02:52:10 +0100 | [diff] [blame] | 850 | dump_spi = 1; |
Iru Cai | 904538b | 2016-06-08 22:39:22 +0800 | [diff] [blame] | 851 | dump_ahci = 1; |
Pratik Prajapati | 91664d4 | 2017-07-24 13:53:26 -0700 | [diff] [blame] | 852 | dump_sgx = 1; |
Pratik Prajapati | 1e67816 | 2020-09-03 11:28:19 -0700 | [diff] [blame] | 853 | dump_tme = 1; |
Pratikkumar Prajapati | c262b44 | 2022-12-19 09:52:34 -0800 | [diff] [blame] | 854 | dump_keylocker = 1; |
Sven Schnelle | 4b7b320 | 2012-01-08 15:27:18 +0100 | [diff] [blame] | 855 | break; |
| 856 | case 'A': |
| 857 | dump_ambs = 1; |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 858 | break; |
Alexander Couzens | aa3dd5d | 2015-01-03 02:52:10 +0100 | [diff] [blame] | 859 | case 's': |
| 860 | dump_spi = 1; |
| 861 | break; |
Pratik Prajapati | 91664d4 | 2017-07-24 13:53:26 -0700 | [diff] [blame] | 862 | case 'x': |
| 863 | dump_sgx = 1; |
| 864 | break; |
Pratik Prajapati | 1e67816 | 2020-09-03 11:28:19 -0700 | [diff] [blame] | 865 | case 't': |
| 866 | dump_tme = 1; |
| 867 | break; |
Pratikkumar Prajapati | c262b44 | 2022-12-19 09:52:34 -0800 | [diff] [blame] | 868 | case 'k': |
| 869 | dump_keylocker = 1; |
| 870 | break; |
Youness Alaoui | d8214d7e | 2018-03-13 16:58:52 -0400 | [diff] [blame] | 871 | case LONG_OPT_PCR: |
| 872 | if (pcr_count < MAX_PCR_PORTS) { |
| 873 | errno = 0; |
| 874 | const unsigned long int pcr = |
| 875 | strtoul(optarg, NULL, 0); |
| 876 | if (strlen(optarg) == 0 || errno) { |
| 877 | print_usage(argv[0]); |
| 878 | exit(1); |
| 879 | } |
| 880 | dump_pcr[pcr_count++] = (uint8_t)pcr; |
| 881 | } else { |
| 882 | print_usage(argv[0]); |
| 883 | exit(1); |
| 884 | } |
| 885 | break; |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 886 | case 'h': |
| 887 | case '?': |
| 888 | default: |
| 889 | print_usage(argv[0]); |
| 890 | exit(0); |
| 891 | break; |
| 892 | } |
| 893 | } |
| 894 | |
Idwer Vollering | 3f91d81 | 2010-10-24 13:50:13 +0000 | [diff] [blame] | 895 | #if defined(__FreeBSD__) |
Stefan Tauner | 0c8b7d1 | 2013-04-05 20:38:08 +0200 | [diff] [blame] | 896 | if (open("/dev/io", O_RDWR) < 0) { |
Idwer Vollering | 3f91d81 | 2010-10-24 13:50:13 +0000 | [diff] [blame] | 897 | perror("/dev/io"); |
Andrey Korolyov | 046d217 | 2016-01-05 19:59:06 +0300 | [diff] [blame] | 898 | #elif defined(__NetBSD__) |
| 899 | # ifdef __i386__ |
| 900 | if (i386_iopl(3)) { |
| 901 | perror("iopl"); |
| 902 | # else |
| 903 | if (x86_64_iopl(3)) { |
| 904 | perror("iopl"); |
| 905 | # endif |
Idwer Vollering | 3f91d81 | 2010-10-24 13:50:13 +0000 | [diff] [blame] | 906 | #else |
Uwe Hermann | 9a6b6b5 | 2008-05-14 21:20:55 +0000 | [diff] [blame] | 907 | if (iopl(3)) { |
Idwer Vollering | 3f91d81 | 2010-10-24 13:50:13 +0000 | [diff] [blame] | 908 | perror("iopl"); |
| 909 | #endif |
Uwe Hermann | 9a6b6b5 | 2008-05-14 21:20:55 +0000 | [diff] [blame] | 910 | printf("You need to be root.\n"); |
| 911 | exit(1); |
| 912 | } |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 913 | |
Stefan Reinauer | f7f2f25 | 2009-09-01 09:52:14 +0000 | [diff] [blame] | 914 | #ifndef __DARWIN__ |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 915 | if ((fd_mem = open("/dev/mem", O_RDWR)) < 0) { |
| 916 | perror("Can not open /dev/mem"); |
| 917 | exit(1); |
| 918 | } |
Stefan Reinauer | 1162f25 | 2008-12-04 15:18:20 +0000 | [diff] [blame] | 919 | #endif |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 920 | |
| 921 | pacc = pci_alloc(); |
Nico Huber | 99b02a1 | 2017-04-05 17:39:57 +0200 | [diff] [blame] | 922 | pacc->method = PCI_ACCESS_I386_TYPE1; |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 923 | pci_init(pacc); |
| 924 | pci_scan_bus(pacc); |
| 925 | |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 926 | /* Find the required devices */ |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 927 | for (dev = pacc->devices; dev; dev = dev->next) { |
Maciej Pijanka | 90d1740 | 2009-09-30 17:05:46 +0000 | [diff] [blame] | 928 | pci_fill_info(dev, PCI_FILL_CLASS); |
| 929 | /* The ISA/LPC bridge can be 0x1f, 0x07, or 0x04 so we probe. */ |
| 930 | if (dev->device_class == 0x0601) { /* ISA/LPC bridge */ |
Mathias Krause | 5ad6ec5 | 2014-11-05 21:27:01 +0100 | [diff] [blame] | 931 | if (sb == NULL) { |
Maciej Pijanka | 90d1740 | 2009-09-30 17:05:46 +0000 | [diff] [blame] | 932 | sb = dev; |
Mathias Krause | 5ad6ec5 | 2014-11-05 21:27:01 +0100 | [diff] [blame] | 933 | } else { |
Maciej Pijanka | 90d1740 | 2009-09-30 17:05:46 +0000 | [diff] [blame] | 934 | fprintf(stderr, "Multiple devices with class ID" |
| 935 | " 0x0601, using %02x%02x:%02x.%02x\n", |
Mathias Krause | 5ad6ec5 | 2014-11-05 21:27:01 +0100 | [diff] [blame] | 936 | sb->domain, sb->bus, sb->dev, sb->func); |
| 937 | break; |
| 938 | } |
Maciej Pijanka | 90d1740 | 2009-09-30 17:05:46 +0000 | [diff] [blame] | 939 | } |
| 940 | } |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 941 | |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 942 | if (!sb) { |
| 943 | printf("No southbridge found.\n"); |
| 944 | exit(1); |
| 945 | } |
| 946 | |
Nico Huber | ac826c8 | 2017-03-31 12:09:58 +0200 | [diff] [blame] | 947 | pci_fill_info(sb, PCI_FILL_IDENT | PCI_FILL_BASES | PCI_FILL_CLASS); |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 948 | |
| 949 | if (sb->vendor_id != PCI_VENDOR_ID_INTEL) { |
| 950 | printf("Not an Intel(R) southbridge.\n"); |
| 951 | exit(1); |
| 952 | } |
| 953 | |
| 954 | nb = pci_get_dev(pacc, 0, 0, 0x00, 0); |
| 955 | if (!nb) { |
| 956 | printf("No northbridge found.\n"); |
| 957 | exit(1); |
| 958 | } |
| 959 | |
Nico Huber | ac826c8 | 2017-03-31 12:09:58 +0200 | [diff] [blame] | 960 | pci_fill_info(nb, PCI_FILL_IDENT | PCI_FILL_BASES | PCI_FILL_CLASS); |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 961 | |
| 962 | if (nb->vendor_id != PCI_VENDOR_ID_INTEL) { |
| 963 | printf("Not an Intel(R) northbridge.\n"); |
| 964 | exit(1); |
| 965 | } |
| 966 | |
Vladimir Serbinenko | 188aec0 | 2015-05-20 14:04:41 +0200 | [diff] [blame] | 967 | gfx = pci_get_dev(pacc, 0, 0, 0x02, 0); |
Vladimir Serbinenko | 188aec0 | 2015-05-20 14:04:41 +0200 | [diff] [blame] | 968 | if (gfx) { |
Nico Huber | ac826c8 | 2017-03-31 12:09:58 +0200 | [diff] [blame] | 969 | pci_fill_info(gfx, PCI_FILL_IDENT | PCI_FILL_BASES | |
| 970 | PCI_FILL_CLASS); |
Stefan Reinauer | f3b1a53 | 2020-10-23 01:42:25 +0000 | [diff] [blame] | 971 | if ((gfx->device_class & 0xff00) != 0x0300) |
| 972 | gfx = NULL; |
| 973 | else if (gfx->vendor_id != PCI_VENDOR_ID_INTEL) |
| 974 | gfx = NULL; |
Vladimir Serbinenko | 188aec0 | 2015-05-20 14:04:41 +0200 | [diff] [blame] | 975 | } |
| 976 | |
Nico Huber | da94e17 | 2017-03-30 17:47:24 +0200 | [diff] [blame] | 977 | if (sb->device_id == PCI_DEVICE_ID_INTEL_BAYTRAIL_LPC) { |
Marshall Dawson | 5c32549 | 2016-11-17 16:51:13 -0700 | [diff] [blame] | 978 | ahci = pci_get_dev(pacc, 0, 0, 0x13, 0); |
Nico Huber | da94e17 | 2017-03-30 17:47:24 +0200 | [diff] [blame] | 979 | } else { |
Marshall Dawson | 5c32549 | 2016-11-17 16:51:13 -0700 | [diff] [blame] | 980 | ahci = pci_get_dev(pacc, 0, 0, 0x1f, 2); |
Nico Huber | da94e17 | 2017-03-30 17:47:24 +0200 | [diff] [blame] | 981 | if (ahci) { |
| 982 | pci_fill_info(ahci, PCI_FILL_CLASS); |
| 983 | if (ahci->device_class != PCI_CLASS_STORAGE_SATA) |
| 984 | ahci = pci_get_dev(pacc, 0, 0, 0x17, 0); |
| 985 | } |
| 986 | } |
Iru Cai | 904538b | 2016-06-08 22:39:22 +0800 | [diff] [blame] | 987 | |
| 988 | if (ahci) { |
Nico Huber | ac826c8 | 2017-03-31 12:09:58 +0200 | [diff] [blame] | 989 | pci_fill_info(ahci, PCI_FILL_IDENT | PCI_FILL_BASES | |
| 990 | PCI_FILL_CLASS); |
Iru Cai | 904538b | 2016-06-08 22:39:22 +0800 | [diff] [blame] | 991 | |
Nico Huber | da94e17 | 2017-03-30 17:47:24 +0200 | [diff] [blame] | 992 | if (ahci->vendor_id != PCI_VENDOR_ID_INTEL || |
| 993 | ahci->device_class != PCI_CLASS_STORAGE_SATA) |
| 994 | ahci = NULL; |
Iru Cai | 904538b | 2016-06-08 22:39:22 +0800 | [diff] [blame] | 995 | } |
| 996 | |
Felix Singer | 19e3534 | 2019-10-25 00:16:22 +0200 | [diff] [blame] | 997 | print_system_info(nb, sb, gfx); |
Vladimir Serbinenko | 188aec0 | 2015-05-20 14:04:41 +0200 | [diff] [blame] | 998 | |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 999 | /* Now do the deed */ |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 1000 | if (dump_gpios) { |
Nico Huber | 09dcbf0 | 2013-04-01 15:08:04 +0200 | [diff] [blame] | 1001 | print_gpios(sb, 1, show_gpio_diffs); |
| 1002 | printf("\n\n"); |
| 1003 | } else if (show_gpio_diffs) { |
| 1004 | print_gpios(sb, 0, show_gpio_diffs); |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 1005 | printf("\n\n"); |
| 1006 | } |
| 1007 | |
| 1008 | if (dump_rcba) { |
| 1009 | print_rcba(sb); |
| 1010 | printf("\n\n"); |
| 1011 | } |
| 1012 | |
| 1013 | if (dump_pmbase) { |
Tobias Diedrich | 3645e61 | 2010-11-27 14:44:19 +0000 | [diff] [blame] | 1014 | print_pmbase(sb, pacc); |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 1015 | printf("\n\n"); |
| 1016 | } |
| 1017 | |
Michael Niewöhner | 9952e72 | 2020-03-13 22:22:26 +0100 | [diff] [blame] | 1018 | if (dump_lpc) { |
| 1019 | print_lpc(sb, pacc); |
| 1020 | printf("\n\n"); |
| 1021 | } |
| 1022 | |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 1023 | if (dump_mchbar) { |
Vladimir Serbinenko | fb69a69 | 2015-10-10 13:20:32 +0200 | [diff] [blame] | 1024 | print_mchbar(nb, pacc, dump_spd_file); |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 1025 | printf("\n\n"); |
| 1026 | } |
| 1027 | |
| 1028 | if (dump_epbar) { |
| 1029 | print_epbar(nb); |
| 1030 | printf("\n\n"); |
| 1031 | } |
| 1032 | |
| 1033 | if (dump_dmibar) { |
| 1034 | print_dmibar(nb); |
| 1035 | printf("\n\n"); |
| 1036 | } |
| 1037 | |
| 1038 | if (dump_pciexbar) { |
| 1039 | print_pciexbar(nb); |
| 1040 | printf("\n\n"); |
| 1041 | } |
| 1042 | |
| 1043 | if (dump_coremsrs) { |
Maxim Polyakov | d8163ed | 2019-10-09 18:35:23 +0300 | [diff] [blame] | 1044 | print_intel_msrs(cores_range_start, cores_range_end); |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 1045 | printf("\n\n"); |
| 1046 | } |
| 1047 | |
Pratik Prajapati | 015082d | 2017-07-25 11:16:55 -0700 | [diff] [blame] | 1048 | if (dump_ambs) |
Sven Schnelle | 4b7b320 | 2012-01-08 15:27:18 +0100 | [diff] [blame] | 1049 | print_ambs(nb, pacc); |
Alexander Couzens | aa3dd5d | 2015-01-03 02:52:10 +0100 | [diff] [blame] | 1050 | |
Pratik Prajapati | 015082d | 2017-07-25 11:16:55 -0700 | [diff] [blame] | 1051 | if (dump_spi) |
Alexander Couzens | aa3dd5d | 2015-01-03 02:52:10 +0100 | [diff] [blame] | 1052 | print_spi(sb); |
Vladimir Serbinenko | 188aec0 | 2015-05-20 14:04:41 +0200 | [diff] [blame] | 1053 | |
Pratik Prajapati | 015082d | 2017-07-25 11:16:55 -0700 | [diff] [blame] | 1054 | if (dump_gfx) |
Vladimir Serbinenko | 188aec0 | 2015-05-20 14:04:41 +0200 | [diff] [blame] | 1055 | print_gfx(gfx); |
Vladimir Serbinenko | 188aec0 | 2015-05-20 14:04:41 +0200 | [diff] [blame] | 1056 | |
Pratik Prajapati | 015082d | 2017-07-25 11:16:55 -0700 | [diff] [blame] | 1057 | if (dump_ahci) |
Iru Cai | 904538b | 2016-06-08 22:39:22 +0800 | [diff] [blame] | 1058 | print_ahci(ahci); |
Iru Cai | 904538b | 2016-06-08 22:39:22 +0800 | [diff] [blame] | 1059 | |
Pratik Prajapati | 91664d4 | 2017-07-24 13:53:26 -0700 | [diff] [blame] | 1060 | if (dump_sgx) |
| 1061 | print_sgx(); |
| 1062 | |
Pratik Prajapati | 1e67816 | 2020-09-03 11:28:19 -0700 | [diff] [blame] | 1063 | if (dump_tme) |
| 1064 | print_tme(); |
| 1065 | |
Pratikkumar Prajapati | c262b44 | 2022-12-19 09:52:34 -0800 | [diff] [blame] | 1066 | if (dump_keylocker) |
| 1067 | print_keylocker(); |
| 1068 | |
Youness Alaoui | d8214d7e | 2018-03-13 16:58:52 -0400 | [diff] [blame] | 1069 | if (pcr_count) |
| 1070 | print_pcr_ports(sb, dump_pcr, pcr_count); |
| 1071 | |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 1072 | /* Clean up */ |
Nico Huber | 99b02a1 | 2017-04-05 17:39:57 +0200 | [diff] [blame] | 1073 | pcr_cleanup(); |
Nico Huber | 0660c6c | 2017-04-05 17:33:46 +0200 | [diff] [blame] | 1074 | if (ahci) |
| 1075 | pci_free_dev(ahci); |
| 1076 | if (gfx) |
| 1077 | pci_free_dev(gfx); |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 1078 | pci_free_dev(nb); |
Nico Huber | 0660c6c | 2017-04-05 17:33:46 +0200 | [diff] [blame] | 1079 | /* `sb` wasn't allocated by pci_get_dev() */ |
Stefan Reinauer | 03646be | 2008-05-13 22:14:21 +0000 | [diff] [blame] | 1080 | pci_cleanup(pacc); |
| 1081 | |
| 1082 | return 0; |
| 1083 | } |