From patchwork Sat Jul 22 09:53:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9858071 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 DAD9B600F5 for ; Sat, 22 Jul 2017 09:56:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4E3E285ED for ; Sat, 22 Jul 2017 09:56:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9C02285F5; Sat, 22 Jul 2017 09:56:29 +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 815BF285ED for ; Sat, 22 Jul 2017 09:56:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AB5776E940; Sat, 22 Jul 2017 09:55:36 +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 C5E9E6E93C; Sat, 22 Jul 2017 09:55:32 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id 184so6802771wmo.3; Sat, 22 Jul 2017 02:55:32 -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=pObLqUg4pr/HeHuTkjTv21Mla8KM0b0vSyVic+s85ZE=; b=F1QA8Br+Iod4nAoU61dMxng1mWz6FN+G4PMBQnXPRN6DnqBjI4byVqSxMKKqmjZU7L NDtjse6zhyvUldGvcQTVYGHdoAOEE0AhWMlGJHdfnq1P9UL78T6IBhy2Jd6Zn6byVOl2 aheJCimhas1HjgglPZDgskH27AMneNuFMBFcTwOlR2LIK8SWTinvTtb3xW400mC+1Ehj n/K3y+dgYZQBww/N8Qe8YzxMKS590V0AQdop0QfJf9It4WRlXtJjPcw/vvSvV94fP9Ro K9Nb2cb+uRyQQ7JYQyMv08PL1sGm+YhXSJEhH/pH5vL3NA6fVoseFvO1QFCgGHtjZpnJ bMMw== 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=pObLqUg4pr/HeHuTkjTv21Mla8KM0b0vSyVic+s85ZE=; b=nZjTfFmjX+KJBD42mY/aP1YgFev29mmLSWB9tVOQEj9ZzqwJ89le4/7TAumNyZ2JAw 55VuFi+pUsniu6bhIB+SaFhiSv102VibDotlK0p+YCX3CFyJCQDWQisCt55jPykdILXy i5L5njgPitoEFXB7uWD4dkyYm5iH6Vow9BS5BVX5CS0e5IpsP50PSmS87I4vND5QXifM yOKi3sbolZbVhDFuX93A+Lb9hpJjwxuf4kUhuxB/RaEiV6w+dufHI3Xbek0EsGSwvVXs QoWcRHEel+rgnyRPmM/rzHIZQvYz+vOKbBbsvlc6wCXxw3uOSkL7AbW/suTXzDMFF6cJ gyKg== X-Gm-Message-State: AIVw110eueRcAa0wVYoHl380KWmtocxwZv7G3gFSTtPDnqq6Re7LkUfz u1z1srlMXpUW+NNC X-Received: by 10.28.168.86 with SMTP id r83mr1154070wme.150.1500717331240; Sat, 22 Jul 2017 02:55:31 -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.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Jul 2017 02:55:30 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V2 19/23] drm/etnaviv: add TX perf domain Date: Sat, 22 Jul 2017 11:53:19 +0200 Message-Id: <20170722095323.9964-20-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 | 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 726d7627de28..6df78a1c4830 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -299,6 +299,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 + } + } } };