From patchwork Fri Oct 11 15:28:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Ma X-Patchwork-Id: 1175279 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com 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 ozlabs.org (Postfix) with ESMTPS id 46qX0m32ktz9sP7; Sat, 12 Oct 2019 02:28:39 +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 1iIwqE-0002pw-Ma; Fri, 11 Oct 2019 15:28:30 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iIwqC-0002pk-Pl for kernel-team@lists.ubuntu.com; Fri, 11 Oct 2019 15:28:28 +0000 Received: from [114.245.47.25] (helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iIwqC-0004iz-27 for kernel-team@lists.ubuntu.com; Fri, 11 Oct 2019 15:28:28 +0000 From: Aaron Ma To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/2] [SRU][OEM-B]UBUNTU: SAUCE: enable adjusting brightness on some samsung OLED panels Date: Fri, 11 Oct 2019 23:28:20 +0800 Message-Id: <20191011152822.26495-1-aaron.ma@canonical.com> X-Mailer: git-send-email 2.17.1 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/1844798 [Impact] OLED backlight of Samsung is not supported by the current kernel. brightness can't be adjusted. [Fix] Fix max brightness value; Follow samsung panel's spec to enable dpcd and support adjusting brightness on OLED. [Test] Verified on several laptops, backlight on and brightness is adjusted. [Regression Potential] Medium, change is limited to specific hardware feature. Verified on no dpcd support laptops, no regression found yet. These patches are still working in progress, but brightness adjustion is a must-have feature in some urgent projects, so we apply this fix first on bionic oem kernel only, once got the final fix we can rework these patches. Furquan Shaikh (1): UBUNTU: SAUCE: i915: intel_dp_aux_backlight: Fix max backlight calculations Lee Shawn C (1): UBUNTU: SAUCE: drm/i915: customize DPCD brightness control for specific panel drivers/gpu/drm/drm_dp_helper.c | 18 +- drivers/gpu/drm/i915/intel_dp.c | 7 + drivers/gpu/drm/i915/intel_dp_aux_backlight.c | 273 ++++++++++++++---- include/drm/drm_dp_helper.h | 20 ++ 4 files changed, 266 insertions(+), 52 deletions(-)