From patchwork Mon Aug 19 18:44:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 13768865 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 DC9DFC52D7C for ; Mon, 19 Aug 2024 18:44:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 51FB310E1DA; Mon, 19 Aug 2024 18:44:45 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="asrrKD2v"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 81A3410E1DA; Mon, 19 Aug 2024 18:44:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724093084; x=1755629084; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=UJVpH49vsjvbFTuyqf1elUlyyo0EWgZzb8GpZj9pPW4=; b=asrrKD2vjKoujEvJJXchnP1yR2cdye6+Bff3pKD8vlJg2DjFyvDv4Xqz e35N0RrN2qzbWFRis5+L6pRnlFcOAygRnA0XzKs/8o4Um/bmKDn0iR1X9 4TWDtyN2i0pi34x2J+MPVizEkKeOI92J24O+gMWOmJ5kdIoQKhrL37lrE EvDPoekGTyaJ6dTkYAAHca9CvxjWZdVqmH50IFLQn3P8aFjhe15O1rU5t t0cTqGfGm6UUpedziE3oN3MuiYhaae3RDjjM+c7wJpGxbH9ep6LU3pZct IHja8JCohbIh9q7ifF36lqxQ7FMru8oZkvMj61diyVD0hQ56mVMBcr0b2 w==; X-CSE-ConnectionGUID: dYWA95kaS3aAns4K+QOcmw== X-CSE-MsgGUID: itYmT3bzQFqQZrN29czNEA== X-IronPort-AV: E=McAfee;i="6700,10204,11169"; a="26157478" X-IronPort-AV: E=Sophos;i="6.10,159,1719903600"; d="scan'208";a="26157478" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2024 11:44:44 -0700 X-CSE-ConnectionGUID: MINA1ILSRDKAdbDWFKhuSA== X-CSE-MsgGUID: guo8x5P0RjSFPcDAeudVyQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,159,1719903600"; d="scan'208";a="97940241" Received: from mwiniars-desk2.ger.corp.intel.com (HELO localhost) ([10.245.246.70]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2024 11:44:40 -0700 From: Jani Nikula To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: jani.nikula@intel.com, rodrigo.vivi@intel.com, lucas.demarchi@intel.com, ville.syrjala@linux.intel.com Subject: [PATCH v2 0/9] drm/i915/display: platform identification with display->is. Date: Mon, 19 Aug 2024 21:44:27 +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 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" v2 of [1]. Please read the cover letter there. This addresses review comments and adds a few more commits on top, in particular the last one showcasing the approach. The main question remains, is this what we want? BR, Jani. [1] https://lore.kernel.org/r/cover.1718719962.git.jani.nikula@intel.com Jani Nikula (9): drm/i915/display: use a macro to initialize subplatforms drm/i915/display: use a macro to define platform enumerations drm/i915/display: join the platform and subplatform enums drm/i915/display: add display platforms structure with platform members drm/i915/display: add platforms "is" member to struct intel_display drm/i915/display: remove the display platform enum as unnecessary drm/i915/display: consider HSW/BDW ULX to also be ULT drm/i915/display: keep subplatforms next to their platforms drm/i915/bios: use display->is.PLATFORM instead of IS_PLATFORM() drivers/gpu/drm/i915/display/intel_bios.c | 36 ++-- .../gpu/drm/i915/display/intel_display_core.h | 3 + .../drm/i915/display/intel_display_device.c | 89 ++++++--- .../drm/i915/display/intel_display_device.h | 180 ++++++++++-------- 4 files changed, 174 insertions(+), 134 deletions(-)