Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp859329rwe; Fri, 14 Apr 2023 10:35:24 -0700 (PDT) X-Google-Smtp-Source: AKy350Y3fdXDwkvUe9KMBsawuvRnpjqn0qxUL5WCvvGMmxTOlNssUSvIa1pw5fZJV15+FBbn5fox X-Received: by 2002:a05:6a20:3d87:b0:ec:eca0:71d with SMTP id s7-20020a056a203d8700b000ececa0071dmr5126529pzi.41.1681493724491; Fri, 14 Apr 2023 10:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681493724; cv=none; d=google.com; s=arc-20160816; b=rpHQxIklIHpfScB3fCcXI5VaUfvkh8vN0gc64Oqneme81CDzRt036tvTfVYtiBWJ0E iFN8R4rdCtfN6PW8c5rtG7vPYP0uSGMaMmjWOwoKafRXMWUA7OC0KWPtr2KK9rL31DWR YND4MXvVla0lYOcMDlA2bPG9zV8B0sabLsPIbqGkxuFh2541RJ9HtbvD2jFkp8MDkESw Mm0GtGo/dinf9uzWDTtn8jQ64+OMnwQHI1qUE6GPlunQ+yELabtvwNOAs4Z8MS51SBvE 45xE2zNOuyfAjiBVuSTFNK0edx/shJnZAlyqp+SgdUqQMsM7V7Ri9KCoGiCIkdUTdeu1 D8ug== 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=3b/ZMXqv0S42EeIXi5cZhPgX0VTLF/xCJL7Mb9l2arQ=; b=ID4El6LRhBcSw7cpvO6SLGGGDZYY4/T4UafXh3/eBtw4s6jDN41ODQSHbe5aJU8YJ2 Nf23mwDIC8xjniD7jmU16516C4qrQZe+BcejuL6Qtg2cat3seGKVjpafUJGlusXCy0Ke z3+EUOMQOt/RAXp/WqzP8E0atj0IanpHq5N4yecNWHjl8g7ZUkQOzWjNG+vAyqcy2pYr IU7KSC3FZWpxicR1abN0bMTLl7g4pQbu2o9zM82ZkdD7i6BRUQQcTuWM+kk72/vxl7hd QGk5D8LR+9v0szl+tw4AeBsMuVBthlMb/tlQRV1AfgYCK5j00XL1fP0jAzKN6gfXcjUQ bNxg== 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 q1-20020aa79601000000b006265c3706f5si4931545pfg.42.2023.04.14.10.35.11; Fri, 14 Apr 2023 10:35:24 -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 S230084AbjDNRes (ORCPT + 99 others); Fri, 14 Apr 2023 13:34:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230142AbjDNRen (ORCPT ); Fri, 14 Apr 2023 13:34:43 -0400 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [5.144.164.166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 139126E8F for ; Fri, 14 Apr 2023 10:34:32 -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-r2.th.seeweb.it (Postfix) with ESMTPSA id 9C8AC3FA14; Fri, 14 Apr 2023 19:34:29 +0200 (CEST) Date: Fri, 14 Apr 2023 19:34:28 +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: <6s42sutrd2c6tme46t6tchd6y6wonmpwokseqqz2frkrfext7v@vnv44tzwyva4> References: <1681247095-1201-1-git-send-email-quic_khsieh@quicinc.com> <83f9a438-52c5-83f3-1767-92d16518d8f0@quicinc.com> <049697ba-d997-62c0-6e21-ffb287ac3100@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <049697ba-d997-62c0-6e21-ffb287ac3100@quicinc.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, 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-04-14 08:48:43, Abhinav Kumar wrote: > > On 4/14/2023 12:35 AM, Marijn Suijten wrote: > > 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? > > > > If we remove it after kernel starts, that issue is there even today > without that change because DSI is not a hot-pluggable display so a > teardown wont happen when you plug out the panel. How will cfg->dsc be 0 > then? In that case, its not a valid test as there was no indication to > DRM that display was disconnected so we cannot tear it down. The patch description itself describes hot-pluggable displays, which I believe is the upcoming DSC support for DP? You ask how cfg->dsc can become zero, but this is **exactly** what the patch description describes, and what this patch is removing the `if` for. If we are not allowed to discuss that scenario because it is not currently supported, neither should we allow to apply this patch. With that in mind, can you re-answer the question? - Marijn