From patchwork Fri Aug 25 09:07:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9921485 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 A795960349 for ; Fri, 25 Aug 2017 09:10:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99EA4265B9 for ; Fri, 25 Aug 2017 09:10:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EDF627D4A; Fri, 25 Aug 2017 09:10:10 +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 0BBF127D4D for ; Fri, 25 Aug 2017 09:10:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 64C6E6E827; Fri, 25 Aug 2017 09:08:24 +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 BAF186E83B; Fri, 25 Aug 2017 09:08:04 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id r187so1923628wma.2; Fri, 25 Aug 2017 02:08:04 -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=05WPKVzDrhby8jzfNWhdlTC4mJ/mXR2JSi/jDMS3Wf4=; b=L5Eeyc81+KFC04QlVSU3P2URD7PFM2JOoChdU4uVSRIP4YZ9gRV+A6q8V32NKAl3YA nzWdu79XkZN/iaqV4ks26crQDieJTtKk8Lw+O1jrn8A7gkIU/o1NVudj8Vx73mpAFmMG FkmHO891gLMLJrqzdTcYbS0KJOPglB7XVVtKrTM9i+ZJ+d6XVzejr9AvnZRr7DK4Cvjl eZGOX+/S+QydV//lPUwet6XQ/AEuaSBAaCAuhfrK7dstxTAJ0QHJocjn8wrJZM6NyjRi 7t48mpapyMg3AR8LL7FUoXsNX5u5tz/yJO+CrefefdH8/NrDfNWAmyUhUZ3glhh5iBaX zy/A== 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=05WPKVzDrhby8jzfNWhdlTC4mJ/mXR2JSi/jDMS3Wf4=; b=IOvS04oDGzaHZoUOxMvhDNTrx6d+NBXXa4/ZElGbwCbcNLa+2uvlS1BfePfA2N/MbR /zv5uCc+W8JfP/1MjfI3Ma++T60uFNHFxhtJo1hGV84YUHDnaydzRlp1OsVIpNeqeHk7 7neVlt8Cni+oD0EDK7oBSDtsreGVSbvEfb3rqcdVH3IP98wnrSpcY1QXtyQ1w99FVJhi Q/dVmwC+4F2Xk3rgg/gz6f50ueQ3nQRAjBOEQaXubeiwgr7Gun3f2noV6y7nAJt0CytR eOuJ2KuvqWQ8pQuImSPd0GXWS9Z5DKn2Jw1q2eRBGYQePGf0yprtT3ZQFexuA4ndFj8/ lyBQ== X-Gm-Message-State: AHYfb5gLk2HIlCUrDoc0v/F1oJZ8BqiIemUNLD7t4utyeCDsu9u0w9EZ ez2vLK7Mxf4bIYkG X-Received: by 10.28.141.196 with SMTP id p187mr1158205wmd.142.1503652083247; Fri, 25 Aug 2017 02:08:03 -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.08.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Aug 2017 02:08:02 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V3 17/23] drm/etnaviv: add SE perf domain Date: Fri, 25 Aug 2017 11:07:16 +0200 Message-Id: <20170825090722.14745-18-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 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 041711adfc84..def0507ad7bf 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -233,6 +233,24 @@ static const struct etnaviv_pm_domain doms[] = { &pipe_reg_read } } + }, + { + .name = "SE", + .profile_read = VIVS_MC_PROFILE_SE_READ, + .profile_config = VIVS_MC_PROFILE_CONFIG1, + .nr_signals = 2, + .signal = (const struct etnaviv_pm_signal[]) { + { + "CULLED_TRIANGLE_COUNT", + VIVS_MC_PROFILE_CONFIG1_SE_CULLED_TRIANGLE_COUNT, + &perf_reg_read + }, + { + "CULLED_LINES_COUNT", + VIVS_MC_PROFILE_CONFIG1_SE_CULLED_LINES_COUNT, + &perf_reg_read + } + } } };