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:47:41 +0000 (18:47 +0100)
commitf416fe070ec108f6bfaaf124903734a5dfaa76c3
tree3b5c49990b4ca2c821ce9513d2cbe1c5f25d3fc8
parent5d3675e3e6d1677f4d9310ab429c1fe5e1f49d10
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