Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5437393yba; Mon, 13 May 2019 10:48:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNPT0nGpXPDFVPb9x136HqtYNgZTmk91xwi4/JnmBx2wKxnAmbTy4y7ImKB0tVPk6HKbpz X-Received: by 2002:a63:4045:: with SMTP id n66mr18361977pga.386.1557769719513; Mon, 13 May 2019 10:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557769719; cv=none; d=google.com; s=arc-20160816; b=Hf6izMXqmx4D/dgS8RzzItA1hKfvXhYkTCBmixQw+QQpSSyGK2+IrrKZcwR9oCaYpf V7lFlf2j6SUnKdVEYwrmAIIVMQq6/01pguZz0+mHXLmUFapOi/5S+sdV7eOrVykHZc8q Ie29UoAd3t4vYIdAfXPVx71Xbkythdznzitib5ZFO7rarT5r2LfS0Z5a3lvq5KfqSIp+ brjOTGAkT1WmJa/egYk1hqUthyjqZDmcdCl81L7MoB+HbgXFyAEwbzJ2XUQ9ww5R3dNN UPaZ6kFbNPiBNu4kVFLaDRwNHa0zHhXOZu8IKNkK0oy/s4O87Lqsq1xG2ZNH1Dm9jeY/ 1cZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uVMSRVPAq03Gw5SYpJO/s9EHYvnTOCEHjLr/dV8ktiM=; b=oCBZDa0mCqopLI5TGDBe1cxG1O5Nrjrp25sY/6DZn4PfOYd3nzAmQAX7RPAY1RAg6y 1dktTnH3S6QHT5DhetMd/PQ8wbpfzd5j1pWdCng5HziaNlvjfvUW3DGBVX2SKmZxnhRZ zfms+JQirH7BKC5tJq67/iHSqJvWvNjyGMm8er+3fWcDGG83voZ0B/vnDH38v39Li0n0 lVm3CT/sJfBptyRfzB0/sUWty+aeW+d4/ORCsIl1wSFHaod+eqfz8iuZKqqDdCbkSPER I+WRwzFOTTg1fUN42puFKXnDkA4bA1wo/Z3B8S6nsUnCAYH2MrjlGg19d8KLs4lNusps dmZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=dL3mBvcy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i22si18161153pfd.84.2019.05.13.10.48.23; Mon, 13 May 2019 10:48:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=dL3mBvcy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730797AbfEMOm6 (ORCPT + 99 others); Mon, 13 May 2019 10:42:58 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:41473 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730804AbfEMOm5 (ORCPT ); Mon, 13 May 2019 10:42:57 -0400 Received: by mail-qk1-f195.google.com with SMTP id g190so6016338qkf.8 for ; Mon, 13 May 2019 07:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=uVMSRVPAq03Gw5SYpJO/s9EHYvnTOCEHjLr/dV8ktiM=; b=dL3mBvcyybdktp7yPXLAtzh5MWsZPBWf/mtCr/AvMqiZAp9mVf7kNf/H791QsKeg6E UYXIkc8ImIQ0SO1t8rkTPpEyw1YAOpO6w3vOL0XXd+5IqIWBm5NtJ9Nf5D1wU4i/R9Jb jco/40ipJvwziKMSFrJXEkJobxtBVqhJJn56rgXUUTiISnD8bddOq5KWEDcOp0R3hgPR Zgmvyxkfk50bCzZJMejPGHjLe0fbERPZf4oIrzx0CrAxBjZdLJZFMkAaDv6tXOKuuhSf FFkqX7CpcusHt/mP4GAob2IzfUDd8YsemfMxXzeqi54gBagxAsEUQVXXoeQyGhdgpKpE +Djw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=uVMSRVPAq03Gw5SYpJO/s9EHYvnTOCEHjLr/dV8ktiM=; b=LypLnOyFIhFYXxVSncQSFH/eBSWczHiexX9yIml+s9KWVybRQEghz1V80XsSyMvuD1 /5PFLsxeoYS74Ao2Dg5mMQ/cBaHC0Sg5UQkh/0n/HqLrvWYckQg6dMs7v/799n8ZNpfx fZUi2Mwk/6M0LFcOeRc2L11SIC0VqX2yJvjZwqNNQIVf2VyzRC8cluCdC4t/0LILeDLH OKJhdl3sduYxFoIq+kd5SX5IXQB9lgwg+qcjq23uKWla1UKxSWcx5J0rUlgZAShODN4k pDyg/1r2s39zWVppk2W+cjPe8+9VO51yXvJLj/qaomBhfYs/XCI/IdQV/N15VIxmXVWk mObg== X-Gm-Message-State: APjAAAWwRbL0+Vfp+QnuGJzplVi9FtYRJTG0WY9PwP38Qf+MD+cZJ5oM Cy8IIrMWeKN2TMa1I5VePUJyWQ== X-Received: by 2002:ae9:c30d:: with SMTP id n13mr22533799qkg.347.1557758575897; Mon, 13 May 2019 07:42:55 -0700 (PDT) Received: from localhost ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id c9sm4833765qtc.39.2019.05.13.07.42.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 May 2019 07:42:55 -0700 (PDT) Date: Mon, 13 May 2019 10:42:54 -0400 From: Sean Paul To: Rob Clark Cc: dri-devel@lists.freedesktop.org, Jayant Shekhar , Sravanthi Kollukuduru , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Jeykumar Sankaran , Jordan Crouse , Bruce Wang , Abhinav Kumar , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/5] drm/msm/dpu: clean up references of DPU custom bus scaling Message-ID: <20190513144254.GN17077@art_vandelay> References: <20190508204219.31687-1-robdclark@gmail.com> <20190508204219.31687-2-robdclark@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190508204219.31687-2-robdclark@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 08, 2019 at 01:42:11PM -0700, Rob Clark wrote: > From: Jayant Shekhar > > Since the upstream interconnect bus framework has landed > upstream, the existing references of custom bus scaling > needs to be cleaned up. > > Changes in v2: > - Fixed build error due to partial clean up > > Changes in v3: > - Condense multiple lines into a single line (Sean Paul) > > Changes in v4-v7: > - None > > Signed-off-by: Sravanthi Kollukuduru > Signed-off-by: Jayant Shekhar > Signed-off-by: Rob Clark Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 174 +++++++----------- > drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h | 4 +- > drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 11 +- > drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 22 +-- > 4 files changed, 80 insertions(+), 131 deletions(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c > index 9f20f397f77d..e231c37a9dbb 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c > @@ -77,7 +77,6 @@ static void _dpu_core_perf_calc_crtc(struct dpu_kms *kms, > struct dpu_core_perf_params *perf) > { > struct dpu_crtc_state *dpu_cstate; > - int i; > > if (!kms || !kms->catalog || !crtc || !state || !perf) { > DPU_ERROR("invalid parameters\n"); > @@ -88,35 +87,24 @@ static void _dpu_core_perf_calc_crtc(struct dpu_kms *kms, > memset(perf, 0, sizeof(struct dpu_core_perf_params)); > > if (!dpu_cstate->bw_control) { > - for (i = 0; i < DPU_CORE_PERF_DATA_BUS_ID_MAX; i++) { > - perf->bw_ctl[i] = kms->catalog->perf.max_bw_high * > + perf->bw_ctl = kms->catalog->perf.max_bw_high * > 1000ULL; > - perf->max_per_pipe_ib[i] = perf->bw_ctl[i]; > - } > + perf->max_per_pipe_ib = perf->bw_ctl; > perf->core_clk_rate = kms->perf.max_core_clk_rate; > } else if (kms->perf.perf_tune.mode == DPU_PERF_MODE_MINIMUM) { > - for (i = 0; i < DPU_CORE_PERF_DATA_BUS_ID_MAX; i++) { > - perf->bw_ctl[i] = 0; > - perf->max_per_pipe_ib[i] = 0; > - } > + perf->bw_ctl = 0; > + perf->max_per_pipe_ib = 0; > perf->core_clk_rate = 0; > } else if (kms->perf.perf_tune.mode == DPU_PERF_MODE_FIXED) { > - for (i = 0; i < DPU_CORE_PERF_DATA_BUS_ID_MAX; i++) { > - perf->bw_ctl[i] = kms->perf.fix_core_ab_vote; > - perf->max_per_pipe_ib[i] = kms->perf.fix_core_ib_vote; > - } > + perf->bw_ctl = kms->perf.fix_core_ab_vote; > + perf->max_per_pipe_ib = kms->perf.fix_core_ib_vote; > perf->core_clk_rate = kms->perf.fix_core_clk_rate; > } > > DPU_DEBUG( > - "crtc=%d clk_rate=%llu core_ib=%llu core_ab=%llu llcc_ib=%llu llcc_ab=%llu mem_ib=%llu mem_ab=%llu\n", > + "crtc=%d clk_rate=%llu core_ib=%llu core_ab=%llu\n", > crtc->base.id, perf->core_clk_rate, > - perf->max_per_pipe_ib[DPU_CORE_PERF_DATA_BUS_ID_MNOC], > - perf->bw_ctl[DPU_CORE_PERF_DATA_BUS_ID_MNOC], > - perf->max_per_pipe_ib[DPU_CORE_PERF_DATA_BUS_ID_LLCC], > - perf->bw_ctl[DPU_CORE_PERF_DATA_BUS_ID_LLCC], > - perf->max_per_pipe_ib[DPU_CORE_PERF_DATA_BUS_ID_EBI], > - perf->bw_ctl[DPU_CORE_PERF_DATA_BUS_ID_EBI]); > + perf->max_per_pipe_ib, perf->bw_ctl); > } > > int dpu_core_perf_crtc_check(struct drm_crtc *crtc, > @@ -129,7 +117,6 @@ int dpu_core_perf_crtc_check(struct drm_crtc *crtc, > struct dpu_crtc_state *dpu_cstate; > struct drm_crtc *tmp_crtc; > struct dpu_kms *kms; > - int i; > > if (!crtc || !state) { > DPU_ERROR("invalid crtc\n"); > @@ -151,31 +138,25 @@ int dpu_core_perf_crtc_check(struct drm_crtc *crtc, > /* obtain new values */ > _dpu_core_perf_calc_crtc(kms, crtc, state, &dpu_cstate->new_perf); > > - for (i = DPU_CORE_PERF_DATA_BUS_ID_MNOC; > - i < DPU_CORE_PERF_DATA_BUS_ID_MAX; i++) { > - bw_sum_of_intfs = dpu_cstate->new_perf.bw_ctl[i]; > - curr_client_type = dpu_crtc_get_client_type(crtc); > + bw_sum_of_intfs = dpu_cstate->new_perf.bw_ctl; > + curr_client_type = dpu_crtc_get_client_type(crtc); > > - drm_for_each_crtc(tmp_crtc, crtc->dev) { > - if (tmp_crtc->enabled && > - (dpu_crtc_get_client_type(tmp_crtc) == > - curr_client_type) && > - (tmp_crtc != crtc)) { > - struct dpu_crtc_state *tmp_cstate = > - to_dpu_crtc_state(tmp_crtc->state); > - > - DPU_DEBUG("crtc:%d bw:%llu ctrl:%d\n", > - tmp_crtc->base.id, > - tmp_cstate->new_perf.bw_ctl[i], > - tmp_cstate->bw_control); > - /* > - * For bw check only use the bw if the > - * atomic property has been already set > - */ > - if (tmp_cstate->bw_control) > - bw_sum_of_intfs += > - tmp_cstate->new_perf.bw_ctl[i]; > - } > + drm_for_each_crtc(tmp_crtc, crtc->dev) { > + if (tmp_crtc->enabled && > + (dpu_crtc_get_client_type(tmp_crtc) == > + curr_client_type) && (tmp_crtc != crtc)) { > + struct dpu_crtc_state *tmp_cstate = > + to_dpu_crtc_state(tmp_crtc->state); > + > + DPU_DEBUG("crtc:%d bw:%llu ctrl:%d\n", > + tmp_crtc->base.id, tmp_cstate->new_perf.bw_ctl, > + tmp_cstate->bw_control); > + /* > + * For bw check only use the bw if the > + * atomic property has been already set > + */ > + if (tmp_cstate->bw_control) > + bw_sum_of_intfs += tmp_cstate->new_perf.bw_ctl; > } > > /* convert bandwidth to kb */ > @@ -206,9 +187,9 @@ int dpu_core_perf_crtc_check(struct drm_crtc *crtc, > } > > static int _dpu_core_perf_crtc_update_bus(struct dpu_kms *kms, > - struct drm_crtc *crtc, u32 bus_id) > + struct drm_crtc *crtc) > { > - struct dpu_core_perf_params perf = { { 0 } }; > + struct dpu_core_perf_params perf = { 0 }; > enum dpu_crtc_client_type curr_client_type > = dpu_crtc_get_client_type(crtc); > struct drm_crtc *tmp_crtc; > @@ -221,13 +202,11 @@ static int _dpu_core_perf_crtc_update_bus(struct dpu_kms *kms, > dpu_crtc_get_client_type(tmp_crtc)) { > dpu_cstate = to_dpu_crtc_state(tmp_crtc->state); > > - perf.max_per_pipe_ib[bus_id] = > - max(perf.max_per_pipe_ib[bus_id], > - dpu_cstate->new_perf.max_per_pipe_ib[bus_id]); > + perf.max_per_pipe_ib = max(perf.max_per_pipe_ib, > + dpu_cstate->new_perf.max_per_pipe_ib); > > - DPU_DEBUG("crtc=%d bus_id=%d bw=%llu\n", > - tmp_crtc->base.id, bus_id, > - dpu_cstate->new_perf.bw_ctl[bus_id]); > + DPU_DEBUG("crtc=%d bw=%llu\n", tmp_crtc->base.id, > + dpu_cstate->new_perf.bw_ctl); > } > } > return ret; > @@ -247,7 +226,6 @@ void dpu_core_perf_crtc_release_bw(struct drm_crtc *crtc) > struct dpu_crtc *dpu_crtc; > struct dpu_crtc_state *dpu_cstate; > struct dpu_kms *kms; > - int i; > > if (!crtc) { > DPU_ERROR("invalid crtc\n"); > @@ -283,10 +261,8 @@ void dpu_core_perf_crtc_release_bw(struct drm_crtc *crtc) > if (kms->perf.enable_bw_release) { > trace_dpu_cmd_release_bw(crtc->base.id); > DPU_DEBUG("Release BW crtc=%d\n", crtc->base.id); > - for (i = 0; i < DPU_CORE_PERF_DATA_BUS_ID_MAX; i++) { > - dpu_crtc->cur_perf.bw_ctl[i] = 0; > - _dpu_core_perf_crtc_update_bus(kms, crtc, i); > - } > + dpu_crtc->cur_perf.bw_ctl = 0; > + _dpu_core_perf_crtc_update_bus(kms, crtc); > } > } > > @@ -329,11 +305,10 @@ int dpu_core_perf_crtc_update(struct drm_crtc *crtc, > int params_changed, bool stop_req) > { > struct dpu_core_perf_params *new, *old; > - int update_bus = 0, update_clk = 0; > + bool update_bus = false, update_clk = false; > u64 clk_rate = 0; > struct dpu_crtc *dpu_crtc; > struct dpu_crtc_state *dpu_cstate; > - int i; > struct msm_drm_private *priv; > struct dpu_kms *kms; > int ret; > @@ -360,62 +335,49 @@ int dpu_core_perf_crtc_update(struct drm_crtc *crtc, > new = &dpu_cstate->new_perf; > > if (crtc->enabled && !stop_req) { > - for (i = 0; i < DPU_CORE_PERF_DATA_BUS_ID_MAX; i++) { > - /* > - * cases for bus bandwidth update. > - * 1. new bandwidth vote - "ab or ib vote" is higher > - * than current vote for update request. > - * 2. new bandwidth vote - "ab or ib vote" is lower > - * than current vote at end of commit or stop. > - */ > - if ((params_changed && ((new->bw_ctl[i] > > - old->bw_ctl[i]) || > - (new->max_per_pipe_ib[i] > > - old->max_per_pipe_ib[i]))) || > - (!params_changed && ((new->bw_ctl[i] < > - old->bw_ctl[i]) || > - (new->max_per_pipe_ib[i] < > - old->max_per_pipe_ib[i])))) { > - DPU_DEBUG( > - "crtc=%d p=%d new_bw=%llu,old_bw=%llu\n", > - crtc->base.id, params_changed, > - new->bw_ctl[i], old->bw_ctl[i]); > - old->bw_ctl[i] = new->bw_ctl[i]; > - old->max_per_pipe_ib[i] = > - new->max_per_pipe_ib[i]; > - update_bus |= BIT(i); > - } > + /* > + * cases for bus bandwidth update. > + * 1. new bandwidth vote - "ab or ib vote" is higher > + * than current vote for update request. > + * 2. new bandwidth vote - "ab or ib vote" is lower > + * than current vote at end of commit or stop. > + */ > + if ((params_changed && ((new->bw_ctl > old->bw_ctl) || > + (new->max_per_pipe_ib > old->max_per_pipe_ib))) || > + (!params_changed && ((new->bw_ctl < old->bw_ctl) || > + (new->max_per_pipe_ib < old->max_per_pipe_ib)))) { > + DPU_DEBUG("crtc=%d p=%d new_bw=%llu,old_bw=%llu\n", > + crtc->base.id, params_changed, > + new->bw_ctl, old->bw_ctl); > + old->bw_ctl = new->bw_ctl; > + old->max_per_pipe_ib = new->max_per_pipe_ib; > + update_bus = true; > } > > if ((params_changed && > - (new->core_clk_rate > old->core_clk_rate)) || > - (!params_changed && > - (new->core_clk_rate < old->core_clk_rate))) { > + (new->core_clk_rate > old->core_clk_rate)) || > + (!params_changed && > + (new->core_clk_rate < old->core_clk_rate))) { > old->core_clk_rate = new->core_clk_rate; > - update_clk = 1; > + update_clk = true; > } > } else { > DPU_DEBUG("crtc=%d disable\n", crtc->base.id); > memset(old, 0, sizeof(*old)); > memset(new, 0, sizeof(*new)); > - update_bus = ~0; > - update_clk = 1; > + update_bus = true; > + update_clk = true; > } > - trace_dpu_perf_crtc_update(crtc->base.id, > - new->bw_ctl[DPU_CORE_PERF_DATA_BUS_ID_MNOC], > - new->bw_ctl[DPU_CORE_PERF_DATA_BUS_ID_LLCC], > - new->bw_ctl[DPU_CORE_PERF_DATA_BUS_ID_EBI], > - new->core_clk_rate, stop_req, > - update_bus, update_clk); > - > - for (i = 0; i < DPU_CORE_PERF_DATA_BUS_ID_MAX; i++) { > - if (update_bus & BIT(i)) { > - ret = _dpu_core_perf_crtc_update_bus(kms, crtc, i); > - if (ret) { > - DPU_ERROR("crtc-%d: failed to update bw vote for bus-%d\n", > - crtc->base.id, i); > - return ret; > - } > + > + trace_dpu_perf_crtc_update(crtc->base.id, new->bw_ctl, > + new->core_clk_rate, stop_req, update_bus, update_clk); > + > + if (update_bus) { > + ret = _dpu_core_perf_crtc_update_bus(kms, crtc); > + if (ret) { > + DPU_ERROR("crtc-%d: failed to update bus bw vote\n", > + crtc->base.id); > + return ret; > } > } > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h > index 37f518815eb7..d2097ef3d716 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h > @@ -42,8 +42,8 @@ enum dpu_core_perf_data_bus_id { > * @core_clk_rate: core clock rate request > */ > struct dpu_core_perf_params { > - u64 max_per_pipe_ib[DPU_CORE_PERF_DATA_BUS_ID_MAX]; > - u64 bw_ctl[DPU_CORE_PERF_DATA_BUS_ID_MAX]; > + u64 max_per_pipe_ib; > + u64 bw_ctl; > u64 core_clk_rate; > }; > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c > index dfdfa766da8f..c4db60a8672d 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c > @@ -1235,19 +1235,14 @@ static int dpu_crtc_debugfs_state_show(struct seq_file *s, void *v) > { > struct drm_crtc *crtc = (struct drm_crtc *) s->private; > struct dpu_crtc *dpu_crtc = to_dpu_crtc(crtc); > - int i; > > seq_printf(s, "client type: %d\n", dpu_crtc_get_client_type(crtc)); > seq_printf(s, "intf_mode: %d\n", dpu_crtc_get_intf_mode(crtc)); > seq_printf(s, "core_clk_rate: %llu\n", > dpu_crtc->cur_perf.core_clk_rate); > - for (i = DPU_CORE_PERF_DATA_BUS_ID_MNOC; > - i < DPU_CORE_PERF_DATA_BUS_ID_MAX; i++) { > - seq_printf(s, "bw_ctl[%d]: %llu\n", i, > - dpu_crtc->cur_perf.bw_ctl[i]); > - seq_printf(s, "max_per_pipe_ib[%d]: %llu\n", i, > - dpu_crtc->cur_perf.max_per_pipe_ib[i]); > - } > + seq_printf(s, "bw_ctl: %llu\n", dpu_crtc->cur_perf.bw_ctl); > + seq_printf(s, "max_per_pipe_ib: %llu\n", > + dpu_crtc->cur_perf.max_per_pipe_ib); > > return 0; > } > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h > index 8bb46090bd16..1d68e214795e 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h > @@ -146,16 +146,12 @@ TRACE_EVENT(dpu_trace_counter, > ) > > TRACE_EVENT(dpu_perf_crtc_update, > - TP_PROTO(u32 crtc, u64 bw_ctl_mnoc, u64 bw_ctl_llcc, > - u64 bw_ctl_ebi, u32 core_clk_rate, > - bool stop_req, u32 update_bus, u32 update_clk), > - TP_ARGS(crtc, bw_ctl_mnoc, bw_ctl_llcc, bw_ctl_ebi, core_clk_rate, > - stop_req, update_bus, update_clk), > + TP_PROTO(u32 crtc, u64 bw_ctl, u32 core_clk_rate, > + bool stop_req, bool update_bus, bool update_clk), > + TP_ARGS(crtc, bw_ctl, core_clk_rate, stop_req, update_bus, update_clk), > TP_STRUCT__entry( > __field(u32, crtc) > - __field(u64, bw_ctl_mnoc) > - __field(u64, bw_ctl_llcc) > - __field(u64, bw_ctl_ebi) > + __field(u64, bw_ctl) > __field(u32, core_clk_rate) > __field(bool, stop_req) > __field(u32, update_bus) > @@ -163,20 +159,16 @@ TRACE_EVENT(dpu_perf_crtc_update, > ), > TP_fast_assign( > __entry->crtc = crtc; > - __entry->bw_ctl_mnoc = bw_ctl_mnoc; > - __entry->bw_ctl_llcc = bw_ctl_llcc; > - __entry->bw_ctl_ebi = bw_ctl_ebi; > + __entry->bw_ctl = bw_ctl; > __entry->core_clk_rate = core_clk_rate; > __entry->stop_req = stop_req; > __entry->update_bus = update_bus; > __entry->update_clk = update_clk; > ), > TP_printk( > - "crtc=%d bw_mnoc=%llu bw_llcc=%llu bw_ebi=%llu clk_rate=%u stop_req=%d u_bus=%d u_clk=%d", > + "crtc=%d bw_ctl=%llu clk_rate=%u stop_req=%d u_bus=%d u_clk=%d", > __entry->crtc, > - __entry->bw_ctl_mnoc, > - __entry->bw_ctl_llcc, > - __entry->bw_ctl_ebi, > + __entry->bw_ctl, > __entry->core_clk_rate, > __entry->stop_req, > __entry->update_bus, > -- > 2.20.1 > -- Sean Paul, Software Engineer, Google / Chromium OS