Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions drivers/gpu/drm/asahi/g17/fw/variant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ pub(crate) struct Variant {
/// A context takes its render pool identity when it is created, not at its first render,
/// so that identities held by render graphs kept until the firmware stops refuse new
/// contexts with an error instead of failing a context's first render. Set for the A18
/// Pro and M4 Max (`25G83`/`26B123`); M4 Pro and M4 Max `25F84` keep the first-render
/// claim until tested on that hardware.
/// Pro, M4 Pro and M4 Max `25G83` and M4 Max `26B123`; `25F84` keeps the first-render
/// claim until tested on that firmware.
pub(crate) render_id_at_create: bool,
/// Cached descriptor storage, queue records and queue configuration that come back
/// after their owner's release was consumed are reused once the firmware has consumed
Expand Down Expand Up @@ -207,8 +207,9 @@ pub(crate) const V25G83: Variant = Variant {
mcache: false,
// A fragment stage with the few-primitives flag hangs.
few_primitives: false,
// Not measured on this firmware.
render_stage_prefixes: false,
// Tiling and fragment kicks wait on their own prefixes, as on the A18 Pro. Measured on the
// M4 Max 25G83 build (ec3ced95) and on the M4 Pro (J616s).
render_stage_prefixes: true,
ray_traversal: true,
// Not measured on this firmware.
traversal_exclusion: false,
Expand All @@ -227,7 +228,9 @@ pub(crate) const V25G83: Variant = Variant {
m5_commands: false,
registration_power_hold: true,
m5_layouts: None,
render_id_at_create: false,
// Host policy: take the render pool identity at context creation. On for the M4 Max
// 25G83 build since ec3ced95 and measured on the M4 Pro (J616s).
render_id_at_create: true,
objects_after_release: false,
telemetry_protocol: crate::g17::telemetry::Protocol::NONE,
};
Expand Down Expand Up @@ -259,6 +262,9 @@ pub(crate) const V25F84: Variant = Variant {
compute: super::compute::ComputeProgram::V25F84,
opening_record: false,
split_firmware_area: true,
// Not measured on 25F84 or on 26B123, which inherits this.
render_stage_prefixes: false,
render_id_at_create: false,
..V25G83
};

Expand Down
4 changes: 0 additions & 4 deletions drivers/gpu/drm/asahi/hw/t6041.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,8 @@ pub(super) const BUILD_25G83: fw::variant::Build = fw::variant::Build {
// T6041's 25G83 firmware emits pstate reports (tags 0x19/0x1b) and 8 ms
// timestamped utilisation records (tag 0x13).
variant: &fw::variant::Variant {
// Tiling and fragment kicks wait on their own prefixes (host path, !m5_commands);
// unmeasured on the M4 Pro, which keeps false.
render_stage_prefixes: true,
ta_mode_1: true,
telemetry_protocol: crate::g17::telemetry::Protocol::PSTATE_8MS,
render_id_at_create: true,
..fw::variant::V25G83
},
config: None,
Expand Down
Loading