From patchwork Tue Apr 26 12:30:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hogander, Jouni" X-Patchwork-Id: 12827027 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 CFDEBC433F5 for ; Tue, 26 Apr 2022 12:31:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F2A6E10E04D; Tue, 26 Apr 2022 12:31:03 +0000 (UTC) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 739FD10E1FC for ; Tue, 26 Apr 2022 12:31:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650976262; x=1682512262; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xKbpcG5tnyafiafvWBc4SO0nH3fiWG8EGarNq2n2K+M=; b=Kxi/VW3JnceToNfxmP+VygyeB2ZPmNOmrNw4USaC2D+ekhRjB3tcIXbt UnTtET8Y50ThEKOCfg55XZulXqZgOtIhlclicddPbYvkrWhxZKaXeVKbs q//fTUMB182j3BpoiKzdKcAImckr0mYBqF2bNW39WCUBfayNDzbd93Lrs eDrm+MCuX01Ev2bccUKOPg/5YqiRV8jw0oT6OtsITHA00x636FpjheoB/ epADE93pabd7ItluAOvhKGGDP7J/aQ3C3E8lfeul5I7SGdxzZ6wlHYW1l ZXVmN90rQewVsRux0QeTW5BBRbMKPxzUGx4butNraXzWGSSmkfEtxdGlj w==; X-IronPort-AV: E=McAfee;i="6400,9594,10328"; a="245483456" X-IronPort-AV: E=Sophos;i="5.90,290,1643702400"; d="scan'208";a="245483456" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2022 05:31:01 -0700 X-IronPort-AV: E=Sophos;i="5.90,290,1643702400"; d="scan'208";a="558287461" Received: from pbasx-mobl2.ger.corp.intel.com (HELO jhogande-mobl1.ger.corp.intel.com) ([10.252.32.62]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2022 05:30:58 -0700 From: =?utf-8?q?Jouni_H=C3=B6gander?= To: dri-devel@lists.freedesktop.org Subject: [PATCH 0/3] HDR aux backlight range calculation Date: Tue, 26 Apr 2022 15:30:41 +0300 Message-Id: <20220426123044.320415-1-jouni.hogander@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jani Nikula , Rodrigo Siqueira , Mika Kahola , =?utf-8?q?Jouni_H=C3=B6gander?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This patch set splits out static hdr metadata backlight range parsing from gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c into gpu/drm/drm-edid.c as a new function. This new function is then used in admgpu_dm.c and intel_dp_aux_backlight.c Cc: Maarten Lankhorst Cc: Rodrigo Siqueira Cc: Harry Wentland Cc: Lyude Paul Cc: Mika Kahola Cc: Jani Nikula Jouni Högander (3): drm: New function to get luminance range based on static hdr metadata drm/amdgpu_dm: Use split out luminance calculation function drm/i915: Use luminance range from static hdr metadata .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 35 ++---------- drivers/gpu/drm/drm_edid.c | 55 +++++++++++++++++++ .../drm/i915/display/intel_dp_aux_backlight.c | 9 ++- include/drm/drm_edid.h | 4 ++ 4 files changed, 70 insertions(+), 33 deletions(-) Tested-by: Lyude Paul