From patchwork Sun Sep 24 13:15:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9968019 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 2B13D6020C for ; Sun, 24 Sep 2017 13:17:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1CEC928951 for ; Sun, 24 Sep 2017 13:17:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 119C428C0F; Sun, 24 Sep 2017 13:17:34 +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 943B228951 for ; Sun, 24 Sep 2017 13:17:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 415B96E159; Sun, 24 Sep 2017 13:16:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id E3EFD6E152; Sun, 24 Sep 2017 13:16:32 +0000 (UTC) Received: by mail-wr0-x243.google.com with SMTP id n64so2991658wrb.2; Sun, 24 Sep 2017 06:16:32 -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=pwPzhnre/9xxn8HRHlIWgYU5+fuhn3R1JB/4C2UKwe4=; b=NgmUfzeuMf0SlYAaa12L2NNhvCTcUAy1tbe7qHfwkbpGGiZbF3Vvm7YKfvUOiNvo8x Ll3rNIl3mtYedgYFDjlhLAAHHABYD36RtoBesj7CQ/Ht75mqh2lOc7eyNm1mmlHHXKin 57fHXkHeS0JZVORTXfMzOO3TJfPtuPDrXdipmdpodgCdopt60qmS+9Pe6t7kPqkkuqY3 f0dOOVXlvmo4s8z2IetEIqrMsUNVI2XEZ/pURHj/SiRwJ/I2bcYzJdnjUWNcFJUmFJQL /rszojN1ulwA+8yhY3zWIgWsf4OVA5aejv25V4j1rlj9wz7ycvEVYMsc7RsKeCQBepa8 4sgg== 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=pwPzhnre/9xxn8HRHlIWgYU5+fuhn3R1JB/4C2UKwe4=; b=S07dtRF3I1GRIx8Bcb4f/GuATxGxZPu4WVSp2wDd4JN4RrbUacB9O850yd4DKTH9n0 v64na31lwlK+vZSQghWABew1J9KSkuGFlWdqseE4VmJQnBSRURZIO6E5KEFQn2Cg8qay HtZIGqCSarXvOVW62cldAjeRnT7mmM7hv809ImmiY3CcCZ4FP1jMDupVW30PH83+jKMv KbK61rolchU1lTG9ow1msEKfrHEvc1mI5P7NdDEGRpSLNFS8uRW/Jc5oQM0jJavbiPnJ KUOFToGKcI4nptxujrjdn3/5gJVKL8w+QsFASRrU4CVLTujqz+N0xWtR/0n9cKcON3+g NcPw== X-Gm-Message-State: AHPjjUjJHa4FgGevtOo2rA+3s3dyx6SYSLO9/NVJ6f9Q7B24utRRTcfG 9kV4poQSTbbnkADYSQEXmi57nQ== X-Google-Smtp-Source: AOwi7QD5/B+dWmfkB7i8Irj3u0Nkn63NJqQ4xPt+rNSSJ6962B6brgBsz22Z9n2EX7AqdyLk5EtPvw== X-Received: by 10.223.160.221 with SMTP id n29mr3765109wrn.214.1506258991156; Sun, 24 Sep 2017 06:16:31 -0700 (PDT) Received: from localhost.localdomain (194-166-231-209.adsl.highway.telekom.at. [194.166.231.209]) by smtp.gmail.com with ESMTPSA id z51sm5748304wrz.80.2017.09.24.06.16.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 06:16:29 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V5 20/25] drm/etnaviv: add MC perf domain Date: Sun, 24 Sep 2017 15:15:38 +0200 Message-Id: <20170924131543.4066-21-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170924131543.4066-1-christian.gmeiner@gmail.com> References: <20170924131543.4066-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 9efa933fc7b1..768f5aafdd18 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -352,6 +352,29 @@ static const struct etnaviv_pm_domain doms_3d[] = { &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 + } + } } };