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=-5.3 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 044CCC433EA for ; Tue, 28 Jul 2020 08:10:02 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 BED7822B47 for ; Tue, 28 Jul 2020 08:10:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bNG6JL/O" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BED7822B47 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8BA5985A49; Tue, 28 Jul 2020 08:10:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4oQx2FnTVgat; Tue, 28 Jul 2020 08:10:00 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7CF4E85A37; Tue, 28 Jul 2020 08:10:00 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 353D7C0050; Tue, 28 Jul 2020 08:10:00 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 72E7FC004D for ; Tue, 28 Jul 2020 08:09:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6AE328839E for ; Tue, 28 Jul 2020 08:09:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nc9alFTKmLHf for ; Tue, 28 Jul 2020 08:09:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id 4D9D788388 for ; Tue, 28 Jul 2020 08:09:57 +0000 (UTC) Received: by mail-pj1-f68.google.com with SMTP id f9so4927956pju.4 for ; Tue, 28 Jul 2020 01:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mO4UW6jhce2IwLYWJIjyNoNVa+Gr5PBQ2rV1LkhhIeA=; b=bNG6JL/O5TVQki3sHfHEOfTczEIMUXR0OLqZGWSVnVXN0YvSLXQj4R1CZin1hIrLmj rDRSSHKktD8YAK18dQ3Ix7Lo07yJ8erIxBxxxxqVLyUXKDeyjbkBvyU6KTuEXDNL+VQr 1QQzuFpqB0CYmf+5pX3A4eJDz9R/FeezQPycBuGnXY4EFLSYZVijwWE1t6E2M5B99qAH FniHRX5RxN1gZw65OKCdqnG/UzIrS3ICQ278hYR6IoGyzyd6ykow+PajTtCN7ldzFD83 Hcz6o03i9dPHjv0yz+B7ucVCSupfsp/DKM7XkQQq14g4beE60uqTFBLLU79wWmkWweg4 xE4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mO4UW6jhce2IwLYWJIjyNoNVa+Gr5PBQ2rV1LkhhIeA=; b=J4JvqFG6BFPAjH8YOBV1fAvPNO/jfIYEc0bpaBm9YsE8mWZe6xH3prpNNqVr7O5Fc0 +TeHccZER+uENYg6FmN40pzKgxw7qEzVEKlbiAQeRcq6VzfaUk7PZEMvYJ4RSoiYCVbc R6qGyLJVdcy76Ac/0a/s7KF2VgrVzsXBOiQM/Tf7pg1R9t9OrMS4Q/2ueOztMXUAtOxS huXulk6EkBoudWO7IJLUgzUdLXeSxbjlCQzppA+0RYcLGFehw1oO7OGNZgbWwLBj3L6p GpW5g8d7KqN96ZZTdSFYtInSQHk0uxlziu8z2nvLaolWvS51Rg7wvl72ffc5n6WwX0A8 07ig== X-Gm-Message-State: AOAM530e1DjpetIcHyfAZaRt5/qqtQA322fveA+JlsKOAo0gCfKrlSd6 BI7vK2C3pUepWdJOFFLJY8zFVhAIrGapPCJgWXs= X-Google-Smtp-Source: ABdhPJwl2tr9ClL3asn7D0daWCLxpbWcicGBHl3RglmUadciWpYNtKvtb4F0xzOXS215QqSA9z2se3QNEhc8iGYlMEA= X-Received: by 2002:a17:90a:8918:: with SMTP id u24mr3082134pjn.7.1595923796912; Tue, 28 Jul 2020 01:09:56 -0700 (PDT) MIME-Version: 1.0 References: <20200728051153.1590-1-rppt@kernel.org> <20200728051153.1590-4-rppt@kernel.org> In-Reply-To: <20200728051153.1590-4-rppt@kernel.org> From: Max Filippov Date: Tue, 28 Jul 2020 01:09:45 -0700 Message-ID: Subject: Re: [PATCH 03/15] arm, xtensa: simplify initialization of high memory pages To: Mike Rapoport Cc: "open list:SUPERH" , Peter Zijlstra , Benjamin Herrenschmidt , Dave Hansen , linux-mips@vger.kernel.org, Linux Memory Management List , Paul Mackerras , "open list:SPARC + UltraSPAR..." , linux-riscv@lists.infradead.org, Will Deacon , Stafford Horne , linux-s390 , linux-c6x-dev@linux-c6x.org, Yoshinori Sato , Michael Ellerman , "maintainer:X86 ARCHITECTURE..." , Russell King , Mike Rapoport , clang-built-linux@googlegroups.com, Ingo Molnar , Catalin Marinas , "moderated list:H8/300 ARCHITECTURE" , "open list:TENSILICA XTENSA PORT \(xtensa\)" , openrisc@lists.librecores.org, Borislav Petkov , Andy Lutomirski , Paul Walmsley , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Michal Simek , linuxppc-dev@lists.ozlabs.org, LKML , iommu@lists.linux-foundation.org, Palmer Dabbelt , Andrew Morton , Christoph Hellwig X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Mon, Jul 27, 2020 at 10:12 PM Mike Rapoport wrote: > > From: Mike Rapoport > > The function free_highpages() in both arm and xtensa essentially open-code > for_each_free_mem_range() loop to detect high memory pages that were not > reserved and that should be initialized and passed to the buddy allocator. > > Replace open-coded implementation of for_each_free_mem_range() with usage > of memblock API to simplify the code. > > Signed-off-by: Mike Rapoport > --- > arch/arm/mm/init.c | 48 +++++++------------------------------ > arch/xtensa/mm/init.c | 55 ++++++++----------------------------------- > 2 files changed, 18 insertions(+), 85 deletions(-) For the xtensa part: Reviewed-by: Max Filippov Tested-by: Max Filippov -- Thanks. -- Max _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu