public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Govindapillai, Vinod" <vinod.govindapillai@intel.com>
To: "ville.syrjala@linux.intel.com" <ville.syrjala@linux.intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t 07/10] tools/intel_watermark: Dump all ARB_CTL registers on skl+
Date: Mon, 6 Feb 2023 11:26:15 +0000	[thread overview]
Message-ID: <0588d45a0a098378650ec4f9276e6848fd601fde.camel@intel.com> (raw)
In-Reply-To: <20230125045522.18169-7-ville.syrjala@linux.intel.com>

On Wed, 2023-01-25 at 06:55 +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> Dump the ARB_CTL registers on all skl+ platforms as well,
> and decode the "FBC watermark disable" and "IPC enable"
> bits from therein. Those at least are relevant for the
> watermark state.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---

Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>

>  tools/intel_watermark.c | 27 ++++++++++++++++++++++++++-
>  1 file changed, 26 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
> index 66e76e0dd3ef..7e957f0c8e9a 100644
> --- a/tools/intel_watermark.c
> +++ b/tools/intel_watermark.c
> @@ -321,10 +321,13 @@ static void skl_wm_dump(void)
>         uint32_t nv12_buf_cfg[num_pipes][max_planes];
>         uint32_t plane_ctl[num_pipes][max_planes];
>         uint32_t wm_linetime[num_pipes];
> -       uint32_t wm_dbg;
> +       uint32_t arb_ctl, arb_ctl2, wm_dbg;
>  
>         intel_register_access_init(&mmio_data, intel_get_pci_device(), 0, -1);
>  
> +       arb_ctl = read_reg(0x45000);
> +       arb_ctl2 = read_reg(0x45004);
> +
>         for (pipe = 0; pipe < num_pipes; pipe++) {
>                 int num_planes = skl_num_planes(devid, pipe);
>  
> @@ -453,6 +456,22 @@ static void skl_wm_dump(void)
>         }
>         printf("\n");
>  
> +       if (intel_gen(devid) >= 13) {
> +               printf(" ARB_LP_CTL 0x%08x\n", arb_ctl);
> +               printf(" ARB_HP_CTL 0x%08x\n", arb_ctl2);
> +       } else if (intel_gen(devid) >= 12) {
> +               printf("        ARB_CTL 0x%08x\n", arb_ctl);
> +               printf("  ARB_CTL_ABOX1 0x%08x\n", read_reg(0x45800));
> +               printf("  ARB_CTL_ABOX2 0x%08x\n", read_reg(0x45808));
> +               printf("       ARB_CTL2 0x%08x\n", arb_ctl2);
> +               printf(" ARB_CTL2_ABOX1 0x%08x\n", read_reg(0x45804));
> +               printf(" ARB_CTL2_ABOX2 0x%08x\n", read_reg(0x4580c));
> +       } else {
> +               printf("  ARB_CTL 0x%08x\n", arb_ctl);
> +               printf(" ARB_CTL2 0x%08x\n", arb_ctl2);
> +       }
> +       printf("\n");
> +
>         for (pipe = 0; pipe < num_pipes; pipe++) {
>                 uint32_t start, end, size;
>                 uint32_t lines, blocks, enable;
> @@ -583,6 +602,12 @@ static void skl_wm_dump(void)
>                 printf("\n\n\n");
>         }
>  
> +       if (intel_gen(devid) < 13)
> +               printf("FBC watermark: %s\n", endis(!REG_DECODE1(arb_ctl, 15, 1)));
> +       printf("IPC: %s\n", endis(REG_DECODE1(arb_ctl2, 3, 1)));
> +
> +       printf("\n");
> +
>         printf("* plane watermark enabled\n");
>         printf("(x) line watermark if enabled\n");
>  


  reply	other threads:[~2023-02-06 11:26 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-25  4:55 [igt-dev] [PATCH i-g-t 01/10] tools/intel_watermark: Add missing intel_register_access_fini() for skl+ Ville Syrjala
2023-01-25  4:55 ` [igt-dev] [PATCH i-g-t 02/10] tools/intel_watermark: Don't do intel_register_access_fini() too early on hsw/bdw Ville Syrjala
2023-02-06  8:14   ` Govindapillai, Vinod
2023-01-25  4:55 ` [igt-dev] [PATCH i-g-t 03/10] tools/intel_watermark: Add missing newline Ville Syrjala
2023-02-06  8:15   ` Govindapillai, Vinod
2023-01-25  4:55 ` [igt-dev] [PATCH i-g-t 04/10] tools/intel_watermark: Read LP usage from FPGA_DBG on ivb Ville Syrjala
2023-02-06 11:43   ` Govindapillai, Vinod
2023-01-25  4:55 ` [igt-dev] [PATCH i-g-t 05/10] tools/intel_watermark: Extract is_cursor() Ville Syrjala
2023-02-06  8:37   ` Govindapillai, Vinod
2023-01-25  4:55 ` [igt-dev] [PATCH i-g-t 06/10] tools/intel_watermark: Decode plane enable bits for ilk-bdw Ville Syrjala
2023-02-06  8:53   ` Govindapillai, Vinod
2023-01-25  4:55 ` [igt-dev] [PATCH i-g-t 07/10] tools/intel_watermark: Dump all ARB_CTL registers on skl+ Ville Syrjala
2023-02-06 11:26   ` Govindapillai, Vinod [this message]
2023-01-25  4:55 ` [igt-dev] [PATCH i-g-t 08/10] tools/intel_watermark: Use intel_display_ver() Ville Syrjala
2023-02-06 11:30   ` Govindapillai, Vinod
2023-01-25  4:55 ` [igt-dev] [PATCH i-g-t 09/10] tools/intel_watermark: Introduce skl_has_nv12_buf_cfg() Ville Syrjala
2023-02-06 11:32   ` Govindapillai, Vinod
2023-01-25  4:55 ` [igt-dev] [PATCH i-g-t 10/10] tools/intel_watermark: Decode SAGV WM usage correctly on ADL+ Ville Syrjala
2023-02-06 11:40   ` Govindapillai, Vinod
2023-01-25  6:02 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,01/10] tools/intel_watermark: Add missing intel_register_access_fini() for skl+ Patchwork
2023-01-25 12:27 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-02-06  8:12 ` [igt-dev] [PATCH i-g-t 01/10] " Govindapillai, Vinod

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=0588d45a0a098378650ec4f9276e6848fd601fde.camel@intel.com \
    --to=vinod.govindapillai@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=ville.syrjala@linux.intel.com \
    /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