Tests: the texture-over-dma-buf residency test waits for the in-place checks as their own tests do

host_residency::a_texture_in_place_over_a_dma_buf_import_leaves_it_releasable waited for the
device's in-place checks within SETTLE (20 s), the bound for an import's release. On ms01's Iris
Xe in the round at d0f800ddd0 (m3-max-18134) the checks took longer and the test failed with "the
in-place checks never answered" at 27 s, while the in-place check's own tests in the same run
passed at 47-56 s. It now waits CHECKS (120 s), the bound in_place_check.rs and copied_device.rs
use. Test-only.
This commit is contained in:
Anees Iqbal committed 2026-11-11 18:00:28 -08:00
1 parent b0f40ec5e2
commit bb113bd5eb
1 file changed
+5 -1
@@ -53,6 +53,10 @@ const WAIT: Duration = Duration::from_secs(60);
/// residency thread to release one.
const SETTLE: Duration = Duration::from_secs(20);
/// The longest a test waits for the device's in-place checks to answer, as the in-place check's
/// own tests wait: on a loaded Iris Xe they took 47-56 s (m3-max-18134).
const CHECKS: Duration = Duration::from_secs(120);
/// How long the device leaves an import idle before its residency thread releases it the first
/// time (`host_residency::IDLE`), less the residency clock's millisecond rounding.
const FIRST_WINDOW: Duration = Duration::from_millis(1990);
@@ -683,7 +687,7 @@ fn a_texture_in_place_over_a_dma_buf_import_leaves_it_releasable() {
in_place.policy.host_page_textures = HostPageTexturePolicy::InPlace;
let device = &settled(Device::system_default_with(&in_place).unwrap());
assert!(
device.settle_in_place_checks(SETTLE),
device.settle_in_place_checks(CHECKS),
"{TEST}: the in-place checks never answered"
);
let page = host_page();