Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4221826pxb; Tue, 17 Nov 2020 14:56:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJweV726DTHD5TDPOnQyiVZIz4lWJPh9qe1pT2eXPcqFpBfWKBzNKTbgZUZsAID6YyjZIX3v X-Received: by 2002:a05:6402:150b:: with SMTP id f11mr3542224edw.332.1605653797139; Tue, 17 Nov 2020 14:56:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605653797; cv=none; d=google.com; s=arc-20160816; b=V/nkXywVULEp/HjTlYZFDMjMd3K0kL6jsgZSy5/IHu7O8B/Bi1BdoZnOGrf8sQoJJ6 MS24tSMcIEUazGhEgEeOFqiN8srT1QZkQ+RcLkpjbI9W4CaeOigQolpYWD8QSr41UtLF s9Y+Pu0TOsz+3xr3eLrTeV+1B2sy0kVCHacZHEGGZleS0r6eLbGNIEby8/+fRwo5BK+b Z22QwxfXvDc5hfUWX5cy4gKRW+ZrC/r1CSy/eG9RaE+nAe2K/ve5xK+mKbMV2QewsS8o ILit7RVE7PNdIYWjBg5oLUZGh0sf/Y1D7l8/KzLeU8uM9cv6WfshYKo281cutkdeScE4 uvfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=Ce5mdOiUnXdpgxCp5xEN1C00ke4lV/R4t5KP7C9QieU=; b=d2ujGZNe1nUc9vDMO1vVc0n2FoTdqn7+S6iPVKbNcuA9vudTfJ5Jp3EeieEBDjc4Sq 9JpDSiC9FtfJb5vFL15jwqk7uAeor3GjSJkep/RZVKPf2qAZ3uT9ouQgXt227dFII9pv rtz4We/6nGQPBiKRUIKPJfwxLn+zQaKhzqnRPafPW+gTLr8+ZDqpE9QwYDJaSusCX+M0 zPvea/C/aC+Rznz7+nOFtph6wLqT07Lrg6LGyfKbBuKJsv4XW59XB8JjByDh88G9B5QI p0O1oKBDnIQK7K7khCfMVmJEhYDMwf26/gpR7daX1MYR0t2hFvdCZJfeojvUXlgloGJz VErQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lpuXNOno; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si15226114edx.345.2020.11.17.14.56.14; Tue, 17 Nov 2020 14:56:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lpuXNOno; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729406AbgKQWxF (ORCPT + 99 others); Tue, 17 Nov 2020 17:53:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgKQWxE (ORCPT ); Tue, 17 Nov 2020 17:53:04 -0500 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB9DBC0613CF for ; Tue, 17 Nov 2020 14:53:03 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id l11so1324977plt.1 for ; Tue, 17 Nov 2020 14:53:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=Ce5mdOiUnXdpgxCp5xEN1C00ke4lV/R4t5KP7C9QieU=; b=lpuXNOnoMJPZCqJXzeKrt0bjw4/lBl9bLgEmGMpS9SlE6ATrhwz3JE00zeefPVNRyE SmBlnlNZNbh0M/9eC1gsvbObC5dvzN8ha7DagBcePbYJwkaNToAum5xcWOWe4M9GJVUH MjjJWm6VpC2Z1Ato6DZxLnyIxWJllMJ8w39a8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=Ce5mdOiUnXdpgxCp5xEN1C00ke4lV/R4t5KP7C9QieU=; b=ahR/zYT+O29mDoOvo7SqczfoVy1WYJkLLacf4/ejWVAOgExb88wykBb3H3+tbgAsRP EQ2HPeAek5oKc3SV3z/QPnRHIqlm2cAd7uV6vYRigoz465DV1jfdkr1hSP4VCrDf0rX5 GJOhqnq5H5calGfdCE8Stkx83XtojKMNe6b2tOV2l9kQFOvs6WJVrYav3716rhNkQLAt oNncpvwLkrxIc1HSFcgMjkp3OmHd7EqEDZPvaOSX/WHzfOL7fH/Ho2PZK+VQgYYtxs0M kyCLTmCHYglx1BFu9V3j5wEKp65oN3Y42cQHkmVt7/qVi7QrfJ+R27AtOQdoOV+biHbC toag== X-Gm-Message-State: AOAM533xRkeAiDjCgIifcyiqKNuBehUb7TwRobfQOW/0msmWDzrVR0xJ VPt51rEYsfvobxJ4SMNAQfDRLQ== X-Received: by 2002:a17:90a:d486:: with SMTP id s6mr1202521pju.115.1605653583407; Tue, 17 Nov 2020 14:53:03 -0800 (PST) Received: from chromium.org ([100.99.132.239]) by smtp.gmail.com with ESMTPSA id p7sm12688384pfn.83.2020.11.17.14.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 14:53:02 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <71aebca216babf4010c92d4d1ce9a9b4@codeaurora.org> References: <20201117172608.2091648-1-swboyd@chromium.org> <71aebca216babf4010c92d4d1ce9a9b4@codeaurora.org> Subject: Re: [Freedreno] [PATCH] drm/msm/dpu: Remove chatty vbif debug print From: Stephen Boyd Cc: Rob Clark , freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Sean Paul , kalyan_t@codeaurora.org To: abhinavk@codeaurora.org Date: Tue, 17 Nov 2020 14:53:01 -0800 Message-ID: <160565358127.60232.4382778730228368993@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting abhinavk@codeaurora.org (2020-11-17 12:34:56) > On 2020-11-17 09:26, Stephen Boyd wrote: > > I don't know what this debug print is for but it is super chatty, > > throwing 8 lines of debug prints in the logs every time we update a > > plane. It looks like it has no value. Let's nuke it so we can get > > better logs. > >=20 > > Cc: Sean Paul > > Cc: Abhinav Kumar > > Signed-off-by: Stephen Boyd >=20 > > --- > > drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c | 3 --- > > 1 file changed, 3 deletions(-) > >=20 > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c > > b/drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c > > index 5e8c3f3e6625..5eb2b2ee09f5 100644 > > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c > > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c > > @@ -245,9 +245,6 @@ void dpu_vbif_set_qos_remap(struct dpu_kms=20 > > *dpu_kms, > > forced_on =3D mdp->ops.setup_clk_force_ctrl(mdp, params->clk_ctrl= ,=20 > > true); > >=20 > > for (i =3D 0; i < qos_tbl->npriority_lvl; i++) { > > - DPU_DEBUG("vbif:%d xin:%d lvl:%d/%d\n", > > - params->vbif_idx, params->xin_id, i, > > - qos_tbl->priority_lvl[i]); >=20 > Instead of getting rid of this print, we should optimize the caller of=20 > this. Does the print tell us anything? Right now it prints 8 lines where it feels like it could be trimmed down: [drm:dpu_vbif_set_qos_remap] vbif:0 xin:0 lvl:0/3 [drm:dpu_vbif_set_qos_remap] vbif:0 xin:0 lvl:1/3 [drm:dpu_vbif_set_qos_remap] vbif:0 xin:0 lvl:2/4 [drm:dpu_vbif_set_qos_remap] vbif:0 xin:0 lvl:3/4 [drm:dpu_vbif_set_qos_remap] vbif:0 xin:0 lvl:4/5 [drm:dpu_vbif_set_qos_remap] vbif:0 xin:0 lvl:5/5 [drm:dpu_vbif_set_qos_remap] vbif:0 xin:0 lvl:6/6 [drm:dpu_vbif_set_qos_remap] vbif:0 xin:0 lvl:7/6 maybe one line that combines the index into values? [drm:dpu_vbif_set_qos_remap] vbif:0 xin:0 [3 3 4 4 5 5 6 6] But again I have no idea if this print is really useful. Maybe we can print it only if the value changes from what was already there? Basically move the print into dpu_hw_set_qos_remap() and then skip out early if nothing changed or print and modify the register. > This is what > we are doing in downstream. So we need to update the property only if we = > are switching from a RT client > to non-RT client for the plane and vice-versa. So we should try to do=20 > the same thing here. >=20 > is_rt =3D sde_crtc_is_rt_client(crtc, crtc->state); > if (is_rt !=3D psde->is_rt_pipe) { > psde->is_rt_pipe =3D is_rt; > pstate->dirty |=3D SDE_PLANE_DIRTY_QOS; > } >=20 >=20 > if (pstate->dirty & DPU_PLANE_DIRTY_QOS) > _dpu_plane_set_qos_remap(plane); >=20 Sounds great! Can you send the patch?