From patchwork Sun Sep 24 13:15:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9968007 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 E80E56020C for ; Sun, 24 Sep 2017 13:17:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D734328C23 for ; Sun, 24 Sep 2017 13:17:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB5E428C26; Sun, 24 Sep 2017 13:17:03 +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 70D0928C23 for ; Sun, 24 Sep 2017 13:17:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6B7F96E293; Sun, 24 Sep 2017 13:16:24 +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 4F5546E293; Sun, 24 Sep 2017 13:16:23 +0000 (UTC) Received: by mail-wr0-x244.google.com with SMTP id b9so3000071wra.0; Sun, 24 Sep 2017 06:16:23 -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=6kM40NItF97mIimPMcKC75aN/AYbVfwiLywlneas76U=; b=R79UdCn2gbZDhV4JfNVfKSpry5H1QEULYRyaBeScTOFL16XM0QOrVFWu4HsGq0GFDw dP9sBuWi/ino9Ft7fvdk3KP6+H2Orbv8SSzRjDIJb25OTpwnGoZW43tACJoQ4qLKkfhb PVW8KcEmIl8gI4hI2Kr/Bv4G8TnSFXqtcR3F3NjUg7TCCzMdoEJ4ON6khyFznSz/cznt DJMOoDKFV855DFBoeZl+XFEq7fNdQLdmpowWSTEXhdAQfPoxOw/DdSZi6Dndyoo19MW/ hURNImFCJz9eOYn5dZumYJYCXVUd0YSG1TgUcy28o3hDRc9Cbkf8+RAs7fXpg4+BdU/R cmaw== 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=6kM40NItF97mIimPMcKC75aN/AYbVfwiLywlneas76U=; b=CMcD8p1EVg/3NCaacYYHfpuQR59PRcRaLV7O0Xcj5YYV6VtYKQS3BMfY8huuP/tRIP FKzrJv488gLqgY7Z0iRfIZQS1M+PIoB+TNyEci3Z8ttrHbs9ZMDElnaUASp06T/04VlZ j80WaTX7duaOxksRmuzbhmJ0jF7veu1MsEYQ7OZ3Ia6uhUNhuDv3E2wxB9oNr2xxugVe lODlH6eEZ6rUZ8R3R78rLBh8efUGEQuYgey3Uwhxez8OoasaLwCbPpGUXoFfVIRjwW0g VYMszigrAfhx3z74vxl1JAiU0pRf5yOqdvOULD3Kg5s5uJmFq3d7OP+gKvE6ovwdLMha UNhw== X-Gm-Message-State: AHPjjUgY1/+dA25bsSlZoddaDHyOhnMCxdmKEkoTw9pDA74+WDOb7A3m nJL+rRCxVt+Zl3QwbFZXsLonrA== X-Google-Smtp-Source: AOwi7QBKGCYISE0oAz+yQPC3M6rVYl259gDBKA1uej/xQ9aExePtItEBVyUeuuJDVFUiuYD/9hwnOQ== X-Received: by 10.223.174.201 with SMTP id y67mr4103502wrc.116.1506258981673; Sun, 24 Sep 2017 06:16:21 -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.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 06:16:20 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V5 15/25] drm/etnaviv: add SH perf domain Date: Sun, 24 Sep 2017 15:15:33 +0200 Message-Id: <20170924131543.4066-16-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 9f933feabff2..cdc02c3be64e 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -147,6 +147,59 @@ static const struct etnaviv_pm_domain doms_3d[] = { &pipe_reg_read } } + }, + { + .name = "SH", + .profile_read = VIVS_MC_PROFILE_SH_READ, + .profile_config = VIVS_MC_PROFILE_CONFIG0, + .nr_signals = 9, + .signal = (const struct etnaviv_pm_signal[]) { + { + "SHADER_CYCLES", + VIVS_MC_PROFILE_CONFIG0_SH_SHADER_CYCLES, + &perf_reg_read + }, + { + "PS_INST_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_PS_INST_COUNTER, + &perf_reg_read + }, + { + "RENDERED_PIXEL_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_RENDERED_PIXEL_COUNTER, + &perf_reg_read + }, + { + "VS_INST_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_VS_INST_COUNTER, + &pipe_reg_read + }, + { + "RENDERED_VERTICE_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_RENDERED_VERTICE_COUNTER, + &pipe_reg_read + }, + { + "VTX_BRANCH_INST_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_VTX_BRANCH_INST_COUNTER, + &pipe_reg_read + }, + { + "VTX_TEXLD_INST_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_VTX_TEXLD_INST_COUNTER, + &pipe_reg_read + }, + { + "PXL_BRANCH_INST_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_PXL_BRANCH_INST_COUNTER, + &pipe_reg_read + }, + { + "PXL_TEXLD_INST_COUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_PXL_TEXLD_INST_COUNTER, + &pipe_reg_read + } + } } };