of: of_reserved_mem: Ensure cma reserved region not cross the low/high memory
authorJason Liu <jason.hui.liu@nxp.com>
Wed, 23 Nov 2016 07:42:54 +0000 (15:42 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit27c34bda59f39f96e1d82b91f463e20547dfa64b
tree6bc8e45210f864311227c63894c77e32ee59d017
parentc960e5bf68373945dc98231ab55e816f2c5c512f
of: of_reserved_mem: Ensure cma reserved region not cross the low/high memory

Need ensure the cma reserved region not cross the low/high memory boundary
when using the dynamic allocation methond through device-tree, otherwise,
kernel will fail to boot up when cma reserved region cross how/high mem.

Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>
Cc: Laura Abbott <labbott@redhat.com>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
drivers/of/of_reserved_mem.c
include/linux/of_reserved_mem.h