Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3853469rwb; Sun, 9 Oct 2022 12:20:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7AnKCzF9cX66BaDEEEoSMcgDent6rQBqpKAmgjdAFQrxS6hooQLlleLPpnRq+LYr7TZJtj X-Received: by 2002:a63:5f0a:0:b0:459:537f:61d4 with SMTP id t10-20020a635f0a000000b00459537f61d4mr13564149pgb.609.1665343236799; Sun, 09 Oct 2022 12:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665343236; cv=none; d=google.com; s=arc-20160816; b=jKyDbz7fFEuolMM5pMHE8G+HTy6hVfx8X6zVvTueLPIc4je4Qataru3Yyv3uwhhAeX rjjTEZgmkfyY3OSXJn0m3NIvrXnrGkHM+lJath6YbdH1+xIDhLgcGthvY1n9fPb+LFeH CP0ne1k3UAm3+++uIrgA1HpPke9mZ8hdx3HtoOkPlkqpyTirQMFo9cBbATGtCDx8+9S3 cWwl5+gPSq1GCjj3bv/tn1VES/7gfjdcmZdDst9cf965fS7TLlYwhQluijCMPCABWjDi dcUijPlZKE2qmxgi5j/LSBnh/nFtZfp2nLkz5rInqgygMXOG42wGKwdROLbd20L3yHqc SgoA== 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=WDDeNedlMFreEkFqdCoxqyamH5eFrq2g19d8reIB7Ls=; b=tCRV3s6m+JopASgP3tdgWpkM9dc0zdBGV2n2uF5lnbqnTs9wyHoeXaJYyurGK/8CyU QCqpxRJiKdU67v9cOPf9gDhUylkVji9EEKoUfMrXyvpgZW6zHrP8CtC14KuH//D4J5yU q05giXvsphHkFky3vU5fbSNCU4SrVOBY8A71GWO/KfzVRf/VfCrwAEf5k0n3FX4dR03B GkAPi0JujT1mBukYKJ3fvW82dkPfCFCqWumdID0fcq9ZDXvwmv9c1lRmrUlSmQzWzOpu NCTgAzPNz4qJFiXxJ2BuOFWnW4uLF0ddsHTthkiMCtdesQ9JUlEsMzGIdVBCv/3fF3hh G2Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WeThPWRX; 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 94-20020a17090a09e700b0020291c96b13si9942266pjo.121.2022.10.09.12.20.24; Sun, 09 Oct 2022 12:20:36 -0700 (PDT) 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=WeThPWRX; 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 S230253AbiJIS53 (ORCPT + 99 others); Sun, 9 Oct 2022 14:57:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230012AbiJIS51 (ORCPT ); Sun, 9 Oct 2022 14:57:27 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BCA71A228 for ; Sun, 9 Oct 2022 11:57:25 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id d24so6884640ljl.9 for ; Sun, 09 Oct 2022 11:57:25 -0700 (PDT) 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=WDDeNedlMFreEkFqdCoxqyamH5eFrq2g19d8reIB7Ls=; b=WeThPWRXkwpZfJsWoWGSVb4uWG4PHezAIA37BaqNXSNIVx1dbJNzDf2VsdmdR+8HqF f6cRHKZoEjwZtxzNyXnM0ke1R9FfMvLXyrn3xXpKN4fWgINYQPNuDnqDH2IqWPDLR+8y XHoBNraba3Od7sWAq3DB3FXN3RmmTGXZcPnR6J8vv3tgC4Z+D4No6vUU5cQ6b10uHq4e MI8qejIcGDMT8YWYpfl3K+bAEt3HWch5vnJYWXMKTtoiIcRtE7AqaurW8rI87tZVeZPs D75m4rqncv1XQdFmXIcFQ4nLrY2nn+98c4j7bSvTuGFTTRu3sLzAcPmgl/gYq+IUWtHj iUYA== 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=WDDeNedlMFreEkFqdCoxqyamH5eFrq2g19d8reIB7Ls=; b=j4gxsgptKZvTwC4W26u7cWawabT4oDYDvRH/JYI4eF0v4hGR5zC/mp3pNHT5aKb0DH N4s+J2pZ3gH0IaEd1aEQS7I4nvk5CEBv6Rvupa/HfcGRH9aw5uMPnxzSRGcuQHZ+vNih zmILd0jRRczEPd/viNHshXId7v0qO13La9+ecyB6NNVjpP0N3Fne0Qf03fjq7zzKBJAv OWyo/r/Bhi77fJcLJtxwEAPUKkwxYsBLMGZ/O1DYb5kwHkoLDlclt5oEagK03lEbgBkl L8+5Y0nomwPgVrVhQ8LgPAGFg8nU4vsgEc+9yUB81bxprO9jOn7Cd0UZtoRCeorRJbqt QHuw== X-Gm-Message-State: ACrzQf2onUDaClSgs2MPx3ugcn81oYsnmx9itLtpmwTa1YTxohzjtaKv HJve1FuAwFTIzvHYCX1kYt6WuA== X-Received: by 2002:a05:651c:210a:b0:26e:ea0b:26ad with SMTP id a10-20020a05651c210a00b0026eea0b26admr1445510ljq.149.1665341843459; Sun, 09 Oct 2022 11:57:23 -0700 (PDT) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id c10-20020a056512324a00b00492d7a7b4e3sm1122940lfr.4.2022.10.09.11.57.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Oct 2022 11:57:23 -0700 (PDT) Message-ID: Date: Sun, 9 Oct 2022 21:57:22 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH v3 07/10] drm/msm/dsi: Disallow 8 BPC DSC configuration for alternative BPC values Content-Language: en-GB To: Marijn Suijten , phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Rob Clark , Abhinav Kumar , Sean Paul , David Airlie , Daniel Vetter , Vinod Koul , 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: <20221009184824.457416-1-marijn.suijten@somainline.org> <20221009185150.461323-1-marijn.suijten@somainline.org> From: Dmitry Baryshkov In-Reply-To: <20221009185150.461323-1-marijn.suijten@somainline.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.0 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 09/10/2022 21:51, Marijn Suijten wrote: > According to the `/* bpc 8 */` comment below only values for a > bits_per_component of 8 are currently hardcoded in place. This is > further confirmed by downstream sources [1] containing different > constants for other BPC values (and different initial_offset too, > with an extra dependency on bits_per_pixel). Prevent future mishaps by > explicitly disallowing any other bits_per_component value until the > right parameters are put in place and tested. > > [1]: https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers/-/blob/DISPLAY.LA.2.0.r1-08000-WAIPIO.0/msm/sde_dsc_helper.c#L110-139 > > Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry