[Beignet] [PATCH] Runtime: Fix hang for bsw device with 12 EU

Yang, Rong R rong.r.yang at intel.com
Wed Aug 3 09:02:10 UTC 2016


Pushed.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Xiuli Pan
> Sent: Friday, July 29, 2016 17:53
> To: beignet at lists.freedesktop.org
> Cc: Pan, Xiuli <xiuli.pan at intel.com>
> Subject: [Beignet] [PATCH] Runtime: Fix hang for bsw device with 12 EU
> 
> From: Pan Xiuli <xiuli.pan at intel.com>
> 
> The scrach offset for bsw is calculated as there are 16 EUs, so need bigger
> scrach bo size.
> 
> Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
> ---
>  src/intel/intel_gpgpu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c index
> db967e8..bf52f96 100644
> --- a/src/intel/intel_gpgpu.c
> +++ b/src/intel/intel_gpgpu.c
> @@ -1538,7 +1538,7 @@ intel_gpgpu_set_scratch(intel_gpgpu_t * gpgpu,
> uint32_t per_thread_size)
>    drm_intel_bo* old = gpgpu->scratch_b.bo;
>    uint32_t total = per_thread_size * gpgpu->max_threads;
>    /* Per Bspec, scratch should 2X the desired size, otherwise luxmark may
> hang */
> -  if (IS_HASWELL(gpgpu->drv->device_id))
> +  if (IS_HASWELL(gpgpu->drv->device_id) ||
> + IS_CHERRYVIEW(gpgpu->drv->device_id))
>        total *= 2;
> 
>    gpgpu->per_thread_scratch = per_thread_size;
> --
> 2.7.4
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list