[igt-dev] [PATCH i-g-t 5/8] tools/intel_watermark: TGL+ can have 4 pipes
Lisovskiy, Stanislav
stanislav.lisovskiy at intel.com
Fri May 14 09:53:35 UTC 2021
On Wed, Apr 14, 2021 at 05:27:51AM +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> Decode pipe D watermark stuff too.
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy at gmail.com>
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
> tools/intel_watermark.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
> index ff373fdb0c6d..657fff20ec7a 100644
> --- a/tools/intel_watermark.c
> +++ b/tools/intel_watermark.c
> @@ -131,6 +131,11 @@ static char endis_ast(bool enabled)
> return enabled ? '*' : ' ';
> }
>
> +static int skl_num_pipes(uint32_t d)
> +{
> + return intel_gen(d) >= 12 ? 4 : 3;
> +}
> +
> static int skl_num_planes(uint32_t d, int pipe)
> {
> int gen = intel_gen(d);
> @@ -269,7 +274,7 @@ static void skl_wm_dump(void)
> {
> struct intel_mmio_data mmio_data;
> int pipe, plane, level;
> - int num_pipes = 3;
> + int num_pipes = skl_num_pipes(devid);
> int max_planes = skl_max_planes(devid);
> int num_levels = 8;
> uint32_t base_addr = 0x70000, addr, wm_offset;
> --
> 2.26.3
>
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
More information about the igt-dev
mailing list