Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp203708rwb; Tue, 13 Dec 2022 16:17:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf4b5ighmBfrma8MWCJ3f1ggqTgvfNnbsaiqrRMP2sLX0HVfjtAkwVidhtCk9SiUxdGHCbIZ X-Received: by 2002:a17:903:2446:b0:189:a50d:2a40 with SMTP id l6-20020a170903244600b00189a50d2a40mr30200779pls.45.1670977023579; Tue, 13 Dec 2022 16:17:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670977023; cv=none; d=google.com; s=arc-20160816; b=MDqhCixs5kGHJzjCIdephzHnlN03HrI7DQDYaHcAzADQriYM8tWxl7o8GxodYz/J+N kJexBnIIv7c9EnOXtsxbr7NHODTG7oqHwn7nNb66/OX2N/vbgWmwc0hB6DZdzzb4PFCT Em8CtkOMuOy2OXFbVCnvy9TgceSQuFbtuNlDDWMwqNpXDlTcJV3FfhqLxUceCOo1Vb5F DuNIBKmHo+FEef0PzxAyEa7dkFGlFp+TE5eXE532pn8ETQ/xxyBe7CbGuMwkAbSCCzn7 0O5IfvjqXlh9MxxXGlTsOwKdm+oEMBoU6OHgq5rD29oK05JtedBYDZ9MtW+K5DWqWh8m Yl8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=F4wzLNz6dwbsx5heN6y8ApOHwBgCymyPsBRS4COOYFM=; b=NszVFuQxagPhwBiTgf35vNLLFSicSFfw66ot5iWYdYe2lUtgfw5Za/Zt5l78igqrGk eytv0NKSeAw/pk1DpKSlHCzoEK2lgohcY0hY15kyMP4XIey58manWbc5BHOwQhtWY2in /Ghwu/FGfI3Jj+olbdRdnZ6WJTf39fUz6BULk4JwQ1SuYIebwusR09+eOo5u+2e6sCLG GOpa26wj+O1SD0hYaDNRb0eOev3SzLK9Igfe2A7qNGq86LrVIT6f6XfG5sC5aLxoPACB PMCLyL4VkR/XwwwnORTxeAAy9pbFVfW9vtWfxxbsJVoomr/VdFAihAJWlZYCG9L2Goc6 uCwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cz6w9iek; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020a170902cec400b00188c7b09446si1371650plg.44.2022.12.13.16.16.18; Tue, 13 Dec 2022 16:17:03 -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; dkim=pass header.i=@linaro.org header.s=google header.b=cz6w9iek; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236851AbiLNACX (ORCPT + 72 others); Tue, 13 Dec 2022 19:02:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235771AbiLNACV (ORCPT ); Tue, 13 Dec 2022 19:02:21 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF21E22B18 for ; Tue, 13 Dec 2022 16:02:19 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id y25so7695866lfa.9 for ; Tue, 13 Dec 2022 16:02:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=F4wzLNz6dwbsx5heN6y8ApOHwBgCymyPsBRS4COOYFM=; b=cz6w9iekOtz1phgLx4mKtqjxhJ5PKY8yopabUl8Vl8TR8IfUTFb1WeZ/L9L6vt30wV bbDs6rV5b9mkcsN3I6ndGH+zrjdGdYMSBxtI0XeuO1yOBOIuKodL2cA3wihjs1eUCADn 9XNmnQlcqiKmpcJ3dmLNz8axo2Qiz8zgFSLKCKSGfpnVE7gK9iz9emddeREw1pX1G5zr f0Wu2tsrSLrn9Mx2f9qmlO0KgakSX1ZY35ZIApdiFLC2YRYj2tlzfMaSUj0xqxEQ4wu7 4Cltns0mpYlYlXejav8yiWL/maxSPolVjgPeJWK0LTI7sytbYE8EzjdKIPoWHgks1XSJ I+dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=F4wzLNz6dwbsx5heN6y8ApOHwBgCymyPsBRS4COOYFM=; b=flZg3b7cV4ucYSCDnwDFoRfmorJcWIvZ8l8YMc6GVTKSLjMnaBtpdO15Bq1+pGt4zx Df7nRIT0tQjAZz8cvCEJsSdk2EFrDT5Y1tgbsQkEx4DHif2fdeB3es9vJA7rh4ybK2qk pFFFt8QDgWFo+NCiSFDa30YUaA2/ydcsD3VCslPCXX9unplyqUKeMOOR1ddG7/FWKP0V yaTIKNHveUx0T6vnvAEFMkMnRnJYJBLUbOFZ807myZfVZ5t9OuI9MB6nf+ur0u+yG4zS hdGVlL0+HvcF1SJ1UZBZ1lMzTAHzV6Wv/CJ/rhsh0K7ELVJSMFz9IQibBzkRY7er0wlb +itw== X-Gm-Message-State: ANoB5pm3c0qFtlb9C3h2IBKD0WOFViX2n0Y+5wVbV/p/uK64CQHK6TtI A/MrzycKmKA0TJKyaOONaOzM/Q== X-Received: by 2002:a05:6512:15a6:b0:4b4:b5bf:3ce6 with SMTP id bp38-20020a05651215a600b004b4b5bf3ce6mr9902578lfb.38.1670976137948; Tue, 13 Dec 2022 16:02:17 -0800 (PST) Received: from [192.168.1.101] (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id p17-20020ac246d1000000b0049e9122bd0esm558261lfo.114.2022.12.13.16.02.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Dec 2022 16:02:17 -0800 (PST) Message-ID: Date: Wed, 14 Dec 2022 01:02:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [RFC PATCH 5/6] drm/msm/dsi: Flip greater-than check for slice_count and slice_per_intf Content-Language: en-US To: Marijn Suijten , phone-devel@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Vinod Koul Cc: ~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 , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , 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> From: Konrad Dybcio In-Reply-To: <20221213232207.113607-6-marijn.suijten@somainline.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 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") > --- Missing s-o-b > 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;