Skip to content

Commit d61aeec

Browse files
committed
Update configs and files for some external tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
1 parent 6d27c8b commit d61aeec

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

chipsec/cfg/8086/HOSTCTL/hostctl11gen.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
<?xml version="1.0"?>
22
<configuration>
33

4-
<mmio>
5-
<bar name="PXPEPBAR" register="PXPEPBAR" base_field="PXPEPBAR" size="0x1000" enable_bit="0" desc="PCI Express Egress Port Register Range"/>
6-
<bar name="MCHBAR" register="MCHBAR" base_field="MCHBAR" size="0x8000" enable_bit="0" desc="Host Memory Mapped Register Range"/>
7-
<bar name="MMCFG" register="PCIEXBAR" base_field="PXPEPBAR" size="0x1000" enable_bit="0" desc="PCI Express Register Range"/>
8-
<bar name="DMIBAR" register="DMIBAR" base_field="DMIBAR" size="0x1000" enable_bit="0" desc="Root Complex Register Range"/>
9-
<!-- VT-d BARs -->
10-
<bar name="VTBAR" register="VTBAR" base_field="Base" size="0x1000" enable_field="Enable" desc="Intel VT-d Register Register Range"/>
11-
<bar name="GFXVTBAR" register="GFXVTBAR" base_field="Base" size="0x1000" enable_field="Enable" desc="Intel Processor Graphics VT-d Register Range"/>
12-
</mmio>
13-
144
<!-- #################################### -->
155
<!-- -->
166
<!-- Configuration registers -->

chipsec/cfg/8086/MMIO/pwrm0.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<field name="SCIS" bit="0" size="3" desc="SCI IRQ Select"/>
1212
</register>
1313
<register name="PM_CFG" type="mmio" bar="PWRMBASE" offset="0x1818" size="4" desc="Power Management Configuration Reg 1"/>
14+
<register name="ETR3" type="mmio" bar="PWRMBASE" offset="0x1048" size="4" desc="Extended Test Mode Register 3">
15+
<field name="CF9GR" bit="20" size="1" desc="CF9h Global Reset"/>
16+
<field name="CF9LOCK" bit="31" size="1" desc="CF9h Lock"/>
17+
</register>
1418
</registers>
1519

1620
<controls>

chipsec/cfg/8086/tglu.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ http://www.intel.com/content/www/us/en/processors/core/core-technical-resources.
4949
<!-- -->
5050
<!-- #################################### -->
5151
<pci>
52-
<device name="HOSTCTL" bus="0x0" dev="0x00" fun="0" did="0x9A14" config="HOSTCTL.hostctl11gen.xml"/>
52+
<device name="HOSTCTL" bus="0x0" dev="0x00" fun="0" did="0x9A14" config="HOSTCTL.hostctl11gen.xml">
53+
<subcomponent type="mmiobar" name="MCHBAR" register="MCHBAR" base_field="MCHBAR" size="0x8000" enable_bit="0" config="MMIO.mmio0.xml" />
54+
</device>
5355
<!-- <device name="HOSTCTL" bus="0x0" dev="0x00" fun="0" config="IOMMU.iommu.xml"/> -->
5456
<device name="IGD" bus="0x0" dev="0x02" fun="0" config="IGD.igd0.xml"/>
5557
<device name="MEI1" bus="0x0" dev="0x16" fun="0" config="ME.mei0.xml" />

chipsec/library/register.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,10 @@ def has_field(self, reg_name: str, field_name: str) -> bool:
337337
reg_defs = self.cs.Cfg.get_reglist(reg_name)
338338
except RegisterNotFoundError:
339339
return False
340-
for reg_def in reg_defs:
341-
try:
342-
return field_name in reg_def.fields
343-
except KeyError:
344-
return False
345-
return False
340+
try:
341+
return bool(reg_defs) and all([field_name in reg_def.fields for reg_def in reg_defs])
342+
except KeyError:
343+
return False
346344

347345
def get_match(self, name: str) -> List[str]:
348346
"""

tests/modules/tgl/common-remap_test.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
],
3232
"(4275851416,8)": [
3333
"0"
34+
],
35+
"(4275886224,8)": [
36+
"549754765312"
37+
],
38+
"(4275886232,8)": [
39+
"0"
3440
]
3541
},
3642
"read_msr": {

tests/modules/tgl/enumeration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
},
133133
"read_pci_reg": {
134134
"(0,0,0,0,4)": [
135-
"1493467270"
135+
"2585034886"
136136
],
137137
"(0,0,0,8,1)": [
138138
"1"

0 commit comments

Comments
 (0)