[Intel-gfx] [PATCH 07/22] drm/i915: support creating LMEM objects
Chris Wilson
chris at chris-wilson.co.uk
Fri Sep 27 18:45:24 UTC 2019
Quoting Matthew Auld (2019-09-27 18:33:54)
> +const u32 intel_region_map[] = {
> + [INTEL_MEMORY_SMEM] = BIT(INTEL_SMEM + INTEL_MEMORY_TYPE_SHIFT) | BIT(0),
> + [INTEL_MEMORY_LMEM] = BIT(INTEL_LMEM + INTEL_MEMORY_TYPE_SHIFT) | BIT(0),
> + [INTEL_MEMORY_STOLEN] = BIT(INTEL_STOLEN + INTEL_MEMORY_TYPE_SHIFT) | BIT(0),
> +};
#define REGION_MAP(type, inst) \
BIT(type + SHIFT) | BIT(inst)
BIT(inst) looks odd.
-Chris
More information about the Intel-gfx
mailing list