Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp577876rwl; Wed, 12 Apr 2023 00:40:43 -0700 (PDT) X-Google-Smtp-Source: AKy350aY2IhjOxk1L7iygVvgSj9MU8YChc9DjKo1zU8EkbKL7fV7i5J2wMsSYUeeLS17ZBEYMgib X-Received: by 2002:a17:902:c613:b0:1a2:85f0:e748 with SMTP id r19-20020a170902c61300b001a285f0e748mr15710095plr.20.1681285243486; Wed, 12 Apr 2023 00:40:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681285243; cv=none; d=google.com; s=arc-20160816; b=dN40ZtzUPeiDUpcArAt5Aa/m2jr9Y5F4JvijVtnxFQakTztwXiBAsa3p3SLnVeKfOa XlQXI3yx3GHwtTuaxKGiKZMNuiOUqvYJ+kuHnSMEUMoOlFPn/OjRDuPg1bwZFYHpNCjQ Gg8zOW7eJNv/mKwmWUTwPzJtaN0BIEcNcXzYD0Ivgw+zsEEOvZrBO/3OgiLZ+mhf/Ty2 rHQVbfWYQ8XKrUOedjFhMDIyRBWzfNj9glLyXg9Im6SBzT/fUs+e7R+AyQhUnu33+RUU qTL1Bs1pg/WnxHwJrUAg9Tye66kVsmRsMICvkMULhg7zwSwkwtewm4gm5WJEWYrxniVw damw== 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; bh=hXaDZ/wFqKRs1emW+rZwfrwAs6uYXj0f//3EhUsG6UA=; b=vr+GTyjBRSspfDDFjf0PgvzeiNsnRnaeSvDtUgZhNAjAYNeHGjT8qtmPhfY5K56J4d Er7vr8L3LntrUjpwaxzP5WPvOcUW6tKmau4mqXGdAOwgIug942CAJHzEebNkcDcsxC0y BAbiCcnWqBjW4MRAVGvBc/R5Izs8Lx6wNhxAT1d2l4N7n5+LrpZ3j+uAn7JAq9ob5PVX twzgFcaNkbszJ0cmD73KJTV046FBeX+rLX6DAwfn4D65vM43np9hMoQVwxCAZFNkN3G2 xGojtGpbVooMi59hFQp79meD2jcEI4lFrhcJ8pAisej6c9gESSbiywu7NMk9nTR6+AQH nKfQ== 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 131-20020a630289000000b0051a650b8f52si7225382pgc.259.2023.04.12.00.40.32; Wed, 12 Apr 2023 00:40:43 -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 S229451AbjDLHYW (ORCPT + 99 others); Wed, 12 Apr 2023 03:24:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjDLHYT (ORCPT ); Wed, 12 Apr 2023 03:24:19 -0400 Received: from relay03.th.seeweb.it (relay03.th.seeweb.it [IPv6:2001:4b7a:2000:18::164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E08EB8 for ; Wed, 12 Apr 2023 00:24:17 -0700 (PDT) Received: from SoMainline.org (unknown [89.205.226.251]) (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 9B2BD20301; Wed, 12 Apr 2023 09:24:13 +0200 (CEST) Date: Wed, 12 Apr 2023 09:24:10 +0200 From: Marijn Suijten To: Abhinav Kumar Cc: Kuogee Hsieh , robdclark@gmail.com, sean@poorly.run, swboyd@chromium.org, dianders@chromium.org, vkoul@kernel.org, daniel@ffwll.ch, airlied@gmail.com, agross@kernel.org, dmitry.baryshkov@linaro.org, andersson@kernel.org, quic_sbillaka@quicinc.com, freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/msm/dpu: always program dsc active bits Message-ID: References: <1681247095-1201-1-git-send-email-quic_khsieh@quicinc.com> <83f9a438-52c5-83f3-1767-92d16518d8f0@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83f9a438-52c5-83f3-1767-92d16518d8f0@quicinc.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 2023-04-11 16:45:34, Abhinav Kumar wrote: [..] > > Does this flush all DSCs programmed in CTL_DSC_FLUSH as set above? That > > is currently still in `if (cfg->dsc)` and never overwritten if all DSCs > > are disabled, should it be taken out of the `if` to make sure no DSCs > > are inadvertently flushed, or otherwise cache the "previous mask" to > > make sure we flush exactly the right DSC blocks? > > > > Yes, DSC flush is hierarchical. This is the main DSC flush which will > enforce the flush of the DSC's we are trying to flush in the > CTL_DSC_FLUSH register. That's what I was thinking, thanks for confirming. > So if DSC was active, the CTL_FLUSH will only enforce the flush of the > DSC's programmed in CTL_DSC_FLUSH > > If DSC is not active, we still need to flush that as well (that was the > missing bit). > > No need to cache previous mask. That programming should be accurate in > cfg->dsc already. This kind of implicit dependency warrants a comment at the very least. What happens if a device boots without DSC panel connected? Will CTL_DSC_FLUSH be zero and not (unnecessarily, I assume) flush any of the DSC blocks? Or could this flush uninitialized state to the block? - Marijn