[Intel-gfx] [PATCH v3 05/21] drm/i915: Add memory region information to device_info

Chris Wilson chris at chris-wilson.co.uk
Tue Oct 8 09:11:58 UTC 2019


Quoting Matthew Auld (2019-10-04 18:04:36)
> From: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
> 
> Exposes available regions for the platform. Shared memory will
> always be available.
> 
> Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
> Signed-off-by: Matthew Auld <matthew.auld at intel.com>
> ---
>  drivers/gpu/drm/i915/i915_drv.h          | 2 ++
>  drivers/gpu/drm/i915/intel_device_info.h | 2 ++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index dcbc6e6394fc..b7be46faef2d 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -2129,6 +2129,8 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
>  
>  #define HAS_IPC(dev_priv)               (INTEL_INFO(dev_priv)->display.has_ipc)
>  
> +#define HAS_REGION(i915, i) (INTEL_INFO(i915)->memory_regions & (i))

HAS_REGION() is very unclear.

HAS_MEMORY_REGION() ?
-Chris


More information about the Intel-gfx mailing list