drm/xe: Allow building as kernel built-in
Subsystems (2)
PATCH v2 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.
Also, allow DRM_XE_DISPLAY to be built-in. But only as long as DRM_I915 isn't, since that results in duplicate symbol errors.
---
v2: Ensure DRM_XE_DISPLAY and DRM_I915 can't both be built-in
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 && (DRM_XE=m || DRM_I915!=y) && HAS_IOPORT select FB_IOMEM_HELPERS if DRM_FBDEV_EMULATION select I2C select I2C_ALGOBIT
Signature · 1 line
2.49.0
Quoted 23 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.Also, allow
DRM_XE_DISPLAYto be built-in. But only as long asDRM_I915isn't, since that results in duplicate symbol errors.Fixes 08987a8b6820 ("drm/xe: Fix build with KUNIT=m")Cc Lucas De Marchi <[email protected]>Cc Thomas Hellström <[email protected]>Cc Jani Nikula <[email protected]>Signed-off-by Harry Austen <[email protected]>---
v2: EnsureDRM_XE_DISPLAYandDRM_I915can't both be built-indrivers/gpu/drm/xe/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/xe/Kconfig +0
-0
drivers/gpu/drm/xe/Kconfig line 4
Quoted 5 lines
drivers/gpu/drm/xe/Kconfig +1
-1@@ -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))
I can't make heads or tails about that. I think expressing the kunit dependency on a separate line like this is both much more common and clear:
depends on KUNIT || KUNIT=n
Quoted 12 lines
drivers/gpu/drm/xe/Kconfig +1
-1select 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 && (DRM_XE=m || DRM_I915!=y) && HAS_IOPORT select FB_IOMEM_HELPERS if DRM_FBDEV_EMULATION select I2C select I2C_ALGOBIT
Signature · 1 line
Jani Nikula, Intel
Quoted 34 lines · Jani Nikula
Quoted 23 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.Also, allow
DRM_XE_DISPLAYto be built-in. But only as long asDRM_I915isn't, since that results in duplicate symbol errors.Fixes 08987a8b6820 ("drm/xe: Fix build with KUNIT=m")Cc Lucas De Marchi <[email protected]>Cc Thomas Hellström <[email protected]>Cc Jani Nikula <[email protected]>Signed-off-by Harry Austen <[email protected]>---
v2: EnsureDRM_XE_DISPLAYandDRM_I915can't both be built-indrivers/gpu/drm/xe/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/xe/Kconfig +0
-0drivers/gpu/drm/xe/Kconfig line 4
Quoted 5 lines
drivers/gpu/drm/xe/Kconfig +1
-1@@ -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))I can't make heads or tails about that. I think expressing the kunit dependency on a separate line like this is both much more common and clear:
Quoted 1 line
depends on KUNIT || KUNIT=n
Ah, yes that looks like it should do the trick and does seem clearer. Will do in v3.
Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/xe/Kconfig +0
-0select 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
Quoted 10 lines
drivers/gpu/drm/xe/Kconfig config DRM_XE · line 57
Quoted 7 lines
drivers/gpu/drm/xe/Kconfig +1
-1config DRM_XE_DISPLAY bool "Enable display support" - depends on DRM_XE && DRM_XE=m && HAS_IOPORT + depends on DRM_XE && (DRM_XE=m || DRM_I915!=y) && HAS_IOPORT select FB_IOMEM_HELPERS if DRM_FBDEV_EMULATION select I2C select I2C_ALGOBIT--
Jani Nikula, Intel
Thanks,
Harry
Patchwork
CI✗ LGCI.VerificationFailed: failure for drm/xe: Allow building as kernel built-in (rev3)
In reply to Harry Austen== Series Details ==
== Series Details ==
Series: drm/xe: Allow building as kernel built-in (rev3)
URL : https://patchwork.freedesktop.org/series/147701/
State : failure
== Summary ==
Address '[email protected]' is not on the allowlist! Exception occurred during validation, bailing out!
Patchwork
CI✗ LGCI.VerificationFailed: failure for drm/xe: Allow building as kernel built-in (rev2)
In reply to Harry Austen== Series Details ==
== Series Details ==
Series: drm/xe: Allow building as kernel built-in (rev2)
URL : https://patchwork.freedesktop.org/series/148280/
State : failure
== Summary ==
Address '[email protected]' is not on the allowlist! Exception occurred during validation, bailing out!