From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id BA03F10E720 for ; Fri, 10 Dec 2021 13:00:47 +0000 (UTC) From: apoorva1.singh@intel.com Date: Fri, 10 Dec 2021 18:35:31 +0530 Message-Id: <20211210130533.3688728-4-apoorva1.singh@intel.com> In-Reply-To: <20211210130533.3688728-1-apoorva1.singh@intel.com> References: <20211210130533.3688728-1-apoorva1.singh@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t, v4 3/5] lib/intel_chipset.h: Add has_flat_ccs flag List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: apoorva1.singh@intel.com, igt-dev@lists.freedesktop.org, ramalingam.c@intel.com, zbigniew.kempczynski@intel.com, arjun.melkaveri@intel.com List-ID: From: Apoorva Singh Add a new platform flag, has_flat_ccs, for platforms supporting Flat CCS. Signed-off-by: Apoorva Singh Cc: Zbigniew Kempczyński Cc: Melkaveri, Arjun Acked-by: Zbigniew Kempczyński --- lib/intel_chipset.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 2b795527..d2719932 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -40,6 +40,7 @@ struct intel_device_info { unsigned graphics_ver; unsigned display_ver; unsigned gt; /* 0 if unknown */ + bool has_flat_ccs : 1; bool is_mobile : 1; bool is_whitney : 1; bool is_almador : 1; @@ -209,4 +210,6 @@ void intel_check_pch(void); IS_CHERRYVIEW(devid) || \ IS_BROXTON(devid))) +#define HAS_FLAT_CCS(devid) (intel_get_device_info(devid)->has_flat_ccs) + #endif /* _INTEL_CHIPSET_H */ -- 2.25.1