From patchwork Fri Aug 14 09:05:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Gmeiner X-Patchwork-Id: 11713867 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 742DD13B1 for ; Fri, 14 Aug 2020 09:05:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 518FA207DA for ; Fri, 14 Aug 2020 09:05:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QIpSp0Zd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 518FA207DA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 35CFA6E2DF; Fri, 14 Aug 2020 09:05:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id 580FD6E2DF; Fri, 14 Aug 2020 09:05:20 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id a14so7695900wra.5; Fri, 14 Aug 2020 02:05:20 -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:mime-version :content-transfer-encoding; bh=iO7mw694Q/zibSe98wvgSj4vZ6umHd/bC+tFMWsB/Lk=; b=QIpSp0ZdPhCXFTpBbXE3c0uql6bwGWCp4VWj1PX6a6Jcw76pc+DGkH5co02Kj8WWbn h/wXjVHnmebPwcobENg+xj4vlFEJxu4HpvojoBNj4Ib2nWehIzKzSdarN2XxcAFE9I9k nRJwH9HEwbgUKi1Ek4JmIk3Nl7EMpvRzoaltRWuYdQmTesmiUqcZnn+W+99xh5rYEwl9 weTT6Gj09mgQTc9ApG9RMWs/MkbxAvtq1JbKLGHkcN6nEpFJfsZLiBA4ESy/KdmJWB7X RnnzosPC67X5suag8e72XwwpKUuDuQan/DUtRIfPloqNmmlij8IKN1L0PS2t/xY52oH5 IHzQ== 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:mime-version :content-transfer-encoding; bh=iO7mw694Q/zibSe98wvgSj4vZ6umHd/bC+tFMWsB/Lk=; b=KuPRdqY27vyvF84Ra6+7M3ypla6X++sbHeM8mFzalLqnfZ/m4ddqFETAIDKvbRR14T Qd42Ygf5XVQv43wMZW2XktQZKJKXRykvWy/S4Z+4wkwHYKF0cwqKWfGNd75DZmBsNDAX 0VWSG8e8cxwagR66p8b/Stv7GP7+Y+MIvb3yRJbU/B1j5f9SoZO6nAcXf0ya1p0KV4wP ZCl5Kv6VcMFUPuKmzRAwu/U0WdSfoSA/XGLOd0NVJh0UHqCBm7gyuWjzwLkTqUPf2ZSp bzlcu3jbiQFeN6eFclTIHAsdWk81g5Z3dPHhPq/3TQwa6RCdXjR2pPea9rhcfcrqQtE/ 6iRQ== X-Gm-Message-State: AOAM530YgONAq9wuY8r7QKxtOrfOx97awCGmndkZMtVBsfeS7xw7AWlI mt2gHA23RHLu/SbpRuSIwXM= X-Google-Smtp-Source: ABdhPJymLYH3K8QMt1MSVRkr+LgMJBwbmUJ/Pd0NyaLN5j3DPjxXJLZ9XYjVxTj8u+VpWCUmq5yr8Q== X-Received: by 2002:adf:e712:: with SMTP id c18mr1907130wrm.92.1597395918946; Fri, 14 Aug 2020 02:05:18 -0700 (PDT) Received: from localhost.localdomain (62-178-82-229.cable.dynamic.surfer.at. [62.178.82.229]) by smtp.gmail.com with ESMTPSA id m14sm14046745wrx.76.2020.08.14.02.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 02:05:16 -0700 (PDT) From: Christian Gmeiner To: linux-kernel@vger.kernel.org Subject: [PATCH 0/4] drm/etnaviv: add total hi bandwidth perf counters Date: Fri, 14 Aug 2020 11:05:00 +0200 Message-Id: <20200814090512.151416-1-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Russell King , cphealy@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This little patch set adds support for the total bandwidth used by HI. The basic hi bandwidth read-out is quite simple but I needed to add some little clean-ups to make it nice looking. Christian Gmeiner (4): drm/etnaviv: rename pipe_reg_read(..) drm/etnaviv: call perf_reg_read(..) drm/etnaviv: add total hi bandwidth perfcounter drm/etnaviv: add pipe_select(..) helper drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 78 ++++++++++++++++------- 1 file changed, 55 insertions(+), 23 deletions(-)