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=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 BDAD5C433DB for ; Sat, 26 Dec 2020 10:37:07 +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 7895F2080C for ; Sat, 26 Dec 2020 10:37:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7895F2080C 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=9vYzJ8yKJqf7uhQUDTwtAtjKIQSBN6U1ODm2n43ZC5o=; b=UgXSlSTyF7E0xLY79k5Hp+g83 PBxOsb3vIjkS1RAk7h1AeDn9Dj6Y6NOeNtoAANm6C2mT2iTgtyiFlgcPAQqBciTBviWkuaX2zzy4Y vrRRGtD3y/IXeVYTZKAz6pu0ukjIR0Nn3649dlNTnkjuKqrTQdPvajjbtIDRpTLpuUHDYVAJCr9pu FOLdojnaUH7tkVMMWeHadiHsvSOKC4QGWg/glYLxTi+7UEWjyqTtkNzht551EHzOzMdiKy50zBPhm aalCH1i1qRHEg28SMuZJCokp/cWQap/4GlOLSWKWSHPbDIJPM/tgsLdpxOJPDA111BxcsY6+pvYvi B4d46dUGA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kt6va-000870-6N; Sat, 26 Dec 2020 10:36:02 +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 1kt6vY-00086V-Fq for linux-arm-kernel@lists.infradead.org; Sat, 26 Dec 2020 10:36:01 +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 6AEAAACBA; Sat, 26 Dec 2020 10:35:59 +0000 (UTC) Message-ID: <407ae3b1d7da3d1e7aa3e815e1af27832b914aa5.camel@suse.de> Subject: Re: [PATCH 1/2] arm64: mm: update the comments about ZONE_DMA From: Nicolas Saenz Julienne To: Chen Zhou , catalin.marinas@arm.com, will@kernel.org Date: Sat, 26 Dec 2020 11:35:58 +0100 In-Reply-To: <20201226033557.116251-2-chenzhou10@huawei.com> References: <20201226033557.116251-1-chenzhou10@huawei.com> <20201226033557.116251-2-chenzhou10@huawei.com> User-Agent: Evolution 3.38.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201226_053600_653708_DCA84540 X-CRM114-Status: GOOD ( 17.93 ) 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: song.bao.hua@hisilicon.com, xiexiuqi@huawei.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, huawei.libin@huawei.com, akpm@linux-foundation.org, ardb@kernel.org, rppt@kernel.org Content-Type: multipart/mixed; boundary="===============7137857079008498216==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============7137857079008498216== Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-yzrYLKX+HQDF7PmSpu8s" --=-yzrYLKX+HQDF7PmSpu8s Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2020-12-26 at 11:35 +0800, Chen Zhou wrote: > Since patchset "arm64: Default to 32-bit wide ZONE_DMA", ZONE_DMA's > size is fine-tuned. In the absence of addressing limited masters, > ZONE_DMA will span the whole 32-bit address space, otherwise, in > the case of the Raspberry Pi 4, it'll only span the 30-bit address > space. Update the comments. >=20 > Signed-off-by: Chen Zhou > --- Reviewed-by: Nicolas Saenz Julienne > =C2=A0arch/arm64/mm/init.c | 9 +++++---- > =C2=A01 file changed, 5 insertions(+), 4 deletions(-) >=20 > diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c > index 75addb36354a..7b9809e39927 100644 > --- a/arch/arm64/mm/init.c > +++ b/arch/arm64/mm/init.c > @@ -53,10 +53,11 @@ s64 memstart_addr __ro_after_init =3D -1; > =C2=A0EXPORT_SYMBOL(memstart_addr); > =C2=A0 >=20 > =C2=A0/* > - * We create both ZONE_DMA and ZONE_DMA32. ZONE_DMA covers the first 1G = of > - * memory as some devices, namely the Raspberry Pi 4, have peripherals w= ith > - * this limited view of the memory. ZONE_DMA32 will cover the rest of th= e 32 > - * bit addressable memory area. > + * We create both ZONE_DMA and ZONE_DMA32. ZONE_DMA's size is fine-tuned= . > + * In the absence of addressing limited masters, ZONE_DMA will span the > + * whole 32-bit address space, otherwise, in the case of the Raspberry P= i 4, > + * it'll only span the 30-bit address space. ZONE_DMA32 will cover the r= est > + * of the 32 bit addressable memory area. > =C2=A0=C2=A0*/ > =C2=A0phys_addr_t arm64_dma_phys_limit __ro_after_init; > =C2=A0static phys_addr_t arm64_dma32_phys_limit __ro_after_init; --=-yzrYLKX+HQDF7PmSpu8s 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/nEg4ACgkQlfZmHno8 x/4/tAf9G70tDzHyXfBIunFJFLQvW3GCHcT82gHS+ffxslDWgtK1BXWxoT9tnxaA EZITup2zjYfiWsSGUQofJ9XsJ7HxxyvFWV4+f62eDslJLCJIN/EG244u1O66dc1J G4fokAvbIDuL0S8eIWPZkUH8r/7PAYa6nh22FwcmAC4Y4f8rzGvWfOZUJwvWjQUj LZSZ029UpufqKDX+cTu2/7IxQjVMprxWZiSSIU5HY8BPk3h9AaUInCAVB9rbTNSk A75pCCu823yYdf6XO16Ura9rFHJOFp+B2xGsJq6pnDg/hUAI7qLjyBGvVi6UjDQC HJTYqbRw5ApNUiIH6j2ZyM8HTJ9mUA== =iIgg -----END PGP SIGNATURE----- --=-yzrYLKX+HQDF7PmSpu8s-- --===============7137857079008498216== 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 --===============7137857079008498216==-- 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=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 917FAC433E0 for ; Sat, 26 Dec 2020 10:36:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 65EB32080C for ; Sat, 26 Dec 2020 10:36:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726129AbgLZKgm (ORCPT ); Sat, 26 Dec 2020 05:36:42 -0500 Received: from mx2.suse.de ([195.135.220.15]:38340 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725924AbgLZKgl (ORCPT ); Sat, 26 Dec 2020 05:36:41 -0500 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 6AEAAACBA; Sat, 26 Dec 2020 10:35:59 +0000 (UTC) Message-ID: <407ae3b1d7da3d1e7aa3e815e1af27832b914aa5.camel@suse.de> Subject: Re: [PATCH 1/2] arm64: mm: update the comments about ZONE_DMA From: Nicolas Saenz Julienne To: Chen Zhou , catalin.marinas@arm.com, will@kernel.org Cc: ardb@kernel.org, akpm@linux-foundation.org, rppt@kernel.org, song.bao.hua@hisilicon.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, huawei.libin@huawei.com, xiexiuqi@huawei.com Date: Sat, 26 Dec 2020 11:35:58 +0100 In-Reply-To: <20201226033557.116251-2-chenzhou10@huawei.com> References: <20201226033557.116251-1-chenzhou10@huawei.com> <20201226033557.116251-2-chenzhou10@huawei.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-yzrYLKX+HQDF7PmSpu8s" User-Agent: Evolution 3.38.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-yzrYLKX+HQDF7PmSpu8s Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2020-12-26 at 11:35 +0800, Chen Zhou wrote: > Since patchset "arm64: Default to 32-bit wide ZONE_DMA", ZONE_DMA's > size is fine-tuned. In the absence of addressing limited masters, > ZONE_DMA will span the whole 32-bit address space, otherwise, in > the case of the Raspberry Pi 4, it'll only span the 30-bit address > space. Update the comments. >=20 > Signed-off-by: Chen Zhou > --- Reviewed-by: Nicolas Saenz Julienne > =C2=A0arch/arm64/mm/init.c | 9 +++++---- > =C2=A01 file changed, 5 insertions(+), 4 deletions(-) >=20 > diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c > index 75addb36354a..7b9809e39927 100644 > --- a/arch/arm64/mm/init.c > +++ b/arch/arm64/mm/init.c > @@ -53,10 +53,11 @@ s64 memstart_addr __ro_after_init =3D -1; > =C2=A0EXPORT_SYMBOL(memstart_addr); > =C2=A0 >=20 > =C2=A0/* > - * We create both ZONE_DMA and ZONE_DMA32. ZONE_DMA covers the first 1G = of > - * memory as some devices, namely the Raspberry Pi 4, have peripherals w= ith > - * this limited view of the memory. ZONE_DMA32 will cover the rest of th= e 32 > - * bit addressable memory area. > + * We create both ZONE_DMA and ZONE_DMA32. ZONE_DMA's size is fine-tuned= . > + * In the absence of addressing limited masters, ZONE_DMA will span the > + * whole 32-bit address space, otherwise, in the case of the Raspberry P= i 4, > + * it'll only span the 30-bit address space. ZONE_DMA32 will cover the r= est > + * of the 32 bit addressable memory area. > =C2=A0=C2=A0*/ > =C2=A0phys_addr_t arm64_dma_phys_limit __ro_after_init; > =C2=A0static phys_addr_t arm64_dma32_phys_limit __ro_after_init; --=-yzrYLKX+HQDF7PmSpu8s 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/nEg4ACgkQlfZmHno8 x/4/tAf9G70tDzHyXfBIunFJFLQvW3GCHcT82gHS+ffxslDWgtK1BXWxoT9tnxaA EZITup2zjYfiWsSGUQofJ9XsJ7HxxyvFWV4+f62eDslJLCJIN/EG244u1O66dc1J G4fokAvbIDuL0S8eIWPZkUH8r/7PAYa6nh22FwcmAC4Y4f8rzGvWfOZUJwvWjQUj LZSZ029UpufqKDX+cTu2/7IxQjVMprxWZiSSIU5HY8BPk3h9AaUInCAVB9rbTNSk A75pCCu823yYdf6XO16Ura9rFHJOFp+B2xGsJq6pnDg/hUAI7qLjyBGvVi6UjDQC HJTYqbRw5ApNUiIH6j2ZyM8HTJ9mUA== =iIgg -----END PGP SIGNATURE----- --=-yzrYLKX+HQDF7PmSpu8s--