Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8877E4430 for ; Mon, 14 Apr 2025 02:54:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744599275; cv=none; b=qvclAkmV/X8oOi981BIWCPjC3GXhwR9oKdRs0XSbWvXKy1RMkreUtuvgk6yE5UtGlF5zByG/i1C6MHH65Ol08Sl3xWfYsmIyHDpQlB1nbZZXD1fl7CuScpFsjR16skca/rVul5EAVl8sHRrYclcAXQwQ+neVYp1GDgECQrk7+40= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744599275; c=relaxed/simple; bh=kSoBvyhLQ8/vdVHZxYDxn4fxcqgmrjemokN1Q2sPLtM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fC4Wcg77JpgE6kan54AJoADCqsShPikCIILFNraK2YmMMcQBv2z4a8t/+l2v+u28z2WHs7JROYoZhQCtgGcaCeWm9pd657qwIusksXI8O34nhJ58VXF+2B5ew1g9Ka9z3EGO6w5KLwOtNG6l9vG+bfrn1tt5txRALuMxZ37ouio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gryHLDpp; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gryHLDpp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1744599273; x=1776135273; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kSoBvyhLQ8/vdVHZxYDxn4fxcqgmrjemokN1Q2sPLtM=; b=gryHLDppcWXWc8rjg6BFDokCRAezQb/6MY2FnU9rQ4Kz6JnwpxNHsbDH wd5UqCDsaw74o0L5aB7bG5PSgsg2R0xmT9G4MH2v2IVMpFqGTzuiscGHz lPPsZEAhQPwImooFZpDorv1gRn3TF7v8BgtSZvs3CnyxZmAyjQTIbr4uE 2plDIoeRJX8VcuqJ7rn2GpE5Jh87znNZwUkKap8o4VfcQlPtWndccUrtr tSMGJjZYedSTnve2qwcMdV8JjMME95YtGaoOhgGSNvl9SfGMjhYeeXOob yXX2mUgndQ2S98MHBJSTuIXBSMpp+hDFBju8Z4fvXK9pPtw9Autbv9AG4 g==; X-CSE-ConnectionGUID: jrn1etIJQjiHq/BTc+0YSQ== X-CSE-MsgGUID: rM/uCcDDR4yOLwUX3Hsqyg== X-IronPort-AV: E=McAfee;i="6700,10204,11402"; a="46189568" X-IronPort-AV: E=Sophos;i="6.15,211,1739865600"; d="scan'208";a="46189568" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2025 19:54:33 -0700 X-CSE-ConnectionGUID: db6eUy0ERiCvfCR3pGknHA== X-CSE-MsgGUID: u/kj/3lwRrO4WHO1CBvpFg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,211,1739865600"; d="scan'208";a="130016223" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2025 19:54:31 -0700 From: Ankit Nautiyal To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: suraj.kandpal@intel.com, stable@vger.kernel.org, ankit.k.nautiyal@intel.com Subject: [PATCH 2/2] drm/i915/dp: Check for HAS_DSC_3ENGINES while configuring DSC slices Date: Mon, 14 Apr 2025 08:12:56 +0530 Message-ID: <20250414024256.2782702-3-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250414024256.2782702-1-ankit.k.nautiyal@intel.com> References: <20250414024256.2782702-1-ankit.k.nautiyal@intel.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DSC 12 slices configuration is used for some specific cases with Ultrajoiner. This can be supported only when each of the 4 joined pipes have 3 DSC engines each. Add the missing check for 3 DSC engines support before using 3 DSC slices per pipe. Fixes: be7f5fcdf4a0 ("drm/i915/dp: Enable 3 DSC engines for 12 slices") Cc: Ankit Nautiyal Cc: Suraj Kandpal Cc: # v6.14+ Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index aeb14a5455fd..d7a30d0992b7 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -1050,10 +1050,11 @@ u8 intel_dp_dsc_get_slice_count(const struct intel_connector *connector, u8 test_slice_count = valid_dsc_slicecount[i] * num_joined_pipes; /* - * 3 DSC Slices per pipe need 3 DSC engines, - * which is supported only with Ultrajoiner. + * 3 DSC Slices per pipe need 3 DSC engines, which is supported only + * with Ultrajoiner only for some platforms. */ - if (valid_dsc_slicecount[i] == 3 && num_joined_pipes != 4) + if (valid_dsc_slicecount[i] == 3 && + (!HAS_DSC_3ENGINES(display) || num_joined_pipes != 4)) continue; if (test_slice_count > -- 2.34.1