Re: [Intel-gfx] [PATCH] drm/i915/query: fix subslice length

2018-11-09 Thread Lionel Landwerlin
On 09/11/2018 00:40, Daniele Ceraolo Spurio wrote: We dump the info as an array of u8, so we want to know the length in number of bytes. Current code is still safe because the variable we use BITS_PER_TYPE on is a u8. Cc: Lionel Landwerlin Cc: Tvrtko Ursulin Signed-off-by: Daniele Ceraolo

Re: [Intel-gfx] [PATCH] drm/i915/query: fix subslice length

2018-11-08 Thread Tvrtko Ursulin
On 09/11/2018 00:40, Daniele Ceraolo Spurio wrote: We dump the info as an array of u8, so we want to know the length in number of bytes. Current code is still safe because the variable we use BITS_PER_TYPE on is a u8. Cc: Lionel Landwerlin Cc: Tvrtko Ursulin Signed-off-by: Daniele Ceraolo

[Intel-gfx] [PATCH] drm/i915/query: fix subslice length

2018-11-08 Thread Daniele Ceraolo Spurio
We dump the info as an array of u8, so we want to know the length in number of bytes. Current code is still safe because the variable we use BITS_PER_TYPE on is a u8. Cc: Lionel Landwerlin Cc: Tvrtko Ursulin Signed-off-by: Daniele Ceraolo Spurio --- drivers/gpu/drm/i915/i915_query.c | 3 +--