Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp435324ybt; Wed, 8 Jul 2020 03:36:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFtfrjVjujb/ApV1troiTCuDIUAiNx2q9XIqVgVhtCiEQZj/KdGHSb9mPS3LJXnhjOM0xs X-Received: by 2002:aa7:d754:: with SMTP id a20mr7021219eds.375.1594204613303; Wed, 08 Jul 2020 03:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594204613; cv=none; d=google.com; s=arc-20160816; b=TEbG287QtdZshMMzqULJXNywwqwg8+h2wnDx8fG4mIhnMJGYCUwRGLLhToLC+H7QVe aos7F6+5dJN5zYvHtnYa4F2rysCmM9JJI+NsEjHzeC2FLPnupnNU2fwOZbbZm/qjBiIs CjpVQRGKzISi33fK8y9czHckrYLfcG4lolczUhgEpuHkcWsqdV5MMH7zedg0ABG/0QM/ n+g8DEyWpC5LE2Z5Hm8lIZzcwBAiYUG7SPtc2udGdYqmcEqe2VakAjF3+cVqbpN27E40 5wCDf9OvaWtY8cqAxD7dtpM/Wo51868H6yeUzr27QzY/puPcffeAZJDcpak3Tmr7Y5+q kD4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=Q3IvYU/zfZXMV5mkscucqsRPKUboGrYGOrhsujz82UA=; b=KJVS3zcKZv1rtxicPeCqtlbkVAcfHM4pndF/cRu5ThTE40hu2lgTQv6f/TB2Xw9s69 wW9U+Dxx/xxGWR9QlzxwNqCguTJNtLj7mUh3rwVD2iNAMr5T0RuP3VpEyjMLlWregDmF U1zNutBB6wGpq7hDELwpBqvaHJ/oEqiy7P1M1R3NvvVMNyVNXDun0XDwZNsKKYPKUi2n CmHYuNY7LYBfP9WTQxaWlkw55lec2UXse9NdanEUGNGuZIMXjB4Xrk0LnedhxPrw6jeQ d7iRyLuNSdzkYHUnI9HluygXQ//1ngkLUdBjChw++7DmS+kuLG6jdsa3dT0OG0EXP/AN r/nw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qh22si17306297ejb.553.2020.07.08.03.36.29; Wed, 08 Jul 2020 03:36:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728525AbgGHKfi (ORCPT + 99 others); Wed, 8 Jul 2020 06:35:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:42246 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbgGHKfi (ORCPT ); Wed, 8 Jul 2020 06:35:38 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 52AA1AC53; Wed, 8 Jul 2020 10:35:37 +0000 (UTC) Message-ID: <21a7276e98ae245404d82537ac1ee597a92f9150.camel@suse.de> Subject: Re: [PATCH] dma-pool: use single atomic pool for both DMA zones From: Nicolas Saenz Julienne To: Jeremy Linton , Christoph Hellwig , Marek Szyprowski , Robin Murphy , David Rientjes Cc: linux-rpi-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Date: Wed, 08 Jul 2020 12:35:34 +0200 In-Reply-To: References: <20200707122804.21262-1-nsaenzjulienne@suse.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-bnAJ3XLxuxNA1ZPiHOdm" User-Agent: Evolution 3.36.3 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-bnAJ3XLxuxNA1ZPiHOdm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Jim, On Tue, 2020-07-07 at 17:08 -0500, Jeremy Linton wrote: > Hi, >=20 > I spun this up on my 8G model using the PFTF firmware from: >=20 > https://github.com/pftf/RPi4/releases >=20 > Which allows me to switch between ACPI/DT on the machine. In DT mode it= =20 > works fine now,=20 Nice, would that count as a Tested-by from you? > but with ACPI I continue to have failures unless I=20 > disable CMA via cma=3D0 on the kernel command line.=20 Yes, I see why, in atomic_pool_expand() memory is allocated from CMA withou= t checking its correctness. That calls for a separate fix. I'll try to think = of something. > It think that is because >=20 > using DT: >=20 > [ 0.000000] Reserved memory: created CMA memory pool at > 0x0000000037400000, size 64 MiB >=20 >=20 > using ACPI: > [ 0.000000] cma: Reserved 64 MiB at 0x00000000f8000000 >=20 > Which is AFAIK because the default arm64 CMA allocation is just below=20 > the arm64_dma32_phys_limit. As I'm sure you know, we fix the CMA address trough DT, isn't that possible trough ACPI? Regards, Nicolas --=-bnAJ3XLxuxNA1ZPiHOdm 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/4FAl8FoXYACgkQlfZmHno8 x/4A1Af/cSs8xlWTPpYUFQ6HpjKk8LJ80zIBr1nld7DKsJH3aV7pkT2+pDvdro26 g4qSXpPsH+9Ru29z1eViXhXNwyazsyXUCHOY66QdlFVFtWnD8wYqxQj7cWCyiRwE +DiHDBRH69MusXE+11rstR2JBJDISdNYxyLAEAByDRfxq0CHYLI2mIY69Qdu3qK/ G8Udgvqpjc+S7ywvgxVMOVIxKRdq+QpkjaToQt0u8V1VGaKqQ61lNVOYzmCRyeIF 4f3Y+nBqL36I5n5GWY/qmNurJkcy7JuEYXtf6+0bupSM7wHbPCTxweaL4kKaJEwn /JaA8YIaJjTDqEpYesnAiuSGN/ckTw== =PfbY -----END PGP SIGNATURE----- --=-bnAJ3XLxuxNA1ZPiHOdm--