Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp420144pxb; Wed, 18 Nov 2020 07:52:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxr8r5xSQT8g2dfSk8cNqf7Yk+Y8v9Hq5d3Fb6x72DS56ZrWkXhnmOfnuDO6Jcm0+yUmbQ X-Received: by 2002:a17:906:af47:: with SMTP id ly7mr25763865ejb.532.1605714726820; Wed, 18 Nov 2020 07:52:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605714726; cv=none; d=google.com; s=arc-20160816; b=OcCOSj1cQhSTLpJKqXlyKM0xQtzyaCbGeyF7wrLyct+tZ7OYa8jbuW31/RxekkygaO Ys3pW2nH9W6WbGWa0lCaHB8JBPbfyK0wE1NjxVLuDubc+0TjwyUgB73a1fp03N4PMSW4 sV4jGo5Qgb7RPjF2Q2z3tiaQygxvoVfehOE1u9dX8V+syx59i1XKO1Y8ZU7fUIs0W5B5 L1g1sHhBK8h267kU/TckT9eQZf2TWNEw53OpZS7yZ0SbMC8LcDruK3Y9uOOcXF38NLGn 4VEUL6Lnfr1zDxeQeVKCYTKp+5Ur9GTE0YTnE9+wS38oOydsjT+13RgKgGjBmg96MSLb nsdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YJpTSJsL9moVZsBZji+qYlimshdtftJObIcujQ/7f3I=; b=sIUaVw06LLCww0rzR6Pi1cF0IWZ5a6AksKUOIeOy5qAbu/pSuPQuwfVLTLg+0juZE/ gdp8H5AJTJpI1QJkjDad+vOxkAA2B74RYzWXIP/nmE+wdbUNqy07cueUwzVTL6gIEkhB IiHduNIm6/U8GsMSi7xXCRrVw4VwT2x7Us05yUg04TzSySuswnTarrOjxbnKM2KCVo+/ 2kZ5LMWqGp2IeLZyIvHXVpBlXHxFXwwdimz3WIRklgrhz+KsC9yQZh+TUh1Ra863inKj 8d8yYk1p3XRQ1MjHG78+Pcab2M36WOtWhckmpQeKaGZnq0kR1iY0/YbvL37Ockzn1yhv rzXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qvKkyEsz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si18423819ejb.290.2020.11.18.07.51.43; Wed, 18 Nov 2020 07:52:06 -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=@gmail.com header.s=20161025 header.b=qvKkyEsz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727701AbgKRPrr (ORCPT + 99 others); Wed, 18 Nov 2020 10:47:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726089AbgKRPrq (ORCPT ); Wed, 18 Nov 2020 10:47:46 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E433C0613D4; Wed, 18 Nov 2020 07:47:46 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id p1so2603204wrf.12; Wed, 18 Nov 2020 07:47:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YJpTSJsL9moVZsBZji+qYlimshdtftJObIcujQ/7f3I=; b=qvKkyEszF9bvQyIp8KuS6pTbQ5AUDFADd3r5741U3zdxwGmmcPm4w8vxW0KK7glcz4 d2w6CoLAFVKKnTyta/6mho7GqdCTyN7/3g+XCiKcyhtClStjVFemIFk5dMO8hpEijFIn te6se+GmjKACvvBlwuaLd+6RgeDOHa8ERYKQae6Uur1iFfoGtdVmYE4zZ3JmTk+OiXrv 7btfl3QZfzl9hfKTQ8n5X6kkX37rYzH1bdaQmSs8HbhJEwhLS+5Yk/0Eg3jSKDWsLM8r OvsOAGJA9scIFTlvJyUPN6yCbTEh3dak3xPA95o7jM8Doqeu2ZVR15TeAtooJXSzFGTR vFRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YJpTSJsL9moVZsBZji+qYlimshdtftJObIcujQ/7f3I=; b=EQBpw8VXa39dJRYpo3Kve62aJDD+m3g1rd58KS0sZk9Vmi5QhL2+yVJykvrsR0eh1M cKa4RVyrtzpF6RkNpB7dl2OfdkuDd/r1cFS3h33JCiUnHrNpP62pucgig5UQUmBFG5bp /PAJltqN5piVoF+eO/wlBggOj1GAL17iMPXLFPhcitu3GuaSzaAKY9VuVtnLNNncxXBp BkLQfFGDKGfU/kZ9qeLsteNFzFCIv4+6G8tL1X+Js7uRDYjUlrQRQVTwLZA2mZNbcJhK 6du0aDKFHhvMBdgGGT/IX0DoCgPV0e66jaKM+5Oehgaht+/KuYogcE2OBhnea7X5br2w 1kHg== X-Gm-Message-State: AOAM530H9/oquPZbFtd+4+rcmu/GmnMD77Z4QDC+kl9XbkJTRc9lJ2v2 jj1EQyPSyZhfZUWVUSnaWYBfOTda/2/NkbKda4w= X-Received: by 2002:adf:f04b:: with SMTP id t11mr5098446wro.147.1605714464802; Wed, 18 Nov 2020 07:47:44 -0800 (PST) MIME-Version: 1.0 References: <20201117172608.2091648-1-swboyd@chromium.org> <71aebca216babf4010c92d4d1ce9a9b4@codeaurora.org> <160565358127.60232.4382778730228368993@swboyd.mtv.corp.google.com> In-Reply-To: <160565358127.60232.4382778730228368993@swboyd.mtv.corp.google.com> From: Rob Clark Date: Wed, 18 Nov 2020 07:49:31 -0800 Message-ID: Subject: Re: [Freedreno] [PATCH] drm/msm/dpu: Remove chatty vbif debug print To: Stephen Boyd Cc: Abhinav Kumar , freedreno , linux-arm-msm , Linux Kernel Mailing List , dri-devel , Sean Paul , Kalyan Thota Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 17, 2020 at 2:53 PM Stephen Boyd wrote: > > 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. > > > > > > Cc: Sean Paul > > > Cc: Abhinav Kumar > > > Signed-off-by: Stephen Boyd > > > > > --- > > > drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c | 3 --- > > > 1 file changed, 3 deletions(-) > > > > > > 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 > > > *dpu_kms, > > > forced_on = mdp->ops.setup_clk_force_ctrl(mdp, params->clk_ctrl, > > > true); > > > > > > for (i = 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]); > > > > Instead of getting rid of this print, we should optimize the caller of > > 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] > or possibly convert to a tracepoint (so it doesn't spam the drm_trace buffer) BR, -R > 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 > > the same thing here. > > > > is_rt = sde_crtc_is_rt_client(crtc, crtc->state); > > if (is_rt != psde->is_rt_pipe) { > > psde->is_rt_pipe = is_rt; > > pstate->dirty |= SDE_PLANE_DIRTY_QOS; > > } > > > > > > if (pstate->dirty & DPU_PLANE_DIRTY_QOS) > > _dpu_plane_set_qos_remap(plane); > > > > Sounds great! Can you send the patch?