On Sun, 3 May 2026 at 10:03, Randy Dunlap <[email protected]> wrote:
>
> Hi,
>
> In linux-next-20260430, I'm seeing build errors on some ARCHes when
> DRM_XE=m (probably just "is set") but HAVE_ARCH_TRANSPARENT_HUGEPAGE
> is not set (not selected) by the ARCH.

I'm seeing this locally on my arm32 builds, Matthew, Thomas?

Dave.

>
> Does drm_gpusvm.c require hugepages?
> Or possibly DRM_XE needs some kind of restriction?
>
> I see build failures on ARCH=alpha, ARCH=openrisc, ARCH=mips (32-bit
> or 64-bit), and ARCH=arm (without ARM_LPAE set).
>
> Example:
> ../drivers/gpu/drm/drm_gpusvm.c: In function 'drm_gpusvm_get_pages':
> ./../include/linux/compiler_types.h:699:45: error: call to 
> '__compiletime_assert_361' declared with attribute error: BUILD_BUG failed
>   699 |         _compiletime_assert(condition, msg, __compiletime_assert_, 
> __COUNTER__)
>       |                                             ^
> ./../include/linux/compiler_types.h:680:25: note: in definition of macro 
> '__compiletime_assert'
>   680 |                         prefix ## suffix();                           
>   \
>       |                         ^~~~~~
> ./../include/linux/compiler_types.h:699:9: note: in expansion of macro 
> '_compiletime_assert'
>   699 |         _compiletime_assert(condition, msg, __compiletime_assert_, 
> __COUNTER__)
>       |         ^~~~~~~~~~~~~~~~~~~
> ../include/linux/build_bug.h:40:37: note: in expansion of macro 
> 'compiletime_assert'
>    40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
>       |                                     ^~~~~~~~~~~~~~~~~~
> ../include/linux/build_bug.h:60:21: note: in expansion of macro 
> 'BUILD_BUG_ON_MSG'
>    60 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
>       |                     ^~~~~~~~~~~~~~~~
> ../include/linux/huge_mm.h:113:28: note: in expansion of macro 'BUILD_BUG'
>   113 | #define HPAGE_PMD_SHIFT ({ BUILD_BUG(); 0; })
>       |                            ^~~~~~~~~
> ../include/linux/huge_mm.h:120:35: note: in expansion of macro 
> 'HPAGE_PMD_SHIFT'
>   120 | #define HPAGE_PMD_SIZE  ((1UL) << HPAGE_PMD_SHIFT)
>       |                                   ^~~~~~~~~~~~~~~
> ../drivers/gpu/drm/drm_gpusvm.c:1560:52: note: in expansion of macro 
> 'HPAGE_PMD_SIZE'
>  1560 |                                                    HPAGE_PMD_SIZE ?
>       |                                                    ^~~~~~~~~~~~~~
> make[6]: *** [../scripts/Makefile.build:289: drivers/gpu/drm/drm_gpusvm.o] 
> Error 1
>
> where include/linux/huge_mm.h:113: says:
>
> #ifdef CONFIG_PGTABLE_HAS_HUGE_LEAVES
> #define HPAGE_PMD_SHIFT PMD_SHIFT
> #define HPAGE_PUD_SHIFT PUD_SHIFT
> #else
> #define HPAGE_PMD_SHIFT ({ BUILD_BUG(); 0; }) <<<<<<<<<<<<<<<<<< line 113
> #define HPAGE_PUD_SHIFT ({ BUILD_BUG(); 0; })
> #endif
>
> --
> ~Randy
>

Reply via email to