Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp7555275pxu; Fri, 25 Dec 2020 19:33:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYSpymF4j3rQS2R3AmvUCbiFFN7EM+m4Gaje8ar2JudKFEcve+GenyoTfQpZ8hhckKztPS X-Received: by 2002:a17:906:9888:: with SMTP id zc8mr32818593ejb.42.1608953622182; Fri, 25 Dec 2020 19:33:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608953622; cv=none; d=google.com; s=arc-20160816; b=GCFo8VrC3b2pPcNOplBj5wIbeoji6ZCEuV7Ph6KnPb4FKtEFZS8c6DInX9ZkKkSdpx cwNxKgDqA3WdIutKHTbCPDAwfR1cieKBo3lamoovmEDroSYz8S6/V8YX3+8UUh544pI0 9cMx44E2c+vcOC80GomvvP1olTiHYp3jYF8P4o3dVi5HJguqmOfegPlBa8lXapWkdgkB g4ThonL9QHIFRr0onIp3BeYpwQ+v+m6EpOTZ3AF+HAHGFAa7SiyC8DgefOact3XS6ztE uwgxM5sJ4wIvDWE4XxhTI66Z3V34SyhWB89aAi/fEFKX6nsC6l+xzHTO5MVZTExCzTWm HRqw== 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=i0TINtYzkO0SyCJGWNSfni6c8ILui4VoNno2SzGjJeE=; b=ELqBi8BKeorteOfY5aylANNZ19jXVPLzTYcDFfXTcdEnnf9zu7MpjCxuxJynqNqhWB tne5K39WtiOHsyVGpXw86dMHe0waq7qkN2I8sW3t3EoOYiYbdCeSgC5fNOv8cI3pn3/5 Cwa4MjPH9qkwGIQBoc3uwwjToCUwt41shgcxkR3kcr5/d6VKsNRT+S0I+gxRNGq7s3pX f5jR4CMNB4t/E6aEtD/eW3067yGP4iSmjXoyrxOnSBWDgS4HPqjWKq1YCwh8Hx4CQdjI UhUUyPEAaug6GP08EMT0ANexm+NJzdulk5vqk1k9aMgkLarHcgDbjLs6Si/uH/wMa3B+ KgCw== 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 v8si15520352ejj.305.2020.12.25.19.33.20; Fri, 25 Dec 2020 19:33:42 -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 S1727374AbgLZDaU (ORCPT + 99 others); Fri, 25 Dec 2020 22:30:20 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:9933 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbgLZDaS (ORCPT ); Fri, 25 Dec 2020 22:30:18 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4D2q6N0rPzzhxS7; Sat, 26 Dec 2020 11:29:00 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.498.0; Sat, 26 Dec 2020 11:29:27 +0800 From: Chen Zhou To: , CC: , , , , , , , , , Subject: [PATCH 1/2] arm64: mm: update the comments about ZONE_DMA Date: Sat, 26 Dec 2020 11:35:56 +0800 Message-ID: <20201226033557.116251-2-chenzhou10@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201226033557.116251-1-chenzhou10@huawei.com> References: <20201226033557.116251-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 --- 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