C3 venues: the Iris venue allows the RPL-P alone, which its translation key names
Iris venue: allow the RPL-P alone; the RPL-S derives another translation key
Since SEMANTICS 2128 DriverWorkaround::PushReadsLengthenThreadPayload is keyed on the Iris Xe of
RPL-P (8086:a7a0) alone, where it was measured. The UHD Graphics 770 of RPL-S, which the
intel-irisxe-rplp-anv venue also allowed, has a capture that differs from the RPL-P's only in
maxMemoryAllocationSize, but its derived profile does not take the workaround, so its translation
key differs. Venues::check_profiles refuses that, and every test that loads the committed venue
list failed, among them candidate::engine::guards::tests::no_venue_runs_a_guarded_target_under_
robustness_1_alone, the c3 venue tests and the two-device profile test.
The RPL-S leaves the venue: translation tells the two apart, and no cluster host has an RPL-S to
record a venue of its own. Its capture stays committed (other tests read it as a device profile).
- c3-venues.json: the Iris venue's devices are the RPL-P alone.
- c3::tests: the venue allows the RPL-P alone; pushing the RPL-S with its own capture is refused
as a device that derives another key and needs a venue of its own; the RPL-P's capture under
the RPL-S's identity is refused as another device's.
- candidate::platform::profiles::tests::the_intel_venue_allows_the_rplp_alone_and_stops_the_rpls
(was one_intel_venue_allows_both_devices_and_stops_any_other): the captures still differ only
in maxMemoryAllocationSize, the workaround is the RPL-P's and not the RPL-S's, the keys differ,
and the venue runs the RPL-P and stops the RPL-S on its name, device ID and driver build.
- c3/venues.rs docs and the regen script's comment say so.
Verified: cargo fmt; built and tested in the next potluck job.
Iris venue tests: the RPL-S also stops on its key and allocation size; six venue devices
The venue no longer allows the RPL-S (51c031e187), so its check against the
RPL-P's venue reports, past its four identity differences, its own
translation key and its host's maxMemoryAllocationSize; and the venues allow
six devices, not seven. Both tests now say so.
Verified: cargo fmt; clippy and the c3/candidate tests run as a potluck job.
Iris venue tests: the venues that present the requirements documents no longer list the RPL-S
The RPL-S is no venue device since 51c031e187, so the presented-on lists of
lunarg-desktop-baseline-2023 and roadmap-2022 drop it.
Verified: cargo fmt; clippy and the c3/candidate tests run as a potluck job.
Fix for development's red since SEMANTICS 2128 (d3b1dbdbe0): DriverWorkaround::PushReadsLengthenThreadPayload is keyed on the RPL-P (8086:a7a0) alone, so the RPL-S capture's derived profile takes another translation key, and every test that loads the committed venues failed (c3::tests x6, guards::no_venue_runs_a_guarded_target_under_robustness_1_alone, profiles::tests x2, integration authored_compile_census and private_corpus_root). Verified (m3-max-34762, msi, at b5d745e599): validation clippy --all-targets --all-features 0; c3:: + candidate:: tests 270/270.
This commit is contained in:
1 parent
2dae45566e
commit
bcd50aba9f
5 files changed
+94
-84
No files matched your search
@@ -89,17 +89,6 @@
|
||||
"driver_version": 109060102,
|
||||
"driver_info": "Mesa 26.2.6-arch3.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"profile": "intel-uhd770-rpls-anv",
|
||||
"identity": {
|
||||
"device": "Intel(R) Graphics (RPL-S)",
|
||||
"vendor_id": 32902,
|
||||
"device_id": 42880,
|
||||
"driver_id": 6,
|
||||
"driver_version": 109060100,
|
||||
"driver_info": "Mesa 26.2.4-arch3.1"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -2703,8 +2703,10 @@ fn a_venue_profile_is_a_capture_of_the_venues_own_device() {
|
||||
),
|
||||
"{error}"
|
||||
);
|
||||
// The Intel venue allows the RPL-P and the RPL-S, each with its own capture; either capture
|
||||
// under the other device is another device's.
|
||||
// The Intel venue allows the RPL-P alone: the RPL-S's own capture derives another key, its
|
||||
// profile not taking the workaround measured on the RPL-P
|
||||
// (`DriverWorkaround::PushReadsLengthenThreadPayload`); and the RPL-P's capture under the RPL-S
|
||||
// is another device's.
|
||||
let intel = committed
|
||||
.venues
|
||||
.iter()
|
||||
@@ -2716,13 +2718,26 @@ fn a_venue_profile_is_a_capture_of_the_venues_own_device() {
|
||||
.iter()
|
||||
.map(|device| (device.profile.as_str(), device.identity.device_id))
|
||||
.collect::<Vec<_>>(),
|
||||
[
|
||||
("intel-irisxe-rplp-anv", 0xa7a0),
|
||||
("intel-uhd770-rpls-anv", 0xa780)
|
||||
]
|
||||
[("intel-irisxe-rplp-anv", 0xa7a0)]
|
||||
);
|
||||
let rpls = |profile: &str| VenueDevice {
|
||||
profile: profile.into(),
|
||||
identity: VenueProfile::committed("intel-uhd770-rpls-anv")
|
||||
.unwrap()
|
||||
.identity,
|
||||
metal_environment_id: None,
|
||||
};
|
||||
let error = refusal("intel-irisxe-rplp-anv", &|venue| {
|
||||
venue.devices.push(rpls("intel-uhd770-rpls-anv"));
|
||||
});
|
||||
assert!(
|
||||
error.contains("Intel(R) Graphics (RPL-S)")
|
||||
&& error.contains("derives translation key")
|
||||
&& error.contains("needs a venue of its own"),
|
||||
"{error}"
|
||||
);
|
||||
let error = refusal("intel-irisxe-rplp-anv", &|venue| {
|
||||
venue.devices[1].profile = "intel-irisxe-rplp-anv".into();
|
||||
venue.devices.push(rpls("intel-irisxe-rplp-anv"));
|
||||
});
|
||||
assert!(
|
||||
error.contains("device: Intel(R) Graphics (RPL-S) (Intel(R) Iris(R) Xe Graphics (RPL-P))")
|
||||
|
||||
@@ -13,9 +13,11 @@
|
||||
//! recorded under the new driver read stale until the venue's declared identities change, and once
|
||||
//! they change, every row of the older driver reads stale until it is recorded again. Neither is
|
||||
//! ever silently current. A venue allows several devices only when translation cannot tell them
|
||||
//! apart: one driver build, and captures that derive one translation key (the Raptor Lake Xe-LP
|
||||
//! venue allows the Iris Xe of RPL-P and the UHD Graphics 770 of RPL-S), so its slots can be
|
||||
//! recorded on any of those machines. A device Metal runs on (an Apple GPU under MoltenVK) names
|
||||
//! apart: one driver build, and captures that derive one translation key, so its slots can be
|
||||
//! recorded on any of those machines. The Iris Xe of RPL-P and the UHD Graphics 770 of RPL-S are
|
||||
//! not such a pair: their captures differ only in `maxMemoryAllocationSize`, but the RPL-P's
|
||||
//! profile takes `DriverWorkaround::PushReadsLengthenThreadPayload`, measured on that GPU alone,
|
||||
//! and so derives another key; the Intel venue allows the RPL-P alone. A device Metal runs on (an Apple GPU under MoltenVK) names
|
||||
//! its own GPU's Metal reference environment ([`VenueDevice::metal_environment_id`]), and a run on
|
||||
//! it is compared with that environment's rows alone, since Metal's own answers differ between
|
||||
//! Apple GPUs.
|
||||
|
||||
@@ -686,18 +686,20 @@ fn a_venue_run_stops_on_identity_or_key_and_reports_unread_members() {
|
||||
);
|
||||
}
|
||||
|
||||
/// One venue, two devices: `intel-irisxe-rplp-anv` allows the Iris Xe (RPL-P) it was first captured
|
||||
/// on (ANV 26.2.6) and the UHD Graphics 770 (RPL-S, ANV 26.2.4). Their committed captures describe
|
||||
/// the same capabilities but for `maxMemoryAllocationSize`, which the driver sizes from its host's
|
||||
/// memory and no translation reads (`DeviceDescription::allocation`): both derive the venue's
|
||||
/// translation key, so a run on either proceeds and only reports the size. A device the venue does
|
||||
/// not allow stops on its identity, each field named against the nearest allowed identity; a venue
|
||||
/// allowing the RPL-P alone stops the RPL-S on its name, device ID and driver build.
|
||||
/// Two Raptor Lake Xe-LP devices, two translation keys: the Iris Xe of RPL-P (ANV 26.2.6), which
|
||||
/// `intel-irisxe-rplp-anv` was captured on, and the UHD Graphics 770 of RPL-S (ANV 26.2.4). Their
|
||||
/// committed captures describe the same capabilities but for `maxMemoryAllocationSize`, which the
|
||||
/// driver sizes from its host's memory and no translation reads (`DeviceDescription::allocation`),
|
||||
/// yet the RPL-P's profile takes `DriverWorkaround::PushReadsLengthenThreadPayload`, measured on
|
||||
/// that GPU alone, and the RPL-S's does not: the two derive two keys, so the venue allows the RPL-P
|
||||
/// alone (a device of another key needs a venue of its own, `Venues::check_profiles`). The RPL-P
|
||||
/// runs there; the RPL-S stops on its name, device ID and driver build, its translation key and
|
||||
/// its allocation size.
|
||||
#[test]
|
||||
fn one_intel_venue_allows_both_devices_and_stops_any_other() {
|
||||
fn the_intel_venue_allows_the_rplp_alone_and_stops_the_rpls() {
|
||||
use metal2vulkan::device::DriverWorkaround;
|
||||
let venue = crate::c3::VenueProfile::committed("intel-irisxe-rplp-anv").unwrap();
|
||||
let rpls = crate::c3::VenueProfile::committed("intel-uhd770-rpls-anv").unwrap();
|
||||
assert_eq!(rpls.fingerprint, venue.fingerprint);
|
||||
let described = differences(&venue.description, &rpls.description)
|
||||
.iter()
|
||||
.map(ToString::to_string)
|
||||
@@ -707,56 +709,58 @@ fn one_intel_venue_allows_both_devices_and_stops_any_other() {
|
||||
described[0].starts_with("allocation.max_memory_allocation_size: "),
|
||||
"{described:?}"
|
||||
);
|
||||
let allowed = [venue.identity.clone(), rpls.identity.clone()];
|
||||
for (device, unread) in [(&venue, Vec::new()), (&rpls, described.clone())] {
|
||||
let check = venue_check(&venue, &allowed, &device.identity, &device.description).unwrap();
|
||||
assert_eq!(
|
||||
check,
|
||||
crate::c3::VenueCheck {
|
||||
stops: Vec::new(),
|
||||
unread
|
||||
},
|
||||
"{}",
|
||||
device.stem
|
||||
);
|
||||
}
|
||||
let mut other = rpls.identity.clone();
|
||||
other.device_id = 0xa788;
|
||||
let check = venue_check(&venue, &allowed, &other, &rpls.description).unwrap();
|
||||
let takes = |description: &DeviceDescription| {
|
||||
let profile = crate::acceptance::derived_profile(description.clone()).unwrap();
|
||||
profile
|
||||
.workarounds()
|
||||
.contains(&DriverWorkaround::PushReadsLengthenThreadPayload)
|
||||
};
|
||||
assert_eq!(
|
||||
check.stops,
|
||||
[format!(
|
||||
"identity device_id: {} ({})",
|
||||
rpls.identity.device_id, other.device_id
|
||||
)]
|
||||
(takes(&venue.description), takes(&rpls.description)),
|
||||
(true, false),
|
||||
"the workaround, on the RPL-P and the RPL-S"
|
||||
);
|
||||
let check = venue_check(
|
||||
&venue,
|
||||
std::slice::from_ref(&venue.identity),
|
||||
&rpls.identity,
|
||||
&rpls.description,
|
||||
)
|
||||
.unwrap();
|
||||
assert_ne!(rpls.fingerprint, venue.fingerprint);
|
||||
let allowed = std::slice::from_ref(&venue.identity);
|
||||
let check = venue_check(&venue, allowed, &venue.identity, &venue.description).unwrap();
|
||||
assert_eq!(
|
||||
check.stops,
|
||||
[
|
||||
format!(
|
||||
"identity device: {} ({})",
|
||||
venue.identity.device, rpls.identity.device
|
||||
),
|
||||
format!(
|
||||
"identity device_id: {} ({})",
|
||||
venue.identity.device_id, rpls.identity.device_id
|
||||
),
|
||||
format!(
|
||||
"identity driver_version: {} ({})",
|
||||
venue.identity.driver_version, rpls.identity.driver_version
|
||||
),
|
||||
format!(
|
||||
"identity driver_info: {} ({})",
|
||||
venue.identity.driver_info, rpls.identity.driver_info
|
||||
),
|
||||
]
|
||||
check,
|
||||
crate::c3::VenueCheck {
|
||||
stops: Vec::new(),
|
||||
unread: Vec::new()
|
||||
}
|
||||
);
|
||||
let check = venue_check(&venue, allowed, &rpls.identity, &rpls.description).unwrap();
|
||||
let identity = [
|
||||
format!(
|
||||
"identity device: {} ({})",
|
||||
venue.identity.device, rpls.identity.device
|
||||
),
|
||||
format!(
|
||||
"identity device_id: {} ({})",
|
||||
venue.identity.device_id, rpls.identity.device_id
|
||||
),
|
||||
format!(
|
||||
"identity driver_version: {} ({})",
|
||||
venue.identity.driver_version, rpls.identity.driver_version
|
||||
),
|
||||
format!(
|
||||
"identity driver_info: {} ({})",
|
||||
venue.identity.driver_info, rpls.identity.driver_info
|
||||
),
|
||||
];
|
||||
assert_eq!(
|
||||
check.stops.get(..identity.len()),
|
||||
Some(&identity[..]),
|
||||
"{check:?}"
|
||||
);
|
||||
// Past its identity, its key and its host's allocation size.
|
||||
let rest = check.stops.get(identity.len()..).unwrap_or_default();
|
||||
assert_eq!(rest.len(), 2, "{check:?}");
|
||||
assert!(rest[0].starts_with("translation key: "), "{check:?}");
|
||||
assert!(
|
||||
rest[1].starts_with("allocation.max_memory_allocation_size: "),
|
||||
"{check:?}"
|
||||
);
|
||||
}
|
||||
/// The restricted context requires the description it queries through the layer to be the profile
|
||||
@@ -1158,13 +1162,13 @@ fn presented(
|
||||
#[test]
|
||||
fn a_completed_requirements_document_presents_as_the_product_reads_it_on_every_venue() {
|
||||
let venues = crate::c3::Venues::load(&crate::c3::Venues::committed_path()).unwrap();
|
||||
// Every device a venue allows, by its own capture (the Intel venue's two).
|
||||
// Every device a venue allows, by its own capture.
|
||||
let venue_profiles: BTreeSet<String> = venues
|
||||
.venues
|
||||
.iter()
|
||||
.flat_map(|venue| venue.devices.iter().map(|device| device.profile.clone()))
|
||||
.collect();
|
||||
assert_eq!(venue_profiles.len(), 7, "{venue_profiles:?}");
|
||||
assert_eq!(venue_profiles.len(), 6, "{venue_profiles:?}");
|
||||
let Err(RestrictionError::Mismatch { fields, .. }) = presented(
|
||||
&without_block("lunarg-desktop-baseline-2023"),
|
||||
"nvidia-rtx5080-laptop",
|
||||
@@ -1218,7 +1222,6 @@ fn a_completed_requirements_document_presents_as_the_product_reads_it_on_every_v
|
||||
[
|
||||
"amd-780m-radv",
|
||||
"intel-irisxe-rplp-anv",
|
||||
"intel-uhd770-rpls-anv",
|
||||
"nvidia-rtx5080-laptop"
|
||||
]
|
||||
);
|
||||
@@ -1229,7 +1232,6 @@ fn a_completed_requirements_document_presents_as_the_product_reads_it_on_every_v
|
||||
"gate-lavapipe",
|
||||
"gate-lavapipe-x86_64",
|
||||
"intel-irisxe-rplp-anv",
|
||||
"intel-uhd770-rpls-anv",
|
||||
"nvidia-rtx5080-laptop"
|
||||
]
|
||||
);
|
||||
|
||||
@@ -465,9 +465,11 @@ SOURCES = [
|
||||
},
|
||||
},
|
||||
{
|
||||
# The second device the intel-irisxe-rplp-anv venue allows: an i9-13900's UHD Graphics 770
|
||||
# (Raptor Lake-S), captured under ANV 26.2.4 (the venue's Iris Xe (RPL-P) is captured
|
||||
# under 26.2.6); its capture derives the venue's translation key.
|
||||
# An i9-13900's UHD Graphics 770 (Raptor Lake-S), captured under ANV 26.2.4 (the
|
||||
# intel-irisxe-rplp-anv venue's Iris Xe (RPL-P) is captured under 26.2.6). Its capture
|
||||
# derives another translation key than the venue's (the RPL-P's profile takes
|
||||
# DriverWorkaround::PushReadsLengthenThreadPayload, measured on that GPU alone), so that
|
||||
# venue does not allow it.
|
||||
"name": "intel-uhd770-rpls-anv",
|
||||
"kind": "vulkaninfo",
|
||||
"sha256": "c4088e885bf46fc414e55a56fdb0f5b946ae6a34af61e2667891cab6089f8ca2",
|
||||
|
||||
Reference in new issue
Block a user