From nobody Mon Apr 6 19:59:50 2026 Received: from mail-24416.protonmail.ch (mail-24416.protonmail.ch [109.224.244.16]) (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 92F113A960A for ; Wed, 18 Mar 2026 09:54:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773827655; cv=none; b=i+AwjsTwLP/WX0KfqvBUUtPs9u01iPC4wv8onN/QfIlSRQcR4mk0rRuzubSD7YZHhvw5473IFRHf8+kVMHNzHk2LN+lVrdySYUVoXfieRBVfCik2ET6mHrW3uvfq2ocHHuzcCb0V5ChdX778J5AEM+Or4mGK8icOJoXuqgv0WmU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773827655; c=relaxed/simple; bh=c/4GQSK74Nj7byIPfrD6C7RHq39tdQptNxSSfTG64gk=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=SSKNp9vhtTijfOALPpmt/ESlZ4qzPmHIDzTCwQz1jAXT28S4KaPvBIf9ZaKcrYAeGEq06DTRj5DFNHRSqaswnagBoRM5oilS9PrIygPQ8wMG21VDJ0/22QZEtZ4h/TSqE6l5LBPc9jmY5SUtgDInZNC6YDMP9E816CASOiVbnR8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me; spf=pass smtp.mailfrom=pm.me; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b=aWRM4hem; arc=none smtp.client-ip=109.224.244.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pm.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b="aWRM4hem" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1773827646; x=1774086846; bh=c/4GQSK74Nj7byIPfrD6C7RHq39tdQptNxSSfTG64gk=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=aWRM4hemV9x/6hDvLzsjQj8VEcXDS56y82N91aHItnLARgJu/9WSvMbdS9c1K9zP6 M6Jw3PA8trPzbFbGufrjJXPp8LQeSXRJcgGZFnUjfk6cMhokZzmE27aNMYhz52nqSE Qr8dalbQk64+ZAvkfGbbx3myoW5ji76AYEGKg4rYRxm7aThy2kHOnSRCrOzM0Kr4by BnBNTGs7wuhTv0qh4MFGEQuOezt6Ra20pe7uEvSG/IPAN0z3roxTgcAOyjUhG7KT6+ ahjTD6Dni12AYosH87gozOoXaW0qrx9JjMRIr8Q84LfR2/EGGJdcN+g4KQPtLhN4p6 rpiBlJlcQ3cGw== Date: Wed, 18 Mar 2026 09:54:04 +0000 To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten From: Alexander Koskovich Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Alexander Koskovich , Dmitry Baryshkov Subject: [PATCH v2 1/2] drm/mipi-dsi: add flag for sending all DSC slices in one packet Message-ID: <20260318-dsi-dsc-slice-per-pkt-v2-1-0a1b316f8250@pm.me> In-Reply-To: <20260318-dsi-dsc-slice-per-pkt-v2-0-0a1b316f8250@pm.me> References: <20260318-dsi-dsc-slice-per-pkt-v2-0-0a1b316f8250@pm.me> Feedback-ID: 37836894:user:proton X-Pm-Message-ID: d9e4f2b0396d9e14ca6fc797b00728c85c384ee5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The MIPI DSI v1.3 spec defines two modes for transporting compressed pixel data: one slice per packet or multiple slice widths in a single packet (Section 8.8.24 Figure 40). Add a MIPI_DSI_MODE_DSC_ALL_SLICES_IN_PKT flag that panel drivers can set to indicate that all DSC slices for a line should be packed into a single packet. When unset should default to 1 slice per packet. Reviewed-by: Dmitry Baryshkov Signed-off-by: Alexander Koskovich --- include/drm/drm_mipi_dsi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index 3aba7b380c8d..d3ad8c5d3ebe 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -138,6 +138,8 @@ struct mipi_dsi_host *of_find_mipi_dsi_host_by_node(str= uct device_node *node); #define MIPI_DSI_MODE_LPM BIT(11) /* transmit data ending at the same time for all lanes within one hsync */ #define MIPI_DSI_HS_PKT_END_ALIGNED BIT(12) +/* pack all DSC slices for a line into a single packet */ +#define MIPI_DSI_MODE_DSC_ALL_SLICES_IN_PKT BIT(13) =20 enum mipi_dsi_pixel_format { MIPI_DSI_FMT_RGB888, --=20 2.53.0