From patchwork Thu Sep 26 07:26:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Nautiyal, Ankit K" X-Patchwork-Id: 13812942 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 E1DC4CCFA15 for ; Thu, 26 Sep 2024 07:25:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7BFD210EAC0; Thu, 26 Sep 2024 07:25:18 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ik2/5p2Z"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8AE9010EABB; Thu, 26 Sep 2024 07:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727335512; x=1758871512; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1lkMhrouPwrpcncBTi4RGsOksj59dO2fBO6FMyjtqWo=; b=ik2/5p2Zc+C5PfaHyzdGfzFxOKFgbFUjgO7PO8YnC+886HZx54ZIU9wh 6jGkW+hSpTOj/vOONKCqc6hYzdN2thBjq3VFY0CXWYmOeTEAgu2e9VBwL NL982gwiURY7DlB+ZUEVHupgwuzPk4uIm2NduqJDUgdFN1tWuqcwAnt4L X7WPtZQdCWygckb2z8GiKQf4mdYcWsEhCvJlKGrjHJWvIk5usn+TCfdIB gA6nRJWM3Ceoqv4Hrpmvge5Z0Ai9V+2yZBfU+pIeAK17ZAtSSQoiiuMkc Cmzhz/AqIG6AWjWEZV27O7ZRdhHqGtXprMZfGreWngbcOrNM468BUWXMw Q==; X-CSE-ConnectionGUID: Yqa0dqRuQSKDniQUEduh+A== X-CSE-MsgGUID: dl/hlmHYRdCmJO9A3v+AEQ== X-IronPort-AV: E=McAfee;i="6700,10204,11206"; a="51829476" X-IronPort-AV: E=Sophos;i="6.10,259,1719903600"; d="scan'208";a="51829476" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2024 00:25:12 -0700 X-CSE-ConnectionGUID: jiJj01W0T2it7uZDG/Xmnw== X-CSE-MsgGUID: Uyxn3dzES+yGrLKuOXpfZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,259,1719903600"; d="scan'208";a="72334543" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2024 00:25:10 -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 15/15] drm/i915/intel_dp: Add support for forcing ultrajoiner Date: Thu, 26 Sep 2024 12:56:38 +0530 Message-ID: <20240926072638.3689367-16-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240926072638.3689367-1-ankit.k.nautiyal@intel.com> References: <20240926072638.3689367-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" Allow forcing ultrajoiner through debugfs. v2: Minor refactoring of switch case logic. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c index 14bfda9f2d5c..820c6859c9bf 100644 --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c @@ -1331,6 +1331,7 @@ static ssize_t i915_joiner_write(struct file *file, { struct seq_file *m = file->private_data; struct intel_connector *connector = m->private; + struct drm_i915_private *i915 = to_i915(connector->base.dev); int force_joined_pipes = 0; int ret; @@ -1347,6 +1348,13 @@ static ssize_t i915_joiner_write(struct file *file, case 2: connector->force_joined_pipes = force_joined_pipes; break; + case 4: + if (HAS_ULTRAJOINER(i915)) { + connector->force_joined_pipes = force_joined_pipes; + break; + } + + fallthrough; default: return -EINVAL; }