drm-xe-clean-up-fault-injection-usage.patch removed from -mm tree
The quilt patch titled
Subject: drm/xe: clean up fault injection usage
has been removed from the -mm tree. Its filename was
drm-xe-clean-up-fault-injection-usage.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Jani Nikula <[email protected]>
Subject: drm/xe: clean up fault injection usage
Date: Tue, 13 Aug 2024 15:12:37 +0300
With the proper stubs in place in linux/fault-inject.h, we can remove a bunch of conditional compilation for CONFIG_FAULT_INJECTION=n.
Signed-off-by Jani Nikula <[email protected]>
Reviewed-by Thomas Hellström <[email protected]>
Reviewed-by Himal Prasad Ghimiray <[email protected]>
Cc Akinobu Mita <[email protected]>
Cc Lucas De Marchi <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Abhinav Kumar <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Rob Clark <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/gpu/drm/xe/xe_debugfs.c | 7 +------ drivers/gpu/drm/xe/xe_gt.h | 10 ++-------- 2 files changed, 3 insertions(+), 14 deletions(-)
drivers/gpu/drm/xe/xe_debugfs.c renamed from drivers/gpu/drm/xe/xe_debugfs.c~drm-xe-clean-up-fault-injection-usage +1 -6
@@ -6,6 +6,7 @@#include "xe_debugfs.h" #include <linux/debugfs.h> +#include <linux/fault-inject.h> #include <linux/string_helpers.h> #include <drm/drm_debugfs.h>
@@ -26,10 +27,7 @@#include "xe_vm.h" #endif -#ifdef CONFIG_FAULT_INJECTION -#include <linux/fault-inject.h> /* XXX: fault-inject.h is broken */ DECLARE_FAULT_ATTR (gt_reset_failure); -#endif static struct xe_device *node_to_xe (struct drm_info_node *node) {
@@ -214,8 +212,5 @@ void xe_debugfs_register(struct xe_devicfor_each_gt (gt, xe, id)xe_gt_debugfs_register (gt); -#ifdef CONFIG_FAULT_INJECTION fault_create_debugfs_attr ("fail_gt_reset" , root, >_reset_failure); -#endif - }
drivers/gpu/drm/xe/xe_gt.h renamed from drivers/gpu/drm/xe/xe_gt.h~drm-xe-clean-up-fault-injection-usage +2 -8
@@ -6,6 +6,8 @@#ifndef _XE_GT_H_#define _XE_GT_H_ +#include <linux/fault-inject.h> +#include <drm/drm_util.h> #include "xe_device.h"
@@ -19,19 +21,11 @@#define CCS_MASK (gt) (((gt)->info.engine_mask & XE_HW_ENGINE_CCS_MASK) >> XE_HW_ENGINE_CCS0) -#ifdef CONFIG_FAULT_INJECTION -#include <linux/fault-inject.h> /* XXX: fault-inject.h is broken */ extern struct fault_attr gt_reset_failure;static inline bool xe_fault_inject_gt_reset (void ) {return should_fail (>_reset_failure,1 ); } -#else -static inline bool xe_fault_inject_gt_reset (void ) -{ -return false; -} -#endif struct xe_gt *xe_gt_alloc (struct xe_tile *tile);int xe_gt_init_hwconfig (struct xe_gt *gt);
_
Patches currently in -mm which might be from [email protected] are