<div dir="auto">It booted at least. I'll try your suggestions as soon as I can, I'm progressing slower than ever, concentration is somewhat lapse still.... <div dir="auto"><br></div><div dir="auto">Thanks. </div><div dir="auto">Best regards</div><div dir="auto">Michael</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 11, 2022, 10:51 Christophe Leroy <<a href="mailto:christophe.leroy@csgroup.eu" target="_blank" rel="noreferrer">christophe.leroy@csgroup.eu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Le 11/01/2022 à 10:32, Mike a écrit :<br>
> I managed to fix it in the end, patch attached, though i should have<br>
> done a $(call cc-option-, -maltivec, -mabi=altivec) in the<br>
> arch/powerpc/mm/Makefile<br>
>   I wrongly assumed that the manual i had downloaded at 4.44am was for<br>
> 32bit ppc only and found ptesync to be ppc64 only.<br>
> <br>
> binutils-2.37.50 - GNU assembler version 2.37.50 (powerpc-linux-gnu)<br>
> using BFD version (GNU Binutils for Debian) 2.37.50.20220106<br>
> gcc version 11.2.0 (Debian 11.2.0-13)<br>
> ld.lld is missing but with LLVM/CLANG and LD=ld.bfd<br>
> arch/powerpc/kernel/vdso32/gettimeofday.S:72:8:<br>
> error: unsupported directive '.stabs'    .stabs<br>
> "_restgpr_31_x:F-1",36,0,0,_restgpr_31_x; .globl _restgpr_31_x;<br>
> _restgpr_31_x:<br>
> <br>
> Attached the config i'm using, and the debian config 5.15.0-2. It's<br>
> still building.<br>
<br>
Ok, I tried with your config on my Fedora Core 35 where I have:<br>
<br>
powerpc64-linux-gnu-gcc (GCC) 11.2.1 20210728 (Red Hat Cross 11.2.1-1)<br>
GNU ld version 2.37-3.fc35<br>
<br>
 From packages:<br>
- binutils-powerpc64-linux-gnu-2.37-3.fc35.x86_64<br>
- gcc-powerpc64-linux-gnu-11.2.1-1.fc35.x86_64<br>
<br>
And I don't have the problems you mention, so it must be something <br>
special with Debian GCC.<br>
<br>
<br>
Your change regarding ptesync is probably OK but is fragile I think, <br>
because for instance there is also a 'ptesync' in <br>
arch/powerpc/mm/pageattr.c and probably many other places.<br>
<br>
Also please prefer CONFIG_PPC64 to __powerpc64__<br>
<br>
Regarding the DSSALL issue, the following commit will probably help:<br>
<br>
d51f86cfd8e3 ("powerpc/mm: Switch obsolete dssall to .long")<br>
<br>
Regarding the .stabs with LLVM there is a patch at <br>
<a href="https://patchwork.ozlabs.org/project/linuxppc-dev/patch/68932ec2ba6b868d35006b96e90f0890f3da3c05.1638273868.git.christophe.leroy@csgroup.eu/" rel="noreferrer noreferrer noreferrer" target="_blank">https://patchwork.ozlabs.org/project/linuxppc-dev/patch/68932ec2ba6b868d35006b96e90f0890f3da3c05.1638273868.git.christophe.leroy@csgroup.eu/</a><br>
<br>
Thanks<br>
Christophe<br>
<br>
<br>
<br>
> <br>
> Cheers<br>
> Michael<br>
> <br>
> On Tue, 11 Jan 2022 at 07:20, Christophe Leroy<br>
> <<a href="mailto:christophe.leroy@csgroup.eu" rel="noreferrer noreferrer" target="_blank">christophe.leroy@csgroup.eu</a>> wrote:<br>
>><br>
>><br>
>><br>
>> Le 10/01/2022 à 13:32, Mike a écrit :<br>
>>> Hey, so I originally sat down to compile the fast headers V2 patch, but<br>
>>> quickly discovered other things at play, and grabbed 5.16.0 a few hours<br>
>>> after it lifted off,  arch/powerpc/mm/mmu_context.c I had to<br>
>>> specifically say had to include -maltivec or it barfed on a 'dssall',<br>
>>> I'm fine with that, I've spent years in kernel land, I can deal with<br>
>>> that, then came arch/powerpc/lib/step.c with the ptesync. This seems<br>
>>> like a totally normal instruction that shouldn't need any extra flags or<br>
>>> anything, yet the assembler throws up, and no flag I can think of fixes<br>
>>> it. This is a G4 7447. I reverted back to the Debian 5.15. defconfig<br>
>>> before dropping this mail as I had tweaked my config to be more G4.<br>
>>><br>
>><br>
>> Hi Mike,<br>
>><br>
>> Can you provide a bit more details about your setup and config ?<br>
>><br>
>> Are you using GCC or LLVM ?<br>
>> What version of GCC and BINUTILS or what version of LLVM ?<br>
>><br>
>> What is DEBIAN defconfig ? Does it correspond to one of the standard<br>
>> mainline kernel defconfigs ? If not can you provide it ?<br>
>><br>
>> Thanks<br>
>> Christophe</blockquote></div>