From patchwork Thu Aug 17 15:53:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 13356747 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 363D3C3DA46 for ; Thu, 17 Aug 2023 15:53:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 94E3B10E4F1; Thu, 17 Aug 2023 15:53:47 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7579410E4F1 for ; Thu, 17 Aug 2023 15:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692287625; x=1723823625; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=nEHQ1CD703T4rvi6HE2n44If/7fv3rn+WkuK38Am+Us=; b=W/RuAqpBT2mubVabNFrFAls5cTO6ztvwNwbSuymC1wGrc4U5L4FJBeE7 3sbg3hp+asRoaRhpDWKS0osD+VgaO+ib10D5Ivk0ld2sx/81AG7ofSf/h jFw0FU7cuK3DPei6MwkMTtVE0UcN0MY4f/25eBmbWXfbYhsatL4HMxvuT w64VlSxtKtUmtJLGfsbLVkDwTkrAdMbVkdiSWGKsVjtOj0qdV947hF1dl og/5kXSChPvy4mA9dHwku880eLLRmCB7ZpedRank1I57AzRkTmzDvKmLV OQx/suLToWanHKJDr3WAVkTFsXzE17QZlFJq8uGc2DfxoAJlo53KKxoww w==; X-IronPort-AV: E=McAfee;i="6600,9927,10805"; a="439227276" X-IronPort-AV: E=Sophos;i="6.01,180,1684825200"; d="scan'208";a="439227276" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2023 08:53:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10805"; a="764150238" X-IronPort-AV: E=Sophos;i="6.01,180,1684825200"; d="scan'208";a="764150238" Received: from jnikula-mobl4.fi.intel.com (HELO localhost) ([10.237.66.162]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2023 08:53:13 -0700 From: Jani Nikula To: intel-gfx@lists.freedesktop.org Date: Thu, 17 Aug 2023 18:53:02 +0300 Message-Id: X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: [Intel-gfx] [PATCH 0/6] drm/i915/color: cleanups and refactoring 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: , Cc: jani.nikula@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Split out register macros to a separate file, and move more color register access to intel_color.c. Jani Nikula (6): drm/i915/regs: split out intel_color_regs.h drm/i915/color: move CHV CGM pipe mode read to intel_color drm/i915: move HSW+ gamma mode read to intel_color drm/i915: move ILK+ CSC mode read to intel_color drm/i915/color: move SKL+ gamma and CSC enable read to intel_color drm/i915/color: move pre-SKL gamma and CSC enable read to intel_color drivers/gpu/drm/i915/display/hsw_ips.c | 1 + drivers/gpu/drm/i915/display/intel_color.c | 97 ++++++ .../gpu/drm/i915/display/intel_color_regs.h | 286 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_display.c | 45 --- drivers/gpu/drm/i915/display/intel_overlay.c | 1 + drivers/gpu/drm/i915/i915_reg.h | 274 ----------------- drivers/gpu/drm/i915/intel_gvt_mmio_table.c | 1 + 7 files changed, 386 insertions(+), 319 deletions(-) create mode 100644 drivers/gpu/drm/i915/display/intel_color_regs.h Reviewed-by: Jouni Högander