From patchwork Tue Sep 12 15:11:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 9949439 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 6B4DA6024A for ; Tue, 12 Sep 2017 15:14:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D22B28F37 for ; Tue, 12 Sep 2017 15:14:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5213328F9C; Tue, 12 Sep 2017 15:14:29 +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 6769728F37 for ; Tue, 12 Sep 2017 15:14:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 59B846E682; Tue, 12 Sep 2017 15:14:05 +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 647386E67A; Tue, 12 Sep 2017 15:14:04 +0000 (UTC) Received: by mail-wr0-x243.google.com with SMTP id g50so6388155wra.3; Tue, 12 Sep 2017 08:14:04 -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=tgQzl7E3YYOWdjmhz0Ln6NTHO4ECPQUdQ43ubJYf2CQ=; b=jd2Bk8zYouyMUOIO2lS9dGpEgUADneBGL2YvagdVdL/gh8j8x2BRg9+WmRjHVBcGgN 8ZisdHoTaT0GhME8OD7xSAFLOicWoi7LggnlISPyC+yRLGNxX5qnGqo1VrjeAh5AZOnK 3+JMbnUh+sLD+C0SsTxa/r1DA9ZsgzYTZoK3kUv7aY1eTaumUVklLtZnOd6JjNbks8CG vd2W7nj80A1TEkgNk3wXrrvwGA/fu7h2eAGF5WzydVX1ygS4djd88/TAn2SVMm4zUfMS RKaAZsDuesDMn4e8fLmOASlwTsx6QdSef/etjEtzw2Sbz/5Yk1IbGrRCebRyYaw88wWz /jyg== 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=tgQzl7E3YYOWdjmhz0Ln6NTHO4ECPQUdQ43ubJYf2CQ=; b=WwmltOwtdu5lsfZcHQob9MFqkKnpxevv6xLyhoNNjNGU0/EiN/o3GvF525fHzBUzgH 3D3RLJEjbvI+pQ46vLO9qW+cpNYZ3RzU/dKX5J/Ws82n1TG4n38d+gEQl6EQyEppbqin f2R/LgnIhHXChLSPP5JonE/QOHvIU2pd5PpctE1KEP5P2QOkzMpQm7VK1otS72wc/biR 0vun1ZOIhpxaKzka/iWIPJD3IRAF1FNS+3VBfGrS4BUeOQpxlELMpVw8I1SScBAuNZEa txg3DXkbnTN52MUmf+XHQh7wQfL8Y2KCVjePO9g1LViRc41v2XECoxNglyuPDuMccwg4 UL+Q== X-Gm-Message-State: AHPjjUgMxJjrtbxr21BW9A+thfwde5mRzlej8zgRsCim4XNxaDMGWx4i WAY4qGAcEBZWFnxZ X-Google-Smtp-Source: ADKCNb7N07yUUtaD19a1bfAE5tIFhxvMGjTqCsT+2IxdgaRxrtFktRrTE8I27zGAb40t20DCEb/iUw== X-Received: by 10.223.163.18 with SMTP id c18mr12417632wrb.211.1505229242610; Tue, 12 Sep 2017 08:14:02 -0700 (PDT) Received: from localhost.localdomain (91-115-35-97.adsl.highway.telekom.at. [91.115.35.97]) by smtp.gmail.com with ESMTPSA id 110sm6593819wra.39.2017.09.12.08.13.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Sep 2017 08:14:01 -0700 (PDT) From: Christian Gmeiner To: dri-devel@lists.freedesktop.org Subject: [PATCH V4 20/23] drm/etnaviv: add MC perf domain Date: Tue, 12 Sep 2017 17:11:52 +0200 Message-Id: <20170912151155.4603-21-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170912151155.4603-1-christian.gmeiner@gmail.com> References: <20170912151155.4603-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 fa9b5f4b0ccb..2345c71e164a 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 + } + } } };