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
18 changes: 14 additions & 4 deletions drivers/gpu/drm/asahi/g15/hw/t6031.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only OR MIT

//! T6031 (M3 Max, G15C) configuration, admitted on J516C only.
//! T6031 (M3 Max, G15C) configuration, on every T6031 board whose boot loader hands the
//! native display over.
//!
//! One die, four clusters of ten core slots. The firmware is the same RTKit 2419 generation as
//! the T6030's and the initdata graph keeps the T6030 canonical VAs; what differs is the SoC
Expand All @@ -13,6 +14,15 @@
//! value was measured on a J516C: the SGX identification
//! registers, the loaded firmware segment, the device tree the boot loader hands over and the
//! initdata of that machine.
//!
//! Admission is by SoC, as on T6030: the first start waits for the T6031 native display, which
//! the display gate enables only where the boot loader marked the handoff, and the loaded
//! firmware, the hardware identity, the core mask and the device tree's GPU regions must check
//! out. What is per machine comes from the device tree the boot loader fills from that
//! machine's ADT (operating points, voltages, gains, power zones, sensor rows). The few record
//! words neither carries (maximum power, relative powers, MTR masks; see `board::record`) are
//! the J516C reference machine's on every board, as the T6030 templates' machine's words are on
//! the J514S.

use super::super::Config;
use super::{FirmwareBuild, HwId, IoMap, Layout};
Expand Down Expand Up @@ -159,9 +169,9 @@ pub(crate) const CONFIG: Config = Config {
],
},
],
// The reference words and measured layout belong to the J516C, not
// every T6031 board (in particular, not the 14-inch J514C).
machine: kernel::c_str!("apple,j516c"),
// The SoC, as on T6030: the native display handoff, the firmware and hardware identity and
// the device tree decide the rest (see the module comment).
machine: kernel::c_str!("apple,t6031"),
platform: super::Platform::DeviceTree,
layout: &LAYOUT,
board: super::Board::DeviceTree(&super::super::board::record::J516C),
Expand Down
2 changes: 1 addition & 1 deletion tools/asahi/g15-display-order-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def c_source(root):
'''

RS_MAIN = r'''
static T6031: Config = Config { platform: hw::Platform::DeviceTree, machine: "apple,j516c", name: "T6031 G15C", firmware: (), board: hw::Board::Blob };
static T6031: Config = Config { platform: hw::Platform::DeviceTree, machine: "apple,t6031", name: "T6031 G15C", firmware: (), board: hw::Board::Blob };
static T6030: Config = Config { platform: hw::Platform::AdtWithPmp, machine: "apple,t6030", name: "T6030 G15S", firmware: (), board: hw::Board::Templates };
const TAIL: [&str; 6] = ["adt", "identity", "coherent", "board_images", "regs", "hold"];
fn run(cfg: &'static Config, machine: bool, pmp: i32, display: i32) -> (Result<()>, Vec<&'static str>) {
Expand Down
Loading