From patchwork Tue Nov 28 19:03:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 13471559 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 65E2CC4167B for ; Tue, 28 Nov 2023 19:04:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DCB1D10E231; Tue, 28 Nov 2023 19:04:14 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id E5ECA10E231 for ; Tue, 28 Nov 2023 19:04:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701198252; x=1732734252; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9qjKQVUX+0K4BQ2bvV6ub9MiKiSKUjtkbp/qi9tid0o=; b=F+/Pq13cK2uP53KA3OTRJT2DzTYm/tnjMrZS5jRCkJ+E9N96DwKQR5Nk c3AQ5wtCrGkWgtPtA2AO6HFvlIlqX7RyOm+PFrrAc0YVm4ZwiSAe5e9c4 8B+PCtID0S21+g9Y9L9FLj8zzZlSyMTRbv2MvjJd4EYE1ZhcLWZ7JNKiY ibeCs3AXHLE7RSVSVLOwIKkxx643tLyHpjB574WttCwBVbz/WRUGnjdsS H/M6b+iopwosGPu1X22nFg0JHlJpViDoN289c4WeVPY9LqZdtXz/39VFm KHfm3eFJ+syjvp9IZRB3OjvzaJ9XyLz0YSLctmsXY9vPj95X+YDAmb3Y2 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="372368827" X-IronPort-AV: E=Sophos;i="6.04,234,1695711600"; d="scan'208";a="372368827" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2023 11:03:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="892166498" X-IronPort-AV: E=Sophos;i="6.04,234,1695711600"; d="scan'208";a="892166498" Received: from lucas-s2600cw.jf.intel.com ([10.165.21.196]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2023 11:03:41 -0800 From: Lucas De Marchi To: intel-gfx@lists.freedesktop.org Date: Tue, 28 Nov 2023 11:03:29 -0800 Message-Id: <20231128190329.1335562-1-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Subject: [Intel-gfx] [CI] drm/i915/dgfx: DGFX uses direct VBT pin mapping 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: Matt Roper , Lucas De Marchi Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Clint Taylor DDC pin mapping for DGFX cards uses direct VBT pin mapping Cc: Lucas De Marchi Cc: Matt Roper Signed-off-by: Clint Taylor Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_bios.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/display/intel_bios.c index 2fd72b2fd109..3e7e96acb24a 100644 --- a/drivers/gpu/drm/i915/display/intel_bios.c +++ b/drivers/gpu/drm/i915/display/intel_bios.c @@ -2201,6 +2201,9 @@ static u8 map_ddc_pin(struct drm_i915_private *i915, u8 vbt_pin) const u8 *ddc_pin_map; int i, n_entries; + if (IS_DGFX(i915)) + return vbt_pin; + if (INTEL_PCH_TYPE(i915) >= PCH_LNL || HAS_PCH_MTP(i915) || IS_ALDERLAKE_P(i915)) { ddc_pin_map = adlp_ddc_pin_map; @@ -2208,8 +2211,6 @@ static u8 map_ddc_pin(struct drm_i915_private *i915, u8 vbt_pin) } else if (IS_ALDERLAKE_S(i915)) { ddc_pin_map = adls_ddc_pin_map; n_entries = ARRAY_SIZE(adls_ddc_pin_map); - } else if (INTEL_PCH_TYPE(i915) >= PCH_DG1) { - return vbt_pin; } else if (IS_ROCKETLAKE(i915) && INTEL_PCH_TYPE(i915) == PCH_TGP) { ddc_pin_map = rkl_pch_tgp_ddc_pin_map; n_entries = ARRAY_SIZE(rkl_pch_tgp_ddc_pin_map);