Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
7531b5b
soc: apple: sleep: serialize T6050 display PMC helpers and export rea…
erikwb Nov 27, 2026
7bf8172
drm/apple: wire firmware-27 T6050 external DCPs into runtime idle off
erikwb Nov 27, 2026
1f59a74
drm/apple: pin peer lifetime across cross-device idle wake and kick
erikwb Nov 27, 2026
b963090
Merge branch 'feat/dcp-v27-ext-idle-off' into feat/dcp-v27-ext-idle-o…
erikwb Nov 28, 2026
ba54710
Merge commit '38c26d8a6b57' into pr-3398-sweep-20261128
erikwb Nov 28, 2026
87662fb
Merge branch 'modern/3410' into modern/3398b
erikwb Nov 30, 2026
864f2b1
Merge branch 'feat/dcp-v27-ext-idle-off' into feat/dcp-v27-ext-idle-o…
erikwb Dec 1, 2026
224cf52
drm/apple: propagate strict v27 wake errors and allow failed idle sus…
erikwb Dec 1, 2026
90cc7ea
Merge branch 'feat/dcp-v27-ext-idle-off' (#3410) into feat/dcp-v27-ex…
erikwb Dec 2, 2026
e270795
drm/apple: require confirmed-off power across v27 and s2r_ext failed …
erikwb Dec 2, 2026
c2f5f48
Merge branch 'main' into feat/dcp-v27-ext-idle-off-t6050
DjDeveloperr Dec 2, 2026
14db7ca
Merge main into feat/dcp-v27-ext-idle-off-t6050
DjDeveloperr Dec 3, 2026
81e8bf2
Merge branch 'main' into feat/dcp-v27-ext-idle-off-t6050
DjDeveloperr Dec 3, 2026
74d032c
Merge branch 'main' into feat/dcp-v27-ext-idle-off-t6050
DjDeveloperr Dec 4, 2026
c8640ae
Merge main into firmware 27 external DCP idle power-off
DjDeveloperr Dec 5, 2026
57fb5a7
Merge main into firmware 27 external DCP idle power-off
DjDeveloperr Dec 5, 2026
2c1e740
drm/apple: include DRM KUnit helpers in the firmware tests
DjDeveloperr Dec 5, 2026
3e25b26
Merge main into feat/dcp-v27-ext-idle-off-t6050
DjDeveloperr Dec 5, 2026
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
19 changes: 14 additions & 5 deletions drivers/gpu/drm/apple/afk.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,8 @@ static void afk_compact_tx_desync(struct apple_dcp_afkep *ep, int error)
}

static int afk_send_compact_fragment(struct apple_dcp_afkep *ep, u16 intf_id,
const void *body, size_t size, u32 total)
const void *body, size_t size, u32 total,
bool allow_closed)
{
struct epic_compact_hdr *chdr;
struct afk_qe *qhdr;
Expand Down Expand Up @@ -756,7 +757,9 @@ static int afk_send_compact_fragment(struct apple_dcp_afkep *ep, u16 intf_id,
memcpy(message + offsetof(struct epic_compact_hdr, timestamp), body, size);

spin_lock_irqsave(&ep->lock, flags);
if (ep->compact_shutting_down || ep->stopping) {
if (ep->compact_shutting_down || ep->stopping ||
(!allow_closed &&
READ_ONCE(ep->dcp->sleep_v27_closed) != DCP_V27_TX_LIVE)) {
ret = -ESHUTDOWN;
goto out_unlock;
}
Expand Down Expand Up @@ -900,7 +903,8 @@ static int afk_send_compact(struct apple_dcp_afkep *ep, u16 intf_id, u8 type,
while (offset < total) {
chunk = min_t(size_t, total - offset, AFK_COMPACT_FRAGMENT_SIZE);
ret = afk_send_compact_fragment(ep, intf_id, body + offset,
chunk, total);
chunk, total,
category == 2 || offset > 0);
if (ret == -EAGAIN) {
if (!waiting_for_space) {
ret = afk_send_ret(ep, FIELD_PREP(RBEP_TYPE,
Expand Down Expand Up @@ -1676,9 +1680,14 @@ static int afk_send_compact_command(struct apple_epic_service *service, u8 type,
}

spin_lock_irqsave(&ep->lock, flags);
if (ep->compact_shutting_down || ep->stopping || ep->tx_paused || ep->rx_paused) {
ret = 0;
if (ep->compact_shutting_down || ep->stopping ||
READ_ONCE(ep->dcp->sleep_v27_closed) != DCP_V27_TX_LIVE)
ret = -ESHUTDOWN;
else if (ep->tx_paused || ep->rx_paused)
ret = -EBUSY;
if (ret) {
spin_unlock_irqrestore(&ep->lock, flags);
ret = (ep->compact_shutting_down || ep->stopping) ? -ESHUTDOWN : -EBUSY;
goto out;
}
list_add_tail(&pending.node, &ep->compact_cmds);
Expand Down
Loading
Loading