From patchwork Sun Sep 24 13:15:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9968017 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 E73296020C for ; Sun, 24 Sep 2017 13:17:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8E0D28951 for ; Sun, 24 Sep 2017 13:17:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDCA628C0F; Sun, 24 Sep 2017 13:17:27 +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 9556C28951 for ; Sun, 24 Sep 2017 13:17:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D682A6E152; Sun, 24 Sep 2017 13:16:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id B93BE6E27F; Sun, 24 Sep 2017 13:16:30 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id m127so5003009wmm.0; Sun, 24 Sep 2017 06:16:30 -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=pV73DaKeK/8rPz91B369LwaZpk3zWU5WHaIBMFyOA8k=; b=tQXkP6LKZrC7LpLyz5dfxU5IDnLOagTe4cHM0isNd7xp3i6TWBdiAx/qc2/HvYSQMg zk1g0v0ifKwQfj3gQME8r9GMROVLTzjdCYGKjbffyBdyk/NxWoFAYG3RwS13PfswO90v dY7gVflJ4jaHG6zto6ZeDbdSH6YISERjgQvFNdsgVjahssYXU7qTLR6Hz6rqHo5uH4e6 Tn5cYAGkhmH5DWZJLGC6aJLwcnAFvCG9M6r84nNbLFgmPTYm3OWcuQD5ku8/a+a+aLVG HBN+nt5tdZ/OwIkrOl4K/afKe1ZaohugAMWtm/nJe/cr0wKi+RFyjAnLBrPqiMfBHRU/ qDRg== 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=pV73DaKeK/8rPz91B369LwaZpk3zWU5WHaIBMFyOA8k=; b=rA/Y+Sr4AT9q0EuYaiqwbfl1Fz1y3VYKiUC7VrHVtHD6DwHQCz6xG+GqSAe4npnO8K zHYpUX/yytGdeVA1ePt5DOLqaCikVwQsz++lIoEnQEwwZ2lQe5ug5doZ2DDpypoC53HD ls8grzFjddep0vwrLxwMTAcyIt0291eSunvtXSetfWLyNafH3kt61NeIdNb8KRMmdkTn /j6aQ+h15Coa0RVe2AJaHRwjJew8dT+r3g00y/8+IDpyaiUPPPGXAzhW5Er9yMMM3X7g JdmKuks+bl5GDP00E2lNrDluOwiQJso/wpqUf3JbMw7zVVtkuKjBgW1GUj8FYC3pF1BJ OnLw== X-Gm-Message-State: AHPjjUgiN6nxZw5DMWH815FEO+KHKeMsgONOIoI45j0CSPJtvvt/pu9j 4GRYQ4/D855aBks1ZIsaIUYDqg== X-Google-Smtp-Source: AOwi7QCxNihJYy9evkshStu8TjuOxD7JolXqgKi6hHUN9bgUJVZLapN+D/KhFfSf7j+vgdPFHT47JA== X-Received: by 10.28.61.139 with SMTP id k133mr7232014wma.84.1506258989166; Sun, 24 Sep 2017 06:16:29 -0700 (PDT) Received: from localhost.localdomain (194-166-231-209.adsl.highway.telekom.at. [194.166.231.209]) by smtp.gmail.com with ESMTPSA id z51sm5748304wrz.80.2017.09.24.06.16.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 06:16:27 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V5 19/25] drm/etnaviv: add TX perf domain Date: Sun, 24 Sep 2017 15:15:37 +0200 Message-Id: <20170924131543.4066-20-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170924131543.4066-1-christian.gmeiner@gmail.com> References: <20170924131543.4066-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 aa7fe0b954a1..9efa933fc7b1 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_3d[] = { &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 + } + } } };