From patchwork Fri Jun 9 10:26:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9777955 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 19B0060350 for ; Fri, 9 Jun 2017 10:27:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 078D7285E8 for ; Fri, 9 Jun 2017 10:27:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F028E28604; Fri, 9 Jun 2017 10:27: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 A28D3285E8 for ; Fri, 9 Jun 2017 10:27:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 542A26E5D2; Fri, 9 Jun 2017 10:26:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id F0D0C6E5C0; Fri, 9 Jun 2017 10:26:37 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id g15so11040788wmc.2; Fri, 09 Jun 2017 03:26:37 -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=y1w8EyAClVWZ+FB9/YPxvmb7seTdY2dGLHm0uamiO5Q=; b=qqHVtUNy5m8y/PSUtEkf8neJpctY4fduGbU/ryqTzpYBq96Tfz17MJ66MsF4UIgvYG ZuNfTCacvASAy6MEEgm0lOYscWGG4KS3gZOeaqFDfjpLu/Ikkx1RgihAhEph4NA0pE0N E1R/nhcjvaOQhI7LilIWQJh91XN7NZcXE5alHaOmx7HQ77YgbJSz6H0wYA/rqd6clRkO 0RqaYGEudh6VGW2Xgr57D83SRMD1yb3A+QBrYGqxjBzSCDktAXBkqtq1KmfgmYXUesTh LLvDONzDINGeiY65GkKvKQQKlFpI/VEqQH+9AagvTHS+e9xVjsvH6BlK624e4mmzOC7V ZdrQ== 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=y1w8EyAClVWZ+FB9/YPxvmb7seTdY2dGLHm0uamiO5Q=; b=YP7JkKBv2n3Z0yBylPAvmY8Z4H8TncKn614nqwBsfU/ug2MCcb/HaP/bmBOE7qb/BT VNwsCMcaUUeyuiwZ+ebHReO4MTxNxKhpJuv5XRmGc/1nft5O1bOJR4fXb+rWbzup0O+c oAnPMgZHY7jWeBMMZxGALu9z+q4EWS8XyvRMdy4y+pj1WzEgOtGM0gZIOPN6X2ZPB4Sd Bm5STOb5uvObLB5ZVlC819wXlzS+LTySagXp56jcSz6ogXaoUPntN5JRC/MT7s/RdCjv nauidu6E4FWuwsX0NOdm937iu2wHTsIqrSoC22EZ5+o29q0daS4bAHrXi5tmEcM0Yy8r i88Q== X-Gm-Message-State: AODbwcARUymSHaOCD97ltNdNOPo2/KnG5mPqKO+dj1DSv8dKOx3PXFmf 9y/PKzwrEd9k+X2QOCQ= X-Received: by 10.28.4.21 with SMTP id 21mr4433097wme.24.1497003996187; Fri, 09 Jun 2017 03:26:36 -0700 (PDT) Received: from localhost.localdomain (213-147-162-44.nat.highway.bob.at. [213.147.162.44]) by smtp.gmail.com with ESMTPSA id s95sm879945wrc.13.2017.06.09.03.26.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 03:26:35 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH 17/21] drm/etnaviv: add TX perf domain Date: Fri, 9 Jun 2017 12:26:14 +0200 Message-Id: <20170609102618.3195-8-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170609102618.3195-1-christian.gmeiner@gmail.com> References: <20170609102618.3195-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 9243f73..c5bcbb3 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 + } + } } };