From 6b06f3529997ef8ce4695983eb2f27745f5732b5 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Sat, 5 Dec 2026 12:31:51 +1100 Subject: [PATCH] tools/asahi: fix two host tests broken by concurrent merges Two merges that landed in the same sweep each passed on their own, but together they broke main's host tests: - sleep-legacy-fw-tests: apple_sleep_undescribed() now reads s->gp_pcie_undescribed, which the test fixture's struct apple_sleep doesn't have, so the fixture no longer compiles. Add the member (zero, as on a board without the gp PCIe gap). - t6030-pmp-graph-tests --mutations: #4304 added a second branch that reads "apple,no-ack", so the no-storage-policy mutation's pattern matches twice and the harness refuses it. Anchor the pattern on the "} else {" that follows the record-start branch it is meant to break. Tested: run-host-tests.py --only sleep-legacy-fw (1/1) and --only t6030-pmp-graph (2/2, the mutation is killed again); the full local run at main f02bd68a had only these two failures (1249/1251). Signed-off-by: Ryan Murray --- tools/asahi/sleep-legacy-fw-tests.c | 1 + tools/asahi/t6030-pmp-graph-tests.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/asahi/sleep-legacy-fw-tests.c b/tools/asahi/sleep-legacy-fw-tests.c index dbfdbb1905e66..7adca1dc541c1 100644 --- a/tools/asahi/sleep-legacy-fw-tests.c +++ b/tools/asahi/sleep-legacy-fw-tests.c @@ -45,6 +45,7 @@ struct apple_sleep { } display[1]; struct device_node *gpu_np; void *apcie_phy_tunable; + bool gp_pcie_undescribed; }; static unsigned int warn_count; diff --git a/tools/asahi/t6030-pmp-graph-tests.py b/tools/asahi/t6030-pmp-graph-tests.py index 6e6d1829f7cf9..b08c03c957baa 100644 --- a/tools/asahi/t6030-pmp-graph-tests.py +++ b/tools/asahi/t6030-pmp-graph-tests.py @@ -133,7 +133,7 @@ def with_t8122(text): ('no-managed-owner', '.starts_pmp = IS_ENABLED(CONFIG_APPLE_T6030_GPU_PMP_LINK)', '.starts_pmp = false'), ('no-managed-probe', 'ret = apple_pmp_start_init(rep);', 'ret = 0; (void)apple_pmp_start_init;'), ('no-child-seeding', 'apple_pmp_report_entry_set_state(&ent->genpd, true);', '0;'), - ('no-storage-policy', 'ent->no_ack = of_property_read_bool(node, "apple,no-ack");\n\t}', 'ent->no_ack = false;\n\t}'), + ('no-storage-policy', 'ent->no_ack = of_property_read_bool(node, "apple,no-ack");\n\t} else {', 'ent->no_ack = false;\n\t} else {'), ('external-startup-ack', '!of_property_read_bool(child, "apple,defer-startup-ack")', 'true'), ('ignore-seeded-state', 'status || request != st->seed', 'status'), ('ignore-halted-state', 'status || request != st->seed', 'request != st->seed'),