From: Martin Peres <martin.peres-GANU6spQydw@public.gmane.org>
To: Karol Herbst <nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>,
nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Karol Herbst <git-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
Subject: Re: [PATCH 2/4] pmu/fuc: add macros for pdaemon pwr counters
Date: Sun, 14 Feb 2016 23:14:27 +0200 [thread overview]
Message-ID: <56C0EE33.9080705@free.fr> (raw)
In-Reply-To: <1445883189-4407-3-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
On 26/10/15 20:13, Karol Herbst wrote:
> From: Karol Herbst <git@karolherbst.de>
>
> ---
> drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc b/drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc
> index c5ec61f..86b8fd4 100644
> --- a/drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc
> +++ b/drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc
> @@ -66,6 +66,29 @@
> #define NV_PPWR_RFIFO_GET 0x04cc
> #define NV_PPWR_H2D 0x04d0
> #define NV_PPWR_D2H 0x04dc
> +#define NV_PPWR_COUNTER_MASK(i) (0x10 * (i) + 0x0504)
> +#define NV_PPWR_COUNTER_COUNT(i) (0x10 * (i) + 0x0508)
> +#define NV_PPWR_COUNTER_COUNT_RESET 0x80000000
> +#define NV_PPWR_COUNTER_MODE(i) (0x10 * (i) + 0x050c)
> +#define NV_PPWR_COUNTER_MODE_NEVER 0
> +#define NV_PPWR_COUNTER_MODE_IF_ALL 1
> +#define NV_PPWR_COUNTER_MODE_IF_NOT_ALL 2
> +#define NV_PPWR_COUNTER_MODE_ALWAYS 3
> +#define NV_PPWR_COUNTER_SIG_GR_IDLE 0x00000001
> +#define NV_PPWR_COUNTER_SIG_GR_HUB_IDLE 0x00000002
> +#define NV_PPWR_COUNTER_SIG_GR_GPC_IDLE 0x00000004
> +#define NV_PPWR_COUNTER_SIG_GR_ROP_IDLE 0x00000008
> +#define NV_PPWR_COUNTER_SIG_PVLD_IDLE 0x00000010
> +#define NV_PPWR_COUNTER_SIG_PPDEC_IDLE 0x00000020
> +#define NV_PPWR_COUNTER_SIG_PPPP_IDLE 0x00000040
> +#define NV_PPWR_COUNTER_SIG_BFB_PART0_REQ 0x00000080
> +#define NV_PPWR_COUNTER_SIG_FB_PART0_REQ 0x00000100
> +#define NV_PPWR_COUNTER_SIG_PMFB 0x00001000
> +#define NV_PPWR_COUNTER_SIG_PVENC 0x00020000
> +#define NV_PPWR_COUNTER_SIG_PCOPY0_IDLE 0x00080000
> +#define NV_PPWR_COUNTER_SIG_PCOPY1_IDLE 0x00100000
> +#define NV_PPWR_COUNTER_SIG_PCOPY2_IDLE 0x00200000
> +#define NV_PPWR_COUNTER_SIG_PCIE 0x20000000
> #if NVKM_PPWR_CHIPSET < GK208
> #define NV_PPWR_DSCRATCH(i) (4 * (i) + 0x05d0)
> #endif
Why call the signals _IDLE when they are set when the engine is busy and
cleared when idle? This is why I named the bitfield
gt215_pdaemon_counter_busy_signals in envytools.
With this fixed:
Reviewed-by: Martin Peres <martin.peres@free.fr>
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
next prev parent reply other threads:[~2016-02-14 21:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 18:13 [PATCH 0/4] Add pdaemon load counters Karol Herbst
[not found] ` <1445883189-4407-1-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
2015-10-26 18:13 ` [PATCH 1/4] subdev/pmu/fuc: add gk104 Karol Herbst
[not found] ` <1445883189-4407-2-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
2016-02-14 21:10 ` Martin Peres
2015-10-26 18:13 ` [PATCH 2/4] pmu/fuc: add macros for pdaemon pwr counters Karol Herbst
[not found] ` <1445883189-4407-3-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
2016-02-14 21:14 ` Martin Peres [this message]
2015-10-26 18:13 ` [PATCH 3/4] subdev/pmu/fuc: implement perf Karol Herbst
[not found] ` <1445883189-4407-4-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
2015-10-26 19:19 ` Roy Spliet
2016-02-14 22:02 ` Martin Peres
2015-10-26 18:13 ` [PATCH 4/4] nouveau/debugfs: add interface for current load Karol Herbst
[not found] ` <1445883189-4407-5-git-send-email-nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org>
2015-10-26 18:17 ` Ilia Mirkin
[not found] ` <CAKb7UvjGYgXGCG-SjictQS=GvL1QdDYAY6A4nZYHP6=RFMyxeQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-14 22:36 ` Martin Peres
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=56C0EE33.9080705@free.fr \
--to=martin.peres-ganu6spqydw@public.gmane.org \
--cc=git-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=nouveau-lIBOoy2+GI7scQ4cX5LuPg@public.gmane.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.