From patchwork Sat Jul 22 09:53:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9858077 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 15439600F5 for ; Sat, 22 Jul 2017 09:56:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3441285ED for ; Sat, 22 Jul 2017 09:56:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E864C285F5; Sat, 22 Jul 2017 09:56:45 +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 BB7F4285ED for ; Sat, 22 Jul 2017 09:56:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CD3666E1C9; Sat, 22 Jul 2017 09:55:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 37E516E93C; Sat, 22 Jul 2017 09:55:34 +0000 (UTC) Received: by mail-wr0-x241.google.com with SMTP id y67so12969785wrb.3; Sat, 22 Jul 2017 02:55:34 -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=FYi1aty5EchRK0ptB2m3MRykRhPzwbWqn2LN6AaGgV4=; b=jdbgo9+7LJS/o6vATk52jm6JcPA69hC9nxgn56dQakYHYSrtXDA+rWQrLfrkz3VzEP CNiuAuff8uMm8IuQ6R/osKJfP/7bWKsOO/aZvYaJv75pGFCvIF/qh/fzOZn3uroltGAp xPABN9vGmhBP/9rqF+yU67Gc/mZbIeyIbn0fzYfUiLMp2v7UYEmWeVWwvc29QZbu1yiT Zld2RHnKOroPnMIngehXqlxx3MkyhzfJvCKUYaFziKYCYrKJWFusTFuP/5jWoV5uz/pt P2tZYRPqMNmdc9/zHiOfNUp8FcFkxZudLpEEXdpStpsGfd4iD0mfX5RUiNxkIKlkFfld DmiA== 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=FYi1aty5EchRK0ptB2m3MRykRhPzwbWqn2LN6AaGgV4=; b=pnLR8kDAMK990d69Ou4Kuat1J7Fdu/lMHeUQDz/ieSbxDHPdGRmv2ncAyYt9oHv+h4 v/9F2eDMOEm6PuvFw6xiWIpJg6iFS9SylUcheQIr2LUqD7oEG9nRHY1pC0sf7ZCONCqH LDmDJicmfUeno3yRpcEQOmbcQC6X4aaCc9YdWaGMhpALjw6iUmYV66QAbiBcrOxD0f/o 6O9KEKpup5Tq+2egq/YdFU5moUgNtQel01P2CCF6P22B6OER3ZSBZT86cha+tiub8imK 1lLrVPidI6w6HK0h/62bxs2MlE7DJV+VOHd4qhwuUvRdp4xkTID3XZSGVncIGq28neyv AgTg== X-Gm-Message-State: AIVw113U9W3iZWo3/vX/7bZn5VMyVaX/O6MhNTxxU5BJHyffaxrYgRqu 2dJWUKNQ5NxXnRiF X-Received: by 10.223.173.69 with SMTP id p63mr11179913wrc.25.1500717332607; Sat, 22 Jul 2017 02:55:32 -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.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Jul 2017 02:55:31 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V2 20/23] drm/etnaviv: add MC perf domain Date: Sat, 22 Jul 2017 11:53:20 +0200 Message-Id: <20170722095323.9964-21-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 | 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 6df78a1c4830..8dd99b6787c9 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -352,6 +352,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 + } + } } };