Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3903919rwb; Sun, 9 Oct 2022 13:25:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7iZRRwklrjgNiKhyLD1VKr3H+NCVcBpDUEJ1Mw9rmf5sNw5MvioKjxrkDnD8u/uO7x0O0C X-Received: by 2002:a63:1308:0:b0:440:5517:c99d with SMTP id i8-20020a631308000000b004405517c99dmr13862199pgl.550.1665347128238; Sun, 09 Oct 2022 13:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665347128; cv=none; d=google.com; s=arc-20160816; b=nZdtL2VBCEq3uUwPdg0fKB+0HbQM31BIrU7+8rje8usjnDpJ3dcs2QvOr1C2RzFgMg Bmbse3wPUAKmpR0LHRHlkh4I7o4tLk62RwEncaBAT8BDwYpb4a5qjMs0+1uJMUmFAV/1 ztDj2GoX6UnKVTWnBDdOoJMCDb91ZGsSkWP7udVhLfohun8OMCwTWT6J2wIlfTQG20G4 4KYELEQgeEAMxRXMJ9U9mVlcGtr2F1iF6vaI5p+gU0/waflZm6aFZqZW8+/PtnwhvkGU XyYI24cmH0sZ6DnorfG4tPie5hE3c6GGDBjZSPYSMoM0dw7Mzom1Ohg8hNJ5J0xzy904 RLWg== 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=xaZ/AuIOTTLmkRj6dMFEMX4RbBy9GcIvCBUm92ud3jE=; b=S6kusGX+H/8BhmMkHXLxOzGedgIWHD7lAqhHj/YoHDEBIgyF6WJro2FlW2e1p5LQdv 17tMziHOSUijRKZOo15x7eS+O0tndltJh/w/0bsxJegWiivfZ/J3GQXEMXFUfdZdJDxt aUnpQyCM2bLFzRBhe+Q1Isx7ZjBM2EG5LvZmUd5lvvj5huovNmV7bU/Q+ieD9eqavli6 Dk+h2QGxIzXanKYN1eG7FY5UBPlT9dnoY1YyVRMUDA9NRImApJ3SrFhNncpr5CjTeOWT oc7E3dhvQGtGmQeuK4GrLFMlrG+0/kPt42feaCA8zU16a5ZjLjwMyKUyktzIohvfmrCX l3+Q== 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 o3-20020a17090a4b4300b0020940c79fc5si8672451pjl.51.2022.10.09.13.25.15; Sun, 09 Oct 2022 13:25:28 -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 S230364AbiJIS6O (ORCPT + 99 others); Sun, 9 Oct 2022 14:58:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230251AbiJIS6K (ORCPT ); Sun, 9 Oct 2022 14:58:10 -0400 Received: from relay04.th.seeweb.it (relay04.th.seeweb.it [5.144.164.165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCF2E2EF3B for ; Sun, 9 Oct 2022 11:58:08 -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-r1.th.seeweb.it (Postfix) with ESMTPSA id 5E60F1F969; Sun, 9 Oct 2022 20:58:06 +0200 (CEST) Date: Sun, 9 Oct 2022 20:58:04 +0200 From: Marijn Suijten To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , 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 Subject: Re: [PATCH v3 06/10] drm/msm/dsi: Migrate to drm_dsc_compute_rc_parameters() Message-ID: <20221009185804.si22xuo4rs6qxicc@SoMainline.org> Mail-Followup-To: Marijn Suijten , phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , 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> <20221009185058.460688-1-marijn.suijten@somainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221009185058.460688-1-marijn.suijten@somainline.org> 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-10-09 20:50:54, Marijn Suijten wrote: Apologies. After attempting to recover from an unexpected interruption _right as I was sending this series_, this patch got sent twice as it only later appeared to also have made its way through in the first round [1], together with the cover letter and first five patches. [1]: https://lore.kernel.org/linux-arm-msm/20221009184824.457416-7-marijn.suijten@somainline.org/ - Marijn > As per the FIXME this code is entirely duplicate with what is already > provided inside drm_dsc_compute_rc_parameters(), and it is yet unknown > why this comment was put in place instead of resolved from the get-go. > Not only does it save on duplication, it would have also spared certain > issues. > > For example, this code from downstream assumed dsc->bits_per_pixel to > contain an integer value, whereas the upstream drm_dsc_config struct has > it with 4 fractional bits. drm_dsc_compute_rc_parameters() already > accounts for this feat, and the sole remaining use of > dsc->bits_per_pixel inside dsi_populate_dsc_params() will be addressed > in a separate patch. > > Fixes: b9080324d6ca ("drm/msm/dsi: add support for dsc data") > Signed-off-by: Marijn Suijten > --- > drivers/gpu/drm/msm/dsi/dsi_host.c | 64 +++--------------------------- > 1 file changed, 6 insertions(+), 58 deletions(-) > > diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c > index 83cde4d62b68..68c39debc22f 100644 > --- a/drivers/gpu/drm/msm/dsi/dsi_host.c > +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c > @@ -21,6 +21,7 @@ > > #include