On Sat, Nov 08, 2014 at 07:57:49PM -0200, Henrique de Moraes Holschuh wrote: > I will remove the WARN_ONCE, and place a comment in its place: > > /* > * the memory area holding the microcode update data must be 16-byte > * aligned. This is supposed to be guaranteed by kmalloc(). > */
So this makes this comment pretty useless as it doesn't do anything about the case where 16-byte alignment gets violated. Actually I was expecting something else: * you either write down *why* kmalloc guarantees alignment. From a quick look it might but it might not, hint #define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long) * or you actually go and fix this by making sure all memory in the intel loader is 16-byte aligned. Maybe a loader-specific kmalloc wrapper, something which allocates a bit more and then aligns it properly, and so on... But simply adding a comment which doesn't do anything to solve the situation doesn't make a lot of sense. And more importantly, doesn't solve the situation. -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/