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
2 changes: 1 addition & 1 deletion drivers/gpu/drm/asahi/g17/kick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const RENDER_HEADROOM: usize = 24;
/// The render reserve with every execution context open.
const FULL_RENDER_RESERVE: usize = render_reserve(crate::mmu::MAX_EXECUTION_CONTEXTS as usize);
/// Compute channels that stay reachable with every execution context open.
#[cfg(CONFIG_KUNIT)]
#[cfg(CONFIG_KUNIT = "y")]
pub(super) const COMPUTE_FLOOR: usize = QID_COUNT - FULL_RENDER_RESERVE;
/// Upper bound on distinct physical compute channels named by one kick.
pub(super) const COMPUTE_CHANNELS: usize = QID_COUNT;
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/asahi/g17/preparation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub(super) struct Gate {
}

impl Gate {
#[cfg(CONFIG_KUNIT)]
#[cfg(CONFIG_KUNIT = "y")]
pub(super) fn new() -> Result<Arc<Self>> {
Self::with_waiters(None)
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/asahi/g17/queue/admission.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ pub(crate) struct Pool {
renders: Option<Arc<crate::g17::availability::Availability>>,
}
impl Pool {
#[cfg(CONFIG_KUNIT)]
#[cfg(CONFIG_KUNIT = "y")]
pub(crate) fn new(max_queues: u32) -> Result<Arc<Self>> {
Self::with_waiters(max_queues, None, None)
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/asahi/g17/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ pub(super) struct Registry {
impl Registry {
/// Initialize inside the firmware allocation instead of staging the whole
/// registry on the probe stack. No additional allocation is required.
#[cfg(CONFIG_KUNIT)]
#[cfg(CONFIG_KUNIT = "y")]
pub(super) fn new(
clusters: u32,
deflake: crate::g17::fw::render::Deflake,
Expand Down