Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp557189pxj; Thu, 20 May 2021 16:10:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFk7HIicmTwKlqwYM4hIfuocLXdC03WwO3UXxZgEDhpDh6IvoaOUkUmLeypmwHVt9siAuC X-Received: by 2002:a17:906:c314:: with SMTP id s20mr3867814ejz.521.1621552202696; Thu, 20 May 2021 16:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621552202; cv=none; d=google.com; s=arc-20160816; b=j88Zf66lbxRpnbXCPb0g3JYjW/v+BZYPR73qnUwFPP1K6r5yKc28ZkzNLJh7GcWGd1 +t9/bjhSQ4jUjolS0CvxB6tN7EtJfWDaI1r6E1qrbQMwrhnhcwbcH7B519tK0BrQ7WLL boMCrb77E6N7B3PV5jiWScOjxE9OAsndGtoThMw6yZ5q1eMnu9hM9EsHpyIhV7uNTCrM gvhr4PjMeAP8pAFAAr+kZ8n2VMGxdFGAOcBtw59v7Jfr+gjwwe+HP124wpz+JOFB07cl ZwaYjhx0suFuPawxPtJ6LXQxEb07lQ2XD4C7oeurtFW7YPEskhYEfP7RaBFgw/8mEvEN R6iQ== 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=jyGycfjkfeGfu8ukB0kwPotZdmzgziJozR/ebG1A4Ds=; b=ZXGEW+wXoil0D7T92MkJ7C7+X3f9PW4oaeAyX2z4o0lKUYxd4YY2BEj6juH0AwqW1p Y01/7eiVTAxbduBMieovYfrqKNqyoN7824F+l2rlINQHLoLoOvvuaz5TDlfHy2gFrzu3 qlxceHtDqw9LViTkV30J/UIGv9Zl5DdhN0L99alUT1roLQbOlspmUFI9vSmugNCLoaLG OSYDN8U4nCo3UigoHs761DrnEO3sck5N5uIffPI1j8meZy+82yxXZRnWgiNoq4PHCFLa cFFxl/3Mtp5ZOPgTDsXqJixJ6tfNOEWTRpol8VkeqojrSt6bCuI7K0jwLxMq3zmH5XTq BxAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nxvnvxOK; 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 z21si3661931edq.367.2021.05.20.16.09.29; Thu, 20 May 2021 16:10:02 -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=nxvnvxOK; 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 S241016AbhETLT4 (ORCPT + 99 others); Thu, 20 May 2021 07:19:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:56974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239548AbhETK7g (ORCPT ); Thu, 20 May 2021 06:59:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 62E9261D05; Thu, 20 May 2021 10:03:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504980; bh=yO0ZRCe6xcQUM/ujBAPsg/qgeWWTk8klaqAEMid8Xrc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nxvnvxOKf9cVy8xvxtk+41QiMPZlj7HmEzTfVwFSwchfOQqseyaVHs/4vl7jeqTa0 HdTZemjOdB+FanGmdznTSoGTYGp5O1IWViwp81GUP8KHcvFzS8xsCPk9xAWJ42P0MJ SHNw2rlx4TITHX+BeluJ6TUux2rUBtnFBIaUQPdE= 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.9 168/240] Revert "of/fdt: Make sure no-map does not remove already reserved regions" Date: Thu, 20 May 2021 11:22:40 +0200 Message-Id: <20210520092114.287417646@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092108.587553970@linuxfoundation.org> References: <20210520092108.587553970@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 666ae7c255f9eb7a8fd8e55641542f3624a78b43. 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 @@ -1158,16 +1158,8 @@ void __init __weak early_init_dt_add_mem 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); }