| # Copyright 2021 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| AUTHOR = "ChromeOS Team" |
| NAME = "firmware_CbfsMcache" |
| METADATA = { |
| "contacts": ["chromeos-faft@google.com", "jbettis@chromium.org"], |
| "bug_component": "b:792402", # ChromeOS > Platform > Enablement > Firmware > FAFT |
| "criteria": "Ensure the CBFS metadata cache did not overflow", |
| } |
| ATTRIBUTES = "suite:faft_bios, suite:faft_bios_ro_qual, suite:faft_bios_rw_qual, suite:faft_bios_autotests" |
| TIME = "SHORT" |
| TEST_TYPE = "client" |
| |
| DOC = """ |
| The CBFS metadata cache size in coreboot is configured by CONFIG_CBFS_MCACHE_SIZE |
| (x86) or the size of the CBFS_MCACHE() region defined in memlayout (arm). If the |
| mcache overflows, the platform will still boot securely but needs to read data |
| from flash more times than necessary, leading to avoidable boot time impact. If |
| this test fails, the mcache size should be increased until it doesn't. (If the |
| RW mcache overflows by a lot, adjusting CONFIG_CBFS_MCACHE_RW_PERCENTAGE may |
| also be interesting.) |
| |
| """ |
| |
| job.run_test('firmware_CbfsMcache') |