of: of_reserved_mem: Ensure cma reserved region not cross the low/high memory
authorJason Liu <jason.hui.liu@nxp.com>
Mon, 11 Nov 2019 09:51:13 +0000 (17:51 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 02:33:52 +0000 (10:33 +0800)
commit28ac5601b716e615d164ab4ad420d493711d3df2
tree31a07dd8cbf196ffcb2bd9741abd529f3765905e
parentde6797b130958731f030ed6b753c7b61bf2c32d4
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