xen/arm: Fix arm32 build failure when early printk is enabled
PATCH 1/1 xen/arm: Fix arm32 build failure when early printk is enabled
Commit 0441c3acc7e9 forgot to rename FIXMAP_CONSOLE to FIX_CONSOLE in TEMPORARY_EARLY_UART_VIRTUAL_ADDRESS macro. This results in a build
failure on arm32, when early printk is enabled:arch/arm/arm32/mmu/head.S:311: Error: invalid operands (*UND* and *ABS* sections) for `*'
--- xen/arch/arm/include/asm/early_printk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/include/asm/early_printk.h +1 -1
@@ -20,7 +20,7 @@ (FIXMAP_ADDR(FIX_CONSOLE) + (CONFIG_EARLY_UART_BASE_ADDRESS & ~PAGE_MASK))#define TEMPORARY_EARLY_UART_VIRTUAL_ADDRESS \ - (TEMPORARY_FIXMAP_ADDR(FIXMAP_CONSOLE) + (CONFIG_EARLY_UART_BASE_ADDRESS & ~PAGE_MASK)) + (TEMPORARY_FIXMAP_ADDR(FIX_CONSOLE) + (CONFIG_EARLY_UART_BASE_ADDRESS & ~PAGE_MASK))#endif /* !CONFIG_EARLY_PRINTK */
Signature · 1 line
2.25.1
Hi Michal,
Quoted 4 lines · Michal Orzel
Commit
0441c3acc7e9forgot to renameFIXMAP_CONSOLEtoFIX_CONSOLEinTEMPORARY_EARLY_UART_VIRTUAL_ADDRESSmacro. This results in a build
failure on arm32, when early printk is enabled:arch/arm/arm32/mmu/head.S:311: Error: invalid operands (*UND* and *ABS* sections) for `*'
Good catch! Somewhat related I wonder whether we should add earlyprintk testing in gitlab?
Quoted 3 lines
Fixes 0441c3acc7e9 ("xen/arm: fixmap: Rename the fixmap slots to follow the x86 convention")Signed-off-by Michal Orzel <[email protected]>
Cheers,
Signature · 1 line
Julien Grall
Quoted 8 lines · Julien Grall
Hi Michal,
Quoted 4 lines · Michal Orzel
Commit
0441c3acc7e9forgot to renameFIXMAP_CONSOLEtoFIX_CONSOLEinTEMPORARY_EARLY_UART_VIRTUAL_ADDRESSmacro. This results in a build
failure on arm32, when early printk is enabled:arch/arm/arm32/mmu/head.S:311: Error: invalid operands (*UND* and *ABS* sections) for `*'
Quoted 7 lines
Good catch! Somewhat related I wonder whether we should add earlyprintk testing in gitlab?
Quoted 3 lines
Fixes 0441c3acc7e9 ("xen/arm: fixmap: Rename the fixmap slots to follow the x86 convention")Signed-off-by Michal Orzel <[email protected]>Acked-by Julien Grall <[email protected]>
And committed.
Cheers,
Signature · 1 line
Julien Grall
Hi Julien,
Quoted 4 lines · Julien Grall
Hi Michal,
Quoted 8 lines
Quoted 4 lines · Michal Orzel
Commit
0441c3acc7e9forgot to renameFIXMAP_CONSOLEtoFIX_CONSOLEinTEMPORARY_EARLY_UART_VIRTUAL_ADDRESSmacro. This results in a build
failure on arm32, when early printk is enabled:arch/arm/arm32/mmu/head.S:311: Error: invalid operands (*UND* and *ABS* sections) for `*'Good catch! Somewhat related I wonder whether we should add earlyprintk testing in gitlab?
I thought about adding this and I think we should at least have build jobs (hypervisor only, no toolstack) selecting early printk. When it comes to testing if early printk works, I'm not sure. It'd be nice but FWIR we have limited bandwidth.
@Stefano, what's your opinion?
~Michal
Quoted 13 lines · Michal Orzel
Hi Julien,
Quoted 10 lines · Julien Grall
Hi Michal,
Quoted 4 lines · Michal Orzel
Commit
0441c3acc7e9forgot to renameFIXMAP_CONSOLEtoFIX_CONSOLEinTEMPORARY_EARLY_UART_VIRTUAL_ADDRESSmacro. This results in a build
failure on arm32, when early printk is enabled:arch/arm/arm32/mmu/head.S:311: Error: invalid operands (*UND* and *ABS* sections) for `*'
Quoted 7 lines
Quoted 2 lines
Good catch! Somewhat related I wonder whether we should add earlyprintk testing in gitlab?
I thought about adding this and I think we should at least have build jobs (hypervisor only, no toolstack) selecting early printk. When it comes to testing if early printk works, I'm not sure. It'd be nice but FWIR we have limited bandwidth.
@Stefano, what's your opinion?
I think it would be a good and quick test to have. To save testing bandwidth I think we should reduce the amount of debug/non-debug variations of the same tests that we have.
Quoted 22 lines · Stefano Stabellini
Quoted 19 lines · Michal Orzel
Hi Julien,
Quoted 4 lines · Julien Grall
Hi Michal,
Quoted 8 lines
Quoted 4 lines · Michal Orzel
Commit
0441c3acc7e9forgot to renameFIXMAP_CONSOLEtoFIX_CONSOLEinTEMPORARY_EARLY_UART_VIRTUAL_ADDRESSmacro. This results in a build
failure on arm32, when early printk is enabled:arch/arm/arm32/mmu/head.S:311: Error: invalid operands (*UND* and *ABS* sections) for `*'Good catch! Somewhat related I wonder whether we should add earlyprintk testing in gitlab?
I thought about adding this and I think we should at least have build jobs (hypervisor only, no toolstack) selecting early printk. When it comes to testing if early printk works, I'm not sure. It'd be nice but FWIR we have limited bandwidth.
Quoted 5 lines
Quoted 1 line
@Stefano, what's your opinion?
I think it would be a good and quick test to have. To save testing bandwidth I think we should reduce the amount of debug/non-debug variations of the same tests that we have.
Yes, I suggested that some time ago. We could keep both versions for generic tests, but remove the non-debug version (unless you prefer to do the opposite) for:
Arm64:
- staticmem
- staticheap
- shared-mem
- boot-cpupools
Arm32:
- gzip
- without-dom0
This would save us some bandwidth that we could use for testing other features (e.g. early printk).
~Michal
Hi,
Quoted 25 lines · Michal Orzel
Quoted 22 lines · Stefano Stabellini
Quoted 19 lines · Michal Orzel
Hi Julien,
Quoted 4 lines · Julien Grall
Hi Michal,
Quoted 8 lines
Quoted 4 lines · Michal Orzel
Commit
0441c3acc7e9forgot to renameFIXMAP_CONSOLEtoFIX_CONSOLEinTEMPORARY_EARLY_UART_VIRTUAL_ADDRESSmacro. This results in a build
failure on arm32, when early printk is enabled:arch/arm/arm32/mmu/head.S:311: Error: invalid operands (*UND* and *ABS* sections) for `*'Good catch! Somewhat related I wonder whether we should add earlyprintk testing in gitlab?
I thought about adding this and I think we should at least have build jobs (hypervisor only, no toolstack) selecting early printk. When it comes to testing if early printk works, I'm not sure. It'd be nice but FWIR we have limited bandwidth.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
@Stefano, what's your opinion?
I think it would be a good and quick test to have. To save testing bandwidth I think we should reduce the amount of debug/non-debug variations of the same tests that we have.
Yes, I suggested that some time ago. We could keep both versions for generic tests, but remove the non-debug version (unless you prefer to do the opposite) for:
I think it makes sense during development window to use the debug version. However, I think we want some non-debug testing during the hardening phase.
Can gitlab read CONFIG_DEBUG from Config.mk?
Cheers,
Signature · 1 line
Julien Grall
Quoted 35 lines · Julien Grall
Hi,
Quoted 30 lines · Michal Orzel
Quoted 27 lines · Stefano Stabellini
Quoted 13 lines · Michal Orzel
Hi Julien,
Quoted 10 lines · Julien Grall
Hi Michal,
Quoted 4 lines · Michal Orzel
Commit
0441c3acc7e9forgot to renameFIXMAP_CONSOLEtoFIX_CONSOLEinTEMPORARY_EARLY_UART_VIRTUAL_ADDRESSmacro. This results in a build
failure on arm32, when early printk is enabled:arch/arm/arm32/mmu/head.S:311: Error: invalid operands (*UND* and *ABS* sections) for `*'Quoted 7 lines
Quoted 2 lines
Good catch! Somewhat related I wonder whether we should add earlyprintk testing in gitlab?
I thought about adding this and I think we should at least have build jobs (hypervisor only, no toolstack) selecting early printk. When it comes to testing if early printk works, I'm not sure. It'd be nice but FWIR we have limited bandwidth.
@Stefano, what's your opinion?
I think it would be a good and quick test to have. To save testing bandwidth I think we should reduce the amount of debug/non-debug variations of the same tests that we have.
Quoted 8 lines
Quoted 2 lines
Yes, I suggested that some time ago. We could keep both versions for generic tests, but remove the non-debug version (unless you prefer to do the opposite) for:
I think it makes sense during development window to use the debug version. However, I think we want some non-debug testing during the hardening phase.
Can gitlab read
CONFIG_DEBUGfrom Config.mk?
At the moment, we have 2 types of jobs - non debug and debug (with -debug suffix). They set "debug" variable accordingly, which is used later on to modify .config:
echo "CONFIG_DEBUG=${debug}" >> xen/.config
Without this line, Xen would be built according to default value of CONFIG_DEBUG. That said, I don't think we want to get back to this behavior.
If we want to save some bandwidth, we should make a decision whether to keep debug or non-debug versions. x86 has both versions for build jobs and mostly debug test jobs.
~Michal
Quoted 48 lines · Michal Orzel
Quoted 35 lines · Julien Grall
Hi,
Quoted 30 lines · Michal Orzel
Quoted 27 lines · Stefano Stabellini
Quoted 13 lines · Michal Orzel
Hi Julien,
Quoted 10 lines · Julien Grall
Hi Michal,
Quoted 4 lines · Michal Orzel
Commit
0441c3acc7e9forgot to renameFIXMAP_CONSOLEtoFIX_CONSOLEinTEMPORARY_EARLY_UART_VIRTUAL_ADDRESSmacro. This results in a build
failure on arm32, when early printk is enabled:arch/arm/arm32/mmu/head.S:311: Error: invalid operands (*UND* and *ABS* sections) for `*'Quoted 7 lines
Quoted 2 lines
Good catch! Somewhat related I wonder whether we should add earlyprintk testing in gitlab?
I thought about adding this and I think we should at least have build jobs (hypervisor only, no toolstack) selecting early printk. When it comes to testing if early printk works, I'm not sure. It'd be nice but FWIR we have limited bandwidth.
@Stefano, what's your opinion?
I think it would be a good and quick test to have. To save testing bandwidth I think we should reduce the amount of debug/non-debug variations of the same tests that we have.
Quoted 8 lines
Quoted 2 lines
Yes, I suggested that some time ago. We could keep both versions for generic tests, but remove the non-debug version (unless you prefer to do the opposite) for:
I think it makes sense during development window to use the debug version. However, I think we want some non-debug testing during the hardening phase.
Can gitlab read
CONFIG_DEBUGfrom Config.mk?At the moment, we have 2 types of jobs - non debug and debug (with -debug suffix). They set "debug" variable accordingly, which is used later on to modify .config:
echo "CONFIG_DEBUG=${debug}" >> xen/.config
Quoted 5 lines
Without this line, Xen would be built according to default value of
CONFIG_DEBUG. That said, I don't think we want to get back to this behavior.If we want to save some bandwidth, we should make a decision whether to keep debug or non-debug versions. x86 has both versions for build jobs and mostly debug test jobs.
It is good to have some debug and non-debug jobs, but we probably don't need both versions of every job.