Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1471961lqe; Mon, 8 Apr 2024 09:45:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvMnSBsNAHTioBQVSmpzsaAnR+xQ1zQ3beDULameUaejJw59OLwDAVuqHcSGKfQNwxZ60AqMO/jNHtWTE7Z20hEZIX+7EcLnDlyQZBCg== X-Google-Smtp-Source: AGHT+IGwxO/3u5HQt9maomoEPftXxq5bwT0Ef2rz2bBITecpwld3RPg9BsJRLs8sdmyD8ooKvfSJ X-Received: by 2002:a1f:eec2:0:b0:4bd:32c9:acb with SMTP id m185-20020a1feec2000000b004bd32c90acbmr5875100vkh.7.1712594719160; Mon, 08 Apr 2024 09:45:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712594719; cv=pass; d=google.com; s=arc-20160816; b=voqB7qJsiKDNqFOITZR+lBuFMQLQ+5dVXQb0x3te16cRtzGQEOroMxyKJ9hyJ/gq1O 2PeV8dh2QlV6X8xEBnOTeMLFoVhgdGOLmI339rofGefOWcNmpQ2yvBIIEIOBwbPDJ7Eq jxNRDvath0+pQpPFzn0oDDDygf1fMr3VsT8Pd+xQWOKZnh38s+yk1tqDc+nzeRNlXa5u Y0/1cCtBrKZLfWSfHwRumNlkhz4a/ZTD0oxxL6FKj6faeAx45TdOFwYEbl3C7UDrL93l kkBK3+z+sDvEgSrtEao4/YmL9IgmINVn2WuBd7Uk7YmfdHvmHnBO8bR84hDN656kujvz lskA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=hz6qXcAy7LwHGEdXfWz/zmXyheZ2puAoOf+VkRjJGp4=; fh=gk0iK8f79XeTD5vgYjWypIAAVWvoLI0Bt405VnAroJA=; b=V6WcBM4fQdlKL0vWIQZU2labUqmgspu+eYqV/oK1EmXhZdlL5hCmbCyNHoCN56dwqG 1z7v4XKVNt+CuHIflKqnYKCSlyr3sl7fEIWMb5thCyGd11lhIzPuXwDreaLeqX4tBCJy KkpcFKR44ALbJEo++2RDgM/Wotrru7SffD46N7a70PtMBNChwnHBQ4uj8Xm2nvSovNLX ociPKpVKQZWM/+pteoQN4PcVlaqUfhzRR5ksmM+tmRdwBzLe4yuPsdkgRquS/fS+jA+X AR2oWcJkYE0iakJns4xOE9Bx6vOhCxhIrd10C3H5r3GQ+e1bzBSCemI9S6MEn1HIV9mJ i7zw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-135706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135706-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j5-20020a0ceb05000000b0069b1ece8a43si1812568qvp.462.2024.04.08.09.45.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 09:45:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-135706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135706-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D558B1C237D7 for ; Mon, 8 Apr 2024 16:45:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E9F2142906; Mon, 8 Apr 2024 16:45:12 +0000 (UTC) Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [5.144.164.171]) (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 BBE8F1E4AF; Mon, 8 Apr 2024 16:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.144.164.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712594711; cv=none; b=LakFdZX0iXq1REz5mGVcQrxcU3Ld56qMUZ3kNgO4fzV/eGqlxXgLk3V/JHdoOv6EUenNKaPGRtkGYiWf4N0b18TnEzXgSyJaMfdKHBInJ3a5O6f49dSelyAqbkNxHm2ayf0ziW453MxidqpIVeRSivA6CVTKt+X5raUS5dyGc50= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712594711; c=relaxed/simple; bh=mK7W+RwWhwCQCB62sBp63UoAVj9DMYQsqR6r9ks21eA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dWc0jJ5mVtAvPdWzDwlf6CZDqC4LCmjf7zh4EIhI0XdhM/TZ97kSbeUT2IR5M1ajsUiC4fzLeHe20mYx6F8k1nccx26ZL4GfdluMz0bKgxi+FMUs/N5mCLAWjZwzcoYMXCQs24jH3/10suDc3jY18QmbTDMQKegM4fKL9qk6tqs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org; spf=pass smtp.mailfrom=somainline.org; arc=none smtp.client-ip=5.144.164.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=somainline.org Received: from SoMainline.org (2a02-a420-6-f162-164f-8aff-fee4-5930.mobile6.kpn.net [IPv6:2a02:a420:6:f162:164f:8aff:fee4:5930]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 336964057F; Mon, 8 Apr 2024 18:45:07 +0200 (CEST) Date: Mon, 8 Apr 2024 18:45:05 +0200 From: Marijn Suijten To: Jun Nie Cc: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Jessica Zhang , Vinod Koul , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jonathan Marek Subject: Re: [PATCH v3 3/6] drm/msm/dsi: set VIDEO_COMPRESSION_MODE_CTRL_WC (fix video mode DSC) Message-ID: References: <20240403-msm-drm-dsc-dsi-video-upstream-v1-0-db5036443545@linaro.org> <20240403-msm-drm-dsc-dsi-video-upstream-v1-3-db5036443545@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240403-msm-drm-dsc-dsi-video-upstream-v1-3-db5036443545@linaro.org> Can we drop (fix video mode DSC) from this patch title? It looks like more patches are required to get this done, such a mention is more something for the cover letter. We could also clarify further to "set Word Count for video-mode DSC". - Marijn On 2024-04-03 17:10:59, Jun Nie wrote: > From: Jonathan Marek > > Video mode DSC won't work if this field is not set correctly. Set it to fix > video mode DSC (for slice_per_pkt==1 cases at least). > > Fixes: 08802f515c3c ("drm/msm/dsi: Add support for DSC configuration") > Signed-off-by: Jonathan Marek > Reviewed-by: Dmitry Baryshkov > --- > drivers/gpu/drm/msm/dsi/dsi_host.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c > index 2a0422cad6de..80ea4f1d8274 100644 > --- a/drivers/gpu/drm/msm/dsi/dsi_host.c > +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c > @@ -858,6 +858,7 @@ static void dsi_update_dsc_timing(struct msm_dsi_host *msm_host, bool is_cmd_mod > u32 slice_per_intf, total_bytes_per_intf; > u32 pkt_per_line; > u32 eol_byte_num; > + u32 bytes_per_pkt; > > /* first calculate dsc parameters and then program > * compress mode registers > @@ -865,6 +866,7 @@ static void dsi_update_dsc_timing(struct msm_dsi_host *msm_host, bool is_cmd_mod > slice_per_intf = msm_dsc_get_slices_per_intf(dsc, hdisplay); > > total_bytes_per_intf = dsc->slice_chunk_size * slice_per_intf; > + bytes_per_pkt = dsc->slice_chunk_size; /* * slice_per_pkt; */ > > eol_byte_num = total_bytes_per_intf % 3; > > @@ -902,6 +904,7 @@ static void dsi_update_dsc_timing(struct msm_dsi_host *msm_host, bool is_cmd_mod > dsi_write(msm_host, REG_DSI_COMMAND_COMPRESSION_MODE_CTRL, reg_ctrl); > dsi_write(msm_host, REG_DSI_COMMAND_COMPRESSION_MODE_CTRL2, reg_ctrl2); > } else { > + reg |= DSI_VIDEO_COMPRESSION_MODE_CTRL_WC(bytes_per_pkt); > dsi_write(msm_host, REG_DSI_VIDEO_COMPRESSION_MODE_CTRL, reg); > } > } > > -- > 2.34.1 >