Minor batchbuffer handling fixes
Subsystems (2)
cover Minor batchbuffer handling fixes
Xe's internal batchbuffer code is not properly considering the hardware prefetch requirements. It is also emitting duplicate MI_BATCH_BUFFER_END instructions in the workaround batchbuffer.
Matt Roper (3):
drm/xe: Include hardware prefetch buffer in batchbuffer allocations drm/xe: Adjust batchbuffer space warning when creating a job drm/xe: Don't emit extra MI_BATCH_BUFFER_END in WA batchbuffer
drivers/gpu/drm/xe/xe_bb.c | 29 +++++++++++++++++++++++++---- drivers/gpu/drm/xe/xe_gt.c | 2 -- 2 files changed, 25 insertions(+), 6 deletions(-)
Signature · 1 line
2.39.2
PATCH 1/3 drm/xe: Include hardware prefetch buffer in batchbuffer allocations
The hardware prefetches several cachelines of data from batchbuffers before they are parsed. This prefetching only stops when the parser encounters an MI_BATCH_BUFFER_END instruction (or a nested MI_BATCH_BUFFER_START), so we must ensure that there is enough padding at the end of the batchbuffer to prevent the prefetcher from running past the end of the allocation and potentially faulting.
Bspec: 45717
--- drivers/gpu/drm/xe/xe_bb.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_bb.c +23 -2
@@ -8,11 +8,26 @@#include "regs/xe_gpu_commands.h" #include "xe_device.h" #include "xe_engine_types.h" +#include "xe_gt.h" #include "xe_hw_fence.h" #include "xe_sa.h" #include "xe_sched_job.h" #include "xe_vm_types.h" +static int bb_prefetch (struct xe_gt *gt) +{ +struct xe_device *xe = gt->xe; + +if (GRAPHICS_VERx100 (xe) >=1250 && !xe_gt_is_media_type (gt)) +/* +* RCS and CCS require 1K, although other engines would be +* okay with 512. +*/ +return SZ_1K ; +else +return SZ_512 ; +} +struct xe_bb *xe_bb_new (struct xe_gt *gt,u32 dwords,bool usm) {struct xe_bb *bb =kmalloc (sizeof (*bb),GFP_KERNEL );
@@ -21,8 +36,14 @@ struct xe_bb *xe_bb_new(struct xe_gt *gt, u32 dwords, bool usm)if (!bb)return ERR_PTR (-ENOMEM ); - bb->bo =xe_sa_bo_new (!usm ? >->kernel_bb_pool : - >->usm.bb_pool,4 * dwords +4 ); +/* +* We need to allocate space for the requested number of dwords, +* one additional MI_BATCH_BUFFER_END dword, and additional buffer +* space to accomodate the platform-specific hardware prefetch +* requirements. +*/ + bb->bo =xe_sa_bo_new (!usm ? >->kernel_bb_pool : >->usm.bb_pool, +4 * (dwords +1 ) +bb_prefetch (gt));if (IS_ERR (bb->bo)) { err =PTR_ERR (bb->bo); goto err;
Signature · 1 line
2.39.2
Re: [Intel-xe] [PATCH 1/3] drm/xe: Include hardware prefetch buffer in batchbuffer allocations
Quoted 48 lines · Matt Roper
The hardware prefetches several cachelines of data from batchbuffers before they are parsed. This prefetching only stops when the parser encounters an
MI_BATCH_BUFFER_ENDinstruction (or a nestedMI_BATCH_BUFFER_START), so we must ensure that there is enough padding at the end of the batchbuffer to prevent the prefetcher from running past the end of the allocation and potentially faulting.Bspec: 45717
Signed-off-by Matt Roper <[email protected]>---
drivers/gpu/drm/xe/xe_bb.c| 25 +++++++++++++++++++++++--1 file changed, 23 insertions(+), 2 deletions(-)drivers/gpu/drm/xe/xe_bb.c +15
-0@@ -8,11 +8,26 @@#include "regs/xe_gpu_commands.h" #include "xe_device.h" #include "xe_engine_types.h" +#include "xe_gt.h" #include "xe_hw_fence.h" #include "xe_sa.h" #include "xe_sched_job.h" #include "xe_vm_types.h" +static int bb_prefetch (struct xe_gt *gt) +{ +struct xe_device *xe = gt->xe; + +if (GRAPHICS_VERx100 (xe) >=1250 && !xe_gt_is_media_type (gt)) +/* +* RCS and CCS require 1K, although other engines would be +* okay with 512. +*/ +return SZ_1K ; +else +return SZ_512 ; +} +struct xe_bb *xe_bb_new (struct xe_gt *gt,u32 dwords,bool usm) {struct xe_bb *bb =kmalloc (sizeof (*bb),GFP_KERNEL );@@ -21,8 +36,14 @@ struct xe_bb *xe_bb_new(struct xe_gt *gt, u32 dwords, bool usm)if (!bb)return ERR_PTR (-ENOMEM );
drivers/gpu/drm/xe/xe_bb.c struct xe_bb *xe_bb_new(struct xe_gt *gt, u32 dwords, bool usm) · line 46
Quoted 10 lines
drivers/gpu/drm/xe/xe_bb.c +8
-2- bb->bo =xe_sa_bo_new (!usm ? >->kernel_bb_pool : - >->usm.bb_pool,4 * dwords +4 ); +/* +* We need to allocate space for the requested number of dwords, +* one additional MI_BATCH_BUFFER_END dword, and additional buffer +* space to accomodate the platform-specific hardware prefetch +* requirements. +*/ + bb->bo =xe_sa_bo_new (!usm ? >->kernel_bb_pool : >->usm.bb_pool, +4 * (dwords +1 ) +bb_prefetch (gt));
if the command buffer for the CS is 512 or 1024, wouldn't it be sufficient to just align the end rather than increase it by that?
Lucas De Marchi
Re: [Intel-xe] [PATCH 1/3] drm/xe: Include hardware prefetch buffer in batchbuffer allocations
Quoted 49 lines · Lucas De Marchi
Quoted 48 lines · Matt Roper
The hardware prefetches several cachelines of data from batchbuffers before they are parsed. This prefetching only stops when the parser encounters an
MI_BATCH_BUFFER_ENDinstruction (or a nestedMI_BATCH_BUFFER_START), so we must ensure that there is enough padding at the end of the batchbuffer to prevent the prefetcher from running past the end of the allocation and potentially faulting.Bspec: 45717
Signed-off-by Matt Roper <[email protected]>---
drivers/gpu/drm/xe/xe_bb.c| 25 +++++++++++++++++++++++--1 file changed, 23 insertions(+), 2 deletions(-)drivers/gpu/drm/xe/xe_bb.c +15
-0@@ -8,11 +8,26 @@#include "regs/xe_gpu_commands.h" #include "xe_device.h" #include "xe_engine_types.h" +#include "xe_gt.h" #include "xe_hw_fence.h" #include "xe_sa.h" #include "xe_sched_job.h" #include "xe_vm_types.h" +static int bb_prefetch (struct xe_gt *gt) +{ +struct xe_device *xe = gt->xe; + +if (GRAPHICS_VERx100 (xe) >=1250 && !xe_gt_is_media_type (gt)) +/* +* RCS and CCS require 1K, although other engines would be +* okay with 512. +*/ +return SZ_1K ; +else +return SZ_512 ; +} +struct xe_bb *xe_bb_new (struct xe_gt *gt,u32 dwords,bool usm) {struct xe_bb *bb =kmalloc (sizeof (*bb),GFP_KERNEL );@@ -21,8 +36,14 @@ struct xe_bb *xe_bb_new(struct xe_gt *gt, u32 dwords, bool usm)if (!bb)return ERR_PTR (-ENOMEM );
Quoted 13 lines
drivers/gpu/drm/xe/xe_bb.c struct xe_bb *xe_bb_new(struct xe_gt *gt, u32 dwords, bool usm) · line 46
Quoted 10 lines
drivers/gpu/drm/xe/xe_bb.c +8
-2- bb->bo =xe_sa_bo_new (!usm ? >->kernel_bb_pool : - >->usm.bb_pool,4 * dwords +4 ); +/* +* We need to allocate space for the requested number of dwords, +* one additional MI_BATCH_BUFFER_END dword, and additional buffer +* space to accomodate the platform-specific hardware prefetch +* requirements. +*/ + bb->bo =xe_sa_bo_new (!usm ? >->kernel_bb_pool : >->usm.bb_pool, +4 * (dwords +1 ) +bb_prefetch (gt));if the command buffer for the CS is 512 or 1024, wouldn't it be sufficient to just align the end rather than increase it by that?
I thought that initially, but the spec indicates that the prefetch doesn't just happen in .5K chunks or whatever, but that they're continuously happening as each command in the batch buffer is executed. So if you complete a 1 DW instructions, a new DW is prefetched at the current HEAD + 0.5K. If that falls outside the batchbuffer (and potentially outside the bound pages), the hardware can fault.
The MI_BATCH_BUFFER_START bspec page (45718) also gives some more clarity on this:
"It keeps fetching command data as and when space is available in the storage upon execution of commands. In case of batch buffer execution, DMA engine stops prefetching the command data only on executing MI_BATCH_BUFFER_END command and MI_BATCH_BUFFER_START in case of chained batch buffers."
Matt
Quoted 2 lines
Lucas De Marchi
Signature · 4 lines
Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation
PATCH 2/3 drm/xe: Adjust batchbuffer space warning when creating a job
In reply to Matt RoperWe should WARN (not BUG) when creating a job if the batchbuffer does not have sufficient space and padding. The hardware prefetch requirements should also be considered.
--- drivers/gpu/drm/xe/xe_bb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_bb.c +2 -2
@@ -63,10 +63,10 @@ __xe_bb_create_job(struct xe_engine *kernel_eng, struct xe_bb *bb, u64 *addr) {u32 size =drm_suballoc_size (bb->bo); -XE_BUG_ON ((bb->len *4 +1 ) > size); - bb->cs[bb->len++] =MI_BATCH_BUFFER_END ; +WARN_ON (bb->len *4 +bb_prefetch (kernel_eng->gt) > size); +xe_sa_bo_flush_write (bb->bo);return xe_sched_job_create (kernel_eng, addr);
Signature · 1 line
2.39.2
PATCH 3/3 drm/xe: Don't emit extra MI_BATCH_BUFFER_END in WA batchbuffer
In reply to Matt RoperThe MI_BATCH_BUFFER_END is already added automatically by __xe_bb_create_job(); including it in the construction of the workaround batchbuffer results in an unnecessary duplicate.
--- drivers/gpu/drm/xe/xe_gt.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/xe/xe_gt.c +0 -2
@@ -203,8 +203,6 @@ static int emit_wa_job(struct xe_gt *gt, struct xe_engine *e) bb->cs[bb->len++] = entry->set_bits; } } - bb->cs[bb->len++] =MI_NOOP ; - bb->cs[bb->len++] =MI_BATCH_BUFFER_END ; batch_ofs =xe_bo_ggtt_addr (gt->kernel_bb_pool.bo); job =xe_bb_create_wa_job (e, bb, batch_ofs);
Signature · 1 line
2.39.2
Patchwork
CI[Intel-xe] ✓ CI.Patch_applied: success for Minor batchbuffer handling fixes
In reply to Matt Roper== Series Details ==
== Series Details ==
Series: Minor batchbuffer handling fixes
URL : https://patchwork.freedesktop.org/series/115812/
State : success
== Summary ==
=== Applying kernel patches on branch 'drm-xe-next' with base: === commit 5de0375b04455c7c8e516f53715eedde50f5ae45
Author: Maarten Lankhorst <[email protected]> AuthorDate: Thu Mar 23 15:05:18 2023 +0100 Commit: Maarten Lankhorst <[email protected]> CommitDate: Wed Mar 29 11:24:42 2023 +0200
drm/xe: Display api changes update
=== git am output follows ===
Applying: drm/xe: Include hardware prefetch buffer in batchbuffer allocations
Applying: drm/xe: Adjust batchbuffer space warning when creating a job
Applying: drm/xe: Don't emit extra MI_BATCH_BUFFER_END in WA batchbuffer
Patchwork
CI[Intel-xe] ✗ CI.KUnit: failure for Minor batchbuffer handling fixes
In reply to Matt Roper== Series Details ==
== Series Details ==
Series: Minor batchbuffer handling fixes
URL : https://patchwork.freedesktop.org/series/115812/
State : failure
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig ERROR:root:In file included from /usr/include/stdlib.h:1013,
from ../arch/um/drivers/chan_user.c:6:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^
In file included from /usr/include/stdlib.h:1013,
from ../arch/x86/um/os-Linux/registers.c:8:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^
In file included from /usr/include/stdlib.h:1013,
from ../arch/um/drivers/fd.c:7:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^
In file included from /usr/include/stdlib.h:1013,
from ../arch/um/os-Linux/execvp.c:24:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^make[4]: *** [../scripts/Makefile.build:252: arch/x86/um/os-Linux/registers.o] Error 1 make[3]: *** [../scripts/Makefile.build:494: arch/x86/um/os-Linux] Error 2 make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/stdlib.h:1013,
from ../arch/um/os-Linux/file.c:8:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^make[3]: *** [../scripts/Makefile.build:252: arch/um/os-Linux/execvp.o] Error 1 make[3]: *** Waiting for unfinished jobs....
make[3]: *** [../scripts/Makefile.build:252: arch/um/drivers/fd.o] Error 1 make[3]: *** Waiting for unfinished jobs....
make[3]: *** [../scripts/Makefile.build:252: arch/um/drivers/chan_user.o] Error 1 In file included from /usr/include/stdlib.h:1013,
from ../arch/um/os-Linux/skas/process.c:7:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^make[3]: *** [../scripts/Makefile.build:252: arch/um/os-Linux/file.o] Error 1 make[4]: *** [../scripts/Makefile.build:252: arch/um/os-Linux/skas/process.o] Error 1 make[4]: *** Waiting for unfinished jobs....
make[3]: *** [../scripts/Makefile.build:494: arch/um/os-Linux/skas] Error 2
make[2]: *** [../scripts/Makefile.build:494: arch/um/os-Linux] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [../scripts/Makefile.build:494: arch/x86/um] Error 2
make[2]: *** [../scripts/Makefile.build:494: arch/um/drivers] Error 2
In file included from /usr/include/stdlib.h:1013,
from arch/um/kernel/config.c:7:/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^make[3]: *** [../scripts/Makefile.build:252: arch/um/kernel/config.o] Error 1 make[3]: *** Waiting for unfinished jobs....
make[2]: *** [../scripts/Makefile.build:494: arch/um/kernel] Error 2 make[1]: *** [/kernel/Makefile:2025: .] Error 2
make: *** [Makefile:226: __sub-make] Error 2
[17:36:29] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [17:36:33] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make ARCH=um O=.kunit --jobs=48 + cleanup ++ stat -c %u:%g /kernel + chown -R 1003:1003 /kernel
Re: [Intel-xe] ✗ CI.KUnit: failure for Minor batchbuffer handling fixes
Quoted 10 lines · Patchwork
== Series Details ==
Series: Minor batchbuffer handling fixes
URL : https://patchwork.freedesktop.org/series/115812/
State : failure== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
below patch [1] worked for me to avoid such build errors on my system
[1]
https://lore.kernel.org/lkml/[email protected]/raw
Quoted 78 lines
ERROR:root:In file included from
/usr/include/stdlib.h:1013,from ../arch/um/drivers/chan_user.c:6: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled 26 | { | ^ In file included from /usr/include/stdlib.h:1013, from ../arch/x86/um/os-Linux/registers.c:8: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled 26 | { | ^ In file included from /usr/include/stdlib.h:1013, from ../arch/um/drivers/fd.c:7: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled 26 | { | ^ In file included from /usr/include/stdlib.h:1013, from ../arch/um/os-Linux/execvp.c:24: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled 26 | { | ^make[4]: *** [../scripts/Makefile.build:252:
arch/x86/um/os-Linux/registers.o] Error 1 make[3]: *** [../scripts/Makefile.build:494:arch/x86/um/os-Linux] Error 2 make[3]: *** Waiting for unfinished jobs....
In file included from/usr/include/stdlib.h:1013,from ../arch/um/os-Linux/file.c:8: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled 26 | { | ^make[3]: *** [../scripts/Makefile.build:252:
arch/um/os-Linux/execvp.o] Error 1 make[3]: *** Waiting for unfinished jobs....
make[3]: *** [../scripts/Makefile.build:252:arch/um/drivers/fd.o] Error 1 make[3]: *** Waiting for unfinished jobs....
make[3]: *** [../scripts/Makefile.build:252:arch/um/drivers/chan_user.o] Error 1 In file included from/usr/include/stdlib.h:1013,from ../arch/um/os-Linux/skas/process.c:7: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled 26 | { | ^make[3]: *** [../scripts/Makefile.build:252:
arch/um/os-Linux/file.o] Error 1 make[4]: *** [../scripts/Makefile.build:252:arch/um/os-Linux/skas/process.o] Error 1 make[4]: *** Waiting for unfinished jobs....
make[3]: *** [../scripts/Makefile.build:494:arch/um/os-Linux/skas] Error 2
make[2]: *** [../scripts/Makefile.build:494:arch/um/os-Linux] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [../scripts/Makefile.build:494:arch/x86/um] Error 2
make[2]: *** [../scripts/Makefile.build:494:arch/um/drivers] Error 2
In file included from/usr/include/stdlib.h:1013,
fromarch/um/kernel/config.c:7:/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled26 | { | ^make[3]: *** [../scripts/Makefile.build:252:
arch/um/kernel/config.o] Error 1 make[3]: *** Waiting for unfinished jobs....
make[2]: *** [../scripts/Makefile.build:494:arch/um/kernel] Error 2 make[1]: *** [/kernel/Makefile:2025: .] Error 2
make: *** [Makefile:226: __sub-make] Error 2[17:36:29] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:$ make ARCH=um O=.kunit olddefconfig [17:36:33] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make ARCH=um O=.kunit --jobs=48 + cleanup ++ stat -c %u:%g /kernel + chown -R 1003:1003 /kernel
Quoted 4 lines · Matt Roper
Xe's internal batchbuffer code is not properly considering the hardware prefetch requirements. It is also emitting duplicate
MI_BATCH_BUFFER_ENDinstructions in the workaround batchbuffer.
Quoted 9 lines
Matt Roper (3):
drm/xe: Include hardware prefetch buffer in batchbuffer allocations drm/xe: Adjust batchbuffer space warning when creating a job drm/xe: Don't emit extraMI_BATCH_BUFFER_ENDin WA batchbufferdrivers/gpu/drm/xe/xe_bb.c | 29 +++++++++++++++++++++++++---- drivers/gpu/drm/xe/xe_gt.c | 2 -- 2 files changed, 25 insertions(+), 6 deletions(-)
Whole series is Reviewed-by: José Roberto de Souza <[email protected]>
Patchwork
CI[Intel-xe] ✓ CI.Patch_applied: success for Minor batchbuffer handling fixes (rev2)
In reply to Matt Roper== Series Details ==
== Series Details ==
Series: Minor batchbuffer handling fixes (rev2)
URL : https://patchwork.freedesktop.org/series/115812/
State : success
== Summary ==
=== Applying kernel patches on branch 'drm-xe-next' with base: === commit 5de0375b04455c7c8e516f53715eedde50f5ae45
Author: Maarten Lankhorst <[email protected]> AuthorDate: Thu Mar 23 15:05:18 2023 +0100 Commit: Maarten Lankhorst <[email protected]> CommitDate: Wed Mar 29 11:24:42 2023 +0200
drm/xe: Display api changes update
=== git am output follows ===
Applying: drm/xe: Include hardware prefetch buffer in batchbuffer allocations
Applying: drm/xe: Adjust batchbuffer space warning when creating a job
Applying: drm/xe: Don't emit extra MI_BATCH_BUFFER_END in WA batchbuffer
Patchwork
CI[Intel-xe] ✗ CI.KUnit: failure for Minor batchbuffer handling fixes (rev2)
In reply to Matt Roper== Series Details ==
== Series Details ==
Series: Minor batchbuffer handling fixes (rev2)
URL : https://patchwork.freedesktop.org/series/115812/
State : failure
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig ERROR:root:In file included from /usr/include/stdlib.h:1013,
from ../arch/um/os-Linux/helper.c:6:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^
In file included from /usr/include/stdlib.h:1013,
from ../arch/um/os-Linux/irq.c:8:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^
In file included from /usr/include/stdlib.h:1013,
from ../arch/um/os-Linux/execvp.c:24:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^
In file included from /usr/include/stdlib.h:1013,
from ../arch/x86/um/os-Linux/registers.c:8:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^
In file included from /usr/include/stdlib.h:1013,
from ../arch/um/drivers/fd.c:7:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^
In file included from /usr/include/stdlib.h:1013,
from ../arch/um/os-Linux/file.c:8:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^make[3]: *** [../scripts/Makefile.build:252: arch/um/os-Linux/execvp.o] Error 1 make[3]: *** Waiting for unfinished jobs....
make[4]: *** [../scripts/Makefile.build:252: arch/x86/um/os-Linux/registers.o] Error 1 make[3]: *** [../scripts/Makefile.build:494: arch/x86/um/os-Linux] Error 2 make[3]: *** Waiting for unfinished jobs....
make[3]: *** [../scripts/Makefile.build:252: arch/um/os-Linux/irq.o] Error 1 make[3]: *** [../scripts/Makefile.build:252: arch/um/drivers/fd.o] Error 1 make[3]: *** Waiting for unfinished jobs....
make[3]: *** [../scripts/Makefile.build:252: arch/um/os-Linux/helper.o] Error 1 make[3]: *** [../scripts/Makefile.build:252: arch/um/os-Linux/file.o] Error 1 In file included from /usr/include/stdlib.h:1013,
from ../arch/um/os-Linux/skas/process.c:7:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^make[4]: *** [../scripts/Makefile.build:252: arch/um/os-Linux/skas/process.o] Error 1 make[3]: *** [../scripts/Makefile.build:494: arch/um/os-Linux/skas] Error 2
make[2]: *** [../scripts/Makefile.build:494: arch/um/os-Linux] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [../scripts/Makefile.build:494: arch/um/drivers] Error 2
make[2]: *** [../scripts/Makefile.build:494: arch/x86/um] Error 2
In file included from /usr/include/stdlib.h:1013,
from arch/um/kernel/config.c:7:/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’:/usr/include/x86_64-linux-gnu/bits/stdlib-float.h:26:1: error: SSE register return with SSE disabled
26 | {
| ^make[3]: *** [../scripts/Makefile.build:252: arch/um/kernel/config.o] Error 1 make[3]: *** Waiting for unfinished jobs....
make[2]: *** [../scripts/Makefile.build:494: arch/um/kernel] Error 2 make[1]: *** [/kernel/Makefile:2025: .] Error 2
make: *** [Makefile:226: __sub-make] Error 2
[18:08:34] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [18:08:38] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make ARCH=um O=.kunit --jobs=48 + cleanup ++ stat -c %u:%g /kernel + chown -R 1003:1003 /kernel