From patchwork Fri Aug 25 09:07: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: 9921489 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 641ED60349 for ; Fri, 25 Aug 2017 09:10:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58C1626D05 for ; Fri, 25 Aug 2017 09:10:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DB7327D4A; Fri, 25 Aug 2017 09:10:11 +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 0DC9027E01 for ; Fri, 25 Aug 2017 09:10:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E665B6E814; Fri, 25 Aug 2017 09:08:21 +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 E32226E809; Fri, 25 Aug 2017 09:08:09 +0000 (UTC) Received: by mail-wr0-x244.google.com with SMTP id a47so1099846wra.2; Fri, 25 Aug 2017 02:08:09 -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=hREi/1QLIRKppLWEr4Ixgh/+F5eFIyUEWEpQ9WUon+k=; b=uDPu+dGG1VcFCSjtFSHxqPWIJ6+m7IjfmTzxnwwqVV0rNWxMFJOGFRwz+AJG2+kVb9 KjmVXHG1Ry3Prz2XAMxZHEFwq5Kq/iMSIxd0ACnrykQ4XYi4Ydw9or0BEOYqhlTj+oey IyhFlFpx7n/KFgPd6k+By+8DfGggAV2727BwfUtdnXlbaeBVlxhmzkStsqHNa3Flbqve LkPNHrfTHvZEmD+wjjEg6T+TGJuzogojoopn1xp7D4VWojf960mvT93DVTWKIHLI9VBi GfDlGByfdEaNRhRCkAPlrL9PJq1imAaFbshpbJwvMRhH20ZEouSgr3vdb8FpWoarmhrk 36Qg== 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=hREi/1QLIRKppLWEr4Ixgh/+F5eFIyUEWEpQ9WUon+k=; b=lPgeq0MFkCFASevcGICsyvRPPc87hgTa5zAyRqmyDAyyQQLARvWyo7/uxOXG9VDS0f xstn1nxU7R83kx8B8MxexvwduCKVnCZ2wX5dcPW0YI8XcUa2mmbFB3aIsepvESnLy61h iJ9hlvk7omKbiQJNbblqcZlA+XuIVvbvpzowQBjGX2raZ0MKpVnDrregJYHovRewEpVg uQsTlY1kWe2H7HqwGk0FbQCyMUlHLzlvRxeKPnU7+Ww4mwQgm4tvMOt3q+hSjVRBHKwO Ya3YXFtO8+dGSjvK/zLkdg5rbvn/q9tOHAtv6CZofj7zKklw918r7L+bnXY/DERLWywj j0YA== X-Gm-Message-State: AHYfb5gJ8+PEsessj2tpyiAo40Og7gAM+6qMTCTo2LAb86ZraOOVfAeA QCK/4PBKm6YfIKFs X-Received: by 10.223.197.139 with SMTP id m11mr6266485wrg.217.1503652088359; Fri, 25 Aug 2017 02:08:08 -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.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Aug 2017 02:08:07 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V3 20/23] drm/etnaviv: add MC perf domain Date: Fri, 25 Aug 2017 11:07:19 +0200 Message-Id: <20170825090722.14745-21-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 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 65ec8bb6c5ab..b2ac40dab812 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -347,6 +347,29 @@ static const struct etnaviv_pm_domain doms[] = { &perf_reg_read } } + }, + { + .name = "MC", + .profile_read = VIVS_MC_PROFILE_MC_READ, + .profile_config = VIVS_MC_PROFILE_CONFIG2, + .nr_signals = 3, + .signal = (const struct etnaviv_pm_signal[]) { + { + "TOTAL_READ_REQ_8B_FROM_PIPELINE", + VIVS_MC_PROFILE_CONFIG2_MC_TOTAL_READ_REQ_8B_FROM_PIPELINE, + &perf_reg_read + }, + { + "TOTAL_READ_REQ_8B_FROM_IP", + VIVS_MC_PROFILE_CONFIG2_MC_TOTAL_READ_REQ_8B_FROM_IP, + &perf_reg_read + }, + { + "TOTAL_WRITE_REQ_8B_FROM_PIPELINE", + VIVS_MC_PROFILE_CONFIG2_MC_TOTAL_WRITE_REQ_8B_FROM_PIPELINE, + &perf_reg_read + } + } } };