From: Lucas Stach <l.stach@pengutronix.de>
To: Christian Gmeiner <christian.gmeiner@gmail.com>,
dri-devel@lists.freedesktop.org
Cc: etnaviv@lists.freedesktop.org, cphealy@gmail.com,
linux+etnaviv@armlinux.org.uk
Subject: Re: [PATCH 20/21] drm/etnaviv: enable debug registers on demand
Date: Mon, 26 Jun 2017 15:46:25 +0200 [thread overview]
Message-ID: <1498484785.2431.17.camel@pengutronix.de> (raw)
In-Reply-To: <20170609102618.3195-11-christian.gmeiner@gmail.com>
Please add a short description, stating that the perfmon registers are
debug regs.
Am Freitag, den 09.06.2017, 12:26 +0200 schrieb Christian Gmeiner:
> Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
> b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
> index 1e23472..faf2925 100644
> --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
> +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
> @@ -1336,6 +1336,11 @@ static void
> sync_point_perfmon_sample_pre(struct etnaviv_gpu *gpu,
> val &= ~VIVS_PM_POWER_CONTROLS_ENABLE_MODULE_CLOCK_GATING;
> gpu_write(gpu, VIVS_PM_POWER_CONTROLS, val);
>
> + /* enable debug register */
> + val = gpu_read(gpu, VIVS_HI_CLOCK_CONTROL);
> + val &= ~VIVS_HI_CLOCK_CONTROL_DISABLE_DEBUG_REGISTERS;
> + gpu_write(gpu, VIVS_HI_CLOCK_CONTROL, val);
> +
> sync_point_perfmon_sample(gpu, event, ETNA_PM_PROCESS_PRE);
> }
>
> @@ -1353,6 +1358,11 @@ static void
> sync_point_perfmon_sample_post(struct etnaviv_gpu *gpu,
> *pmr->bo_vma = pmr->sequence;
> }
>
> + /* disable debug register */
> + val = gpu_read(gpu, VIVS_HI_CLOCK_CONTROL);
> + val |= VIVS_HI_CLOCK_CONTROL_DISABLE_DEBUG_REGISTERS;
> + gpu_write(gpu, VIVS_HI_CLOCK_CONTROL, val);
> +
> /* enable clock gating */
> val = gpu_read(gpu, VIVS_PM_POWER_CONTROLS);
> val |= VIVS_PM_POWER_CONTROLS_ENABLE_MODULE_CLOCK_GATING;
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2017-06-26 13:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-09 10:26 [PATCH 10/21] drm/etnaviv: use 'sync points' for performance monitor requests Christian Gmeiner
2017-06-09 10:26 ` [PATCH 11/21] drm/etnaviv: add HI perf domain Christian Gmeiner
2017-06-09 10:26 ` [PATCH 12/21] drm/etnaviv: add PE " Christian Gmeiner
2017-06-09 10:26 ` [PATCH 13/21] drm/etnaviv: add SH " Christian Gmeiner
2017-06-09 10:26 ` [PATCH 14/21] drm/etnaviv: add PA " Christian Gmeiner
2017-06-09 10:26 ` [PATCH 15/21] drm/etnaviv: add SE " Christian Gmeiner
2017-06-09 10:26 ` [PATCH 16/21] drm/etnaviv: add RA " Christian Gmeiner
2017-06-09 10:26 ` [PATCH 17/21] drm/etnaviv: add TX " Christian Gmeiner
2017-06-09 10:26 ` [PATCH 18/21] drm/etnaviv: add MC " Christian Gmeiner
2017-06-09 10:26 ` [PATCH 19/21] drm/etnaviv: need to disable clock gating when doing profiling Christian Gmeiner
2017-06-26 13:45 ` Lucas Stach
2017-06-09 10:26 ` [PATCH 20/21] drm/etnaviv: enable debug registers on demand Christian Gmeiner
2017-06-26 13:46 ` Lucas Stach [this message]
2017-06-09 10:26 ` [PATCH 21/21] drm/etnaviv: submit supports performance monitor requests Christian Gmeiner
2017-06-26 13:46 ` Lucas Stach
2017-06-26 13:41 ` [PATCH 10/21] drm/etnaviv: use 'sync points' for " Lucas Stach
2017-07-02 18:53 ` Christian Gmeiner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1498484785.2431.17.camel@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=christian.gmeiner@gmail.com \
--cc=cphealy@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=etnaviv@lists.freedesktop.org \
--cc=linux+etnaviv@armlinux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox