Skip to content

HID: apple-mtp-kiwi, drm/apple: map touches onto the picture when the notch is hidden - #3722

Merged
RyanTheTide merged 8 commits into
mainfrom
fix/kiwi-notch-touch-map
Dec 1, 2026
Merged

RyanTheTide merged 8 commits into
mainfrom
fix/kiwi-notch-touch-map

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

What: Fixes #3719. With the notch hidden at run time, touches on the K114s (M5 Pro) touch screen land too high. The error is largest near the top. The touch driver reports the whole panel, notch rows included, but the compositor maps that range onto the shorter notch-free output. This PR adds a small built-in record of the panel's scanned-out notch geometry (drivers/soc/apple/panel-notch.c). apple-drm publishes it with every frame it swaps in. hid-apple-mtp-kiwi reads it on every frame and, while a band is hidden, maps the panel below the band onto the whole ABS_MT_POSITION_Y range: the band's lower edge reports 0 and the panel's bottom edge the maximum. Contacts in the band are not reported until they reach the picture. The ABS ranges never change, and no userspace change is needed.
Tested: K114s (MacBook Pro 14" M5 Pro, T6050) at 9013ead8610b — PASS (touch with the notch shown and hidden, swipe from the top edge, finger held across a toggle; one-shot of this PR's kernel sources on the K114s stack source, positions in the comment); J616s (MacBook Pro 16" M4 Pro, T6040) at 9013ead8610b — PASS (kernel built from 945689d69bb1, whose kernel sources are identical to this head; also at cd76b9ae061e) (no-regression; one-shot kernel = this head with the J616s's own config: notch toggle hidden/shown x2 under gnome-shell, modes 3456x2160 <-> 3456x2234, a kprobe on apple_panel_notch_publish shows rows=2234 top=74 hidden and top=0 shown, 0 DCP crashes, 0 warnings, 0 failed units, Enforcing; restored to its default after); KUnit apple-panel-notch 4/4 on arm64 QEMU at both heads (LLVM=1, as the new CI matrix entry); host tests --only dcp 69/69, dcpext 23/23, lifetime 4/4, apple-dcp 1/1, display 7/7; checkpatch.pl --strict 0/0/0 on all three commits.
Risk: two-way · K114s/K114c touch screen while the notch is hidden; every Mac whose panel has notch rows publishes the geometry (one atomic store per frame). A plain revert restores today's behaviour. With the notch shown, or without apple-drm, the touch positions are unchanged: the published band is 0 and the mapping is the identity. When the geometry changes with fingers down, every contact lifts for one frame and touches down again, so userspace sees a release at the finger's position. ABS_MT_POSITION_Y's resolution stays the whole panel's, so a unit is about 4 % shorter on the glass while the notch is hidden. The firmware 14.7/26.6 standalone pipes publish nothing (no touch Mac uses them).
Not yet: nothing for this change. The kiwi stall seen during the K114s session (#3758) is pre-existing on main and gets its own fix.

Details
  • soc: apple: record the built-in panel's scanned-out notch geometry: apple_panel_notch_publish(panel_rows, top) / apple_panel_notch_get() over one atomic64_t, safe in any context. It is built in (APPLE_PANEL_NOTCH, default y with DRM_APPLE, the same pattern as APPLE_J613_DISPLAY_SYNC), so neither driver depends on the other and load order does not matter. Header helpers apple_panel_notch_band() (band in an axis' own units, scaled when the axis size differs from the panel rows) and apple_panel_notch_map(). KUnit suite plus its apple-build-kunit.yml matrix entry.
  • drm/apple: publish the internal panel's notch geometry with each frame + drm/apple: publish the notch geometry once the firmware takes the swap: dcp_notch_scanned_out() replaces the two notch_scanout_y writers. The firmware-M4 path publishes after a successful present; the template flush records the rows with the swap and dcp_swapped() publishes them once the firmware takes it, so a rejected swap keeps the previous geometry. Only a pipe with notch rows publishes; dcp_comp_unbind() withdraws. Following the scanned-out geometry rather than the policy covers the property, the sysfs attribute, the boot default, a compositor picking a notch-free mode itself, and the console (always notch-free).
  • HID: apple-mtp-kiwi: ...: band = top * size_y / panel_rows; y' = (y - band) * (size - 1) / (size - 1 - band). A contact is reported once it first reaches the picture, so a tap on the black band is never seen and a swipe down from the glass edge starts at the picture's top edge. A reported contact that slides back into the band stays on that edge. A geometry change lifts every contact for one frame (new tracking ids on the next). Documentation/gpu/apple-dcp-notch.rst gains a "The touch screen" section.
  • The issue proposed dropping contacts that start in the band for their whole life. This PR reports them once they reach the picture instead, so top-edge swipes keep working; a tap that stays on the band is still never reported.
Evidence
  • J616s row (kit touch-notch/j616s, traces display/20261201-touch-notch): baseline on the saved 7.3.0-aurora-edge (933f822, which predates drm/apple: control the panel notch at run time #2814, so it has no notch attribute); one-shot 7.3.0-touchnotch1 = this head, the same cmdline as the saved entry; after the toggles the panel was restored to its starting policy, then a plain reboot to the saved default (next_entry empty, Enforcing, 0 failed).
  • The two RTKit syslog lines at DCP start (LACS_ERROR, updateFrequencies EDT ERROR) also appear on the baseline boot.

cc @joshuaswarren (kiwi driver maintainer)

The touch screen of a notched panel reports positions over the whole
panel, while the display may scan its picture out below the notch rows.
Only the display driver knows which, and the touch driver must work
with or without it, in any load order.

Add a small built-in record of the geometry: the panel's active rows and
the rows above the picture. The display driver publishes it with every
frame; readers take it lock-free in any context. Nothing published
reads as a picture on the whole panel. Two helpers map a touch axis
that spans the whole panel onto the picture: the hidden band is reported
as such, the band's lower edge maps to 0 and the panel's bottom edge
stays the axis maximum.

KUnit covers the published state and the translation.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Wherever a swap records the rows above the frame (the notch rows for a
notch-free mode, else 0), also publish them with the panel's active
rows to the built-in panel notch record, for the touch screen. It
follows what is scanned out, so the "notch" property, the sysfs
attribute, the boot default and the console's notch-free geometry are
all covered. Only a pipe with notch rows publishes, and unbinding it
withdraws the geometry.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
…idden

The touch screen reports positions over the whole panel, notch rows
included. With the notch hidden at run time the display offers only the
notch-free modes, the compositor maps the whole ABS_Y range onto that
shorter output, and every touch lands too high, most near the top.

Read the panel's scanned-out geometry with every frame and, while a
band is hidden above the picture, map the panel below it onto the whole
ABS_Y range: the band's lower edge reports 0 and the bottom edge the
maximum. A contact in the band is not reported until it first reaches
the picture, so a tap on the black band is never seen and a swipe down
from the glass edge starts at the picture's top edge; a reported contact
that slides back into the band stays on that edge. When the geometry
changes, every contact lifts for one frame and touches down again under
the new geometry. The ABS ranges never change, and with the notch shown
or no display driver the positions are as before.

Closes: #3719
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide requested review from a team and DjDeveloperr as code owners December 1, 2026 02:18
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Local CI at cd76b9ae061e, same commands as the workflows, run while the hosted jobs are queued:

  • Apple build (apple-build-kunit.yml apple-build: arm64 defconfig + asahi.config, LLVM=1, Rust, patched bindgen): CONFIG_APPLE_PANEL_NOTCH=y, CONFIG_DRM_APPLE=m, CONFIG_HID_APPLE_MTP_KIWI=m; drivers/gpu/drm/apple/, drivers/soc/apple/, drivers/hid/hid-apple-mtp-kiwi.o build with rc=0. The only compiler warnings are 4 Rust dead-code warnings in the SEP crate, which this PR does not touch.
  • KUnit, arm64 QEMU, LLVM=1:
    • drivers/gpu/drm/apple/tests/display.kunitconfig: 181 run, 180 passed, 1 skipped
    • drivers/gpu/drm/apple/tests/.kunitconfig (dcp-fabric): 117/117
    • drivers/gpu/drm/apple/tests/topology.kunitconfig: 211 run, 210 passed, 1 skipped
    • drivers/soc/apple/panel-notch.kunitconfig (new): 4/4
  • Host tests (run-host-tests.py): --only dcp 69/69, apple-dcp 1/1, display 7/7.
  • Kernel builds of this head:
    • the J616s's edge config with clang 22 (the J616s row in the description)
    • Ryan's K114s stack config with GCC 16.1 (the pending K114s row): apple_panel_notch_{publish,get} are in vmlinux, and hid-apple-mtp-kiwi.ko/appledrm.ko resolve them with no module dependency added.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hosted CI at cd76b9ae061e: all 27 build/KUnit/host-test jobs pass. The new KUnit panel-notch matrix entry is not in this run, because pull_request_target uses the workflow from main; it runs from main after merge. Until then, the same command (kunit.py run --arch=arm64 --make_options LLVM=1 --kunitconfig=drivers/soc/apple/panel-notch.kunitconfig) passed 4/4 locally (comment above).

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at cd76b9ae061e8bb350e28248834e709fa57d413f

Blockers:

  1. No K114s touch row at this head. The change targets the K114s touch screen, and the only row so far is the J616s no-regression run, which never runs the kiwi path. Add the K114s row listed under "Not yet" (taps at the top, middle, bottom and corners with the notch shown and hidden, plus a toggle with a finger held down) built from cd76b9ae061e; after that it merges without another review. The code itself has no blocking finding.

Checked: no Apple material, no gates (the geometry comes from the DT notch rows and the scanned-out mode), no new parameters, no safety values; existing behaviour unchanged on every path I could find; CI: every build and KUnit check green at this head, PR-text and readiness still queued; my own build and KUnit run of this head pass.

Evidence

Read the three commits at cd76b9ae061e against main (f3fd30f44208).

  • Macs without a notch, and external pipes: dcp->notch_rows is 0, so dcp_notch_scanned_out() and dcp_comp_unbind() never publish; an external DCP cannot overwrite the internal panel's record.
  • Notch shown: dcp_notch_offset() returns 0 unless the mode is exactly panel_rows - rows tall, so the published top is 0, apple_panel_notch_band() returns 0 and apple_panel_notch_map() is the identity. In kiwi_report() the band never changes, so there is no relift, and every on contact is marked shown on its first frame: the reported slots and positions are what main reports.
  • No provider: with DRM_APPLE=n the header stubs return an empty geometry (band 0, identity); with apple-drm unbound or not yet loaded the built-in record reads 0. A later unbind publishes (0, 0), which lifts and re-reports contacts once.
  • Lifetime and locking: the state is one built-in atomic64_t, written whole and read whole, so a reader never sees a torn rows/top pair; nothing to free, and no module dependency between appledrm and the kiwi module. k->notch_band is only touched in kiwi_report(), under the existing raw-event path.
  • shown is cleared in kiwi_centroid() for every new contact and carried across kiwi_track()'s slot claim, so a tracked finger keeps it.
  • Ordering: APPLE_PANEL_NOTCH is bool, default y when DRM_APPLE is y or m, inside the ARCH_APPLE || COMPILE_TEST block; drivers/soc/Makefile always descends into apple/.

Ran:

  • KUnit drivers/soc/apple/panel-notch.kunitconfig, arm64 QEMU, GCC: 4/4 pass.
  • arm64 defconfig with DRM_APPLE=n, HID_APPLE_MTP_KIWI=m (so APPLE_PANEL_NOTCH is off and the stubs are used): drivers/hid/hid-apple-mtp-kiwi.o builds with W=1, no warnings.
  • Hosted CI at this head: 27 build and KUnit checks pass, none failed; pr-text and readiness still queued when this was posted.

Follow-ups (not blocking):

  • The hosted "Apple build and KUnit" run at this head has no panel-notch job: the matrix comes from the base branch's workflow, so the new entry only takes effect after merge. Worth confirming it appears on the first run after merge.
  • dcp_notch_scanned_out() publishes on every frame even when nothing changed; a compare before the store would skip a cache-line write per frame. Negligible.
  • With the notch hidden, a contact born in the band is never reported until it reaches the picture, so a tap on the band does nothing; the PR states this, but the K114s row should confirm that top-edge swipes still open what they open with the notch shown.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FINISH, then merge at cd76b9ae061e8bb350e28248834e709fa57d413f

  1. drivers/gpu/drm/apple/iomfb_template.c:4707 publishes the new geometry while building the swap. If the panel is showing the full picture and firmware rejects the first hidden-notch swap at line 3641 or 3606, kiwi starts dropping touches on rows that are still visible. Keep the geometry with its swap and publish it when that frame is displayed. A rejected swap should leave the previous mapping in place.
  2. drivers/soc/apple/panel-notch-test.c:22 writes test values into the record kiwi reads. If apple-drm publishes its first frame after the check on line 19, the test can overwrite it and leave the band at zero until another frame arrives. Exercise the state changes on a record owned by the test.

Checked the full diff, slot tracking and locking, touch ranges in both modes, the device-tree notch height, module load order, and the swap rejection and unbind paths. The author reports KUnit 4/4, passing DCP host tests and a J616s pass at this head. The K114s touch check is pending. I skipped a local build.

The template flush published the rows above the picture while it built
the swap request. If the firmware then rejected that swap, the touch
screen mapped onto a picture that never appeared; after the first
hidden-notch swap of a full-panel picture failed, it dropped touches on
rows that were still visible.

Keep the rows with the swap being submitted and publish them, with the
debugfs scanout rows, in dcp_swapped() once the firmware has taken it.
A rejected swap leaves the previous frame's geometry in place. The
firmware-M4 path already publishes only after a successful present.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
The state test wrote test values into the live record that the touch
screen reads, so a display frame published between its check and its
writes could be overwritten, leaving the band at zero until the next
frame. Move the packing of the record into header helpers, test those
on a value the test owns, and keep apple_panel_notch_publish() and
apple_panel_notch_get() as thin wrappers over the live record.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Both points from the review at cd76b9ae are fixed at 945689d69bb1 as two new commits on top. Nothing was rebased.

  1. 702e9123d686 (drm/apple: publish the notch geometry once the firmware takes the swap): iomfb_flush() now only records the rows for the swap it is building (notch_swap_y). dcp_swapped() publishes them, with the debugfs scanout rows, after the firmware accepts the swap. A rejected swap_start or swap_submit returns before that point, so the previous frame's geometry stays in place. The firmware-M4 path already published only after iomfb_m4_present_at() returned 0.
  2. 945689d69bb1 (soc: apple: panel-notch: test the record on a value of the test's own): packing moved into apple_panel_notch_pack() and apple_panel_notch_unpack() in the header. publish() and get() are now thin wrappers over the live record. The state test checks pack and unpack on its own values and never writes the live record.

KUnit apple-panel-notch passes 4/4 on arm64 QEMU at this head, and checkpatch is clean. The J616s row and the K114s kit are being rebuilt at this head, and the rows will be posted against it.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

J616s (MacBook Pro 16" M4 Pro, T6040) at 945689d69bb1: PASS. No-regression row on a one-shot kernel built from this head with the J616s's own edge config (clang 22), on the same cmdline as its saved entry. Toggling hidden/shown twice under gnome-shell gives modes 3456x2160 <-> 3456x2234 and debugfs scanout_y 74 <-> 0. The kprobe on apple_panel_notch_publish, now called from dcp_swapped() once the firmware takes the swap, shows rows=2234 top=74 hidden and rows=2234 top=0 shown. 0 swap rejections, 0 DCP crashes, 0 kernel warnings, 0 failed units, Enforcing. The Mac was restored to its saved default afterwards. The K114s kit was rebuilt from this head (the same five commits on the K114s stack source); its touch row is still pending.

…wapped()

dcp_swapped() now publishes the panel's notch geometry once the
firmware takes a swap. Give the harness the new field and a recording
stub, and check that a rejected, missing or cancelled swap response
publishes nothing while an accepted one publishes the rows recorded
with its swap.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

The hosted host-tests failure at 945689d69bb1 was dcpext26-present-tests. Its harness compiles the real dcp_swapped() against a stub struct apple_dcp, so it needed the new notch_swap_y field and a stub for dcp_notch_scanned_out(). Fixed in 8b9c1d987ff8. The harness now also checks that a rejected, missing or cancelled swap publishes nothing, and that an accepted swap publishes the rows recorded with it. I confirmed it catches the bug by moving the publish ahead of the status check: the test then fails.

Locally at 8b9c1d987ff8: run-host-tests.py --only dcp 69/69, dcpext 23/23, lifetime 4/4, apple-dcp 1/1.

8b9c1d987ff8 touches only tools/asahi/. The kernel sources are identical to 945689d69bb1, so the J616s row above and the K114s kit still apply to this head.

@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) area:gpu Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) area:release Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Merge readiness at 9013ead8: not ready yet

Check Detail
CI at head no failing: host-tests, kunit, kunit
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at 9013ead8
Conflicts ok none
PR text ok Risk: two-way · K114s/K114c touch screen while the notch is hidden; every Mac whose panel has notch rows publishes the geometry (one atomic store per frame). A plain revert restores today's behaviour. With the notch shown, or without apple-drm, the touch positions are unchanged: the published band is 0 and the mapping is the identity. When the geometry changes with fingers down, every contact lifts for one frame and touches down again, so userspace sees a release at the finger's position. ABSMTPOSITIONY's resolution stays the whole panel's, so a unit is about 4 % shorter on the glass while the notch is hidden. The firmware 14.7/26.6 standalone pipes publish nothing (no touch Mac uses them).

Areas: area:display, area:gpu, area:platform

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Local CI at 8b9c1d987ff8, with the hosted jobs still queued, using the same commands as the workflows. KUnit on arm64 QEMU with LLVM=1: display.kunitconfig 180 passed, 1 skipped; tests/.kunitconfig (dcp-fabric) 117/117; topology.kunitconfig 210 passed, 1 skipped; panel-notch.kunitconfig 4/4. Host tests: dcp 69/69, dcpext 23/23, lifetime 4/4, apple-dcp 1/1. Full arm64 kernel builds of these kernel sources (J616s edge config with clang, K114s stack config with GCC) pass. These are the same results as at cd76b9ae061e.

apple-build-kunit.yml now takes its KUnit suites from
scripts/ci/apple-kunit.py (#3738): the panel-notch matrix entry becomes
a table row there, selected by the panel notch record, its header and
the kiwi driver.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

I merged main into this branch at 4e8e5a41a182 (a merge commit; nothing was rebased). This resolves the conflict with #3738. apple-build-kunit.yml is now byte-identical to main's. The panel-notch suite is a row in scripts/ci/apple-kunit.py, selected by drivers/soc/apple/panel-notch*, include/linux/soc/apple/panel-notch.h and drivers/hid/hid-apple-mtp-kiwi.c. For this PR, apple-kunit.py plan selects panel-notch dcp-fabric dcp-topology dcp-display in one job, and plan --full lists 24 suites.

This PR's kernel diff against main is line-for-line the one that was tested at 945689d69bb1 (J616s row, K114s kit). On the merged tree: apple-kunit.py run panel-notch passes 4/4, display.kunitconfig passes 186/187 with 1 skipped (main added 6 tests), and dcpext26-present-tests passes.

@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) and removed area:release Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) labels Dec 1, 2026
@github-actions github-actions Bot added the merge-conflict Conflicts with the base branch (bot) label Dec 1, 2026
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged main (d5e9949314fd) in again at 9013ead8610b (a merge commit, nothing rebased). The only conflict was in MAINTAINERS, where both sides added F: lines to the APPLE DRM entry; both are kept. This PR's kernel diff against main is unchanged from the one tested at 945689d69bb1. On the merged tree: dcpext26-present-tests passes, display.kunitconfig passes 188/189 with 1 skipped, and apple-kunit.py run panel-notch passes 4/4.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at 9013ead

Checked:

  • DjDeveloperr's point 1 at cd76b9a (a rejected swap would publish a notch geometry that never reached the screen): fixed in 702e912. iomfb_flush now only stores notch_swap_y, and dcp_swapped() publishes it after the if (status) { ... return; } reject branch. A rejected, cancelled or missing response returns before the publish, so the previous geometry stays. The firmware-M4 path in iomfb.c publishes only on !ret from iomfb_m4_present_at().
  • DjDeveloperr's point 2 (the KUnit state test wrote into the live record): fixed in 945689d. The test now packs and unpacks a value it owns (apple_panel_notch_pack()/_unpack()), and publish/get are thin wrappers, so the test never writes the record kiwi reads.
  • satchlj's only blocker was the K114s touch row, not a code fault. Under the current bar the merge gate is one row on one Mac at the head (J616s here). pr-readiness tracks it; I am not holding the code for it.
  • Tried to break the mapping: apple_panel_notch_band() returns 0 for top == 0, top >= panel_rows, size < 2 and any band >= size - 1. apple_panel_notch_map() also treats band >= size - 1 as the identity, so span = size - 1 - band is never 0 and no input divides by zero. A y past the axis is clamped before the subtraction.
  • kiwi: shown is cleared for every new contact in kiwi_centroid() and carried through kiwi_track()'s slot claim. On a band change every on contact reports released for one frame (relift), then reappears once it is on the picture. With the notch shown or no provider, the band is 0 and the reported slots and positions match main.
  • Publishers: only a pipe with notch_rows publishes, so an external DCP cannot overwrite the internal panel's record. Unbind publishes (0, 0).
  • The two merges of main touch only scripts/ci/apple-kunit.py among this PR's files (the panel-notch suite row). No Apple-derived values (the geometry comes from DT notch rows and the mode), no AI attribution.

Follow-ups:

  • notch_swap_y is written only for a visible plane, so a swap with no surface publishes whatever the last visible-plane flush stored. That matches what is on the panel in practice, but resetting it at the start of the flush would make it exact.
  • dcp_notch_scanned_out() does an atomic store every frame even when nothing changed (satchlj's note); negligible.
  • K114s touch row (taps top/middle/bottom/corners in both states, toggle with a finger held): pr-readiness shows it. Top-edge swipe behaviour with the notch hidden is worth a look in that row.
  • CI at this head is still queued.

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Dec 1, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hosted host-tests at 9013ead8610b passed 899/940. All 41 failures are in three tests this PR does not touch: g17-render-owed-stamp-tests (35, 0/35 passed), brcmf-ps-nap-tests (5) and ave-recovery-old (1). Running them locally on plain main at d5e9949314fd, without this PR, gives the same results: g17-render-owed-stamp 0/35, brcmf-ps-nap failing, ave-recovery 1/2. They fail on main today, not because of this change. This PR's own host tests (dcpext26-present-tests and the dcp, dcpext, lifetime and apple-dcp subsets) pass.

The two cancelled kunit checks are the Apple DRM KUnit and PMGR power-state workflows, which #3738 removed from main; their suites now run through the KUnit plan job.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hosted CI at 9013ead8610b has finished. These passed: apple-build, the KUnit plan and all six KUnit groups (24 suites, including the new panel-notch and dcp-fabric/dcp-topology/dcp-display), DWC3/ATC x3, rust-build, source and pr-text. host-tests passed 899/940; the 41 failures are the g17-render-owed-stamp, brcmf-ps-nap and ave-recovery-old failures that main itself has (reproduced on plain main, see above). The two cancelled kunit checks are the Apple DRM and PMGR KUnit workflows that #3738 removed from main. The only open gate item is the K114s touch row.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

K114s (M5 Pro, T6050) at 9013ead8610b: PASS. The one-shot kernel 7.3.0-k114stouch1 (build #3, 14:57) is this PR's kernel sources, 945689d69bb1, on the K114s stack source. Those are identical to this head's kernel diff against main. The panel reports a 96-row notch; the touch axis is 0..1985, with 0 at the top.

From the kit's touch log (raw evdev positions, every contact down/up), Ryan's run on 12-01 17:48–17:51:

  • Notch shown: top-left, top-centre (clock) and top-right taps report y = 32–39, the centre y = 1043 and the bottom corners y = 1967. This is the identity mapping, unchanged from main.
  • Notch hidden: the same top-bar taps report y = 24, 11 and 9 (the picture's top edge now maps to 0), the centre y = 1034 and the bottom corners y = 1966/1963. A swipe down from the top edge went down at y = 2 and moved to 518, so it starts at the picture's top edge.
  • Toggle with a finger held (shown → hidden): the contact lifted exactly at the toggle and a new contact touched down at the same instant, held for 21 s. Its y went from 966 to 914, which is the expected remap: (966 − 96) × 1985 / 1889 = 914. There was no other jump.
  • Boot: 0 DCP crashes, 0 kernel warnings, 0 failed units. Afterwards the K114s went back to its saved default, and the kit was cleaned.

This verdict comes from the recorded positions. A per-tap "acted under the finger" note from Ryan was not relayed. The one incident during that session (touch stopped after a three-finger swipe) is #3758. It traces to a pre-existing kiwi baseline path on main, not to this change; see the audit there.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Dec 1, 2026
@RyanTheTide
RyanTheTide merged commit cd5cb04 into main Dec 1, 2026
29 of 32 checks passed
@RyanTheTide
RyanTheTide deleted the fix/kiwi-notch-touch-map branch December 1, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:display Area from CODEOWNERS (bot) area:gpu Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

K114s touchscreen offset when the notch is hidden at run time

3 participants