From patchwork Mon Mar 22 14:30:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Modem, Bhanuprakash" X-Patchwork-Id: 12153885 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.8 required=3.0 tests=BAYES_00, DATE_IN_FUTURE_06_12,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03E80C433DB for ; Mon, 22 Mar 2021 06:38:20 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id AC61C6195D for ; Mon, 22 Mar 2021 06:38:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC61C6195D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4F87689E7B; Mon, 22 Mar 2021 06:38:19 +0000 (UTC) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3777689E7B for ; Mon, 22 Mar 2021 06:38:17 +0000 (UTC) IronPort-SDR: /D3p7wCrOEAr787FOxLjNgaE9SY8Kzl3GhAXgR4VQWcXHXv1Hs1NsTi27XPmW1YTdiSxRn7aB+ Wx8Eq4j6Taig== X-IronPort-AV: E=McAfee;i="6000,8403,9930"; a="190238701" X-IronPort-AV: E=Sophos;i="5.81,268,1610438400"; d="scan'208";a="190238701" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2021 23:38:17 -0700 IronPort-SDR: tFlSf0pdsoAD6SjHx76VhYdSRJR9+ZUFLZdWpPU30u97zdHL7LOWpIa7u0GBq8+3OQgLO2Chvc a9dZcByUObLw== X-IronPort-AV: E=Sophos;i="5.81,268,1610438400"; d="scan'208";a="451627098" Received: from bhanu-nuclab.iind.intel.com ([10.145.162.173]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2021 23:38:15 -0700 From: Bhanuprakash Modem To: intel-gfx@lists.freedesktop.org Date: Mon, 22 Mar 2021 20:00:01 +0530 Message-Id: <20210322143008.29250-1-bhanuprakash.modem@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/7] drm/i915: Add state checker for CSC coeff values 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" In this patch series, added state checker to validate CSC. This reads hardware state, and compares the originally requested state(s/w). This is done for chv, ilk, glk and their variant platforms. Rest of the platforms will be enabled on top of this later. Signed-off-by: Bhanuprakash Modem Bhanuprakash Modem (7): drm/i915/display: Introduce vfunc read_csc() to create hw ctm drm/i915/display: Add func to compare hw/sw CSC matrix drm/i915/display: Add macro to compare hw/sw CSC matrix drm/i915/display: Extract chv_read_csc() drm/i915/display: Extract ilk_read_csc() drm/i915/display: Extract icl_read_csc() FOR_TESTING_ONLY: Print coeffs of hw and sw CTM drivers/gpu/drm/i915/display/intel_color.c | 209 ++++++++++++++++++- drivers/gpu/drm/i915/display/intel_color.h | 3 + drivers/gpu/drm/i915/display/intel_display.c | 31 +++ drivers/gpu/drm/i915/i915_drv.h | 1 + 4 files changed, 239 insertions(+), 5 deletions(-) --- 2.20.1