From patchwork Fri Aug 25 09:07: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: 9921483 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 23A2560349 for ; Fri, 25 Aug 2017 09:09:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E8AE203B9 for ; Fri, 25 Aug 2017 09:09:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 026F4206E2; Fri, 25 Aug 2017 09:09:09 +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 8D966203B9 for ; Fri, 25 Aug 2017 09:09:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A43316E82C; Fri, 25 Aug 2017 09:08:13 +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 4E0E46E840; Fri, 25 Aug 2017 09:08:08 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id b189so1902818wmd.4; Fri, 25 Aug 2017 02:08:08 -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=cE0ZK2uSrhLKzisnWGzNLkYMWDUl3n9zR2UrHPoVBE8=; b=iH4pdyp9dI3h1CB+4wfl1NcChYpROmoKnVA7AuvwmmPhtVEQ1fsC8b8p2mjm0ukRG9 q0X0k0UZpnFq/98VHxoPfPF4NzKM7y6UOYAUde7+JF09myuwCYyGuWuE0KxqerSnl7A1 rfWB+U6md2nWZlJAZglaqfs2JEn1weRo91JIT+wNZOzZjTFFlUc+/x+covgtV8LQ8ZLg 8UMYIp9/KaA1byeLRzWYcJ8HBRpxKYR3eESScexgZwwVzUeJ8xulp+ZX5cI7bhUvN5+o 0HcqL5y7fp803oeyL3CkGAXlKse3tbundIYH7+L9/zCECtvEud0y3Cfe7tIMafsxHpe4 FcSw== 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=cE0ZK2uSrhLKzisnWGzNLkYMWDUl3n9zR2UrHPoVBE8=; b=JGqzTW/Z4LeF6gqTlQNwLRGP0ndora+767qwSFz4I+cdJZmVO99/RbnqSiH4L86q8N Lz4xzYDD7ytKJMV8z3pyJ70JRAHsW4D/i9n+OyRod/nNchAIN6n+rhjd4ouh1mNlWGub qh2ifJfotfv5hcXcF9xN4zo0Ro0mw6fW2sM6c1dMIgsE7TwblfbstWvtr2txNm3h+W6P yn4+dMPwTo61rJqLe40AjsH4BsfBFScL5ZCkle4MvMGxWsftmGNvaeIyWCy2ICyzUbAB Fewo+fpn8vV7WCMAxKEVBZdQWImP54+TXsYj67QQCU+oDZIbH92cYTqDZDt1cP4o6b62 DGhQ== X-Gm-Message-State: AHYfb5hSaVWemhyWwiem3AfQ66GrKF/XDHJXhDdXObt1sf2c1TroDl7N tt2zAIZoimkVaFEb X-Received: by 10.28.45.20 with SMTP id t20mr1094797wmt.5.1503652086745; Fri, 25 Aug 2017 02:08:06 -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.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Aug 2017 02:08:05 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V3 19/23] drm/etnaviv: add TX perf domain Date: Fri, 25 Aug 2017 11:07:18 +0200 Message-Id: <20170825090722.14745-20-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 310792c546a6..65ec8bb6c5ab 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -294,6 +294,59 @@ static const struct etnaviv_pm_domain doms[] = { &perf_reg_read } } + }, + { + .name = "TX", + .profile_read = VIVS_MC_PROFILE_TX_READ, + .profile_config = VIVS_MC_PROFILE_CONFIG1, + .nr_signals = 9, + .signal = (const struct etnaviv_pm_signal[]) { + { + "TOTAL_BILINEAR_REQUESTS", + VIVS_MC_PROFILE_CONFIG1_TX_TOTAL_BILINEAR_REQUESTS, + &perf_reg_read + }, + { + "TOTAL_TRILINEAR_REQUESTS", + VIVS_MC_PROFILE_CONFIG1_TX_TOTAL_TRILINEAR_REQUESTS, + &perf_reg_read + }, + { + "TOTAL_DISCARDED_TEXTURE_REQUESTS", + VIVS_MC_PROFILE_CONFIG1_TX_TOTAL_DISCARDED_TEXTURE_REQUESTS, + &perf_reg_read + }, + { + "TOTAL_TEXTURE_REQUESTS", + VIVS_MC_PROFILE_CONFIG1_TX_TOTAL_TEXTURE_REQUESTS, + &perf_reg_read + }, + { + "MEM_READ_COUNT", + VIVS_MC_PROFILE_CONFIG1_TX_MEM_READ_COUNT, + &perf_reg_read + }, + { + "MEM_READ_IN_8B_COUNT", + VIVS_MC_PROFILE_CONFIG1_TX_MEM_READ_IN_8B_COUNT, + &perf_reg_read + }, + { + "CACHE_MISS_COUNT", + VIVS_MC_PROFILE_CONFIG1_TX_CACHE_MISS_COUNT, + &perf_reg_read + }, + { + "CACHE_HIT_TEXEL_COUNT", + VIVS_MC_PROFILE_CONFIG1_TX_CACHE_HIT_TEXEL_COUNT, + &perf_reg_read + }, + { + "CACHE_MISS_TEXEL_COUNT", + VIVS_MC_PROFILE_CONFIG1_TX_CACHE_MISS_TEXEL_COUNT, + &perf_reg_read + } + } } };