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=-8.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 CD1D0C388F9 for ; Thu, 19 Nov 2020 09:52:56 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5532B246E0 for ; Thu, 19 Nov 2020 09:52:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mD5qeQ+7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5532B246E0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:References:In-Reply-To:Date:To:From:Subject:Message-ID:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=n5aKgZRIcesQnj7lI4DhOl4/wELfg9D8iZ96nZ1SnZ0=; b=mD5qeQ+7s1B1xUh+G0k4ft7KZ c5cnskdtCud0aqig6gkOxIP081AYvpauJGIgJuLaPXC0eGge9ujG4HcuSHpnd0nqL6ba3/i5G3dJ3 A+8rytTbb3pymrnHYn+g8x6WqS3IszdMWWIxcgY4hzpe5qz+JliPSXpauDN9xUG3ka5D2NRCcFkMu VUEFcSeVfEcYlnDyfyQDHkbERTATQB9FipF0tsBA+NJGZZI6SyYzELeXhVsf/zjqnfGOrMzbpCgZC kXZlwf+kr6mXom33BX/l/CgxDU8ZqHxoCQb/50wrNy+mMOZeIcsggecyUTfhSa8PsvlqzXKqk+zUe yYmv/A/xQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfgb8-000400-N2; Thu, 19 Nov 2020 09:51:26 +0000 Received: from mx2.suse.de ([195.135.220.15]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfgb4-0003zd-Eb for linux-arm-kernel@lists.infradead.org; Thu, 19 Nov 2020 09:51:23 +0000 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 1C28CACC0; Thu, 19 Nov 2020 09:51:20 +0000 (UTC) Message-ID: <9a353804d3bb767b31359886e4fb7bf34ae0bf22.camel@suse.de> Subject: Re: [PATCH v2] arm64: Ignore any DMA offsets in the max_zone_phys() calculation From: Nicolas Saenz Julienne To: Catalin Marinas , linux-arm-kernel@lists.infradead.org Date: Thu, 19 Nov 2020 10:51:19 +0100 In-Reply-To: <20201118185809.1078362-1-catalin.marinas@arm.com> References: <20201118185809.1078362-1-catalin.marinas@arm.com> User-Agent: Evolution 3.36.5 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201119_045122_646471_432AB0FA X-CRM114-Status: GOOD ( 14.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robin Murphy , Will Deacon Content-Type: multipart/mixed; boundary="===============5940258231852451470==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5940258231852451470== Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-aApCeXtjGmfjKNvmI4pa" --=-aApCeXtjGmfjKNvmI4pa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2020-11-18 at 18:58 +0000, Catalin Marinas wrote: > Currently, the kernel assumes that if RAM starts above 32-bit (or > zone_bits), there is still a ZONE_DMA/DMA32 at the bottom of the RAM and > such constrained devices have a hardwired DMA offset. In practice, we > haven't noticed any such hardware so let's assume that we can expand > ZONE_DMA32 to the available memory if no RAM below 4GB. Similarly, > ZONE_DMA is expanded to the 4GB limit if no RAM addressable by > zone_bits. >=20 > Signed-off-by: Catalin Marinas > Cc: Nicolas Saenz Julienne > Cc: Robin Murphy > --- Reviewed-by: Nicolas Saenz Julienne On RPi4 and QEMU: Tested-by: Nicolas Saenz Julienne Regards, Nicolas --=-aApCeXtjGmfjKNvmI4pa 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/4FAl+2QBcACgkQlfZmHno8 x/7GnAf+JrvsJIt9cUHG4/nfbCFXbgi3hfCKOsVBGkkfzbEaHBK0wuLf2iR5SOLk 6+gx7HMN++2mMXN/vUKMNWA+CpQRPMJS5RW9ylcguoaFFuT/eiJ0WFUWQhlczD3b dXz+qVOB0iEU2RuQuMXsDBhxWFObeRvCmB2m9Txa+vNPC/uK6LGi7FHk56PdiCG/ i4JtCN+pEHgZu0gYZNlBulzcaQDMK0nUovfg2HcRNqgEPh0mKewu7xpI8q9s9D8z rr29OSYaoEpWcbne7z4W0P0XkCwoyMo/HICtVowg4407HNxSmxG/BZ7OOtFr6xij p+MvB2/AUHXu1G+aTxsYzOQzEe6fqQ== =ShDC -----END PGP SIGNATURE----- --=-aApCeXtjGmfjKNvmI4pa-- --===============5940258231852451470== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5940258231852451470==--