[Intel-xe] [PATCH] fixup! drm/xe: fix pvc unload issue

Chang, Bruce yu.bruce.chang at intel.com
Thu Apr 6 20:47:45 UTC 2023


fixed include file orders
added last empty line
fixed copyright year

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>
---
 drivers/gpu/drm/xe/xe_device.c      | 2 +-
 drivers/gpu/drm/xe/xe_device.h      | 1 +
 drivers/gpu/drm/xe/xe_ttm_sys_mgr.c | 3 ++-
 drivers/gpu/drm/xe/xe_ttm_sys_mgr.h | 2 +-
 4 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 85caf81ae686..45d6e5ff47fd 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -27,8 +27,8 @@
 #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_ttm_sys_mgr.h"
 #include "xe_vm.h"
 #include "xe_vm_madvise.h"
 #include "xe_wait_user_fence.h"
diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
index d277f8985f7b..cbae480a2092 100644
--- a/drivers/gpu/drm/xe/xe_device.h
+++ b/drivers/gpu/drm/xe/xe_device.h
@@ -116,4 +116,5 @@ static inline bool xe_device_has_flat_ccs(struct xe_device *xe)
 }
 
 u32 xe_device_ccs_bytes(struct xe_device *xe, u64 size);
+
 #endif
diff --git a/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c b/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c
index 9c2f7d4936d8..5b0674bbb8ed 100644
--- a/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c
+++ b/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c
@@ -4,6 +4,8 @@
  * Copyright (C) 2021-2002 Red Hat
  */
 
+#include "xe_ttm_sys_mgr.h"
+
 #include <drm/drm_managed.h>
 
 #include <drm/ttm/ttm_placement.h>
@@ -12,7 +14,6 @@
 
 #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
index 2f27d9117b54..e8f5cd395b28 100644
--- a/drivers/gpu/drm/xe/xe_ttm_sys_mgr.h
+++ b/drivers/gpu/drm/xe/xe_ttm_sys_mgr.h
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: MIT */
 /*
- * Copyright © 2022 Intel Corporation
+ * Copyright © 2023 Intel Corporation
  */
 
 #ifndef _XE_TTM_SYS_MGR_H_
-- 
2.25.1



More information about the Intel-xe mailing list