Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5381027rwr; Tue, 9 May 2023 00:07:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6IIQHSRgqjmVFWaRtewUcd1znXv0AnWoM68cgjqgToxJFEdyfzdQDnejTayezOXtB9RGtq X-Received: by 2002:a17:90b:1047:b0:24e:3bb3:ea0c with SMTP id gq7-20020a17090b104700b0024e3bb3ea0cmr13010572pjb.10.1683616074871; Tue, 09 May 2023 00:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683616074; cv=none; d=google.com; s=arc-20160816; b=xpsz8P80dim2LJmv604gWbuVuoP5Tt2hdJ28Us8tD7BnOxeveAA0fPP8Sd6VCPhWkV lSlr+hsoWefN4KrO68qLRIE+Tr25MXa1RDalK2UY8EGOlQxi3BjFwk/J6v04DK+NYo1q NZHqzR83QtBjB+dqfC4uMM1MxG5V/mO33Nq3sRsLMPtIJT9HVAaKDWVQHwM31W/hi4zu kP6wh0+JCzmTsGRNbkh5zEF6WNuphN3OWFPVL5UE28dEeG2pd6AQ+IZX2O+QKW/YXmjs 4Z/SrAbg96/Sn68GDzQ0VyTug7+Q/rJMHvzpiFhsA6eL1mDjP/wR8qQYycDogJs2nvnF tCoA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gdYKUjFNGJuvMz8QWgGlCZKxo1N7ySo0S+xOVog/+uQ=; b=AgQsembLGTBDOs8wdFcteRIJv/gUJjsJ8SP+g0Dd0wkMt2hfuZmdMjktqOkkTm1paJ h8BLtZDxjWMxuMVOeYWXH6sgqUXIoLrn+P9a17j2CoMj1X/4/qpGcOAnkUx3FHtyga9y /xPGqetQhtsbgyMX7pbOYpcXgg5Yp9nPOJYa5vDJe6SdRIu05RrrS0LSyKQ+O3vnLFi4 E2m9p7Qh/C1H2zpjLCegPbJ9+N7ah+2iKBD8zrEYW+bcp2JsiBh5lGqJ+bQSCJwKTiAd gAAmtwJrb7tx5BfvmYRjhVD3wV2jrIXB6eED3NgCwC2TARQe4iLms99w9toKwccaUlTO niDQ== 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 f12-20020a17090aa78c00b0024d7fdc4778si25097887pjq.32.2023.05.09.00.07.40; Tue, 09 May 2023 00:07:54 -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 S235029AbjEIGtw (ORCPT + 99 others); Tue, 9 May 2023 02:49:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235035AbjEIGtg (ORCPT ); Tue, 9 May 2023 02:49:36 -0400 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [5.144.164.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B15D110EA for ; Mon, 8 May 2023 23:49:35 -0700 (PDT) Received: from SoMainline.org (unknown [89.205.226.248]) (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 D63791F4B7; Tue, 9 May 2023 08:49:32 +0200 (CEST) Date: Tue, 9 May 2023 08:49:31 +0200 From: Marijn Suijten To: Jessica Zhang Cc: freedreno@lists.freedesktop.org, Abhinav Kumar , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Konrad Dybcio , linux-arm-msm@vger.kernel.org, Dmitry Baryshkov , Sean Paul Subject: Re: [Freedreno] [PATCH v2 4/4] drm/msm/dpu: Set DATA_COMPRESS for command mode Message-ID: References: <20230405-add-dsc-support-v2-0-1072c70e9786@quicinc.com> <20230405-add-dsc-support-v2-4-1072c70e9786@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 2023-05-08 17:00:12, Jessica Zhang wrote: > On 5/8/2023 4:17 PM, Jessica Zhang wrote: > > On 5/7/2023 9:06 AM, Marijn Suijten wrote: > >> On 2023-05-05 14:23:51, Jessica Zhang wrote: > >>> Add a DPU INTF op to set DATA_COMPRESS register for command mode > >>> panels if > >>> the DPU_INTF_DATA_COMPRESS feature flag is set. This flag needs to be > >>> enabled in order for DSC v1.2 to work. > >>> > >>> Note: These changes are for command mode only. Video mode changes will > >>> be posted along with the DSC v1.2 support for DP. > >> > >> Nit: the "command mode" parts of both paragraphs only apply to the call > >> in dpu_encoder_phys_cmd, right?? If so, and the INTF op remains the same > >> for video mode (but only the call needs to be added to the > >> dpu_encoder_phy_vid), make this a bit more clear in your commit message. > > (Sorry, forgot to address this comment in my initial reply) > > The op will be available for video mode to use, but most likely video > mode will set DATA_COMPRESS (or call dpu_hw_intf_enable_compression()) > directly in dpu_hw_intf_setup_timing_engine(). Sounsds good, if you can clarify something along those lines so that it is clear that the call is valid on video mode too, and that the callback is also available there. e.g. - Drop "for command mode panels" from "op to set DATA_COMPRESS register"; - "Note: the op is currently called for command-mode encoders only, video mode changes..." Thanks! - Marijn