From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=109.224.244.123 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796280377; b=3qeNpPFfM5eW1GSKxAb7p+4vZas0AiWk7S78RQfwDeSYE/XA+VxPIIxxLXfG6qLpDypl 8iUq+D6mWAKkOcq/Eap88dwlmivept4W6sWOV5lZlWtGSEKGDHXzWO81h4OsMiOTGReYq y0BszK9po8w1NG6H/2Htwr/9DpTl6tQU5UG3trI8atAPZUfzo6u0GTjqMHfXtCMqD5sJl 1RVUqP2qXSBXY1DXuvPyHwcSfKJbTiG48fuoMhuXIxNW3rCipq2xMbDT3P1f5Ee9rTgBH YYWQwOXUzYoLMBcCzKiBPRlpSltWNB++r5hXJlddyFxEuubRzM71HM0n5zGpKeAAltw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796280377; h=DMARC-Filter:DKIM-Signature:Date:To:From:Cc:Subject:Message-ID: Feedback-ID:X-Pm-Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=6cIzkkltnZp13bpSH7qfiht6O2+EiFahkF1kXO/oqEE=; b=HZxitmGMCvqkzpVH6f9XskxytwdJJ4kbShHL/QqQokD6JId7FQit5qb+wgdR/sA8eTYl Z8tY8amgc2f4vbuXZCJWTHLrSHFsU6I1oT1spmHf+RS6/0J5KTZVGVwaAtyVATqw4838c iPyFFYyjfF6uKxURD4B7LZhULAXmTypa9Lq9+28wVmj3ELiCZcYnkP9I4AMYgRrcQ0kk3 8rpDv2VZBrc4fHzwFyRcTkgU4tjzAuoyECYjcQgnExadjNxNGA/XO/UFnwm+G7P1vUeTD 0dfQeEgxsD/sKjqVlCt9MDmSOEz6N4gDe7+x3LdmazOYg3njQWhp0DhsiXdQuxmrGCA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=pm.me; spf=pass smtp.mailfrom=pm.me; dkim=pass header.d=pm.me header.i=@pm.me header.a=rsa-sha256 header.s=protonmail3 header.b=lOAOqTk2; arc=none smtp.remote-ip=109.224.244.123 Received: from mail-244123.protonmail.ch (mail-244123.protonmail.ch [109.224.244.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB44E606A32C for ; Thu, 3 Dec 2026 06:46:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CB44E606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pm.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=pm.me header.i=@pm.me header.a=rsa-sha256 header.s=protonmail3 header.b=lOAOqTk2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1796280373; x=1796539573; bh=6cIzkkltnZp13bpSH7qfiht6O2+EiFahkF1kXO/oqEE=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=lOAOqTk2QOd02Z9PcbP9Dqfr6b6szEwiW/MagZe1zEopykfNWGfbmpiukXSmh3lLR 2DO5aLu/lDzcOiGqhRGk+VDLJVc5cHYbDVbGa8u+bqxKE1bpcuTJOYVmh6Csym3CTb 0M6OBff3MgEXGUB/JbCdSw/pq+uNEQePWWwAByJLyZXNNT2RVj2kEUTb1trdx6MoNX Gte2XlYqwZ5A4MN07EOFyUmLkiSw8bZ52yFiSIwl90Tg5mR5tV16gDdFYj/i0Oz96A 1xSPae4pKbHgibNIrRR2DEXGdarSjem/xFMKwUQbvNa1lqNpSyCTcwxyqfkFRXpBeC iAULLR0tjjBVQ== Date: Thu, 03 Dec 2026 06:46:10 +0000 To: Maximilian Luz , Hans de Goede , =?utf-8?Q?Ilpo_J=C3=A4rvinen?= From: Sergey Lebedev Cc: Andre Gilerson , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform/surface: gpe: Add support for Surface Pro 11 with Intel Message-ID: <20261203064605.32265-1-lsa.uz@pm.me> Feedback-ID: 113843758:user:proton X-Pm-Message-ID: 071a785e9e050220da1ad65482902684193779b8 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Add the lid GPE used by the Surface Pro 11th Edition with Intel. Its _L2E handler notifies LID0; without this entry the tablet does not wake from suspend when the Type Cover is opened. Andr=C3=A9 Gilerson found this GPE first and carries the same entry in his linux-surface kernel: https://github.com/AndreGilerson/linux-surface-kernel/commit/c0c80569eaa0 Signed-off-by: Sergey Lebedev --- Tested on the Surface Pro for Business 11th Edition with Intel, Ubuntu 7.0.0-44 with surface_gpe from v7.0 plus this entry. The SAM's own wake sources were disabled for the test, so only the GPE could wake it. Without the entry, opening the cover did not wake it from s2idle, although gpe2E counted. With it, the open woke it: "Triggering wakeup from IRQ 9", "ACPI non-EC GPE wakeup". Tool use, per Documentation/process/generated-content.rst (Assisted-by tags in commits were dropped in 7.4-rc1): * My contributions to this series were prepared with Claude Code (claude-opus-5-5); work by others in it is their own. * This replaces any Assisted-by tags in earlier versions. drivers/platform/surface/surface_gpe.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/platform/surface/surface_gpe.c b/drivers/platform/surf= ace/surface_gpe.c index 60c19283c79..04de8644102 100644 --- a/drivers/platform/surface/surface_gpe.c +++ b/drivers/platform/surface/surface_gpe.c @@ -27,6 +27,11 @@ static const struct property_entry lid_device_props_l17[= ] =3D { =09{}, }; =20 +static const struct property_entry lid_device_props_l2E[] =3D { +=09PROPERTY_ENTRY_U32("gpe", 0x2E), +=09{}, +}; + static const struct property_entry lid_device_props_l4B[] =3D { =09PROPERTY_ENTRY_U32("gpe", 0x4B), =09{}, @@ -192,6 +197,15 @@ static const struct dmi_system_id dmi_lid_device_table= [] =3D { =09=09}, =09=09.driver_data =3D (void *)lid_device_props_l4B, =09}, +=09{ +=09=09.ident =3D "Surface Pro 11 (Intel)", +=09=09.matches =3D { +=09=09=09DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), +=09=09=09DMI_EXACT_MATCH(DMI_PRODUCT_NAME, +=09=09=09=09=09"Surface Pro for Business 11th Edition with Intel"), +=09=09}, +=09=09.driver_data =3D (void *)lid_device_props_l2E, +=09}, =09{ } }; =20 --=20 2.54.0