Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2389077lqp; Sun, 24 Mar 2024 17:15:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7GE4TqTAXZrHX5X0/wPxiJX6nguPLmzvgMAM7X4ZwJatJDYHLGmhvM3MbE1L/tlU7bscGuAyHidooBp3icbiVZ0HsZ0m67N8W6ZYM3Q== X-Google-Smtp-Source: AGHT+IEgryclD6gPd5/Rgep5HLXQXXh58tlxRspQGIyM2BviK2A2fLyEq7t/8wqh1TJp1+QzoNtx X-Received: by 2002:a05:6870:610c:b0:229:f8c1:dd5f with SMTP id s12-20020a056870610c00b00229f8c1dd5fmr6901445oae.48.1711325736603; Sun, 24 Mar 2024 17:15:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711325736; cv=pass; d=google.com; s=arc-20160816; b=lKMHGzL5NkftvuB9eA8FuoodmquMfrRuJ51X9R13w0yUfP4oMoha4zThKrq85JS87J yYoDk+eIHVL3aIVJ0wPpa81oEP7APVAGH2LNPWwTuKzKnBXn0ozqB2Yy86fkkWKB2424 FnGgvL6yzj4RIytMf+aQHk4OrKVOOsOavpviqquFra/xgQVufg8+9VsZPICnFw9XM2um UuaHWLHlcAYfORe2w8H3zK9rJmNtJXSj5Vm4dfv41rrZyIQsEuxDcl+/4h+8an6fwx6n 2dKJdkqUEA8QyoRtIeqnRTnGw43q5wL3ini5Q0iZtsSCI5+0Y1FI1Ga72U+VuVvfDYnr mYJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5j0RGiugfVCxX++keMHwVi9PGJq6QWsmup2Y/wxRF20=; fh=XhVUmLLpaTu+8T4GyJnrsz5FDQmHVdIdHKsdczm5ZYQ=; b=DRKTwTh+nyI1Q/ARYicNGmS/fDlXHCXpmrga7MVGyM77b3GAsZLkaiZtIHIpPlZE2f 2t1pLFEvZJtJEzcHUjbRerpy3d2Cub+AcRk/R5N0UkjqWq4d4VoCK03CgzxUvLznylDf hkwkBOgtZgedqnNmOBgbbF8JWqBPXWZeeippEcvRmNM5Sd2Ine6G9qyxOEHgOyn3069e XifqrHkFzFKeeqM3ss6z37APt3KOghHL2ZorX3o2swn2LlaguUIFNDztdAcoE6lbeleV ijguLyR0uFbjxof8n4nNIp/aR7GXJnE8+aN3wif3ojNpXZ38stzECDiN9UzyW9kLu9/S bQYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l5o47Y+z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113308-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u34-20020a634562000000b005cdacf9065fsi6340661pgk.720.2024.03.24.17.15.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:15:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l5o47Y+z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113308-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 93D93B220BD for ; Mon, 25 Mar 2024 00:06:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CD031926FF; Sun, 24 Mar 2024 22:41:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l5o47Y+z" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B4FC1191795; Sun, 24 Mar 2024 22:41:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320109; cv=none; b=N3BvWMLMq65Y5bfxjwuDQOT+S4z5G6pGXe8dD+KCuJWv4sl9Z4uF2uDTImH/fAIDzE8QZ4zR3ZVCA6Cv8pKt8jxVNZ/EiynWTVJhX6L27G1GAh1RNdg5ySJ/GfSlvDTTVZSe7cW24TSnoMraCTcdbcB3j0kq6+oJnaFlrOq2+O0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320109; c=relaxed/simple; bh=6WY7ATvRwoBVf7iibZPOgJ+dLj4kLyAawF09E4LUFW8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Zy4eOsSKQ9mqVwT1uSSnogX76MdfU8ghwjUNC3wydr4Je1sCqxwUz3W1k5fYbnfz2ZMi+p8OImjOiedLFBRK21nIDtQL+z3s7c2iQu9fQ1wOrjPltuExHCB6cq4hK4fXnCyHtXlFlK26UJtVONvfkZ9z/1Ut8jBlgTI9OvhTg7k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l5o47Y+z; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C07ACC43390; Sun, 24 Mar 2024 22:41:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320109; bh=6WY7ATvRwoBVf7iibZPOgJ+dLj4kLyAawF09E4LUFW8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l5o47Y+z8M6sxq3KD4Z66TGSvBDF9Jt2C1wJWgpMxOAcwuQzrs2la3Et0/g7+zk60 U7crnWE4OQXHx9zPAGOiu78l8cuFPmuoW9FIzOhXp9mjwBXLcyUEpGZgWGNXBQ1dO5 SD+3XEztgVLlUJPlt36pyv+PVZb6VWxo2eVG5P5CT9ar6hPX0upEzky5+EEly/bm+T l/oWwyMDbYJcZ2pQ1FanuN2vS5smw1bW+7q7XhVIReWan+VYacmTK6oL3SlVFV/y5Y MzOmPCgbS/+zusJFh2RqTezxyQMiUrD19/q+SbLy7e5Vp411xGuC2zmX0sVaEucDQp bYG/6f+DQtxuw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Marijn Suijten , Dmitry Baryshkov , Sasha Levin Subject: [PATCH 6.8 417/715] drm/msm/dpu: Only enable DSC_MODE_MULTIPLEX if dsc_merge is enabled Date: Sun, 24 Mar 2024 18:29:56 -0400 Message-ID: <20240324223455.1342824-418-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Marijn Suijten [ Upstream commit 06267d22f9ee6fd34150b6dcdb2fa6983e1a85bc ] When the topology calls for two interfaces on the current fixed topology of 2 DSC blocks, or uses 1 DSC block for a single interface (e.g. SC7280 with only one DSC block), there should be no merging of DSC output. This is already represented by the return value of dpu_encoder_use_dsc_merge(), but not yet used to correctly configure this flag. Fixes: 58dca9810749 ("drm/msm/disp/dpu1: Add support for DSC in encoder") Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov Patchwork: https://patchwork.freedesktop.org/patch/577067/ Link: https://lore.kernel.org/r/20240204-dpu-dsc-multiplex-v1-1-080963233c52@somainline.org Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c index 8932f38a41b2d..aca689314ccea 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c @@ -1860,7 +1860,9 @@ static void dpu_encoder_prep_dsc(struct dpu_encoder_virt *dpu_enc, dsc_common_mode = 0; pic_width = dsc->pic_width; - dsc_common_mode = DSC_MODE_MULTIPLEX | DSC_MODE_SPLIT_PANEL; + dsc_common_mode = DSC_MODE_SPLIT_PANEL; + if (dpu_encoder_use_dsc_merge(enc_master->parent)) + dsc_common_mode |= DSC_MODE_MULTIPLEX; if (enc_master->intf_mode == INTF_MODE_VIDEO) dsc_common_mode |= DSC_MODE_VIDEO; -- 2.43.0