[igt-dev] [PATCH i-g-t 1/4] lib/i915/perf: fix intel_perf_devinfo gen field

Umesh Nerlige Ramappa umesh.nerlige.ramappa at intel.com
Thu Jan 7 00:07:26 UTC 2021


On Mon, Dec 28, 2020 at 05:19:37AM +0200, Lionel Landwerlin wrote:
>Inadvertently left this field uninitialized (or rather at the wrong 0
>value).
>
>Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>

Thanks,
Umesh
>Fixes: 53f8f541caae20 ("lib: Add i915_perf library")
>---
> lib/i915/perf.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/lib/i915/perf.c b/lib/i915/perf.c
>index 53c0a9dcc..ef0f0b437 100644
>--- a/lib/i915/perf.c
>+++ b/lib/i915/perf.c
>@@ -168,6 +168,7 @@ intel_perf_for_devinfo(uint32_t device_id,
> 	 * 2x6 does not have 2 samplers).
> 	 */
> 	perf->devinfo.devid = device_id;
>+	perf->devinfo.gen = devinfo->gen;
> 	perf->devinfo.revision = revision;
> 	perf->devinfo.timestamp_frequency = timestamp_frequency;
> 	perf->devinfo.gt_min_freq = gt_min_freq;
>-- 
>2.30.0.rc2
>


More information about the igt-dev mailing list