[PATCH 2/2] drm/i915/gen7: Clear all EU/L3 residual contexts
Jani Nikula
jani.nikula at intel.com
Fri Jan 31 09:25:35 UTC 2020
On Thu, 30 Jan 2020, Akeem G Abodunrin <akeem.g.abodunrin at intel.com> wrote:
> diff --git a/drivers/gpu/drm/i915/i915_utils.h b/drivers/gpu/drm/i915/i915_utils.h
> index b0ade76bec90..7ac5b3565845 100644
> --- a/drivers/gpu/drm/i915/i915_utils.h
> +++ b/drivers/gpu/drm/i915/i915_utils.h
> @@ -172,6 +172,11 @@ __check_struct_size(size_t base, size_t arr, size_t count, size_t *size)
> (typeof(ptr))(__v + 1); \
> })
>
> +#define ptr_align(ptr, align) ({ \
> + unsigned long __v = (unsigned long)(ptr); \
> + (typeof(ptr))round_up(__v, (align)); \
> +})
> +
There's PTR_ALIGN() in include/kernel.h.
BR,
Jani.
--
Jani Nikula, Intel Open Source Graphics Center
More information about the dri-devel
mailing list