Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10427573pxu; Wed, 30 Dec 2020 02:19:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4cQuWp5U2AyFroyN/d8ScWIQmSJwKBJdSctiF7eiTVLXG48/ZnUGxcb4DUwud2EwbRmQ9 X-Received: by 2002:a17:906:4e45:: with SMTP id g5mr48840933ejw.391.1609323560809; Wed, 30 Dec 2020 02:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609323560; cv=none; d=google.com; s=arc-20160816; b=j7Xh+iTqdk0HB6Au7FNoQUGjAujKGrDU/y0b7SWXLcJHYJsS7JmivHpptk+LQyoS5j jgOf0Ky7RGH7u3fgbYU3qL/oCfpZAY9774DlyBenx6z/gnJ9HiVURe1/QgEay23yX1Gs Vm7nZ06kcdAEA5HjfF048nXi61p1bXa8LTaQyHS5hWUKieP1tMI/8eUxU8oJuwfZl4hL 5Vs/L90CVbcY01y4LCggjjvAoWzHtNpIIM3w8TEDNEuvunajT5NaorQRTg7sdRs8npnp SN0nm4IK583jGwu7euoBINyZhyOikIaHAI8jTeUJPkQBZ8VQOH3GbcOS8n6vZhVhzYf4 OSxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=FQCjlm/CYqKyf87WR+4sub9qNdJWYC1frMqNzIPheE0=; b=IfVS0mqkDY4RZzWEVZcvv+xS8QKzaHnPWDFpvJLrVrIqHa3AADIehiuNbai4m8gRR0 sN2EpQpgyKf80/TUAW0CiLx8pa2MChkkbfCZcbPfo6+ezq3/DulMH4dDUeEZHziEIFqA HDT9qvYO4NB3VICfB/aDwW6DU+gPGZurANfyaNU7UqfgKO54xTWt9amYkkl/lvNI6d4b iyTUOJUbb/egLy2LLmBuRrJiU3cN3kgM9uUsiCm5Lm9v79ffKMNQcxU2KnI1UuLA/4NH kWtx+4/I3jbbg8jw2tC4P9G8hucynVkR85ABnBX7i05t8Ni8s4dFFTVZ4Quuvc6V59dd W2Bw== 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 p18si12693710ejf.702.2020.12.30.02.18.58; Wed, 30 Dec 2020 02:19:20 -0800 (PST) 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 S1726517AbgL3KR4 (ORCPT + 99 others); Wed, 30 Dec 2020 05:17:56 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:9661 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbgL3KRz (ORCPT ); Wed, 30 Dec 2020 05:17:55 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4D5Ryb5s2Xz15kbL; Wed, 30 Dec 2020 18:16:23 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Wed, 30 Dec 2020 18:17:03 +0800 From: Chen Zhou To: , CC: , , , , , , , , Subject: [PATCH v2 1/3] arm64: mm: update the comments about ZONE_DMA Date: Wed, 30 Dec 2020 18:23:20 +0800 Message-ID: <20201230102322.176313-2-chenzhou10@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201230102322.176313-1-chenzhou10@huawei.com> References: <20201230102322.176313-1-chenzhou10@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Chen Zhou Reviewed-by: Nicolas Saenz Julienne --- arch/arm64/mm/init.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 = -1; EXPORT_SYMBOL(memstart_addr); /* - * 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 with - * this limited view of the memory. ZONE_DMA32 will cover the rest of the 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 Pi 4, + * it'll only span the 30-bit address space. ZONE_DMA32 will cover the rest + * of the 32 bit addressable memory area. */ phys_addr_t arm64_dma_phys_limit __ro_after_init; static phys_addr_t arm64_dma32_phys_limit __ro_after_init; -- 2.20.1