Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp60552rwb; Wed, 5 Oct 2022 14:44:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FQSHXNs95NYIzYpXpeC9wQsF+7hr3+CGzPcMyYZ8l/GduOuwo4tTv/0mtGKpAm5h3Fkps X-Received: by 2002:a17:90b:17cd:b0:205:d3bb:2706 with SMTP id me13-20020a17090b17cd00b00205d3bb2706mr1831967pjb.232.1665006240528; Wed, 05 Oct 2022 14:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665006240; cv=none; d=google.com; s=arc-20160816; b=uQnzi+GWdiAcT4rnrj5Sx3p1rH7MC544vOiSsTbeVr+FxGSFo3zVC60izl3JFqtxDW I4KCB0jIPy7W7YNztlFoOuPt93n+4UdHavRQe1pB0DNjkMAJ7D9fP/D37Y514GI9dpuW LsMu15qrW9ZV4fIgoT597SXj3r+zEetOzfipm/8RJkH27lrtliAcMEfBFM4gvzGX71Sw jsuvw2YenSOtSdRz1kXfReCIcxbNOia3Uf5l83OV3kUud4owOMZAiw1F+NfyQziklWgl tIrBjT7azMFOLc4Jt+FXFErFr5h5q8LdVuxhc4HvVpKurGwPmOnRuv072ncLBbTXYuxy PIyg== 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=eh4+eKP3cyFDyCy9JnZjOBdhqp/ZxPkflJ3X/ZUf5QM=; b=RDNaO6IiVva1xxcAJpvO5UpBGvMzg3vLxQ5nmuIYDlfUj3ONhogZ4gCt+JfwoLroU7 XPTsNrugTwrJdMSBg/Kky0COlvx9AfmTCZUgQJOCCnNv1zShv0EgS+914Hd+/0cELmhM vrZfo4v0kg59qpur6kOE2Js05T/wZw0l0zMU7Vx/yrp+BAHsj+9EIc1j0sfP2RbNu85Z SoS11HuWk605oYgub0rgS8UH5Xo8RLfVea6ijVQIIkeEhuXomvWUx4gbx+QbjbRYkSo9 jaaQEM2Ko+Mmv9DhwDsiCTrbsicOvnr2PKoEAHIOD0LbX8aSFAYvlZpNwBdYI08kjho7 lwGw== 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 j191-20020a638bc8000000b004428327e6easi10590218pge.619.2022.10.05.14.43.26; Wed, 05 Oct 2022 14:44:00 -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; 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 S231232AbiJEVdp (ORCPT + 99 others); Wed, 5 Oct 2022 17:33:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229898AbiJEVdo (ORCPT ); Wed, 5 Oct 2022 17:33:44 -0400 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [5.144.164.166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BA1080E92 for ; Wed, 5 Oct 2022 14:33:42 -0700 (PDT) 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 932C73F3E6; Wed, 5 Oct 2022 23:33:40 +0200 (CEST) Date: Wed, 5 Oct 2022 23:33:39 +0200 From: Marijn Suijten To: Dmitry Baryshkov Cc: phone-devel@vger.kernel.org, Rob Clark , Vinod Koul , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Daniel Vetter , Abhinav Kumar , Sean Paul , Thomas Zimmermann , Javier Martinez Canillas , Alex Deucher , Douglas Anderson , Vladimir Lypak , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, David Airlie Subject: Re: [PATCH v2 5/7] drm/msm/dsi: Account for DSC's bits_per_pixel having 4 fractional bits Message-ID: <20221005213339.s6lq5sbusgqxxtd2@SoMainline.org> Mail-Followup-To: Marijn Suijten , Dmitry Baryshkov , phone-devel@vger.kernel.org, Rob Clark , Vinod Koul , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Daniel Vetter , Abhinav Kumar , Sean Paul , Thomas Zimmermann , Javier Martinez Canillas , Alex Deucher , Douglas Anderson , Vladimir Lypak , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, David Airlie References: <20221005181657.784375-1-marijn.suijten@somainline.org> <20221005181657.784375-6-marijn.suijten@somainline.org> <20221005205845.rwkzyit4daizi3z4@SoMainline.org> <20221005210845.yednmbqec4bzukxm@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=unavailable 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-10-06 00:11:06, Dmitry Baryshkov wrote: > On 06/10/2022 00:08, Marijn Suijten wrote: > > [..] > > Aside fixing that to assign these values (through the proper constants) > > to dsc->mux_word_size, is it worth looking for the right parameters for > > other bpc or return -EINVAL if bpc isn't 8, to uphold this comment until > > support for other bpc is validated? > > I'd say, return -EINVAL or -EOPNOTSUPP for now, let's fix that later. > It's definitely a separate change. Let's wait for a device with such > panel to be able to test it. According to [1] these four fields specifically are different for other BPC; I can add a -EOPNOTSUPP and DRM_DEV_ERROR requesting a test, or insert the values; there's only 8BPC and 10BPC, no 12BPC. Aside that we need a different initial_offset = 5632 for other bpp/bpc pairs. [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 - Marijn