From patchwork Wed Jun 20 20:48:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10478701 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A416960383 for ; Wed, 20 Jun 2018 20:48:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94CF228390 for ; Wed, 20 Jun 2018 20:48:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 896FA283AF; Wed, 20 Jun 2018 20:48:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 057C1283A5 for ; Wed, 20 Jun 2018 20:48:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933307AbeFTUsw (ORCPT ); Wed, 20 Jun 2018 16:48:52 -0400 Received: from mail-yw0-f196.google.com ([209.85.161.196]:38276 "EHLO mail-yw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933285AbeFTUsv (ORCPT ); Wed, 20 Jun 2018 16:48:51 -0400 Received: by mail-yw0-f196.google.com with SMTP id w13-v6so344088ywa.5 for ; Wed, 20 Jun 2018 13:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CAg1ZlODEipfJIxKjaCNEsvVp9k8ZNza2t4H/Tk6dJk=; b=MsCPNdq49uBr9lH2Qw41beY+17mGTBx6l9RkQrrBVNv6H0QtlQommmBUBS7DrFoSch VZdfP6C9kpCqVH+l5e10eCxgbcNgVMSt6dQ6FenKZV0OCB4vyVRL4GmwaAPm7kURtRPR n1esKGVkv37e7Vx0T9Ge4DdcoJ9PuUJ71d8yI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CAg1ZlODEipfJIxKjaCNEsvVp9k8ZNza2t4H/Tk6dJk=; b=SRvWo1luWkZ5FUB+TYWy22TSG+65KmpJUQoN8W/ZnGVd8W90dGf7GFtdW1y7JNvh2P VaQiokgCRfADZuK21ppbbjBmv4pQ+2uYCtQsuZvtenI/5J9HHARggwxUhHSkrbC8SLri ptNuUeTszqkEmXJN2LkuHOCEO2/85ZHfnku8J599FPWLZQ15e9dZOZvEbGuJ+YJqb7xr /b5VL6ydS04nSkrwWnVGF3rFSy3RQY0uvAmbkq5pZW4zcXg1I5s6SDc+of0+g2UuTQcI QkZ27q9QO2j4Rpi59/ggN837svZ5JckltWESckL1eEUqXEsQOMOifnB9ZQGt4Y1aZxpZ pBcg== X-Gm-Message-State: APt69E0HInxW9H2nwWlzRWHedZMlBTP1V4Z7wabWstrWX8bLTj4ft1q1 iUOuRSZOx4kFXIa9caVcJNj/yg== X-Google-Smtp-Source: ADUXVKIZLLhoS98t8ZC9wO3dRjfufoFXfHGS+r08Kc85OYS/ZkueAF1/W4vzd0VPFK/hhzRj2Xqtvw== X-Received: by 2002:a81:a38d:: with SMTP id a135-v6mr72636ywh.459.1529527730613; Wed, 20 Jun 2018 13:48:50 -0700 (PDT) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:ad55:b1db:adfe:3b9f]) by smtp.gmail.com with ESMTPSA id p3-v6sm1173865ywh.36.2018.06.20.13.48.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jun 2018 13:48:49 -0700 (PDT) From: Sean Paul To: freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Cc: robdclark@gmail.com, hoegsberg@chromium.org, jsanka@codeaurora.org, abhinavk@codeaurora.org, Sean Paul Subject: [DPU PATCH 09/19] drm/msm: dpu_pingpong: Replace DPU_EVT with tracepoints Date: Wed, 20 Jun 2018 16:48:31 -0400 Message-Id: <20180620204841.56354-10-seanpaul@chromium.org> X-Mailer: git-send-email 2.18.0.rc1.244.gcf134e6275-goog In-Reply-To: <20180620204841.56354-1-seanpaul@chromium.org> References: <20180620204841.56354-1-seanpaul@chromium.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch converts all DPU_EVTs in dpu_pingpong with either a DRM_* log message or a linux tracepoint. Signed-off-by: Sean Paul Reviewed-by: Rajesh Yadav --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c | 3 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c index 84d2176ecafb..12e90b8e5466 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c @@ -18,6 +18,7 @@ #include "dpu_hw_pingpong.h" #include "dpu_dbg.h" #include "dpu_kms.h" +#include "dpu_trace.h" #define PP_TEAR_CHECK_EN 0x000 #define PP_SYNC_CONFIG_VSYNC 0x004 @@ -134,7 +135,7 @@ static int dpu_hw_pp_connect_external_te(struct dpu_hw_pingpong *pp, else cfg &= ~BIT(20); DPU_REG_WRITE(c, PP_SYNC_CONFIG_VSYNC, cfg); - DPU_EVT32(pp->idx - PINGPONG_0, cfg); + trace_dpu_pp_connect_ext_te(pp->idx - PINGPONG_0, cfg); return orig; } diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h index 73f76387803f..9d044f5ce26e 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h @@ -952,6 +952,20 @@ TRACE_EVENT(dpu_vbif_wait_xin_halt_fail, TP_printk("index:%d xin_id:%u", __entry->index, __entry->xin_id) ); +TRACE_EVENT(dpu_pp_connect_ext_te, + TP_PROTO(enum dpu_pingpong pp, u32 cfg), + TP_ARGS(pp, cfg), + TP_STRUCT__entry( + __field( enum dpu_pingpong, pp ) + __field( u32, cfg ) + ), + TP_fast_assign( + __entry->pp = pp; + __entry->cfg = cfg; + ), + TP_printk("pp:%d cfg:%u", __entry->pp, __entry->cfg) +); + #define DPU_ATRACE_END(name) trace_tracing_mark_write(current->tgid, name, 0) #define DPU_ATRACE_BEGIN(name) trace_tracing_mark_write(current->tgid, name, 1) #define DPU_ATRACE_FUNC() DPU_ATRACE_BEGIN(__func__)