Received: by 10.223.148.5 with SMTP id 5csp6481415wrq; Wed, 17 Jan 2018 14:25:51 -0800 (PST) X-Google-Smtp-Source: ACJfBos5NVkjQw3j/AozfGFHa1ucjBcsOejM9Y/VRra46seK57zs2TDsWkKflrWpTCiLu+7wBxrR X-Received: by 10.159.216.131 with SMTP id s3mr301165plp.110.1516227951593; Wed, 17 Jan 2018 14:25:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516227951; cv=none; d=google.com; s=arc-20160816; b=GUQxdFy+u0AZHFbYAUYK93cYXS2jp39n7typqhcM/ULefnR4BXwAr35M+TooXMgtmz fxY+awVXAVEerZ4DIctYCGFpWYDAEJcjrKDBMe8CaXcJBhOW1PQFqMy4WOQ+doZRdw1j X8pe7irbbvZRLjCWxSjFhSiHDLn1ao4LzmNnVdXM5f8qt/M+vR/GYSDU8Y60q5SJkxh3 CiIAvrZTvUVEuIiSvMjxPP6Nev6ROjvpHHZfbTGoEKumGnBnbgjzi6PMI12H5pzUgRra 7MB1W6GQbL4fNMagquB5+bfe540NKYRJj72i1D4p0BtaCKreZ7kgE78ZIrWunXLg0w3p 1lgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=qBQhHKuMEOnhN1ts3drUK/+lIT8zA1haRhS3+VY3DGA=; b=Q5hW7me2fNxS93a8Uy7dtPmJ+eHWMnfqBFT+Fq+3F8xjaIOeZ45DVs0zTJbESNro9p ulJdraIvJd7YBp0LKJpCA/iLuVsLIwHluSvx11chkbl1HT2se873JC/D5f1fsumNtQ1U Kf1GMs3cVOjg7lrOb6fPThh3do+5kLmicg+nElNjAvXLJfPTF/eE9huBfYZnOc/e5tAl t6Wz2M9yc83JCFIc5+vJQ73Bx+7NddsWAQUGWpdUqip3mUAz2jyDl9Ecub/fwsWECWcf 1eYQKN+i1l3Zs4MHi6jBNceki1ao9X7+tstIrjNClmo+9KAP2qYphd7i9HZIQtgT76+0 o2uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=imG8Ewdu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t2si4594907pgo.266.2018.01.17.14.25.37; Wed, 17 Jan 2018 14:25:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=imG8Ewdu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754409AbeAQWYm (ORCPT + 99 others); Wed, 17 Jan 2018 17:24:42 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:44929 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753862AbeAQWXb (ORCPT ); Wed, 17 Jan 2018 17:23:31 -0500 Received: by mail-lf0-f68.google.com with SMTP id w23so23968467lfd.11 for ; Wed, 17 Jan 2018 14:23:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qBQhHKuMEOnhN1ts3drUK/+lIT8zA1haRhS3+VY3DGA=; b=imG8EwduiByBhT956GAhR7aEdryy/2QsYW6JPjazhe9mdp4bto0HwprcubORGK3chG oumaE0JBSdsHiS7/ecdEOrM9NQkuQf6RklgLYmXSR34w8UCmeL0e2pIAZZSBuCvyeH/r pTsgEZ6s/YzJeZVcRlzYWAHID5NJXbTxs3uxk8xeVGpFtpJz+hZvj93BanJ6JEwtLGRU u+E0cBMkQf1qKOLaotLDxtCgzpNUo6S7TCcjey03x+jkYk6k4q8E8Cb7UmjJGWNcn/61 7jykckd3RI9akeE+hW4ETtpSoifvPtsJOR3IuCDzprwICAZbS6iCV67icatr8c7DtWwq w1iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qBQhHKuMEOnhN1ts3drUK/+lIT8zA1haRhS3+VY3DGA=; b=RAErDUsHUNRv8bY9R9+iNfcPaaxxruB+2h09lt6lTBUNPRQYTSm3dBxiI8oc86yjtQ BdEzp/6PTnG3ZdLFRay26b5uVYcJfNFQ0khoJT5OZ9OLuOQzQI19TpZSaQbKxboaMjeX iJ8own6aAyKGsQDJQA/FrQSZiIAAzoybZ+gOXvLvEr9U7aivB1mN1ELgU6sQMCM9rUdZ AsZxaqgnQI+/42+i3GWeqx3yvoE3YbL5prKgvRuqOJAY2lmEz/1Z9kIyN95H2RPnDMCL AqUNa9qfeq5tQT04e8bu77v7k91EtjMUBzJbw5mqddwGJozmL/6wXVyCsZbbUlh0ppQz 228g== X-Gm-Message-State: AKGB3mLt86JAwt1RAXAOyPpLDM9+F3R3Pd7uddDiIzx4jSfcFHYLONHP 3SHCFlAIgdNvqgiUeba/RzI= X-Received: by 10.46.60.22 with SMTP id j22mr27968751lja.111.1516227809873; Wed, 17 Jan 2018 14:23:29 -0800 (PST) Received: from linux.local ([95.79.164.146]) by smtp.gmail.com with ESMTPSA id l203sm953867lfb.59.2018.01.17.14.23.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Jan 2018 14:23:29 -0800 (PST) From: Serge Semin To: ralf@linux-mips.org, miodrag.dinic@mips.com, jhogan@kernel.org, goran.ferenc@mips.com, david.daney@cavium.com, paul.gortmaker@windriver.com, paul.burton@mips.com, alex.belits@cavium.com, Steven.Hill@cavium.com Cc: alexander.sverdlin@nokia.com, matt.redfearn@mips.com, kumba@gentoo.org, marcin.nowakowski@mips.com, James.hogan@mips.com, Peter.Wotton@mips.com, Sergey.Semin@t-platforms.ru, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Serge Semin Subject: [PATCH 08/14] MIPS: memblock: Simplify DMA contiguous reservation Date: Thu, 18 Jan 2018 01:23:06 +0300 Message-Id: <20180117222312.14763-9-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180117222312.14763-1-fancer.lancer@gmail.com> References: <20180117222312.14763-1-fancer.lancer@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CMA reserves it areas in the memblock allocator. Since we aren't using bootmem anymore, the reservations copying should be discarded. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 6df1eaf38..e0ca0d2bc 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -869,10 +869,6 @@ static void __init arch_mem_init(char **cmdline_p) plat_swiotlb_setup(); dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); - /* Tell bootmem about cma reserved memblock section */ - for_each_memblock(reserved, reg) - if (reg->size != 0) - reserve_bootmem(reg->base, reg->size, BOOTMEM_DEFAULT); } static void __init resource_init(void) -- 2.12.0