From d6c0d1679185440a716a2fa00fe2da52f75fe7e4 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 11 Jan 2022 14:03:47 +0200 Subject: [PATCH] intel/dev: fixup chv workaround MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We're using the wrong helper to get the subslice total count. Signed-off-by: Lionel Landwerlin Fixes: c24ba6cecbacf2 ("intel/dev: Handle CHV CS thread weirdness in get_device_info_from_fd") Reviewed-by: Tapani Pälli Part-of: --- src/intel/dev/intel_device_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/dev/intel_device_info.c b/src/intel/dev/intel_device_info.c index b05ae0da5ef..af1011b86a6 100644 --- a/src/intel/dev/intel_device_info.c +++ b/src/intel/dev/intel_device_info.c @@ -1521,7 +1521,7 @@ fixup_chv_device_info(struct intel_device_info *devinfo) * available for that PCI ID and then compute the real value from the * subslice information we get from the kernel. */ - const uint32_t subslice_total = intel_device_info_eu_total(devinfo); + const uint32_t subslice_total = intel_device_info_subslice_total(devinfo); const uint32_t eu_total = intel_device_info_eu_total(devinfo); /* Logical CS threads = EUs per subslice * num threads per EU */