Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp218880pxa; Fri, 14 Aug 2020 02:07:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz86535S7WtUOvMWqJHi/cfjAhVFn2j7AmcDSktUY2/awAAKfnKz/HC4gE7iLZRENqvEQja X-Received: by 2002:a17:906:4f0f:: with SMTP id t15mr1411396eju.337.1597396031939; Fri, 14 Aug 2020 02:07:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597396031; cv=none; d=google.com; s=arc-20160816; b=GhrLoQpY5nEBUiCV8f8OOIKR6sRbKVUnakEgJFJo9kLaLEgkSHJHPAc341FiPPZaUm duURp9t7i2wuzLwRIaMyk1/PbABJgMR1k+OSYIiIexjHCNNEqoY40J8T52mSB+QXfrLz UcpT6M7WwnuDzueNPWsGHyKbVqYx4b1V+D9j/Scc6Qi6rrdr2T39LoQqFeCzN3zB3Eso cLnoPGreQaLRIsYGT9TZ5K4iKa/Q34i4PqjuIkBI/DipdWk6zmLcocbk+OEQ7AH/lVUY 0iGYBabWu8fmmcdM9B74fr9/RVi4Msxx4/gB28X0GTlVhm2WKBu1C10Jk2jyAH3MMPCX Dynw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FRiW1Elr/x8IcnH5oDivRHtQDqhp3psZM/q1XqqJd+8=; b=XsaNT3oRbUTYvvTd8SiE//HqEhxUKgZhAhciS6NYB0riGhLEHvrp24+IQN7ZTxD75+ rXc2dLl27zOu4bAm527IFCQTp8ntBIl8sHTtOYCBCTfgANU41cKhnXrINr84Hu1NJJxn 5B90/QitkbPQkLTWF237ahh9VlSht1lcsrTU66hgx/BZctNRnuL4wOvWeyITsg+uttG+ w0C5HP2+fDgkXIGnt+rfDOWQ9/DflThlmQj5aUYfZZieLEFCMfgw/TCMNTkjtDg/T5AA VAQegUMLeMybX3eknSGATCILXkk9jdW+07W5Nx7CV4cCNl4EgECFdCjM8kcM4UJG2Ixb ZtlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IaeMj5Yr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v19si5263086ejy.697.2020.08.14.02.06.49; Fri, 14 Aug 2020 02:07:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IaeMj5Yr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727865AbgHNJFd (ORCPT + 99 others); Fri, 14 Aug 2020 05:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727785AbgHNJFc (ORCPT ); Fri, 14 Aug 2020 05:05:32 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB353C061383 for ; Fri, 14 Aug 2020 02:05:31 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id k20so7301384wmi.5 for ; Fri, 14 Aug 2020 02:05: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 :mime-version:content-transfer-encoding; bh=FRiW1Elr/x8IcnH5oDivRHtQDqhp3psZM/q1XqqJd+8=; b=IaeMj5YrQjmeSYlQymZF5ltHBecSzZN1LBxijJpTup6E+ri1rV9KZciVcKE9+xX9Zr zqqex1do9T8NRAOAnsvEe9SCUVdbZ5vgkeWNFiAiG5oOe7yf1WJSWeE/+TTjig4g0CGO C8iby88ZvVnUaBImRH7Eh7NIiWZJMua5dZnMS9NazDHKFwWL86qsQKyazcNcWOy/4Qte /Il56dDTM3YH21sIZOKzgi73ULtlzvxHnV0XL0oaFdfgxA8uY33eT/OkMXFaWg1NaKvE NSZx1QF5gZhixel8bKXip8GrL6yzBW82e7yt+3uRV4UR8YcS2SrRRYfiemMrm7SnUYS+ CywA== 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:mime-version:content-transfer-encoding; bh=FRiW1Elr/x8IcnH5oDivRHtQDqhp3psZM/q1XqqJd+8=; b=t8jJofwjCIYi2JQYfozIf0QtmZrPoEjKWkVMkootGgJknnsIRL1ONRGp29+tOScjE6 /Kub6hXLWm+OWQCDHwcWCu/aMB8M5I99S5inGofEa0Ojw+C3c+bg7ahdh8AnYRIIZQM5 23sPQ6cHb/MkrIYtTmn4DqyIYVkx1lX5HyzIl9ZEoeKKf3JnfhOq9+/jWMbK3EmsBRMo KpicSvo/qCVZoMI8KQ5Rm4yVCsVsOTk3oeEuOzIVhU5zV36Svr+pwoc8SJN56ZJQs4NX i/fmltgT5k8drrW5BEcX+ptTuMhJDE2F2SRfc3ALqSN5Q6OJf9Xge8jGkAt8oKuIu/X2 wN/w== X-Gm-Message-State: AOAM53197SXRuQ3W1noAcdz7oG37tJGvhe1lBNts3P9KeDJ8Rsmk/9ol gBOs3NjrK4/e8Q1aaH3+zwM0vQLLiNiiLA== X-Received: by 2002:a05:600c:4112:: with SMTP id j18mr1573533wmi.187.1597395929922; Fri, 14 Aug 2020 02:05:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 02:05:29 -0700 (PDT) From: Christian Gmeiner To: linux-kernel@vger.kernel.org Cc: cphealy@gmail.com, Christian Gmeiner , Lucas Stach , Russell King , David Airlie , Daniel Vetter , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 2/4] drm/etnaviv: call perf_reg_read(..) Date: Fri, 14 Aug 2020 11:05:02 +0200 Message-Id: <20200814090512.151416-3-christian.gmeiner@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200814090512.151416-1-christian.gmeiner@gmail.com> References: <20200814090512.151416-1-christian.gmeiner@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace the open coded access pattern with a function call. Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 1f0402f7a7de..782732e6ce72 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -58,8 +58,7 @@ static u32 pipe_perf_reg_read(struct etnaviv_gpu *gpu, clock &= ~(VIVS_HI_CLOCK_CONTROL_DEBUG_PIXEL_PIPE__MASK); clock |= VIVS_HI_CLOCK_CONTROL_DEBUG_PIXEL_PIPE(i); gpu_write(gpu, VIVS_HI_CLOCK_CONTROL, clock); - gpu_write(gpu, domain->profile_config, signal->data); - value += gpu_read(gpu, domain->profile_read); + value += perf_reg_read(gpu, domain, signal); } /* switch back to pixel pipe 0 to prevent GPU hang */ -- 2.26.2