From patchwork Fri Aug 25 09:07:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9921471 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 4FAAC608A6 for ; Fri, 25 Aug 2017 09:08:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43F0F27E01 for ; Fri, 25 Aug 2017 09:08:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 427D327F82; Fri, 25 Aug 2017 09:08:58 +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 7E40B27E01 for ; Fri, 25 Aug 2017 09:08:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C60936E843; Fri, 25 Aug 2017 09:08:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id F30896E838; Fri, 25 Aug 2017 09:08:01 +0000 (UTC) Received: by mail-wr0-x242.google.com with SMTP id z91so1107004wrc.0; Fri, 25 Aug 2017 02:08:01 -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=ilPPYIoIucbwcfKyVSRnwDBX0kczTg401YG9W5ZDXlk=; b=sxUvWQ2ryWETvqB4CO8zWzKqKVeIv7/EQlBT3j/Kl9SoO1ySfVci4M/VnhsVp+wKL+ IedRJ64L3Gk8yU7tWkFce1L8QnM4gHb0vG7D8efoEWtjYFyh1NOE1YkzM5yicpGE4APK +CALcmeDJWFpl4TrLNKlxcpRQWWJCvToznbGuqcoWR7fLBFDlnrz5kBxa8G/LHlwezPm NsZW6FerojM9bMhnJupOOnghmdHYo71ghie0j3zLF/fMHignc4lOdd+Oi01fLfHcOJsN FHNGngvN4OnlA/bbTJhlFPq/Sk6ciVBLFQovv0nIS+VkXChqJH4l5gVXiefc2jtAAXau koCA== 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=ilPPYIoIucbwcfKyVSRnwDBX0kczTg401YG9W5ZDXlk=; b=rhxYjzXfoDsK9C5HPWz+LiZGAA1ryQTeV/7AuYLk0q2Ik7/0yGrXl9dtSDaooZOQPe c68fq0yTCdTgepMHPjnc4VfY4bA2nmThIdJsCNJxl4Lhxx3iObUiTOytODfa/0IbG0cl r0H2xZHZRa5jMpX3aKJmwiyHBYLp6stq83QEzogRAVQamYzsjCDeYACKsipZH0hbDmLt o7W9em8xz4cWBmhr56KFamzTYJC+BgLivqvYgAAQgjDrsHp25tHtIW1Me88EOlrdSdZB 4i6ts6/OZEEOkzDecIe6mpgp6m6CZG1NxvPQZt10kSfSq4btgcus/hD6ayx4RDismexm dxLg== X-Gm-Message-State: AHYfb5gZciyFBilJKlJQlOxoxxcLONw+Qp58KfZCKSxedQ+uNb+VGVrA kqcfkAJFVXuCVOf4 X-Received: by 10.223.152.172 with SMTP id w41mr5411349wrb.202.1503652080215; Fri, 25 Aug 2017 02:08:00 -0700 (PDT) Received: from localhost.localdomain (93-82-124-36.adsl.highway.telekom.at. [93.82.124.36]) by smtp.gmail.com with ESMTPSA id 52sm5782547wrt.38.2017.08.25.02.07.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Aug 2017 02:07:59 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V3 15/23] drm/etnaviv: add SH perf domain Date: Fri, 25 Aug 2017 11:07:14 +0200 Message-Id: <20170825090722.14745-16-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170825090722.14745-1-christian.gmeiner@gmail.com> References: <20170825090722.14745-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 | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 3bda13cc4025..76405b0e8815 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -142,6 +142,59 @@ static const struct etnaviv_pm_domain doms[] = { &pipe_reg_read } } + }, + { + .name = "SH", + .profile_read = VIVS_MC_PROFILE_SH_READ, + .profile_config = VIVS_MC_PROFILE_CONFIG0, + .nr_signals = 9, + .signal = (const struct etnaviv_pm_signal[]) { + { + "SHADER_CYCLES", + VIVS_MC_PROFILE_CONFIG0_SH_SHADER_CYCLES, + &perf_reg_read + }, + { + "PS_INST_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_PS_INST_COUNTER, + &perf_reg_read + }, + { + "RENDERED_PIXEL_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_RENDERED_PIXEL_COUNTER, + &perf_reg_read + }, + { + "VS_INST_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_VS_INST_COUNTER, + &pipe_reg_read + }, + { + "RENDERED_VERTICE_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_RENDERED_VERTICE_COUNTER, + &pipe_reg_read + }, + { + "VTX_BRANCH_INST_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_VTX_BRANCH_INST_COUNTER, + &pipe_reg_read + }, + { + "VTX_TEXLD_INST_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_VTX_TEXLD_INST_COUNTER, + &pipe_reg_read + }, + { + "PXL_BRANCH_INST_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_PXL_BRANCH_INST_COUNTER, + &pipe_reg_read + }, + { + "PXL_TEXLD_INST_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_PXL_TEXLD_INST_COUNTER, + &pipe_reg_read + } + } } };