This is a note to let you know that I've just added the patch titled Revert "of/fdt: Make sure no-map does not remove already reserved regions" to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: revert-of-fdt-make-sure-no-map-does-not-remove-already-reserved-regions.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From foo@baz Wed May 12 04:06:43 PM CEST 2021 From: Quentin Perret <qperret@xxxxxxxxxx> Date: Wed, 12 May 2021 12:30:10 +0000 Subject: Revert "of/fdt: Make sure no-map does not remove already reserved regions" To: stable@xxxxxxxxxxxxxxx Cc: alexandre.torgue@xxxxxxxxxxx, robh+dt@xxxxxxxxxx, f.fainelli@xxxxxxxxx, ardb@xxxxxxxxxx, gregkh@xxxxxxxxxxxxxxxxxxx, sashal@xxxxxxxxxx Message-ID: <20210512123011.3285670-1-qperret@xxxxxxxxxx> From: Quentin Perret <qperret@xxxxxxxxxx> This reverts commit 74f2678aab60c9915daa83e6e23d31a896932d9d. It is not really a fix, and the backport misses dependencies, which breaks existing platforms. Reported-by: Alexandre TORGUE <alexandre.torgue@xxxxxxxxxxx> Signed-off-by: Quentin Perret <qperret@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/of/fdt.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -1172,16 +1172,8 @@ int __init __weak early_init_dt_mark_hot int __init __weak early_init_dt_reserve_memory_arch(phys_addr_t base, phys_addr_t size, bool nomap) { - if (nomap) { - /* - * If the memory is already reserved (by another region), we - * should not allow it to be marked nomap. - */ - if (memblock_is_region_reserved(base, size)) - return -EBUSY; - + if (nomap) return memblock_mark_nomap(base, size); - } return memblock_reserve(base, size); } Patches currently in stable-queue which might be from qperret@xxxxxxxxxx are queue-4.19/revert-fdt-properly-handle-no-map-field-in-the-memory-region.patch queue-4.19/revert-of-fdt-make-sure-no-map-does-not-remove-already-reserved-regions.patch