OSDN Git Service

of: Check for overlap in reserved memory regions
authorMitchel Humpherys <mitchelh@codeaurora.org>
Wed, 16 Sep 2015 01:30:36 +0000 (18:30 -0700)
committerRob Herring <robh@kernel.org>
Thu, 17 Sep 2015 19:52:06 +0000 (14:52 -0500)
commitae1add247bf8c22facacbd818142f1f66e735802
tree693ae0d5d7cc8503d8beee9d3e6b722d2f254a75
parent4f59d7119c7cb5f32ca91662a74c217ea7c4ddca
of: Check for overlap in reserved memory regions

Any overlap in the reserved memory regions (those specified in the
reserved-memory DT node) is a bug.  These bugs might go undetected as
long as the contested region isn't used simultaneously by multiple
software agents, which makes such bugs hard to debug.  Fix this by
printing a scary warning during boot if overlap is detected.

Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/of_reserved_mem.c