Received: by 10.223.176.5 with SMTP id f5csp265015wra; Thu, 1 Feb 2018 20:00:05 -0800 (PST) X-Google-Smtp-Source: AH8x226yN0nGNiCkKTrKvbjk5d3WP3Q1ltfjo9ZX0d3mmyK0LAR5ntalThWg6xfmQOlxpz8NA2RP X-Received: by 2002:a17:902:8691:: with SMTP id g17-v6mr34344361plo.446.1517544005771; Thu, 01 Feb 2018 20:00:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517544005; cv=none; d=google.com; s=arc-20160816; b=cpdpo5E/2JMbXGCWJGBvwKRfmw1pFXOLX97chHE41ZiRlHUv8HFi/uOP7dT5A1HCdr 2ejiY4VanNm295zjuq65BP48Jp+Ehtmkbw1qlD0/IZJr44J+CI8IrMPC8Qz2sbrGNsV6 ihfiac5odck9yD8uMZUPqSlbNv6EMobRMgmyxco4JQOEUKCta9csO+cOInPhCCpRizhi L7d5XLN/w7rUjpLq3H94DXLBK4kw0L4tvg5Ep5YR9MwlvcC3IgYO3MUttsefStnYXnLp 2ZIgEbh8vm/kA6K6uXAHHPI6FXKDTEcu3FZuLBtpRyJVvKjeXulV+j5jNlD4KJMraczx kwJQ== 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=3YFZQsA6GioPELRkVECBm/dkPa2HLVOgF+uf5PCrLKY=; b=gJSQHNx3M2eXwgfb+aScT7Qum+ggMfu6pleMoRbz4uffD/AACHMD9yCr5TA98E83L/ ZPlApMzGNnMgQfcJsg2aVsTqI5hqUaoK8/EjC4hVlcYjwiQ7B4MOUjHdmGRsiHkUtwr3 JugZzLf4VVT3wWsP0Tk/gLPwXhRiVsPRLPhffqEyihGZB1zZzrW06LtyvcxYgyqJl5+L r551HFdPV0VtXWMtNMoulkprlWXIxi6LEpAUQxYQvJ/gRrJcQij44gSrPyR9J1zljfk7 MWjdhxg1FScEdTbWwpbzKrvb6j/myHtJm2Vpk3YE2nVjaX2mTMH3WRNflQE3+z5C33j7 0PcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U73+TuBm; 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 h15-v6si983168plk.480.2018.02.01.19.59.51; Thu, 01 Feb 2018 20:00:05 -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=U73+TuBm; 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 S1751959AbeBBD5i (ORCPT + 99 others); Thu, 1 Feb 2018 22:57:38 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:41218 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751812AbeBBDzQ (ORCPT ); Thu, 1 Feb 2018 22:55:16 -0500 Received: by mail-lf0-f68.google.com with SMTP id f136so29434646lff.8 for ; Thu, 01 Feb 2018 19:55:16 -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=3YFZQsA6GioPELRkVECBm/dkPa2HLVOgF+uf5PCrLKY=; b=U73+TuBm/UB4T2G0YR3QgOHwa73o+S4qy+ZZWWl9F0j/9Jup9vfNX5YR11jE2/whCM dX3DLHpx1HBRTKs17E+zl58teEmED5l6rXpzeQqJgbosdbQRKyOgBCkfrw/kLhMNpYOP vTZT+nE/+i/n+dZ8lENQybE5sMUYXGd0EhfHb7HrK2uE5Bh8ds+RFWFyVHShJ42E6zSa Pgflc1DR4IlNNp88LJExom+7NTI6dKAITMcAt+MpLjsOrBfPX/+lfC4+ldgr+Uu6lDl2 iQCzaPYhg2Tt/N08jgo3laMwD3YgqBSMOrb6fOQ2fe4LEST8An9oNPMeDHfSxRq+WXLc tiDg== 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=3YFZQsA6GioPELRkVECBm/dkPa2HLVOgF+uf5PCrLKY=; b=iZP3V0Y5u34QWZn/agvyGFjMZVGaWN4s9f9n78faN6PirwvNB/cDcS5SyxMBVO4vHm OwjDz2cwb1EG+qUS/2L7xBHi5DqOkGHRtgf1wcQ549p5GVIq8F9D2jAeljQhZejr1//l aBmyo6/QmIVBFdvVdfQmIh4XYAVgsS2GRnovleiT1gKW+01EANZHJSxshx6J0qIYMnWg 3Oz2biV6oS3jZ9ymVne00KWwsOHoV/SOMafHxNMePD5SulCD9IlEz+Qdj+CZ4f82b5n6 cu1fL+PJDgWW8Ac9qP6fNQUgejaxnbua/Qiv6X8IbpH+bZpQ1Ms8rMLQUdLR0YMXe5Cd pG7A== X-Gm-Message-State: AKwxytdhPi9SproTGR7UdbEEpfzKIYHkoq/9xKjP0peQnmwM6hAWvC/T BNLWSucXPQeHhtc01YZiry0= X-Received: by 10.46.118.4 with SMTP id r4mr2890558ljc.123.1517543715273; Thu, 01 Feb 2018 19:55:15 -0800 (PST) Received: from linux.local ([95.79.164.146]) by smtp.gmail.com with ESMTPSA id f14sm190934lje.84.2018.02.01.19.55.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Feb 2018 19:55:14 -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 v2 09/15] MIPS: memblock: Simplify DMA contiguous reservation Date: Fri, 2 Feb 2018 06:54:52 +0300 Message-Id: <20180202035458.30456-10-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180202035458.30456-1-fancer.lancer@gmail.com> References: <20180117222312.14763-1-fancer.lancer@gmail.com> <20180202035458.30456-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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 54302319ce1c..158a52c17e29 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -755,7 +755,7 @@ static void __init request_crashkernel(struct resource *res) static void __init arch_mem_init(char **cmdline_p) { - struct memblock_region *reg; + struct memblock_region *reg __maybe_unused; extern void plat_mem_setup(void); /* call board setup routine */ @@ -846,10 +846,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