Skip to content
Merged
16 changes: 16 additions & 0 deletions Documentation/ABI/testing/sysfs-class-drm-apple-notch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
What: /sys/class/drm/card<N>-eDP-<M>/notch
Date: November 2026
KernelVersion: 7.3
Contact: dri-devel@lists.freedesktop.org
Description:
(RW) Present on the built-in panel connector of an Apple
display controller (appledrm) when the panel has notch rows
(apple,notch-height). Reads "shown" or "hidden": whether
compositors are offered the full panel, notch rows included,
or the notch-free geometry. It is the connector's "notch"
property. Writing "shown", "hidden" or a boolean (1/0, on/off,
y/n) commits that property and makes compositors and the
console probe the connector again. The text console always
uses the notch-free geometry. The value starts as the boot
loader's choice (chosen/asahi,show-notch). See
Documentation/gpu/apple-dcp-notch.rst.
61 changes: 61 additions & 0 deletions Documentation/gpu/apple-dcp-notch.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.. SPDX-License-Identifier: GPL-2.0-only

==========================================
Apple display: the panel notch at run time
==========================================

A built-in panel with a camera housing has ``apple,notch-height`` rows at its
top; the boot loader fills that property from the hardware description (ADT).
The panel always runs its native timing. The driver offers each timing in two
geometries:

* **full**: the mode covers the whole panel, the notch rows included;
* **notch-free**: the mode is ``apple,notch-height`` rows shorter. The rows
are folded into the vertical sync, so clock, totals and refresh rate are
the full mode's. The frame is scanned out below the notch and the notch
rows stay black.

The mode a commit carries decides what is scanned out. Both geometries are
always accepted, and a switch between the two geometries of one timing is no
mode set: the CRTC stays on and the display firmware is not asked for a new
mode.

The ``notch`` connector property
================================

Panels with notch rows have an enum connector property ``notch`` with the
values ``hidden`` and ``shown``. It selects the geometry compositors are
offered:

``shown``
while a DRM master owns the device, the full modes are offered;
``hidden``
the notch-free modes are offered.

The starting value is the boot loader's ``chosen/asahi,show-notch`` (``"1"``:
shown). A compositor can set the property in an atomic commit, usually
together with the matching mode. A change sends a hotplug event, so that
compositors and the console probe the connector again; a compositor that
follows hotplug events needs no further support.

Whenever no DRM master owns the device (a text-only system, a switch to a
text VT, a compositor that dropped master or exited), only the notch-free
modes are offered whatever the property says, and the in-kernel console
probes again and uses them: the console never draws under the notch. Its
surface is notch-free, and a probe limited to that surface is offered the
notch-free modes even while a compositor shows the full panel.

The same choice is ``/sys/class/drm/cardN-eDP-1/notch`` for scripts (see
``Documentation/ABI/testing/sysfs-class-drm-apple-notch``). Writing it commits
the property like a compositor would.

``/sys/kernel/debug/dri/N/eDP-1/notch`` shows the notch rows, the full
panel's rows, the policy, whether a DRM master owns the device, and the rows
above the last frame scanned out.

The physical height reported for the connector follows the offered
geometry: the panel's ``adj-height-mm`` for the notch-free one if the device
tree gives it, otherwise the full height scaled by the rows.

The standalone firmware 14.7 and 26.6 pipes build their one mode from the
boot framebuffer and keep the boot loader's geometry for the boot.
9 changes: 4 additions & 5 deletions Documentation/gpu/apple-drm-parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
Apple display module parameters
===============================

Use ``appledrm.show_notch=1`` to include the notch rows in the panel mode.
This common preference also applies to the M3 internal display firmware;
it replaces the platform-specific ``appledrm.t6030_show_notch`` alias.
When the boot framebuffer should cover those rows too, keep the useful
``chosen.asahi,show-notch=1`` m1n1 display preference alongside it.
The notch rows of a built-in panel are no longer a module parameter: the
boot loader's ``chosen/asahi,show-notch`` sets the starting choice and the
``notch`` connector property changes it at run time; see
:doc:`apple-dcp-notch`.

The old ``appledrm.dcpext_probe`` parameter had no consumer and has been
removed. External display support follows the device tree and the driver's
Expand Down
1 change: 1 addition & 0 deletions Documentation/gpu/drivers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ GPU Driver Documentation
asahi-usage-stats
asahi-m4-bringup
apple-dcp-m4
apple-dcp-notch
i915
imagination/index
intel-display/index
Expand Down
Loading
Loading