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=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 3873FC48BE5 for ; Wed, 9 Jun 2021 10:52:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 264D461059 for ; Wed, 9 Jun 2021 10:52:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238117AbhFIKyc (ORCPT ); Wed, 9 Jun 2021 06:54:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:57646 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238066AbhFIKyM (ORCPT ); Wed, 9 Jun 2021 06:54:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623235938; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VZPPxlVuFpma5nN0KBwsgNEj1D60a3U+wCT7M5MPOro=; b=Hu4BqSVWSlztJSqbQFKDdyuUuXns471VnGwXbKYOgm3qnCtdWQ6YzO/LTm0nZtWzd6Njh3 2YIW3S3PZ0nd+m84viGhGHU7qOwCuwzIumuCO1Wk5d7zIgw0ZcKaRiZwX3+WuUJuHvVlAV VdgvosYivaGOsdC/b5TatvAyIfPFIHk= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-421-kV0y8H9YPw6-IbU8W-_KUw-1; Wed, 09 Jun 2021 06:52:14 -0400 X-MC-Unique: kV0y8H9YPw6-IbU8W-_KUw-1 Received: by mail-wr1-f69.google.com with SMTP id z13-20020adfec8d0000b0290114cc6b21c4so10540783wrn.22 for ; Wed, 09 Jun 2021 03:52:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=VZPPxlVuFpma5nN0KBwsgNEj1D60a3U+wCT7M5MPOro=; b=eH36uPhMqZK6/r04OEMzWYVvveumOCAGcpzdtupRvQxJpWsYSRy9Y5uW0GQrrzfVP2 iokAPFsOO60gyH/pCG/U0VfliLIzFVolZN4/BMcAKshWNDvtf9gtYQ9I0DHxAbysnfBE M+lH6tac5EyGj6Q5HKJWaobAVJORk4SFaDt4SUZHew+5NCh/jTe+XDfsdHoZIFHS7obw iAV3r8QCimW9ap2tQ+CK6Pzdjoe9cj8DWO9MJjUe+O3OYQUKhr3HK3ybHN05XxQV9v20 ROwb+NrPslVWCLqTlGTDO6vh6kakAW9yzR0r3En7HMDdFessFHwPByFNP9+gBdcEBaZL PTCw== X-Gm-Message-State: AOAM531OFXFClx7WREHetxUoVg0pTLT6LU1o5csQ/Ahd/MMjcp/QdYGj /klyRAUXWOmdFmY3JF8dw9otc+GWAavxRQcrfJyxeyy/XCrmhI7OiAqK2hTmBdMDPYXhvKmnES6 uptUYmfIFyPaFID3FqCNGpAheYsXa X-Received: by 2002:a05:600c:c9:: with SMTP id u9mr26528254wmm.156.1623235933485; Wed, 09 Jun 2021 03:52:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOhpm0kR/qb02GnRlZAdwrQqqdavzoWPuk2BGBrMztminfq9lmdrK+j2M/FH+Xh9QtwaeMHg== X-Received: by 2002:a05:600c:c9:: with SMTP id u9mr26528228wmm.156.1623235933268; Wed, 09 Jun 2021 03:52:13 -0700 (PDT) Received: from [192.168.3.132] (p5b0c611d.dip0.t-ipconnect.de. [91.12.97.29]) by smtp.gmail.com with ESMTPSA id 89sm25391165wrq.14.2021.06.09.03.52.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 03:52:13 -0700 (PDT) Subject: Re: [PATCH 2/9] arc: update comment about HIGHMEM implementation To: Mike Rapoport , Andrew Morton Cc: Arnd Bergmann , Geert Uytterhoeven , Ivan Kokshaysky , Jonathan Corbet , Matt Turner , Mike Rapoport , Richard Henderson , Vineet Gupta , kexec@lists.infradead.org, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org References: <20210602105348.13387-1-rppt@kernel.org> <20210602105348.13387-3-rppt@kernel.org> From: David Hildenbrand Organization: Red Hat Message-ID: <2764dca8-f395-f76a-0939-215eccdfd82e@redhat.com> Date: Wed, 9 Jun 2021 12:52:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210602105348.13387-3-rppt@kernel.org> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-m68k@vger.kernel.org On 02.06.21 12:53, Mike Rapoport wrote: > From: Mike Rapoport > > Arc does not use DISCONTIGMEM to implement high memory, update the comment > describing how high memory works to reflect this. > > Signed-off-by: Mike Rapoport > --- > arch/arc/mm/init.c | 13 +++++-------- > 1 file changed, 5 insertions(+), 8 deletions(-) > > diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c > index e2ed355438c9..397a201adfe3 100644 > --- a/arch/arc/mm/init.c > +++ b/arch/arc/mm/init.c > @@ -139,16 +139,13 @@ void __init setup_arch_memory(void) > > #ifdef CONFIG_HIGHMEM > /* > - * Populate a new node with highmem > - * > * On ARC (w/o PAE) HIGHMEM addresses are actually smaller (0 based) > - * than addresses in normal ala low memory (0x8000_0000 based). > + * than addresses in normal aka low memory (0x8000_0000 based). > * Even with PAE, the huge peripheral space hole would waste a lot of > - * mem with single mem_map[]. This warrants a mem_map per region design. > - * Thus HIGHMEM on ARC is imlemented with DISCONTIGMEM. > - * > - * DISCONTIGMEM in turns requires multiple nodes. node 0 above is > - * populated with normal memory zone while node 1 only has highmem > + * mem with single contiguous mem_map[]. > + * Thus when HIGHMEM on ARC is enabled the memory map corresponding > + * to the hole is freed and ARC specific version of pfn_valid() > + * handles the hole in the memory map. > */ > #ifdef CONFIG_DISCONTIGMEM > node_set_online(1); > Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb