Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Das, Nirmoy" <nirmoy.das@linux.intel.com>
To: Ashutosh Dixit <ashutosh.dixit@intel.com>, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] lib/i915/perf: Propagate return from unsupported_i915_perf_platform
Date: Wed, 16 Nov 2022 18:28:00 +0100	[thread overview]
Message-ID: <b11c1910-cf14-997e-5a1c-b1e296ebc0c5@linux.intel.com> (raw)
In-Reply-To: <20221116170751.195223-1-ashutosh.dixit@intel.com>

Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>

On 11/16/2022 6:07 PM, Ashutosh Dixit wrote:
> NULL return from unsupported_i915_perf_platform must be propagated up the
> call stack to inform callers of intel_perf_for_devinfo and
> intel_perf_for_fd.
>
> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
> Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/7358
> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> ---
>   lib/i915/perf.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/i915/perf.c b/lib/i915/perf.c
> index 28f37948e52..4a946906a84 100644
> --- a/lib/i915/perf.c
> +++ b/lib/i915/perf.c
> @@ -366,7 +366,7 @@ intel_perf_for_devinfo(uint32_t device_id,
>   			intel_perf_load_metrics_tglgt2(perf);
>   			break;
>   		default:
> -			unsupported_i915_perf_platform(perf);
> +			return unsupported_i915_perf_platform(perf);
>   		}
>   	} else if (devinfo->is_rocketlake) {
>   		intel_perf_load_metrics_rkl(perf);
> @@ -391,7 +391,7 @@ intel_perf_for_devinfo(uint32_t device_id,
>   		else if (is_acm_gt3(&perf->devinfo))
>   			intel_perf_load_metrics_acmgt3(perf);
>   		else
> -			unsupported_i915_perf_platform(perf);
> +			return unsupported_i915_perf_platform(perf);
>   	} else {
>   		return unsupported_i915_perf_platform(perf);
>   	}

  reply	other threads:[~2022-11-16 17:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-16 17:07 [igt-dev] [PATCH i-g-t] lib/i915/perf: Propagate return from unsupported_i915_perf_platform Ashutosh Dixit
2022-11-16 17:28 ` Das, Nirmoy [this message]
2022-11-16 18:41 ` Lionel Landwerlin
2022-11-16 18:59 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-11-17  2:27 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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=b11c1910-cf14-997e-5a1c-b1e296ebc0c5@linux.intel.com \
    --to=nirmoy.das@linux.intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox