[Intel-xe] [PATCH 1/3] drm/xe: Introduce a module parameter to control IAF
David Kershner
david.kershner at intel.com
Wed Jun 21 19:41:23 UTC 2023
Add a new module parameter to control enable/disable of the IAF
feature.
Signed-off-by: David Kershner <david.kershner at intel.com>
---
drivers/gpu/drm/xe/Makefile | 1 +
drivers/gpu/drm/xe/xe_iaf.c | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
create mode 100644 drivers/gpu/drm/xe/xe_iaf.c
diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
index 081c57fd8632..b2a992884c0f 100644
--- a/drivers/gpu/drm/xe/Makefile
+++ b/drivers/gpu/drm/xe/Makefile
@@ -75,6 +75,7 @@ xe-y += xe_bb.o \
xe_hw_fence.o \
xe_huc.o \
xe_huc_debugfs.o \
+ xe_iaf.o \
xe_irq.o \
xe_lrc.o \
xe_migrate.o \
diff --git a/drivers/gpu/drm/xe/xe_iaf.c b/drivers/gpu/drm/xe/xe_iaf.c
new file mode 100644
index 000000000000..0049e6854f80
--- /dev/null
+++ b/drivers/gpu/drm/xe/xe_iaf.c
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright © 2023 Intel Corporation
+ */
+
+#include <linux/moduleparam.h>
+
+/*
+ * This module parameter is needed because SRIOV PF and IAF are mutually
+ * exclusive (see HSDES #14014623804). Until this is fixed, the driver
+ * needs to be able to enable/disable the IAF infrastructure (specifically
+ * Device Physical Addressing). Since there will be no enable/disable for the
+ * SRIOV PF path, this parameter is needed to explicitly disable IAF when
+ * SRIOV PF is required.
+ */
+static bool xe_enable_iaf;
+module_param_named(enable_iaf, xe_enable_iaf, bool, 0400);
+MODULE_PARM_DESC(enable_iaf, "Enable IAF feature (default: true)");
--
2.35.1
More information about the Intel-xe
mailing list