From patchwork Fri Jan 26 10:03:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Coelho X-Patchwork-Id: 13532366 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 BABF0C47422 for ; Fri, 26 Jan 2024 10:03:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 32AF510F61D; Fri, 26 Jan 2024 10:03:21 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by gabe.freedesktop.org (Postfix) with ESMTPS id 50B4310F61C for ; Fri, 26 Jan 2024 10:03:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706263400; x=1737799400; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ZD23QRaCFNl9Jbvu5ZIVt+x6ukg86aKmHZV44lgKBJ8=; b=ie4hg8B7h/78EfrCjX4noYmbfNJ0XtCgdYLLBn+E271GbTbr05a2HOG8 O5Uv0+Jciqlu+XklpCKIMMpdP+mpCE9IvaLBt5dkV9fTOQLupe1JDZzqu IdcCmopCSRQCRhiPKRmmf/LOGjeQ5bgmq4VinhN/rF3TQCsAsp6RKVQHK jRhhmknxNExfk2R3REAanzLJu03qMZUQ5ibBVlO8Unq4lGd1XcnIFiXRW gg/SPyV6bDao4FQYa0dNIxmfidJ+s9rEii2jdfsoEOgGVvLw2tkZKNoM/ cW3GcmSHj/j6oxjz5RQcNLN4JWC/gQFc1lLwIpWUhJQovoBXawndSIKBQ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10964"; a="15959473" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="15959473" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2024 02:03:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10964"; a="906270215" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="906270215" Received: from imititel-mobl.ger.corp.intel.com (HELO hazy.ger.corp.intel.com) ([10.252.59.60]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2024 02:03:18 -0800 From: Luca Coelho To: intel-gfx@lists.freedesktop.org Subject: [PATCH v2] drm/i915: update eDP MSO pipe mask for newer platforms Date: Fri, 26 Jan 2024 12:03:09 +0200 Message-Id: <20240126100309.2024264-1-luciano.coelho@intel.com> X-Mailer: git-send-email 2.39.2 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: , Cc: luciano.coelhoa@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Starting from display version 14, pipes A and B are supported in eDP MSO. After display version 20 there are no restrictions. Update the function that returns the pipe mask for eDP MSO accordingly. Bspec: 68923, 55473 Cc: Jani Nikula Cc: James Ausmus Reviewed-by: Gustavo Sousa Signed-off-by: Luca Coelho --- In v2: * allow pipes A and B from ver 14 to 20 [Gustavo] drivers/gpu/drm/i915/display/intel_ddi.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c index 922194b957be..29a616a8e72d 100644 --- a/drivers/gpu/drm/i915/display/intel_ddi.c +++ b/drivers/gpu/drm/i915/display/intel_ddi.c @@ -2336,13 +2336,20 @@ static void intel_ddi_power_up_lanes(struct intel_encoder *encoder, } } -/* Splitter enable for eDP MSO is limited to certain pipes. */ +/* + * Splitter enable for eDP MSO is limited to certain pipes on certain + * platforms. + */ static u8 intel_ddi_splitter_pipe_mask(struct drm_i915_private *i915) { - if (IS_ALDERLAKE_P(i915)) + + if (IS_ALDERLAKE_P(i915) || + IS_DISPLAY_IP_RANGE(i915, IP_VER(14, 0), IP_VER(20, 0))) return BIT(PIPE_A) | BIT(PIPE_B); - else + else if (DISPLAY_VER(i915) < 14) return BIT(PIPE_A); + + return ~0; } static void intel_ddi_mso_get_config(struct intel_encoder *encoder,