-
Notifications
You must be signed in to change notification settings - Fork 15
unreachable instruction in mm/workingset.o #548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
By the way, I could reproduce these errors without using Polly (and I missed adding -fopenmp after -polly-parallel in the Makefile uploaded here). |
With clang trunk (9.0.0 r364163), https://github.com/ClangBuiltLinux/linux/files/3310077/config.txt, and the CFLAGS changes (no polly options): diff --git i/Makefile w/Makefile
index 9514dac2660a..ebae1e47e547 100644
--- i/Makefile
+++ w/Makefile
@@ -460,0 +461 @@ KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \
+ -O3 -march=native -mtune=native \
diff --git i/arch/x86/Makefile w/arch/x86/Makefile
index 56e748a7679f..6d19308267b8 100644
--- i/arch/x86/Makefile
+++ w/arch/x86/Makefile
@@ -128 +128 @@ else
- cflags-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=generic)
+ cflags-$(CONFIG_GENERIC_CPU) += $(call cc-option,-O3 -march=native -mtune=native)
|
Can you retest this with Linux v5.3-rc1+ which includes "objtool fixes and enhancements v2" from [2]? More details see thread "x86 - clang / objtool status" [1]. Can you check your open CBL bugs and comment (or close?). [1] https://lore.kernel.org/all/[email protected]/ |
So @ms178 I'd verify that |
Just a sidenote: As I am on vacation for the next couple of weeks, I only have access to a different machine with a Westmere CPU as of right now and cannot use the exact same Kernel config. Once I get access to a newer Kernel RC and Clang build, I'll re-test it. |
With arch/x86/kvm/svm.o: warning: objtool: is_erratum_383()+0xb1: unreachable instruction I've added the config, the Makefile and the complete build log. System: Intel Xeon X5675, 24 GB RAM, Asus P6T WS Pro, AMD RX 580 |
@nickdesaulniers @dileks Here are the results with drivers/gpu/drm/amd/amdgpu/atom.o: warning: objtool: atom_op_move() falls through to next function atom_op_and() This build also doesn't succeed with several errors in drivers/gpu/drm/amd/amdgpu/amdgpu.ko at the end but this is a known issue mentioned on the LKML already. |
@ms178, thanks for the report :
|
|
We should call irq trace only if interrupt is going to be enabled during excecption handling. Otherwise, it results in following warning during boot with lock debugging enabled. [ 0.000000] ------------[ cut here ]------------ [ 0.000000] DEBUG_LOCKS_WARN_ON(early_boot_irqs_disabled) [ 0.000000] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:4085 lockdep_hardirqs_on_prepare+0x22a/0x22e [ 0.000000] Modules linked in: [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.10.0-00022-ge20097fb37e2-dirty #548 [ 0.000000] epc: c005d5d4 ra : c005d5d4 sp : c1c01e80 [ 0.000000] gp : c1d456e0 tp : c1c0a980 t0 : 00000000 [ 0.000000] t1 : ffffffff t2 : 00000000 s0 : c1c01ea0 [ 0.000000] s1 : c100f360 a0 : 0000002d a1 : c00666ee [ 0.000000] a2 : 00000000 a3 : 00000000 a4 : 00000000 [ 0.000000] a5 : 00000000 a6 : c1c6b390 a7 : 3ffff00e [ 0.000000] s2 : c2384fe8 s3 : 00000000 s4 : 00000001 [ 0.000000] s5 : c1c0a980 s6 : c1d48000 s7 : c1613b4c [ 0.000000] s8 : 00000fff s9 : 80000200 s10: c1613b40 [ 0.000000] s11: 00000000 t3 : 00000000 t4 : 00000000 [ 0.000000] t5 : 00000001 t6 : 00000000 Fixes: 3c46979 ("riscv:Enable LOCKDEP_SUPPORT & fixup TRACE_IRQFLAGS_SUPPORT") Signed-off-by: Atish Patra <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Makefile.txt
config.txt
arch_x86_Makefile.txt
With a vanilla clang version 9.0.0 (363704) and Kernel 5.2-rc5 (Suse), I get the following objtool error:
mm/workingset.o: warning: objtool: count_shadow_nodes()+0x12f: unreachable instruction
I'll file others shortly which were seen with the same config and Makefile. As I didn't finish the compilation, I might post more of them if I try a second time. But before spamming the list with more of these, I wanted to hear from you if these are welcome or if there is something wrong with my setup.
CPU is an Intel i5-2410m (Sandy Bridge, x86-64). Please notice, that I have used my custom compiler and linker flags.
The text was updated successfully, but these errors were encountered: