summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2026-01-20 10:34:58 +0000
committerAlice Ryhl <aliceryhl@google.com>2026-01-20 12:19:26 +0000
commite005fd94e2e5867f2a4e66e5df85069cda6f0db4 (patch)
tree3805704c52339e0202557aa0b53499bf9b66cd81
parent81af99cbd9e4f238011af811d544fff75641fc25 (diff)
drm/tyr: rename pad0 to selected_coherency
This applies the uapi change in commit ea78ec982653 ("drm/panthor: Expose the selected coherency protocol to the UMD") to the Tyr driver as well. Once this is merged with drm-rust-next, this kind of change to the uapi struct is automatically reflected in the Tyr driver's GpuInfo. [1] Link: https://lore.kernel.org/r/aW8-oH7dtp-OTAZC@google.com [1] Acked-by: Danilo Krummrich <dakr@kernel.org> Link: https://patch.msgid.link/20260120-tyr-pad0-coherency-v1-1-91f40e56c67a@google.com Signed-off-by: Alice Ryhl <aliceryhl@google.com>
-rw-r--r--drivers/gpu/drm/tyr/gpu.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tyr/gpu.rs b/drivers/gpu/drm/tyr/gpu.rs
index 6c582910dd5d..fb7ef7145402 100644
--- a/drivers/gpu/drm/tyr/gpu.rs
+++ b/drivers/gpu/drm/tyr/gpu.rs
@@ -8,6 +8,7 @@ use kernel::platform;
use kernel::prelude::*;
use kernel::time;
use kernel::transmute::AsBytes;
+use kernel::uapi;
use crate::driver::IoMem;
use crate::regs;
@@ -34,7 +35,7 @@ pub(crate) struct GpuInfo {
pub(crate) coherency_features: u32,
pub(crate) texture_features: [u32; 4],
pub(crate) as_present: u32,
- pub(crate) pad0: u32,
+ pub(crate) selected_coherency: u32,
pub(crate) shader_present: u64,
pub(crate) l2_present: u64,
pub(crate) tiler_present: u64,
@@ -89,7 +90,7 @@ impl GpuInfo {
// TODO: Add texture_features_{1,2,3}.
texture_features: [texture_features, 0, 0, 0],
as_present,
- pad0: 0,
+ selected_coherency: uapi::drm_panthor_gpu_coherency_DRM_PANTHOR_GPU_COHERENCY_NONE,
shader_present,
l2_present,
tiler_present,