Received: by 10.223.185.116 with SMTP id b49csp3679827wrg; Tue, 13 Feb 2018 06:10:49 -0800 (PST) X-Google-Smtp-Source: AH8x226VF+Pvbcub6dhFKvuu+Z8HiTLTqOqi1LylmecXDv8PzwP3YsRSBQ2eTNP1H0Hm8M4yudQ7 X-Received: by 2002:a17:902:8c81:: with SMTP id t1-v6mr1215589plo.363.1518531049691; Tue, 13 Feb 2018 06:10:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518531049; cv=none; d=google.com; s=arc-20160816; b=E38zB7PtFKYBJy9nWmpR5NYELgCoGvj4yWzWqEzDT0RUQB4Wpdx3sDE9xpB4EEtpxn 2J6q4tBnJkYMtEx3MikCfyKVJo0YT102JlQjxMvPRpaJLAkJH2pgIkzVjI6Yk1VA3XRo f9xxGAjpxvd3hivghF5pZLWO4yzzkkGRzoxS0XchYHiob55ZrPdqtuO+nBBXuFeYvNDm /nNSJBKVsRLIKPMpOemskpCXnnsoF73ReN9zvYdL1lk8SwMYptRcfrf5wX9P6tkpb6HI LaCD5fmAHOBwdNwvcq8j77yh7ZQ1byfwCB2MY2LT6GY+CPvEt5g9u9mS4YkVQKzyEkYu QqMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=D6u2Ug3nKG9XXpBVIC5qIJX7fymOKM6Oxr9GDXnqRps=; b=inF/Fb5KBK8DtD60EJDPCBVFqz1HiS7xpz9d9yHlOM+YN75x0L1QkedvQh2gd+/q8z /Bmu1qJfVaqlVYzd2UPkSOFqm+1y58lmue4vvfglUV9MTiXVGINsphZoHevHKgS3MmyF T5OcFVBK+Z/QPAdza1LgOETLgGuFZndbNhrOOZFe5arihxM+OeEvF4tbp75OJnlUli3y Y8CMrpvQVofoGQsB3179L1O17rs2CWLjKH1lSVY763ewBNR4Vo6VlwyvP0mHvVhYJOjQ FOCH0kYWC+O/v21mbzp7Q/OL04dtL4NPLz6h4MrkQzDNUhpbZKX1HeUgty1WJQzRzVbu pT+g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g33-v6si1509171plb.251.2018.02.13.06.10.35; Tue, 13 Feb 2018 06:10:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965085AbeBMOJv (ORCPT + 99 others); Tue, 13 Feb 2018 09:09:51 -0500 Received: from 9pmail.ess.barracuda.com ([64.235.154.210]:48429 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964955AbeBMOJu (ORCPT ); Tue, 13 Feb 2018 09:09:50 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1402.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Tue, 13 Feb 2018 14:08:12 +0000 Received: from [10.150.130.83] (10.150.130.83) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 13 Feb 2018 05:51:47 -0800 Subject: Re: [PATCH v2 09/15] MIPS: memblock: Simplify DMA contiguous reservation To: Serge Semin , , , , , , , , , CC: , , , , , , , References: <20180117222312.14763-1-fancer.lancer@gmail.com> <20180202035458.30456-1-fancer.lancer@gmail.com> <20180202035458.30456-10-fancer.lancer@gmail.com> From: Matt Redfearn Message-ID: <211f951d-8704-76ed-c9a8-1ff5256d641f@mips.com> Date: Tue, 13 Feb 2018 13:51:41 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20180202035458.30456-10-fancer.lancer@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.150.130.83] X-BESS-ID: 1518530891-321458-10260-38552-10 X-BESS-VER: 2018.1-r1801291959 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.189978 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Serge, On 02/02/18 03:54, Serge Semin wrote: > 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 Looks good to me Reviewed-by: Matt Redfearn Thanks, Matt > --- > 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) >