From patchwork Sun Sep 24 13:15:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9968015 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 D3DBF6020C for ; Sun, 24 Sep 2017 13:17:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C598228951 for ; Sun, 24 Sep 2017 13:17:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BAB5828C0F; Sun, 24 Sep 2017 13:17:21 +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 86DF628951 for ; Sun, 24 Sep 2017 13:17:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 586276E151; Sun, 24 Sep 2017 13:16:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id A5C5B6E17B; Sun, 24 Sep 2017 13:16:28 +0000 (UTC) Received: by mail-wr0-x244.google.com with SMTP id k20so2993293wre.1; Sun, 24 Sep 2017 06:16:28 -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=mdvpD3O8lPoJoMV83a/9vfpbMkYnDrY7njSQYlB2A68=; b=sf53a54t243Vhr21gm1/hWQltI6OgLuh2N2NlkGs58jrzXJVG0F1sTY4S9ANrn0ZYA 7bQI7bOUmOfKvYbEOuQWt64aOTJbGLpsUaMVKFUqOje4SgGXlekBv/VVKPp9JzoYVt2L aS6i+Ecoaug5nAxhDAdDNEDCI4OqnwL9h8YaJfyjwzObaiQHPieN/KElV+WqF92sweTc iLd+Hr1bA9p0eVt5lLcWq3A18bsdl5nwIU9KoTcmN8lA6rANLt0aPACpvOu9Sa5pcnXO 0aX8p0VQgZkCeGuhdW6IBMKr86yC0cd2s3ilM3DHnbO0BnwgosrylL4xeT31Gk1yI56C w/0w== 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=mdvpD3O8lPoJoMV83a/9vfpbMkYnDrY7njSQYlB2A68=; b=cvb1v60hFasiWmZ7q9dTRP5ezrNWSsYyXJmjDt3pgBbi0Qu14e6bDCp8vhgaqgCTx0 BPP3AECHGO9IM8Lwpax0BlOk9IyjTdTOZMMfI8KxPKppGMu8aUhqpeSEaOJOTEcnNShh eTcesTsQXxNQeqIBuqHqAslqaOMoYkNAESSQelBmG5Kz6duXKRiNuYk7xkeBaaaxSlXN OX9f4WbRDJM1Pb9dsZqhs+p/nxBDWxhawFCG8KNxcEU+j0ZwiKf4FqNnPrbnUhy/ycsl PQ8JtPqdO56+Ntbwm3hygOv2vI+/+vlp2i2XQ/pCJkiogCm5FAChUATkpEjktbFfpYyh 8hZQ== X-Gm-Message-State: AHPjjUgjlFAo2PSFMYctO7RT/MFl7quunVRbkopP/56mpo3nYLAuv45L INGYtd4R3bqb3ZT8AHwtfRvZDg== X-Google-Smtp-Source: AOwi7QC2tTum/19TDemgeFkgmAawi5lSIsFGtc61fQwMhZpTAS71LdDEiAZsyYysub8AEyfTdx9Uyg== X-Received: by 10.223.143.105 with SMTP id p96mr4024146wrb.118.1506258986980; Sun, 24 Sep 2017 06:16:26 -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.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 06:16:25 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V5 18/25] drm/etnaviv: add RA perf domain Date: Sun, 24 Sep 2017 15:15:36 +0200 Message-Id: <20170924131543.4066-19-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 | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 5dbd5b433dc3..aa7fe0b954a1 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -256,6 +256,49 @@ static const struct etnaviv_pm_domain doms_3d[] = { &perf_reg_read } } + }, + { + .name = "RA", + .profile_read = VIVS_MC_PROFILE_RA_READ, + .profile_config = VIVS_MC_PROFILE_CONFIG1, + .nr_signals = 7, + .signal = (const struct etnaviv_pm_signal[]) { + { + "VALID_PIXEL_COUNT", + VIVS_MC_PROFILE_CONFIG1_RA_VALID_PIXEL_COUNT, + &perf_reg_read + }, + { + "TOTAL_QUAD_COUNT", + VIVS_MC_PROFILE_CONFIG1_RA_TOTAL_QUAD_COUNT, + &perf_reg_read + }, + { + "VALID_QUAD_COUNT_AFTER_EARLY_Z", + VIVS_MC_PROFILE_CONFIG1_RA_VALID_QUAD_COUNT_AFTER_EARLY_Z, + &perf_reg_read + }, + { + "TOTAL_PRIMITIVE_COUNT", + VIVS_MC_PROFILE_CONFIG1_RA_TOTAL_PRIMITIVE_COUNT, + &perf_reg_read + }, + { + "PIPE_CACHE_MISS_COUNTER", + VIVS_MC_PROFILE_CONFIG1_RA_PIPE_CACHE_MISS_COUNTER, + &perf_reg_read + }, + { + "PREFETCH_CACHE_MISS_COUNTER", + VIVS_MC_PROFILE_CONFIG1_RA_PREFETCH_CACHE_MISS_COUNTER, + &perf_reg_read + }, + { + "CULLED_QUAD_COUNT", + VIVS_MC_PROFILE_CONFIG1_RA_CULLED_QUAD_COUNT, + &perf_reg_read + } + } } };