drm/xe: Allow building as kernel built-in
Subsystems (2)
PATCH 1/1 drm/xe: Allow building as kernel built-in
Fix Kconfig symbol dependency on KUNIT, which isn't actually required for XE to be built-in. However, if KUNIT is enabled, it must be built-in too.
--- drivers/gpu/drm/xe/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/Kconfig +2 -2
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config DRM_XE tristate "Intel Xe Graphics" - depends on DRM && PCI && MMU && (m || (y && KUNIT=y)) + depends on DRM && PCI && MMU && (m || (y && KUNIT!=m)) select INTERVAL_TREE # we need shmfs for the swappable backing store, and in particular # the shmem_readpage() which depends upon tmpfs
@@ -51,7 +51,7 @@ config DRM_XE config DRM_XE_DISPLAY bool "Enable display support" - depends on DRM_XE && DRM_XE=m && HAS_IOPORT + depends on DRM_XE && HAS_IOPORT select FB_IOMEM_HELPERS if DRM_FBDEV_EMULATION select I2C select I2C_ALGOBIT
Signature · 1 line
2.49.0
Quoted 29 lines · Harry Austen
Fix
Kconfigsymbol dependency on KUNIT, which isn't actually required for XE to be built-in. However, if KUNIT is enabled, it must be built-in too.Fixes 08987a8b6820 ("drm/xe: Fix build with KUNIT=m")Cc Lucas De Marchi <[email protected]>Cc Thomas Hellström <[email protected]>Signed-off-by Harry Austen <[email protected]>---
drivers/gpu/drm/xe/Kconfig| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/xe/Kconfig +0
-0@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-onlyconfig
DRM_XE
tristate "Intel Xe Graphics"drivers/gpu/drm/xe/Kconfig +1
-1- depends on DRM && PCI && MMU && (m || (y && KUNIT=y)) + depends on DRM && PCI && MMU && (m || (y && KUNIT!=m))select
INTERVAL_TREE
# we need shmfs for the swappable backing store, and in particular # theshmem_readpage()which depends upon tmpfsdrivers/gpu/drm/xe/Kconfig +0
-0@@ -51,7 +51,7 @@ config DRM_XEconfig
DRM_XE_DISPLAY
bool "Enable display support"
drivers/gpu/drm/xe/Kconfig config DRM_XE · line 54
Quoted 2 lines
drivers/gpu/drm/xe/Kconfig +1
-1- depends on DRM_XE && DRM_XE=m && HAS_IOPORT + depends on DRM_XE && HAS_IOPORT
this wouldn't work with i915 also built-in. Does it now?
Lucas De Marchi
Quoted 28 lines · Lucas De Marchi
Quoted 27 lines · Harry Austen
Fix
Kconfigsymbol dependency on KUNIT, which isn't actually required for XE to be built-in. However, if KUNIT is enabled, it must be built-in too.Fixes 08987a8b6820 ("drm/xe: Fix build with KUNIT=m")Cc Lucas De Marchi <[email protected]>Cc Thomas Hellström <[email protected]>Signed-off-by Harry Austen <[email protected]>---
drivers/gpu/drm/xe/Kconfig| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/xe/Kconfig +0
-0@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-onlyconfig
DRM_XE
tristate "Intel Xe Graphics"drivers/gpu/drm/xe/Kconfig +1
-1- depends on DRM && PCI && MMU && (m || (y && KUNIT=y)) + depends on DRM && PCI && MMU && (m || (y && KUNIT!=m))select
INTERVAL_TREE
# we need shmfs for the swappable backing store, and in particular # theshmem_readpage()which depends upon tmpfsdrivers/gpu/drm/xe/Kconfig +0
-0@@ -51,7 +51,7 @@ config DRM_XE
Quoted 6 lines
drivers/gpu/drm/xe/Kconfig config DRM_XE · line 54
Quoted 4 lines
config
DRM_XE_DISPLAY
bool "Enable display support"drivers/gpu/drm/xe/Kconfig +1
-1- depends on DRM_XE && DRM_XE=m && HAS_IOPORT + depends on DRM_XE && HAS_IOPORTthis wouldn't work with i915 also built-in. Does it now?
I don't think so.
BR,
Jani.
Signature · 1 line
Jani Nikula, Intel
Quoted 28 lines · Lucas De Marchi
Quoted 27 lines · Harry Austen
Fix
Kconfigsymbol dependency on KUNIT, which isn't actually required for XE to be built-in. However, if KUNIT is enabled, it must be built-in too.Fixes 08987a8b6820 ("drm/xe: Fix build with KUNIT=m")Cc Lucas De Marchi <[email protected]>Cc Thomas Hellström <[email protected]>Signed-off-by Harry Austen <[email protected]>---
drivers/gpu/drm/xe/Kconfig| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/xe/Kconfig +0
-0@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-onlyconfig
DRM_XE
tristate "Intel Xe Graphics"drivers/gpu/drm/xe/Kconfig +1
-1- depends on DRM && PCI && MMU && (m || (y && KUNIT=y)) + depends on DRM && PCI && MMU && (m || (y && KUNIT!=m))select
INTERVAL_TREE
# we need shmfs for the swappable backing store, and in particular # theshmem_readpage()which depends upon tmpfsdrivers/gpu/drm/xe/Kconfig +0
-0@@ -51,7 +51,7 @@ config DRM_XE
Quoted 6 lines
drivers/gpu/drm/xe/Kconfig config DRM_XE · line 54
Quoted 4 lines
config
DRM_XE_DISPLAY
bool "Enable display support"drivers/gpu/drm/xe/Kconfig +1
-1- depends on DRM_XE && DRM_XE=m && HAS_IOPORT + depends on DRM_XE && HAS_IOPORTthis wouldn't work with i915 also built-in. Does it now?
Ah. Just gave this a go and it doesn't work, as you suggest. Perhaps I need to change this to something like the following?:
depends on DRM_XE && (DRM_XE=m || DRM_I915!=y) && HAS_IOPORT
Quoted 2 lines
Lucas De Marchi
Thanks for the review!
Harry
Patchwork
CI✗ LGCI.VerificationFailed: failure for drm/xe: Allow building as kernel built-in
In reply to Harry Austen== Series Details ==
== Series Details ==
Series: drm/xe: Allow building as kernel built-in
URL : https://patchwork.freedesktop.org/series/147701/
State : failure
== Summary ==
Address '[email protected]' is not on the allowlist! Exception occurred during validation, bailing out!