From patchwork Wed Sep 18 14:43:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Nautiyal, Ankit K" X-Patchwork-Id: 13806963 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 A87C9CCD1BD for ; Wed, 18 Sep 2024 14:42:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 35F4610E5CD; Wed, 18 Sep 2024 14:42:16 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ecVo/8Ac"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id B178710E5C9; Wed, 18 Sep 2024 14:42:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726670531; x=1758206531; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IqxyMUroIz4aq/TODS8b70K8FUwOE2R+bTNVy/Wu8Js=; b=ecVo/8AcfpX0TZPX4DtYpBxHEBKoUDAgl/O7/GRe8eDSOJ0Dd0zje17p iIclhfnInCu8SXWiSyvHb/RMmAnuZLN/HUXjxgr3Y9R079n+GN26LJhEp 9ZQG3UIXb8EAlzg46L6qBNdeqRIauQxHyQ1clSnXdCCVK9B93L4yCaQvt 5iVA6wZi7kjc1RxzzbHU23GC5AGLof7j2FCuhxwURgjzWiOphSKZI77JW paYZTeqCfPh7OJZnn7ykVH1+z+SbbdP+luw//h44VBfO2Zm8nv3ZGFqQx Jz3piNUu9hsPXP3VwED6GKyJYH+gBqz9AAXWg7knyL32+iR/mLhnsLZSo g==; X-CSE-ConnectionGUID: kuwia6DfSHOSrLnARbPX5A== X-CSE-MsgGUID: oOrqhIuHRlyVMTiNc+S0Aw== X-IronPort-AV: E=McAfee;i="6700,10204,11199"; a="29481745" X-IronPort-AV: E=Sophos;i="6.10,239,1719903600"; d="scan'208";a="29481745" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2024 07:42:11 -0700 X-CSE-ConnectionGUID: CgqzjDovRzyo5wy9v6ypzw== X-CSE-MsgGUID: exsq78OsQc2zB5xBkUUk8w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,239,1719903600"; d="scan'208";a="69200388" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2024 07:42:08 -0700 From: Ankit Nautiyal To: intel-gfx@lists.freedesktop.org Cc: intel-xe@lists.freedesktop.org, suraj.kandpal@intel.com, ville.syrjala@linux.intel.com Subject: [PATCH 09/15] drm/i915/display: Add macro HAS_ULTRAJOINER() Date: Wed, 18 Sep 2024 20:13:37 +0530 Message-ID: <20240918144343.2876184-10-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240918144343.2876184-1-ankit.k.nautiyal@intel.com> References: <20240918144343.2876184-1-ankit.k.nautiyal@intel.com> 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" Add macro to check if platform supports Ultrajoiner. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display_device.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_device.h b/drivers/gpu/drm/i915/display/intel_display_device.h index 5306bbd13e59..8dd7bef49133 100644 --- a/drivers/gpu/drm/i915/display/intel_display_device.h +++ b/drivers/gpu/drm/i915/display/intel_display_device.h @@ -154,6 +154,7 @@ enum intel_display_subplatform { #define HAS_TRANSCODER(i915, trans) ((DISPLAY_RUNTIME_INFO(i915)->cpu_transcoder_mask & \ BIT(trans)) != 0) #define HAS_UNCOMPRESSED_JOINER(i915) (DISPLAY_VER(i915) >= 13) +#define HAS_ULTRAJOINER(i915) ((DISPLAY_VER(i915) == 14 && IS_DGFX(i915)) || DISPLAY_VER(i915) > 14) #define HAS_VRR(i915) (DISPLAY_VER(i915) >= 11) #define HAS_AS_SDP(i915) (DISPLAY_VER(i915) >= 13) #define HAS_CMRR(i915) (DISPLAY_VER(i915) >= 20)