Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2118966lkv; Thu, 20 May 2021 03:51:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyreK7OVa97NuTuAf3brZ5fIK1ek2AO+N7q/9L9wgVNvNbTFylgMGcf/G3BKsTHgYuhIt8F X-Received: by 2002:a5e:930e:: with SMTP id k14mr4911722iom.136.1621507912006; Thu, 20 May 2021 03:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621507911; cv=none; d=google.com; s=arc-20160816; b=X1XtELMvzEKrcqISScCf7brInTx+RzgzrAtW6b73C12/beIQ384s/iKoviyTVgPaOE JjtuKKKMbNqJzLy2SHjepgyxULPtyy+yS+iPmJwAvBB/s+gPovy9spaEX2xZfoE5QDxi QcewP6RWvlT04pVp+XaVzDYz2R8PLo1fjNHr2kLqZr4UUb0ZbhnB4JwQUHpPg0J+7bSm vrlAiHkrZc1uaLYrj15O7mPfA0S+8m8QnH/bebBoxcx7yIjGjJVggRpr8A6FwxbTFJR1 Epd0/ADouhgQpaL+WkEZVmMLOaZUnaF+N5AZebTooMFGa7iO8TrReUb+JabE8xkyWS41 I/Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=o230kz54IgGqS+mbeSQoc7cZ9hSaoEDvdBeKX+lneiE=; b=uq9IE3BrSP2NIdXlfAwya79k/IYMu1DBojioZtLRnG8T9NQlFhH6VfkKwlCHtUkDyN RSoIMdwZzYkMped5tvOnw6ChdnpmpUxu4Bt+DpchSasuUuF3Rz1kUh5jY9AvkpqOb7qm lJssrmVao+dHujxX+X7X6r/yqxrV2jUybu0Zt9fF2MBhUG5ir1YsDWisiSVEJbV52ksA fcfp4BnAZc7nybWGSDP+Zmi8rFuoILatXBvZ6MEEpt+StSqpJz71s4UAx56cKSCVlIQ2 9Qj8Y/4UCcrAW3zvSjGc/UEUk0jv0pjjwM6c1Jk5zaYW0G3993r/M41CXMG1gB3tvQ0T pO7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="gBnR9/cP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si2209920ilj.107.2021.05.20.03.50.53; Thu, 20 May 2021 03:51:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="gBnR9/cP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238955AbhETKum (ORCPT + 99 others); Thu, 20 May 2021 06:50:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:39654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237692AbhETKfT (ORCPT ); Thu, 20 May 2021 06:35:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D75F261582; Thu, 20 May 2021 09:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504409; bh=rVNgWBzYJQW4cFfpHDK+NQlrI5Y2WbL1fz1YraVtl7o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gBnR9/cPev9lX2/9yScV2Dy9Y7Hbawb5fX3MGxQ/bHvp1wcPtadVyKYutUbriVm/G wrxUuzb9kslao9bml4t4k2XiaNiVv6XOVDzkB8yugndzFxW3HWKxsBb60ckZr8LrfZ EsUeB6Gjcv/x8q/d17udct0U85ZzEesqWOJvbtaM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Alexandre TORGUE , Quentin Perret Subject: [PATCH 4.14 231/323] Revert "of/fdt: Make sure no-map does not remove already reserved regions" Date: Thu, 20 May 2021 11:22:03 +0200 Message-Id: <20210520092128.080134633@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Quentin Perret This reverts commit 6793433fc8f263eaba1621d3724b6aeba511c6c5. It is not really a fix, and the backport misses dependencies, which breaks existing platforms. Reported-by: Alexandre TORGUE Signed-off-by: Quentin Perret Signed-off-by: Greg Kroah-Hartman --- drivers/of/fdt.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -1212,16 +1212,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); }