From patchwork Mon Apr 1 17:30:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Shankar, Uma" X-Patchwork-Id: 10880317 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A7C161800 for ; Mon, 1 Apr 2019 17:04:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B6A326E96 for ; Mon, 1 Apr 2019 17:04:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F2FA2839C; Mon, 1 Apr 2019 17:04:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4833126E96 for ; Mon, 1 Apr 2019 17:04:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8648E6E058; Mon, 1 Apr 2019 17:04:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id F1F3C89FDE; Mon, 1 Apr 2019 17:04:37 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Apr 2019 10:04:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,297,1549958400"; d="scan'208";a="147073910" Received: from linuxpresi1-desktop.iind.intel.com ([10.223.74.121]) by orsmga002.jf.intel.com with ESMTP; 01 Apr 2019 10:04:33 -0700 From: Uma Shankar To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [v2 0/7] Add Multi Segment Gamma Support Date: Mon, 1 Apr 2019 23:00:04 +0530 Message-Id: <1554139811-13280-1-git-send-email-uma.shankar@intel.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dcastagna@chromium.org, emil.l.velikov@gmail.com, Uma Shankar , seanpaul@chromium.org, ville.syrjala@intel.com, maarten.lankhorst@intel.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series adds support for programmable gamma modes and exposes a property interface for the same. Also added, support for multi segment gamma mode introduced in ICL+ It creates 2 property interfaces : 1. GAMMA_MODE_CAPS: This is immutable property and exposes the various gamma modes supported and the lut ranges. This is an enum property with element as blob id. Getting the blob id in userspace, user can get the mode supported and also the range of gamma mode supported with number of lut coefficients. 2. GAMMA_MODE: This is for user to set the gamma mode and send the lut values for that particular mode. v2: Used Ville's design and approach to define the interfaces. Addressed Matt Roper's review feedback and re-ordered the patches. Uma Shankar (5): drm: Add gamma mode property drm/i915/icl: Add register definitions for Multi Segmented gamma drm/i915/icl: Add support for multi segmented gamma mode drm/i915: Add gamma mode caps property drm/i915: Attach gamma mode property Ville Syrjälä (2): drm: Add gamma mode caps property drm/i915: Define color lut range structure drivers/gpu/drm/drm_atomic_uapi.c | 13 + drivers/gpu/drm/drm_color_mgmt.c | 110 +++++++++ drivers/gpu/drm/i915/i915_reg.h | 17 ++ drivers/gpu/drm/i915/intel_color.c | 465 ++++++++++++++++++++++++++++++++++- drivers/gpu/drm/i915/intel_display.c | 5 + include/drm/drm_color_mgmt.h | 11 + include/drm/drm_crtc.h | 17 ++ include/drm/drm_mode_config.h | 10 + include/uapi/drm/drm_mode.h | 49 ++++ 9 files changed, 690 insertions(+), 7 deletions(-)