From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86721C3F2D3 for ; Fri, 28 Feb 2020 21:00:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 10C55246AE for ; Fri, 28 Feb 2020 21:00:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 10C55246AE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 761E06B0005; Fri, 28 Feb 2020 16:00:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 713EB6B0006; Fri, 28 Feb 2020 16:00:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5DB9A6B0007; Fri, 28 Feb 2020 16:00:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0224.hostedemail.com [216.40.44.224]) by kanga.kvack.org (Postfix) with ESMTP id 427496B0005 for ; Fri, 28 Feb 2020 16:00:44 -0500 (EST) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id ED2E44403 for ; Fri, 28 Feb 2020 21:00:43 +0000 (UTC) X-FDA: 76540754766.03.coach23_5da53ff283242 X-HE-Tag: coach23_5da53ff283242 X-Filterd-Recvd-Size: 3018 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf42.hostedemail.com (Postfix) with ESMTP for ; Fri, 28 Feb 2020 21:00:43 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8394C4B2; Fri, 28 Feb 2020 13:00:42 -0800 (PST) Received: from [192.168.1.123] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 64FA53F7B4; Fri, 28 Feb 2020 13:00:41 -0800 (PST) Subject: Re: cma can't activate area on arm64 To: Jonathan Richardson , Nicolas Saenz Julienne Cc: Catalin Marinas , Vlastimil Babka , linux-mm@kvack.org, akpm@linux-foundation.org, "linux-arm-kernel@lists.infradead.org" References: <8f82edf2-7313-eb4c-f68e-ff18f7a5e919@suse.cz> <20200227174838.GI3281767@arrakis.emea.arm.com> <13501c8a45e8fd8d98d727f036e96c54faa8425a.camel@suse.de> From: Robin Murphy Message-ID: Date: Fri, 28 Feb 2020 21:00:41 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000010, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 2020-02-28 8:34 pm, Jonathan Richardson wrote: > On Fri, Feb 28, 2020 at 12:16 PM Nicolas Saenz Julienne > wrote: >> >> On Fri, 2020-02-28 at 11:56 -0800, Jonathan Richardson wrote: >>> This is stingray (arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts). >>> cma is specified on cmdline as "cma=1G". The full boot log was in the >>> attachment. >> >> Would you mind attaching it again, I was added to the conversation later. > > Sure, it is attached. Thanks for taking a look. This is a boot with > "arch/arm64/configs/defconfig" and the previously mentioned dtb. [ 0.000000] efi: SMBIOS=0x85c90000 SMBIOS 3.0=0x85a20000 ACPI 2.0=0x85d50000 MEMATTR=0x8945e118 MEMRESERVE=0x85f85018 [ 0.000000] crashkernel reserved: 0x00000000e0000000 - 0x0000000100000000 (512 MB) [ 0.000000] cma: Reserved 1024 MiB at 0x00000000a0000000 ... [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000080000000-0x00000000bfffffff] [ 0.000000] DMA32 [mem 0x00000000c0000000-0x00000000ffffffff] Well there's your problem - both zones are only nominally 1GB to begin with, and both have stuff in them before we even get to placing CMA. To be honest, even without ZONE_DMA that looks pretty tight. Robin.