From patchwork Tue Nov 22 07:46:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Nautiyal, Ankit K" X-Patchwork-Id: 13051990 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 2B4D1C4332F for ; Tue, 22 Nov 2022 07:46:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6B83B10E39A; Tue, 22 Nov 2022 07:46:39 +0000 (UTC) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4032A10E38E for ; Tue, 22 Nov 2022 07:46:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669103168; x=1700639168; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Dx8q9Ja2NjnF1WwE9R/oLG1QtE7uWz9HqXZsZQ79aqI=; b=bFjfcGvIqfq0qW4vGsesKDQxBqeVj0rYyYH4tPvH46dmWxjQyrOok1o/ Z0Gv5OtVB5Ve56KmV++8vjHVXL42oGLxsbfbdxIcndxHE6REmkeXzLnuq 5Q92GDVv2ZywJkSh+cmVN4XjHMj8PiQRlB4m7fxFpJKg/GOqAQw4dFyTn hNDdSJreYr6CzQgkUSMdE3gV2pXkIL9yl4D2oyBNQdK4k49iumSdqXvGS sUxfeHUCQYK198XYM3tQLDkS1JCaXqiYKYWldgjA/YkhPIsqvpcr/b3US b0N6HPbutvXF4Nv7AkSYQam+79epz7iB2tTdGba1OQVmhD787RBPYo5uU w==; X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="378015389" X-IronPort-AV: E=Sophos;i="5.96,183,1665471600"; d="scan'208";a="378015389" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 23:46:08 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="783756336" X-IronPort-AV: E=Sophos;i="5.96,183,1665471600"; d="scan'208";a="783756336" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 23:46:06 -0800 From: Ankit Nautiyal To: intel-gfx@lists.freedesktop.org Date: Tue, 22 Nov 2022 13:16:41 +0530 Message-Id: <20221122074644.2969553-8-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221122074644.2969553-1-ankit.k.nautiyal@intel.com> References: <20221122074644.2969553-1-ankit.k.nautiyal@intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v5 07/10] drm/i915/dp: Avoid DSC with output_format YCBC420 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" Currently, DSC with YCBCR420 is not supported. Return -EINVAL when trying with DSC with output_format as YCBCR420. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index ea723138fe07..a96f28d88673 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -1570,6 +1570,10 @@ static int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, if (!intel_dp_supports_dsc(intel_dp, pipe_config)) return -EINVAL; + /* Currently DSC with YCBCR420 format is not supported */ + if (pipe_config->output_format == INTEL_OUTPUT_FORMAT_YCBCR420) + return -EINVAL; + pipe_bpp = intel_dp_dsc_compute_bpp(intel_dp, conn_state->max_requested_bpc); if (intel_dp->force_dsc_bpc) {