[Intel-xe] [PATCH] drm/xe: follow up on the patch to fix pvc unload issue

Rodrigo Vivi rodrigo.vivi at intel.com
Wed Apr 5 17:28:30 UTC 2023


On Wed, Apr 05, 2023 at 05:13:03PM +0000, Chang, Bruce wrote:
> created xe_ttm_sys_mgr.h as suggested by Lucas
> also fixed a compile warning found by Lucas
> 
> v2: fix a comment format issue
> 
> Cc: Lucas De Marchi <lucas.demarchi at intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
> Signed-off-by: Bruce Chang <yu.bruce.chang at intel.com>

I pushed this patch to drm-xe-next but as a fixup! for the
original. So it will get autosquashed on our next cleanup rebase.

> ---
>  drivers/gpu/drm/xe/xe_device.c      |  1 +
>  drivers/gpu/drm/xe/xe_device.h      |  1 -
>  drivers/gpu/drm/xe/xe_ttm_sys_mgr.c |  1 +
>  drivers/gpu/drm/xe/xe_ttm_sys_mgr.h | 13 +++++++++++++
>  4 files changed, 15 insertions(+), 1 deletion(-)
>  create mode 100644 drivers/gpu/drm/xe/xe_ttm_sys_mgr.h
> 
> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index 4fb9aff27686..85caf81ae686 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -27,6 +27,7 @@
>  #include "xe_pcode.h"
>  #include "xe_pm.h"
>  #include "xe_query.h"
> +#include "xe_ttm_sys_mgr.h"
>  #include "xe_ttm_stolen_mgr.h"
>  #include "xe_vm.h"
>  #include "xe_vm_madvise.h"
> diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
> index d9d1b09a8e38..d277f8985f7b 100644
> --- a/drivers/gpu/drm/xe/xe_device.h
> +++ b/drivers/gpu/drm/xe/xe_device.h
> @@ -116,5 +116,4 @@ static inline bool xe_device_has_flat_ccs(struct xe_device *xe)
>  }
>  
>  u32 xe_device_ccs_bytes(struct xe_device *xe, u64 size);
> -int xe_ttm_sys_mgr_init(struct xe_device *xe);
>  #endif
> diff --git a/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c b/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c
> index cf5f4f73d4dc..9c2f7d4936d8 100644
> --- a/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c
> +++ b/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c
> @@ -12,6 +12,7 @@
>  
>  #include "xe_bo.h"
>  #include "xe_gt.h"
> +#include "xe_ttm_sys_mgr.h"
>  
>  struct xe_ttm_sys_node {
>  	struct ttm_buffer_object *tbo;
> diff --git a/drivers/gpu/drm/xe/xe_ttm_sys_mgr.h b/drivers/gpu/drm/xe/xe_ttm_sys_mgr.h
> new file mode 100644
> index 000000000000..2f27d9117b54
> --- /dev/null
> +++ b/drivers/gpu/drm/xe/xe_ttm_sys_mgr.h
> @@ -0,0 +1,13 @@
> +/* SPDX-License-Identifier: MIT */
> +/*
> + * Copyright © 2022 Intel Corporation
> + */
> +
> +#ifndef _XE_TTM_SYS_MGR_H_
> +#define _XE_TTM_SYS_MGR_H_
> +
> +struct xe_device;
> +
> +int xe_ttm_sys_mgr_init(struct xe_device *xe);
> +
> +#endif
> -- 
> 2.25.1
> 


More information about the Intel-xe mailing list