firmware: dell_rbu: Make payload memory uncachable
authorStuart Hayes <stuart.w.hayes@gmail.com>
Wed, 26 Sep 2018 21:50:17 +0000 (16:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:00:46 +0000 (18:00 +0100)
commita8d3a42686e1c32e01f198e6af6af51ae03cfdb2
tree1efa9b3e1822cd46bd0ceb423e3e9f8ca1096592
parent3365b4bc9b56fd0dcb5346e48d423eeb39e3b32f
firmware: dell_rbu: Make payload memory uncachable

[ Upstream commit 6aecee6ad41cf97c0270f72da032c10eef025bf0 ]

The dell_rbu driver takes firmware update payloads and puts them in memory so
the system BIOS can find them after a reboot.  This sometimes fails (though
rarely), because the memory containing the payload is in the CPU cache but
never gets written back to main memory before the system is rebooted (CPU
cache contents are lost on reboot).

With this patch, the payload memory will be changed to uncachable to ensure
that the payload is actually in main memory before the system is rebooted.

Signed-off-by: Stuart Hayes <stuart.w.hayes@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/dell_rbu.c