[igt-dev] [PATCH i-g-t 2/4] lib/i915/perf: fill up device name

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


On Mon, Dec 28, 2020 at 05:19:38AM +0200, Lionel Landwerlin wrote:
>Forgot to initialize this field.
>
>Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

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

Thanks,
Umesh

>---
> lib/i915/perf.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
>diff --git a/lib/i915/perf.c b/lib/i915/perf.c
>index ef0f0b437..f30833787 100644
>--- a/lib/i915/perf.c
>+++ b/lib/i915/perf.c
>@@ -174,6 +174,11 @@ intel_perf_for_devinfo(uint32_t device_id,
> 	perf->devinfo.gt_min_freq = gt_min_freq;
> 	perf->devinfo.gt_max_freq = gt_max_freq;
>
>+	if (devinfo->codename) {
>+		snprintf(perf->devinfo.devname, sizeof(perf->devinfo.devname),
>+			 "%s", devinfo->codename);
>+	}
>+
> 	/* On Gen11+ the equations from the xml files expect an 8bits
> 	 * mask per subslice, versus only 3bits on prior Gens.
> 	 */
>-- 
>2.30.0.rc2
>


More information about the igt-dev mailing list