Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp175004rwe; Fri, 14 Apr 2023 00:36:58 -0700 (PDT) X-Google-Smtp-Source: AKy350YpkEYRjletJcOHOxiicuZAIPFucNVfeLN6Bl72YkKZlYWK3zyGJbj5ar7zmyY2BnCc2G42 X-Received: by 2002:a17:90b:48c9:b0:246:57f6:44b5 with SMTP id li9-20020a17090b48c900b0024657f644b5mr10084433pjb.12.1681457818470; Fri, 14 Apr 2023 00:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681457818; cv=none; d=google.com; s=arc-20160816; b=dWzQ6lj2l1znHHVlT3l6/Qtyek/5HdsEJWKu2o0i7B22Ub03/XUQObzMPsgX4ylKxC KxoMrpbiLiCxthpmVlN+KU8zHSEftlP2GpSNm0H3QFB0QmQJmfpDX4jP95ISaT6S25fw wtjk99+G0Kn0F/GVVGN8FO0qj7KscYLEhrVfNbS+hgW+TLY31p709fbLXENQ55XRwzOc cdLj9hC0S9iLY7WgsbMsU9d9HyBHvOEAG1mig7cJlkt/clX2br1qVPSS1SHFOsYo++fY kFWBOzz4SfD6cDE0yoQqkZuVOYmzTkq19fsoWgCtD3mxh0LLs1t8DvrIbnrg1x/sLh0H hzgQ== 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=1WQU+EYmMdbu+3DxPQUqoOsHoK8j4Y1yJlCxqtBEVUY=; b=sWJ/+Ve5FDxgImkA5mZAQz3Ka9QwO3YP0r0dkH6c77Iix6FdfC673aU2j2SUBNmRsA 8r6pEOJ7rZPhgHvXvWSlew2zkSGLA9kHnyhAbgRZZ6NxezKThmx+srw+D73h24aXAC4d /JwdWmWQjmbjZx/gF8vbb+nC9nywgqyIlH3F9bAoDWvglK1E8/m/MRlJ+RzuK8K7GSwa uJ9qpyGtyHqH6N8F4w3n+7hgC9E/ZmpAGWqv1wUDx5/M/KEJt51x7PhJ5Ud5rXUE/6ln r2R+xHIgbh7zZ4OPZ8XQ7BAv02dz0rD1Yugg3RokH4nuSxUff9JE28EtFnWLoEtP1eMT lIAg== 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 m2-20020a17090ab78200b002471057e709si4443223pjr.75.2023.04.14.00.36.48; Fri, 14 Apr 2023 00:36:58 -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 S229890AbjDNHg0 (ORCPT + 99 others); Fri, 14 Apr 2023 03:36:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbjDNHgZ (ORCPT ); Fri, 14 Apr 2023 03:36:25 -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 412BE76A7; Fri, 14 Apr 2023 00:35:50 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (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 0755420370; Fri, 14 Apr 2023 09:35:01 +0200 (CEST) Date: Fri, 14 Apr 2023 09:35:00 +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: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 2023-04-12 10:33:15, Abhinav Kumar wrote: [..] > > 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? > > > > If we bootup without DSC panel connected, the kernel's cfg->dsc will be > 0 and default register value of CTL_DSC_FLUSH will be 0 so it wont flush > any DSC blocks. Ack, that makes sense. However, if I connect a DSC panel, then disconnect it (now the register should be non-zero, but cfg->dsc will be zero), and then replug a non-DSC panel multiple times, it'll get flushed every time because we never clear CTL_DSC_FLUSH after that? > Sure, as I wrote in the other response, we can move this > to reset_intf_cfg later when the other pieces are fixed. And leave a > FIXME here. Kuogee forgot to CC me on this patchs so I did not read/receive that side of the email thread. Will catch up before reviewing v2. - Marijn