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/g15/glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ int asahi_g15_display_prepare(struct device *dev)
return ret;
np = of_find_compatible_node(NULL, NULL, "apple,t6031-display-subsystem");
if (!np || !of_device_is_available(np))
dev_info_once(dev, "G15: waiting for the T6031 native display, which this boot did not enable (it needs the boot loader's display handoff, and apple_t6031_display.enable=1 except on the J516C)\n");
dev_info_once(dev, "G15: waiting for the T6031 native display, which this boot did not enable (it needs the boot loader's display handoff)\n");
else
dev_info_once(dev, "G15: waiting for the T6031 native display to come up: the GPU firmware starts only after the display is published\n");
of_node_put(np);
Expand Down
4 changes: 2 additions & 2 deletions drivers/pmdomain/apple/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ config APPLE_PMP_REPORT
and the display stays on the boot framebuffer. There is no safe
way to stop the PMP short of a reboot, so reboot. To boot without starting the PMP, put
apple_t8122_display.enable=0 (T8122) or nomodeset on the kernel
command line; on T6031 it is only started with
apple_t6031_display.enable=1. The start's state is in debugfs, in
command line; on T6031, nomodeset or chosen.asahi,t6031-dcp=0 in
the boot loader's configuration. The start's state is in debugfs, in
apple-pmp-report/<report device>.

config APPLE_PMP_FLOOR_KUNIT_TEST
Expand Down
2 changes: 1 addition & 1 deletion drivers/pmdomain/apple/pmp-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -2648,7 +2648,7 @@ static const struct apple_pmp_report_offsets apple_pmp_offsets_t6031 = {
.status = 0x10,
.starts_pmp = true,
.name = "T6031",
.fallback = "leave out apple_t6031_display.enable=1",
.fallback = "chosen.asahi,t6031-dcp=0 in the boot loader's configuration",
.pwrstate = "apple,t6031-pmgr-pwrstate",
.devices_ordered = true,
};
Expand Down
29 changes: 13 additions & 16 deletions drivers/soc/apple/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -493,14 +493,13 @@ config APPLE_DISPLAY_GATE
nomodeset.

It also serves T6031 (M3 Max) device trees with apple,t6031-handoff,
in the same way and only with the PMP values the boot loader passes.
There the native display is on by default on the J516C, unless
apple_t6031_display.enable=0; the other T6031 boards need
apple_t6031_display.enable=1 on the kernel command line. The T6031
GPU driver starts its firmware only after this native display is
up, so apple_t6031_display.enable=0, or a native display that does
not come up, also keeps the GPU off for that boot. It is not a
display-only switch.
in the same way and only with the PMP values the boot loader passes,
on every T6031 board whose boot loader marks the handoff. There is
no command-line switch: a boot loader that does not hand the display
over leaves the display on the boot framebuffer. The T6031 GPU
driver starts its firmware only after this native display is up, so
a native display that is not handed over or does not come up also
keeps the GPU off for that boot.

On T6041 (M4 Pro) device trees it enables the internal display nodes
only when the boot loader has handed the running display coprocessor
Expand Down Expand Up @@ -541,14 +540,12 @@ config APPLE_DISPLAY_GATE_KUNIT_TEST
default KUNIT_ALL_TESTS
help
Runs the display gate on test device trees with the T6030, T6031
and T8122 display nodes, without Apple hardware. On T6031: on by
default only on the default board (the J516C), otherwise only with
apple_t6031_display.enable=1, off with apple_t6031_display.enable=0,
only with the boot loader's handoff marker and this Mac's PMP values,
and with nothing changed when a check fails. On T6030: on by default, as
before, whatever the T6031 option says. On T8122: on by default,
and nothing changed when the handoff or the device tree's own PMP
topology does not check out. On T6041: a power management processor
and T8122 display nodes, without Apple hardware. On T6031: on with
the boot loader's handoff marker and this Mac's PMP values on any
board, whatever the T6030 and T8122 options say, and with nothing
changed when a check fails. On T6030: on by default. On T8122: on
by default, and nothing changed when the handoff or the device
tree's own PMP topology does not check out. On T6041: a power management processor
that binds late still powers the external displays up. On the
J616c: each external display chain is enabled without a PMP once
its processor has firmware memory, and the display subsystem's
Expand Down
Loading
Loading