From patchwork Fri Jun 9 10:26:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9777947 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 7371760350 for ; Fri, 9 Jun 2017 10:26:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64123285E8 for ; Fri, 9 Jun 2017 10:26:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58F7628604; Fri, 9 Jun 2017 10:26:46 +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 66437285E8 for ; Fri, 9 Jun 2017 10:26:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 972386E5C0; Fri, 9 Jun 2017 10:26:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3060E6E5BC; Fri, 9 Jun 2017 10:26:36 +0000 (UTC) Received: by mail-wr0-x241.google.com with SMTP id u101so5921541wrc.1; Fri, 09 Jun 2017 03:26:36 -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=NX01w2eGf2iqNOTf5DNkpILcjQfx6efzjtRQKTupLs0=; b=VKqe4IGWS7z81NibS5nqmjsI32QaFiczLv2dxPQFvZq95/OwQCyD9FcHVPNKGKKh16 gSWQAEBDo8omLellw4R/HLeTGZ+tazXBvGlT/s/KcY7CmGHLx1V8FWIEL5D8k7tkylMr zfoIbPOb9JP4b89s2fYBKrJgKUomcWZIsLKrYdN2+jb3SMSB18/g4EiVbnLEKOm6Jeuj b+qZtzq00o+rXYxoxFezkelzKh3El6dNfXYDSIbYDuyFXgrK7myeg+4lbw3DdsiwVm7X aCA11G7dLiqJ9XQwPNfoV75+ULedb0NzwJ+unfRlHefHLxFwK84/PRwyXezIPMbZEIfp syGg== 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=NX01w2eGf2iqNOTf5DNkpILcjQfx6efzjtRQKTupLs0=; b=UkhXRo23MYgeAfMFP/BcIm9XsNhHWTwNbFqtzOlBuz/Yc9DGaFmg4j/djvetJvtpGs dkQwDRywgVqEAYYbhHK/qm1ta/zSHMF7Y3ktVeCuzasRRMHL1C6A6HAI9GI+ilFgild5 rfLPtZThekU4tKqbFDsRZjyMZWE+5nAzZS7y4LITdb4pJMHNqbDb3HuXw7xqkLiMpir3 3Zsh1o+uAkd5pjS4BoIbRWIz6GD6+0FA/fA54ySh1Xr/qivq/ytG10sxjXgaSq9pJsCE 0hZF73a2ivkqK1cqJnlsalwt2pgXwdAGflsfCTRAiPQ5JE2Ul8HU+KSXvpT+5raRIsfC Uhbg== X-Gm-Message-State: AODbwcCsZfaTpVZ+tC0mV6AJKAJZecgSQQuYl467H5nMHFPg18Y+LT3+ jLZRvLe17y3YgBPANOw= X-Received: by 10.223.160.44 with SMTP id k41mr20264119wrk.186.1497003994641; Fri, 09 Jun 2017 03:26:34 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 03:26:33 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH 16/21] drm/etnaviv: add RA perf domain Date: Fri, 9 Jun 2017 12:26:13 +0200 Message-Id: <20170609102618.3195-7-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 | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 4e42c90..9243f73 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -251,6 +251,49 @@ static const struct etnaviv_pm_domain doms[] = { &perf_reg_read } } + }, + { + .name = "RA", + .profile_read = VIVS_MC_PROFILE_RA_READ, + .profile_config = VIVS_MC_PROFILE_CONFIG1, + .nr_signals = 7, + .signal = (const struct etnaviv_pm_signal[]) { + { + "VALID_PIXEL_COUNT", + VIVS_MC_PROFILE_CONFIG1_RA_VALID_PIXEL_COUNT, + &perf_reg_read + }, + { + "TOTAL_QUAD_COUNT", + VIVS_MC_PROFILE_CONFIG1_RA_TOTAL_QUAD_COUNT, + &perf_reg_read + }, + { + "VALID_QUAD_COUNT_AFTER_EARLY_Z", + VIVS_MC_PROFILE_CONFIG1_RA_VALID_QUAD_COUNT_AFTER_EARLY_Z, + &perf_reg_read + }, + { + "TOTAL_PRIMITIVE_COUNT", + VIVS_MC_PROFILE_CONFIG1_RA_TOTAL_PRIMITIVE_COUNT, + &perf_reg_read + }, + { + "PIPE_CACHE_MISS_COUNTER", + VIVS_MC_PROFILE_CONFIG1_RA_PIPE_CACHE_MISS_COUNTER, + &perf_reg_read + }, + { + "PREFETCH_CACHE_MISS_COUNTER", + VIVS_MC_PROFILE_CONFIG1_RA_PREFETCH_CACHE_MISS_COUNTER, + &perf_reg_read + }, + { + "CULLED_QUAD_COUNT", + VIVS_MC_PROFILE_CONFIG1_RA_CULLED_QUAD_COUNT, + &perf_reg_read + } + } } };