]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: coreboot: Remap RAM with memremap() instead of ioremap()
authorStephen Boyd <swboyd@chromium.org>
Wed, 15 Aug 2018 20:37:07 +0000 (13:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2018 13:37:23 +0000 (15:37 +0200)
commita7d9b5f0120eea9f0f58c2ed2b98d2fc86389af3
tree114485222c10d9542ab189e3a37bcb9acf4d09ef
parenta28aad66da8bd19b249670d003bb9a698bdda397
firmware: coreboot: Remap RAM with memremap() instead of ioremap()

This is all system memory, so we shouldn't be mapping this all with
ioremap() as these aren't I/O regions. Instead, they're memory regions
so we should use memremap(). Pick MEMREMAP_WB so we can map memory from
RAM directly if that's possible, otherwise it falls back to
ioremap_cache() like is being done here already. This also nicely
silences the sparse warnings in this code and reduces the need to copy
anything around anymore.

Cc: Wei-Ning Huang <wnhuang@chromium.org>
Cc: Julius Werner <jwerner@chromium.org>
Cc: Brian Norris <briannorris@chromium.org>
Cc: Samuel Holland <samuel@sholland.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/google/coreboot_table.c