Lines Matching +full:data +full:- +full:bits

4 # SPDX-License-Identifier: BSD-3-Clause
24 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
34 import bits
35 import bits.mwait
70 if subtable.flags.bits.enabled:
81 if subtable.flags.bits.enabled:
93 # We special-case None here to avoid a double-failure for CPUs without a _PSS
124 with bits.mwait.use_hint(), bits.preserve_msr(IA32_PERF_CTL):
143 return bits.cpus()[0]
145 bclk = testutil.adjust_to_nearest(bits.bclk(), 100.0/12) * 1000000
160 bits.wrmsr(apicid, IA32_PERF_CTL, pstate.control)
163 # since turbo frequency = max non-turbo frequency + 1
170 while (time.time() - start < 2):
174 frequency_data = bits.cpu_frequency(duration)
195 …if not testsuite.test("_PSD (P-State Dependency) must exist for each processor", None not in uniqu…
225 …testsuite.test('_PSD.domain must be unique (thread-scoped) for each processor', len(unique_domain)…
230 def test_table_checksum(data):
231 csum = sum(ord(c) for c in data) % 0x100
236 data = acpi.get_table("APIC")
237 if data is None:
239 test_table_checksum(data)
243 data = acpi.get_table("DSDT")
244 if data is None:
246 test_table_checksum(data)
249 data = acpi.get_table("FACP")
250 if data is None:
252 test_table_checksum(data)
256 data = acpi.get_table("HPET")
257 if data is None:
259 test_table_checksum(data)
263 data = acpi.get_table("MPST")
264 if data is None:
266 test_table_checksum(data)
267 mpst = acpi.MPST(data)
270 data = acpi.get_table("RSD PTR ")
271 if data is None:
275 csum = sum(ord(c) for c in data[:20]) % 0x100
279 test_table_checksum(data)
283 data = acpi.get_table("XSDT")
284 if data is None:
286 test_table_checksum(data)