[Intel-xe] [PATCH 02/10] fixup! drm/xe/display: Implement display support

Rodrigo Vivi rodrigo.vivi at intel.com
Wed Oct 4 14:04:32 UTC 2023


On Tue, Oct 03, 2023 at 05:34:49PM +0300, Jani Nikula wrote:
> We have an abstraction for "display runtime info", and it's
> DISPLAY_RUNTIME_INFO(). Use it.
> 
> Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>

> ---
>  drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
> index 7c825f129166..f739858d17e2 100644
> --- a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
> +++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
> @@ -90,9 +90,9 @@ static inline struct drm_i915_private *kdev_to_i915(struct device *kdev)
>  #define IP_VER(ver, rel)                ((ver) << 8 | (rel))
>  
>  #define INTEL_DISPLAY_ENABLED(xe) (HAS_DISPLAY((xe)) && !intel_opregion_headless_sku((xe)))
> -#define DISPLAY_VER(xe) ((xe)->info.display_runtime.ip.ver)
> -#define DISPLAY_VER_FULL(xe) IP_VER((xe)->info.display_runtime.ip.ver, \
> -				    (xe)->info.display_runtime.ip.rel)
> +#define DISPLAY_VER(i915)	(DISPLAY_RUNTIME_INFO(i915)->ip.ver)
> +#define DISPLAY_VER_FULL(i915)	IP_VER(DISPLAY_RUNTIME_INFO(i915)->ip.ver, \
> +				       DISPLAY_RUNTIME_INFO(i915)->ip.rel)
>  
>  #define IS_DISPLAY_VER(xe, first, last) ((DISPLAY_VER(xe) >= first && DISPLAY_VER(xe) <= last))
>  #define IS_GRAPHICS_VER(xe, first, last) \
> -- 
> 2.39.2
> 


More information about the Intel-xe mailing list