Sorry for the maybe not so helpful title.
Here is the problem :
If I only have the 2x512M kit everything works fine for all kernel versions but if I have both kits or just the 2x2G kit any kernel above 4.10 panics very early on (picture of said panic
https://imgur.com/a/PipU5Oc). The picture was taken on 4.15 (using earlyprintk=efi,keep) on other versions even using earlyprintk I don't get any output.
I have been trying several kernels and everything up to 4.11 works no problem. Then on 4.11 I got a panic which mentionned NX and pages being in W+X which prompted me to try noexec=off on newer versions and that fixes the panic. This works up to 5.2.5.
/proc/cpuinfo reports that the CPU support the NX flag.
I would need help in order to troubleshoot this further.