So we need to fix this without breaking Quark. Fortunately, Quark does not appear to care about the virtual mapping, and so we can simply do a partial revert of commit 2a457fb31df6 ("efi/capsule-loader: Use page addresses rather than struct page pointers"), and create a vmap() mapping of the entire capsule (including header) based on the reinstated struct page array, unless running on Quark, in which case we pass the capsule header copy as before.
Working on the Galileo (Quark x1000 non-secure) Ard. I've tested a capsule with and without the quirk header so it should work on the secure part too.
Tested-by: Bryan O'Donoghue <pure.logic@xxxxxxxxxxxxxxxxx> --- bod -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html