Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3774292rwb; Mon, 3 Oct 2022 22:12:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6fjNeqRzBUVKWfAVGZC887vOdArMc+6cVa2Im6OC11dmQx1ewT3sfsv63T8RY9/DqyhQFq X-Received: by 2002:a63:2bd4:0:b0:451:5df1:4b15 with SMTP id r203-20020a632bd4000000b004515df14b15mr5470398pgr.518.1664860364221; Mon, 03 Oct 2022 22:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664860364; cv=none; d=google.com; s=arc-20160816; b=PXU95r/BCkI0K+aAyDWMP18pItFyIyDkpZe7i8KxtW325Xo5aFRzPfQZ3olr/R/+5L PDYei6pxd98kmRIdtXfZQE9R8BV9EzO2AX2DWe3dVKFWUM+BoFBh2/hezZ4+9UCiFloq yaH6CzXualAFGMFJUauspBXA1Tc2odmcNZHF86gp8iNsUb/kZFDKt6QuJpXRDgVCycIi GQ9wtuBou8iivRJPTJbwpoG+JCkRAqB7kjYRbgeSlCWRqFuYMP9q3tjuBiazfU8+UJ9c LQdPlI+iIiiVCI31oelkw/+3jswXuu6NhMKO00SoH3eY0k7Y3kyPpZ9GfBKCFP1feIhS pNUA== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=MQbqUN2iWu8qwJaGRvy2W2X6xoqGE9jH/cVhADQ9NRc=; b=fx1Hlta3lixV0bSZxVDTD18MAs51vWzCfPRPdCGq1I/EUrL8yrw3Hhcr8ty5LNs3mW zJQRHb4aKxEVyVfOuYlQrJ2vL1hzrdwUgbzOe2Dy/vREdElPi3sTM3dW8V568y0vh0H1 rZo4bM9YG6wMo7qR3TtaMGWDovn2IgAhMr8WXIcEbrJ5g5EdHsYbnPRODZDdXLQEo5VH ROm9Hw5xeDuDmLm4D6hB/BZYHO5xiZPooIA6TiKaJnOMmLix1NLfJwomEgrMYJsTiJaA jKz8SVLtcRScuo2rQqKiyegdhF83y9W1uEskWV+NnQwj4IBzcUrvlJpOHbzKhZzvssKZ Ii2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LwErs2ts; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8-20020a17090a970800b00205daac38absi1813346pjo.59.2022.10.03.22.12.30; Mon, 03 Oct 2022 22:12:44 -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=@kernel.org header.s=k20201202 header.b=LwErs2ts; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229535AbiJDEnI (ORCPT + 99 others); Tue, 4 Oct 2022 00:43:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbiJDEnH (ORCPT ); Tue, 4 Oct 2022 00:43:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D8FD39B93; Mon, 3 Oct 2022 21:43:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C5697B818F6; Tue, 4 Oct 2022 04:43:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AECE7C433C1; Tue, 4 Oct 2022 04:43:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664858583; bh=eYy7EY3wMGZQPeArL+2hroT5fu2zAsiPf6zlIP9+Gm0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LwErs2ts4afxfSLyft8B10Lg3CRv3yfwGdn0RW2OozMWrmg6HpA9ebRxLny+aKKNl ojMXD2JpInZesbJ5C5dH6v8X5akzAA/PjKH29ojszQdp4omrh4g9jD8HIkv6lVIx6o htDoicY1k3fY3qPJ8ieSkRUnT0gitArCGM71VhiHUHHTn1cJB9DQ30yxOM9LhMPvXu uAOTAWNlYUfxhGG3pg+o94/mxZBf2EBaVpfPMmIb9k6XY0egzYdYhqZPDxd0S8YLEs fdlv5dGGUhf24B0/I15ZuweoCf4kZifJzlhds7tyC65N6caF0T1wCIcK82HzKarQbK fIEzbrfEwVgOw== Date: Tue, 4 Oct 2022 10:12:58 +0530 From: Vinod Koul To: Marijn Suijten Cc: phone-devel@vger.kernel.org, Rob Clark , Dmitry Baryshkov , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , David Airlie , 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 Subject: Re: [PATCH 0/5] drm: Fix math issues in MSM DSC implementation Message-ID: References: <20221001190807.358691-1-marijn.suijten@somainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221001190807.358691-1-marijn.suijten@somainline.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 01-10-22, 21:08, Marijn Suijten wrote: > Various removals of complex yet unnecessary math, fixing all uses of > drm_dsc_config::bits_per_pixel to deal with the fact that this field > includes four fractional bits, and finally an approach for dealing with > dsi_host setting negative values in range_bpg_offset, resulting in > overflow inside drm_dsc_pps_payload_pack(). > > Note that updating the static bpg_offset array to limit the size of > these negative values to 6 bits changes what would be written to the DPU > hardware at register(s) DSC_RANGE_BPG_OFFSET, hence the choice has been > made to cover up for this while packing the value into a smaller field > instead. Thanks for fixing these. I dont have my pixel3 availble but changes lgtm Reviewed-by: Vinod Koul > Altogether this series is responsible for solving _all_ Display Stream > Compression issues and artifacts on the Sony Tama (sdm845) Akatsuki > smartphone (2880x1440p). Does it need two dsi lanes? -- ~Vinod