From patchwork Fri Jun 9 10:26:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9777953 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 0CB3360350 for ; Fri, 9 Jun 2017 10:27:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0C43285E8 for ; Fri, 9 Jun 2017 10:27:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3C9128604; Fri, 9 Jun 2017 10:27:04 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9A720285E8 for ; Fri, 9 Jun 2017 10:27:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2B9F36E5D1; Fri, 9 Jun 2017 10:26:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 639B06E5C8; Fri, 9 Jun 2017 10:26:39 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id x3so11072188wme.0; Fri, 09 Jun 2017 03:26:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=A1cOnP7Sm8gTCJbP4NBrP4q/ufzFGfON9xBYQMIj8CU=; b=ZOtilH4JIko119Pg7UTD/83HWXFr3Ih48JT++ZpevzFVrSy5g4yOMa7sekpOCWVUJL zRKKKXpcR+U2ZIEgd44jsKPXsz9v07u/vUjAZA4JJk07uFU9U+Mra5oZDrWlD98zrEzv j77kIy0L0nPQjkpIRtCX7P/fw9bmYmhMYr1NjARlHd4hV0fCmUhrY0ge4OFi1XiYMFWD cdHqJ3I3m5S26actlz5o9z1yKdVWRb3t8lyAK/HchqF412SkgH1bkm8HRPmGLsefXlp9 HkdGVU/awL0z/1guzkaZmAPHh5rcaNN77hEuiZ5e57uPDekB63l36XoDyRopTzY+XK7j kIWw== 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=A1cOnP7Sm8gTCJbP4NBrP4q/ufzFGfON9xBYQMIj8CU=; b=BOFOY5fL0Avbmu/dLOtvt9gUFzNavrWjcdaHhjUkNs+yOCKLgTYHvhD4iz/GUIUc4T +ciJl3Nj5SpoMxYnlFInaBiQkUQ/7liw/P4B1m/tIUACy9/LB3ScrS2O2w/R92XPPqVZ wpUNetVtkgF3OwNLK8U3dlTaK3VEaAfX1dSqlOuA83rZjbrvHubnYI7Fc9bXRO1QXSAX NjQ3jMPi3IDe3FcFVL9Iht69VZiLfMTXt+wAJ19J71MAU5zQdIwoBs/eKHcknnh/feLa b+ufdTtp3EwaLQeZstexVaxlXg520Q0zK+G77L6ZgineIiuZxb2h/CBbnDFd2dJDSaxW kX+Q== X-Gm-Message-State: AODbwcD4BwYWgg5BRojA9jq8YQvsQyfLAeHmnWGf7WDA+RtWKeREJPaW zzydfT4j3kxD0mW2RgM= X-Received: by 10.28.113.200 with SMTP id d69mr7024956wmi.106.1497003997694; Fri, 09 Jun 2017 03:26:37 -0700 (PDT) Received: from localhost.localdomain (213-147-162-44.nat.highway.bob.at. [213.147.162.44]) by smtp.gmail.com with ESMTPSA id s95sm879945wrc.13.2017.06.09.03.26.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 03:26:37 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH 18/21] drm/etnaviv: add MC perf domain Date: Fri, 9 Jun 2017 12:26:15 +0200 Message-Id: <20170609102618.3195-9-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170609102618.3195-1-christian.gmeiner@gmail.com> References: <20170609102618.3195-1-christian.gmeiner@gmail.com> Cc: linux+etnaviv@armlinux.org.uk, etnaviv@lists.freedesktop.org, cphealy@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index c5bcbb3..63acda0 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -347,6 +347,29 @@ static const struct etnaviv_pm_domain doms[] = { &perf_reg_read } } + }, + { + .name = "MC", + .profile_read = VIVS_MC_PROFILE_MC_READ, + .profile_config = VIVS_MC_PROFILE_CONFIG2, + .nr_signals = 3, + .signal = (const struct etnaviv_pm_signal[]) { + { + "TOTAL_READ_REQ_8B_FROM_PIPELINE", + VIVS_MC_PROFILE_CONFIG2_MC_TOTAL_READ_REQ_8B_FROM_PIPELINE, + &perf_reg_read + }, + { + "TOTAL_READ_REQ_8B_FROM_IP", + VIVS_MC_PROFILE_CONFIG2_MC_TOTAL_READ_REQ_8B_FROM_IP, + &perf_reg_read + }, + { + "TOTAL_WRITE_REQ_8B_FROM_PIPELINE", + VIVS_MC_PROFILE_CONFIG2_MC_TOTAL_WRITE_REQ_8B_FROM_PIPELINE, + &perf_reg_read + } + } } };