Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp664688rwb; Wed, 14 Dec 2022 00:53:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf67/yPObfGn9Gt5fpzcpaw4jokvQ6+I146flxae2RAR1V7qym8dPXkS8lyjM8cpAoJwrLhz X-Received: by 2002:a05:6a21:398b:b0:9d:efbf:786e with SMTP id ad11-20020a056a21398b00b0009defbf786emr27945167pzc.35.1671007993854; Wed, 14 Dec 2022 00:53:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671007993; cv=none; d=google.com; s=arc-20160816; b=aYSQ805ZVKpdVqjuk5rzUNYQn1j5/xkPtXqtzuNbznNZW7y2OO4SZZEQv4o6+P55RD b/pRpwUVuaS+92Z/QT4/ka1Fv7usSLFYbUyj9pWTkFQGz0Zx9OmbGvalUexPI0N0CWn0 rYI9W3N5T0WbkAOF3DiSLeKS2fYJa7b4PKVhXGjUdi506KnLhQW2XZeLZjCGScdd+QwZ Zr28lKa2ewHFZr6yGVKRnow9IHBaNBWNiKcLeZW+/XwNZWhc6wL5LpOAgBKphvUt0tPl vdd7hVBT0zmtNStGvnISnRSsi/cuNNWwyK/IYb1x163R7cJy0sSO4weKJ5fOe0dguoww vXCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=6jBSnyEj+2izuySLIo30u8jg2HdyLSyXLks2NYWRJTE=; b=BViYbZ1MbZe++ROm2VbxCZD6md6FSVkgHAZ7/oMjG/MiK4Das+VlqvfnVrIAeuCEfX WgVOK/tR335WsMJpti9Z3Yp5d91PLSwksnIpHlh+1nRdCM7og7xlRzRoZc2CdREk+eMQ aumpTU8bcEpkNZBrygnxDqZ2MW5kbxh5P+4uI7rrWq9f4L+aeEsHC67mlDNTnIjnbn8r +G6Hes9YlYI4HzB6uNvhWlPlnfBGBFJMuMzIj2hAS8semCTV3NVb3JCYjdzn2x1uPA/7 kpZHpIV4zJkHCfPlT2zOYBwYm+OLDSLj7erHrm3PRmnv8w9Kn3jCq8Go0jqq2G8jd2V3 uDhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a6557c7000000b00477d61c12aesi15009037pgr.309.2022.12.14.00.53.03; Wed, 14 Dec 2022 00:53:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237571AbiLNIii (ORCPT + 70 others); Wed, 14 Dec 2022 03:38:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbiLNIih (ORCPT ); Wed, 14 Dec 2022 03:38:37 -0500 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [5.144.164.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6BA164DB for ; Wed, 14 Dec 2022 00:38:33 -0800 (PST) Received: from SoMainline.org (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 2B4FD3F3E7; Wed, 14 Dec 2022 09:38:30 +0100 (CET) Date: Wed, 14 Dec 2022 09:38:28 +0100 From: Marijn Suijten To: Konrad Dybcio Cc: phone-devel@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Vinod Koul , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Sean Paul , David Airlie , Daniel Vetter , Stephen Boyd , Bjorn Andersson , Jessica Zhang , Ville =?utf-8?B?U3lyasOkbMOk?= , Kuogee Hsieh , Jani Nikula , sunliming , Sam Ravnborg , Haowen Bai , Loic Poulain , Vinod Polimera , Douglas Anderson , Vladimir Lypak , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 5/6] drm/msm/dsi: Flip greater-than check for slice_count and slice_per_intf Message-ID: <20221214083828.3jblczd5h5vyp3o5@SoMainline.org> Mail-Followup-To: Marijn Suijten , Konrad Dybcio , phone-devel@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Vinod Koul , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Sean Paul , David Airlie , Daniel Vetter , Stephen Boyd , Bjorn Andersson , Jessica Zhang , Ville =?utf-8?B?U3lyasOkbMOk?= , Kuogee Hsieh , Jani Nikula , sunliming , Sam Ravnborg , Haowen Bai , Loic Poulain , Vinod Polimera , Douglas Anderson , Vladimir Lypak , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20221213232207.113607-1-marijn.suijten@somainline.org> <20221213232207.113607-6-marijn.suijten@somainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-12-14 01:02:14, Konrad Dybcio wrote: > > > On 14.12.2022 00:22, Marijn Suijten wrote: > > According to downstream /and the comment copied from it/ this comparison > > should be the other way around. In other words, when the panel driver > > requests to use more slices per packet than what could be sent over this > > interface, it is bumped down to only use a single slice per packet (and > > strangely not the number of slices that could fit on the interface). > > > > Fixes: 08802f515c3c ("drm/msm/dsi: Add support for DSC configuration") Signed-off-by: Marijn Suijten > > --- > Missing s-o-b Thanks for catching, checkpatch would've pointed this out (in addition to a typo in the cover letter) if I had ran it. > > drivers/gpu/drm/msm/dsi/dsi_host.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c > > index 0686c35a6fd4..9bdfa0864cdf 100644 > > --- a/drivers/gpu/drm/msm/dsi/dsi_host.c > > +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c > > @@ -855,11 +855,11 @@ static void dsi_update_dsc_timing(struct msm_dsi_host *msm_host, bool is_cmd_mod > > */ > > slice_per_intf = DIV_ROUND_UP(hdisplay, dsc->slice_width); > > > > - /* If slice_per_pkt is greater than slice_per_intf > > + /* If slice_count is greater than slice_per_intf > > * then default to 1. This can happen during partial > > * update. > > */ > > - if (slice_per_intf > dsc->slice_count) > > + if (dsc->slice_count > slice_per_intf) > > dsc->slice_count = 1; > > > > total_bytes_per_intf = dsc->slice_chunk_size * slice_per_intf;