From patchwork Tue Sep 12 15:11:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9949435 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 1CC456024A for ; Tue, 12 Sep 2017 15:14:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F7EF28F9C for ; Tue, 12 Sep 2017 15:14:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0465328FC8; Tue, 12 Sep 2017 15:14:16 +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 7D94E28F9C for ; Tue, 12 Sep 2017 15:14:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 08D776E695; Tue, 12 Sep 2017 15:13:57 +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 B32ED6E699; Tue, 12 Sep 2017 15:13:55 +0000 (UTC) Received: by mail-wr0-x241.google.com with SMTP id g50so6387955wra.3; Tue, 12 Sep 2017 08:13:55 -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=NZjunNc5kKjVxDaMNtB/cpgXXLugD2rl6J5nTN5xWAE=; b=NeV32WND2u1Aa7c7QywkDsgAHQrrz50B+5W1VixgC8gz+JpnoGpe1vo21NHXu/yMcL bV0Yf4nJ7mgWxRrhB5ooblB34E+Op2G/LBFT2apVpoHbRso0WBK3TLk4gtfghjm13W/v QdvQadjO/3qtAKyL2ie95fCv7glNhDBVcYJ7ED5/wADlLUylxZds3H+C30Zmw9gFHS02 bGRez7pUeq/ifjUb5StOG290itoH/gkP89VLWAXDz/lenFjdaYBqb49SqSQB8FB3GJHm mObcVeyfNM4/PLX9AH6FXgTycqeiD5IDMp8IhWRQPC9ii+EpdKDwWInatZ++czvxOWiY F2Jg== 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=NZjunNc5kKjVxDaMNtB/cpgXXLugD2rl6J5nTN5xWAE=; b=ro2H+iVE6Iop4xAfGV+XBNIwvy2EhchNG0/BO2RF4GjdhTxbK2U18UIs859jQQgJdE zB7QMe/t0eIBo/ao3HKwhjqcsCatEeynqdmRHZMTO+OM+xGpoCOz6gXvn3uXxvr32XEz sIuM9YxO2JLO+91TWKze4FoMr6Mx2uxUEhZVAiJlyUA33lp8MuwXWctFbq2i7pGPCcUV mwklIUo6/OChEY724PpNG0F/+/XdmVhl/wp7jTBA1AoQhV5+tK2oeF50DYTdzKZhA+NE /KTDMj9j+gHh7UpJFbhyAExzBeiDVCVOwN9SO09uvSKq4jURSoErsFIuVqx7FYMavDhj UDqA== X-Gm-Message-State: AHPjjUjqGmzKAW4MjQYpyukDDj2vwdbr4BkvQ+RZksOENG19bXBe7wA5 jZOFYpaWMrSMMoFI X-Google-Smtp-Source: ADKCNb4ZIOn9VC7s8ATyQg0gdpX+ssXPoHEAnqOf3aRg1GsvuT5xxUWcuIXPHUHg1zMmA11wzSuD9w== X-Received: by 10.223.195.87 with SMTP id e23mr14600328wrg.77.1505229234121; Tue, 12 Sep 2017 08:13:54 -0700 (PDT) Received: from localhost.localdomain (91-115-35-97.adsl.highway.telekom.at. [91.115.35.97]) by smtp.gmail.com with ESMTPSA id 110sm6593819wra.39.2017.09.12.08.13.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Sep 2017 08:13:53 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V4 18/23] drm/etnaviv: add RA perf domain Date: Tue, 12 Sep 2017 17:11:50 +0200 Message-Id: <20170912151155.4603-19-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170912151155.4603-1-christian.gmeiner@gmail.com> References: <20170912151155.4603-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 c32ad2608d4e..ac92684ee7af 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 + } + } } };