From patchwork Tue Feb 4 12:50:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kandpal, Suraj" X-Patchwork-Id: 13959142 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C1B8DC02197 for ; Tue, 4 Feb 2025 12:50:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 63E1610E61B; Tue, 4 Feb 2025 12:50:26 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="jPjNthxb"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id DA4F710E614; Tue, 4 Feb 2025 12:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1738673425; x=1770209425; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=O70d/n8A7jSwkP9ydUPZ82gCpTvnBGZkV7gto2fDQAU=; b=jPjNthxbonxc3zSOP5i2KThMi5RhX851WTtc/iK4F3y/yssrhxHKcqK5 9J6ohbqHwF55SlWo1a3p8KwLhvfDosUaKs0a6s9pY/b9vGpbeDAa9WrdN tFLWKc5nWblYP88l+k4xSBj/1OxTG89exp2+X7z/g8ySYMo0vZFPe7LdP OPFzQxNeai0rTTGFwDYTsmYYU+sEMCf5rEzXs9GZ72SPggWstuIh+GCWx g0biLU+yzT7MjyvKLr0ey0D5Et+5oHd1suS8NXy2mPUpBNPwk1LFIHrxo gotQdNCiRpzabyXiJdDf5gbZAFUTKXMQoy3lNfj5oA0T5R0lZI3Qow6p8 g==; X-CSE-ConnectionGUID: oSsG/eNBSnOFEjQ9bCYtsg== X-CSE-MsgGUID: jXunjUfrQ2OFc4N4fBQMEw== X-IronPort-AV: E=McAfee;i="6700,10204,11336"; a="42853150" X-IronPort-AV: E=Sophos;i="6.13,258,1732608000"; d="scan'208,223";a="42853150" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2025 04:50:25 -0800 X-CSE-ConnectionGUID: CK8l3EkSQDKYUsvgths7vQ== X-CSE-MsgGUID: jrf1AG9ZQmKvyZBld6j4ow== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208,223";a="111441935" Received: from kandpal-x299-ud4-pro.iind.intel.com ([10.190.239.10]) by orviesa008.jf.intel.com with ESMTP; 04 Feb 2025 04:50:21 -0800 From: Suraj Kandpal To: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: uma.shankar@intel.com, jani.nikula@intel.com, arun.r.murthy@intel.com, ben.kao@intel.com, Suraj Kandpal Subject: [PATCH 0/7] Enable Aux based Nits brightness control for eDP Date: Tue, 4 Feb 2025 18:20:02 +0530 Message-Id: <20250204125009.2609726-1-suraj.kandpal@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From eDP 1.5 we are supposed to use the VESA pathways to control brightness. But still did not have the nits luminance control coded in. This series enables nits based luminance control over Aux using VESA pathways. --v2 -Prefer using Luminance for function name over nits [Jani] Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/3669 Signed-off-by: Suraj Kandpal Suraj Kandpal (7): drm/dp: Add eDP 1.5 bit definition drm/i915/backlight: Use proper interface based on eDP version drm/i915/backlight: Check Luminance based brightness control for VESA drm/i915/backlight: Modify function to get VESA brightness in Nits drm/i915/backlight: Add function to change brightness in nits for VESA drm/i915/backlight: Setup nits based luminance via VESA drm/i915/backlight: Enable nits based luminance .../drm/i915/display/intel_display_types.h | 1 + .../drm/i915/display/intel_dp_aux_backlight.c | 181 ++++++++++++++---- include/drm/display/drm_dp.h | 1 + 3 files changed, 142 insertions(+), 41 deletions(-)