From patchwork Fri Jun 9 10:26:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9777943 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 AC2EA60350 for ; Fri, 9 Jun 2017 10:26:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C79A285E8 for ; Fri, 9 Jun 2017 10:26:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9123128604; Fri, 9 Jun 2017 10:26:40 +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 5CD49285E8 for ; Fri, 9 Jun 2017 10:26:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E4B8A6E5B7; Fri, 9 Jun 2017 10:26:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2F5096E5A7; Fri, 9 Jun 2017 10:26:31 +0000 (UTC) Received: by mail-wr0-x243.google.com with SMTP id v104so5932570wrb.0; Fri, 09 Jun 2017 03:26:31 -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=eQJevoebJ9mtwYYkrkEL8xrS5+L9nSle2FwOCiqRtqY=; b=CNNw49oEDASTkpXo98z79dYUWf27xnpOQVnCz0fN1ntaySpiOfW7T/fK8s3FTNB0G6 BHD2K2A5NnscpKi5xk9pMdTy7KJ9kcRMMadneGQDDc/mUxR9m7si1xyVXPN21f123XyK y2ENIEh2KNFzjwRM4G6PHE9y+n4BZxU43mJyTzv3V49NBirKiHDwGzFZ4yMRV1cokKNO 9CkV9b1vuMLfOusa8Uxv1uLWI08qzLRVrUMzt2oQ3M8eWrniJa5PIEv7EfCrslKGUkfc eYzRCr2gJ7gq2+xLm1TsWdhreJOsC8KDeyfkWPiOWtGLYSmDHSVjOdULyb0TTvm7IGtT I0mA== 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=eQJevoebJ9mtwYYkrkEL8xrS5+L9nSle2FwOCiqRtqY=; b=DKduFePpJULiutnlujNmlsR8H3D8SdKVRlyfOslYeeesks+tdK8pweb44YEduMUCOu y8Xe+LTHMv50aRFA/1z8OWCrtszQSF2OkGfewqbkJExo0QYP1AUIvyxoGiG2L855azwK GJjODLvh4Tnatou0GTjTD16DZ0dE35LQSgdkYa0bpOy7+eMNnhqaq5xCZIybQz1IXCPg mtbuNv3q6iqu7KR1b3IUYZxNw0kWEeSYUkIxT1J82cck+deaR2OSsF58AP+jSYj2puZV fz5aAye56fUk4R76wYEoYzm1RFalgrXfG6Bp67Rm+FV9OEiFdlS1iwDAYhTEva5djiqb ol9g== X-Gm-Message-State: AODbwcDiAUp2X7+QXiAbP2psHGQl1bdeZwgtJ20Aiyym7aQJOmAuJuRM dsDq6/5wzubpNmmzzwQ= X-Received: by 10.223.168.2 with SMTP id l2mr28851158wrc.94.1497003989638; Fri, 09 Jun 2017 03:26:29 -0700 (PDT) Received: from localhost.localdomain (213-147-162-44.nat.highway.bob.at. [213.147.162.44]) by smtp.gmail.com with ESMTPSA id s95sm879945wrc.13.2017.06.09.03.26.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 03:26:29 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH 13/21] drm/etnaviv: add SH perf domain Date: Fri, 9 Jun 2017 12:26:10 +0200 Message-Id: <20170609102618.3195-4-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170609102618.3195-1-christian.gmeiner@gmail.com> References: <20170609102618.3195-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 3bda13c..315c49d 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -142,6 +142,59 @@ static const struct etnaviv_pm_domain doms[] = { &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_COUNTERUNTER", + VIVS_MC_PROFILE_CONFIG0_SH_PXL_TEXLD_INST_COUNTER, + &pipe_reg_read + } + } } };