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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 82C25C3F2CD for ; Fri, 28 Feb 2020 20:16:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3A58E24677 for ; Fri, 28 Feb 2020 20:16:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A58E24677 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D51AF6B0005; Fri, 28 Feb 2020 15:16:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D00416B0006; Fri, 28 Feb 2020 15:16:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C162D6B0007; Fri, 28 Feb 2020 15:16:31 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0195.hostedemail.com [216.40.44.195]) by kanga.kvack.org (Postfix) with ESMTP id A53F06B0005 for ; Fri, 28 Feb 2020 15:16:31 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 72F915841 for ; Fri, 28 Feb 2020 20:16:31 +0000 (UTC) X-FDA: 76540643382.24.toes89_903491ed9e500 X-HE-Tag: toes89_903491ed9e500 X-Filterd-Recvd-Size: 3397 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf45.hostedemail.com (Postfix) with ESMTP for ; Fri, 28 Feb 2020 20:16:30 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3DC1AAD2D; Fri, 28 Feb 2020 20:16:29 +0000 (UTC) Message-ID: <13501c8a45e8fd8d98d727f036e96c54faa8425a.camel@suse.de> Subject: Re: cma can't activate area on arm64 From: Nicolas Saenz Julienne To: Jonathan Richardson , Catalin Marinas Cc: Vlastimil Babka , linux-mm@kvack.org, akpm@linux-foundation.org, "linux-arm-kernel@lists.infradead.org" , Robin Murphy Date: Fri, 28 Feb 2020 21:16:27 +0100 In-Reply-To: References: <8f82edf2-7313-eb4c-f68e-ff18f7a5e919@suse.cz> <20200227174838.GI3281767@arrakis.emea.arm.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-j4PnJMw52ImGgjj+GQ2d" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: --=-j4PnJMw52ImGgjj+GQ2d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D1G". The full boot log was in the > attachment. Would you mind attaching it again, I was added to the conversation later. > > you use a fixed base? Also, do you want the CMA in ZONE_DMA or > > ZONE_DMA32? >=20 > I'm not sure which zone we want it in. I'm assuming ZONE_DMA32. Before > that change there was only one zone. If I disable ZONE_DMA I don't see > the error, though I haven't tested anything. I don't really understand wh= y > ZONE_DMA is enabled by default if it's a requirement for Rpi only. > I'm assuming it should work as is with both zones enabled but not clear h= ow > cma spans the two zones. Was there a reason for having both zones enabled= as > the default? It's enabled by default to be able to boot all boards with a common kernel image. IIRC the allocation algo for CMA placement tries to fit it as high as possi= ble in ZONE_DMA32, but I can't really say much more without the logs. Regards, Nicolas --=-j4PnJMw52ImGgjj+GQ2d Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl5ZdRsACgkQlfZmHno8 x/6xigf9F1kVCSMUwE/CErW4Luh3bxC2yp8A9QKBkUxBtDECbf0czXadzZOJtdTx DnoIzxfFtdSw2onToDRRaZFtyBg6ItJWtkukErWYEdkJxeTUde7TPBbM6zhdO99Q QzW7EaVoLln3Vlpqdf6FY8rq91R9jub//9PD3oHbe+1CrYmeOIcAfFRwfAlKFPu0 91P0EIMUfvxuaZqLu0nYQEB10CYfsl6E+kDeEHM88dNnpkHgPNbO2NBGuNzSeGjN OUhLV1CXXOwPo2UwFo9VVUVHpBa98csBoj2AZyBEo7Yrhc3Wotph9D5Z3Yy7mt4z f5AqJAd3fJuhszYSLSrqwRoxoix3Mw== =XVJ4 -----END PGP SIGNATURE----- --=-j4PnJMw52ImGgjj+GQ2d--