From patchwork Sat Jul 22 09:53:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9858073 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 91A27600F5 for ; Sat, 22 Jul 2017 09:56:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BA58285ED for ; Sat, 22 Jul 2017 09:56:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 708DA285F5; Sat, 22 Jul 2017 09:56: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 3A81D285ED for ; Sat, 22 Jul 2017 09:56:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 43D5D6E0A5; Sat, 22 Jul 2017 09:55:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5ABD76E92F; Sat, 22 Jul 2017 09:55:31 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id 65so9423771wmf.0; Sat, 22 Jul 2017 02:55:31 -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=Y9d1ml+AJRztVfBd5uXBChBiZBv55CJIHERkl8bjZiQ=; b=W5GwHEeqoWuK6v3/ol7SG6oKNr9eajyBNAKbRWWA4tJrY2F/AItABc9f735jCR0fSc i6qCNQ8Y6J8KY4nTgCeo4589xZnjIcgLIgs5MJIvEzN7i71XHvwssGuT0MqKHDri3zeD 7MuYy3HoSCYh0LOJxzlLn5aPGQ2e7gYGQ9rsoq5weCkEnixwTwUyEA/M9eVo56AQewvK 1bA9LMJMLT1lmSWPs7I+w0ekflSWsRLBdiWUY9f7/ljtdla8+Sor8m2OzOp4xJF/GPua OTzNicLx6CDSrnD0gYNW7CBkjzqHqtPTqxXhOX1Ne18vOtT4MqwkSgAzaoU0SHqcyFZt 0JAw== 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=Y9d1ml+AJRztVfBd5uXBChBiZBv55CJIHERkl8bjZiQ=; b=Kr+VO36vXFJpSB1bmafO0iOc9DBFoi3dZvBKHXqxLpeymPYuQaZLXlO6GAfxaf/hOH dr141/wNPqF+I12q2cWU+PxvtLhrG4yaEw70bAH0eJvdKfzQw3KzuznJY7ef1YijcbQ1 /axUy/kF9xAmlFx0+AsP9y606HfGVsci6jjvlXrkiO6fVQ9XLLDy/3pYLA+VKp+LGY1G geBifkuEYucdUl/vldDTotbXvJ4n+YpJDqyu+OaMy3eq3/maXHzvfZFAHK4jb5qAg0AT lPJqhLgsaWXpPe7vCZN0au2i5N0vzhYaLBP1AaSPlFbvkfdQ5cRkciff5W4wvioI+Nlb zkLg== X-Gm-Message-State: AIVw113WbOyV1Ufusnbdq7GU4W7FlMVa8+pCkIjrtTphEJp816z3Z5I5 I+R2cvvxDB+2sylI X-Received: by 10.28.8.144 with SMTP id 138mr1187818wmi.8.1500717329814; Sat, 22 Jul 2017 02:55:29 -0700 (PDT) Received: from cp720.fritz.box (91-114-193-248.adsl.highway.telekom.at. [91.114.193.248]) by smtp.gmail.com with ESMTPSA id z192sm2544673wmz.44.2017.07.22.02.55.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Jul 2017 02:55:29 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V2 18/23] drm/etnaviv: add RA perf domain Date: Sat, 22 Jul 2017 11:53:18 +0200 Message-Id: <20170722095323.9964-19-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170722095323.9964-1-christian.gmeiner@gmail.com> References: <20170722095323.9964-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 881762cad07e..726d7627de28 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -256,6 +256,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 + } + } } };