From patchwork Mon Dec 6 06:34:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai-Heng Feng X-Patchwork-Id: 1563828 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=sjtViFyA; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J6twv1PwGz9sRK for ; Mon, 6 Dec 2021 17:35:58 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mu7bF-00082d-A8; Mon, 06 Dec 2021 06:35:45 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mu7bD-00082P-JQ for kernel-team@lists.ubuntu.com; Mon, 06 Dec 2021 06:35:43 +0000 Received: from localhost.localdomain (unknown [10.101.196.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 7C039404AB for ; Mon, 6 Dec 2021 06:35:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1638772543; bh=P5wjc2fbIpVzQfClvWj6DI+uSQ1GpNvdtMRHMPMeW94=; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; b=sjtViFyAYnSdar6tYBQHkQOZkxKRfICSmUrPJEys0pz64pGRSUa/bhoFnMk7GFy+v Z9vtMDBtnVB6xNZLp4kKNf5stTg8X36McHvxaIHc1sUsKWmpGUJetFjITagOrKcBTq 6sHiSeSYvs+cebEFuKlEmX+jnuh0BM8SO22/qccPBO0GMHdvw50QkVVD5bTPudWbMz B5B6rYpPBQXEDk1MBEndvWRlzk4nkd+cgLxYtpTRQX9PH9kSY9krQ7csytc1kaDkiz Yr1GwgThdfminDWI1hBDbV0v+WvxJXHe0Wf9zBVWzN6rRLW4ifHF2z+7MU9k+r6KGb uUKhvYT2fmYFQ== From: Kai-Heng Feng To: kernel-team@lists.ubuntu.com Subject: [SRU] [Unstable/OEM-5.14] [PATCH 0/4] Add support for NVIDIA EC backlight Date: Mon, 6 Dec 2021 14:34:50 +0800 Message-Id: <20211206063457.1522003-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1953286 [Impact] Some system equipped with NVIDIA GFX cannot change screen brightness. [Fix] Add new way to change brightness. [Test] After the fix is applied, there's a new backlight sysfs "nvidia_wmi_ec_backlight" can change the screen brightness. [Where problems could occur] The driver relies on BIOS to behave correctly. If the BIOS lies or has a bug, the new backlight interface will overtake other backlight interfaces. It's rather unlikely though. Daniel Dadap (3): platform/x86: Add driver for ACPI WMAA EC-based backlight control platform/x86: Remove "WMAA" from identifier names in wmaa-backlight-wmi.c platform/x86: Rename wmaa-backlight-wmi to nvidia-wmi-ec-backlight Kai-Heng Feng (1): UBUNTU: [Config] NVIDIA_WMI_EC_BACKLIGHT=m MAINTAINERS | 6 + debian.master/config/annotations | 1 + debian.master/config/config.common.ubuntu | 1 + drivers/platform/x86/Kconfig | 15 ++ drivers/platform/x86/Makefile | 1 + .../platform/x86/nvidia-wmi-ec-backlight.c | 213 ++++++++++++++++++ 6 files changed, 237 insertions(+) create mode 100644 drivers/platform/x86/nvidia-wmi-ec-backlight.c