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.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,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 958B5C433E0 for ; Tue, 28 Jul 2020 08:12:13 +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 5F8F820656 for ; Tue, 28 Jul 2020 08:12:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UDDDbdF3"; 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 5F8F820656 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9a8CBGq7Fom305CAdO7OQu5kZ2l/d1Es6UsFKQp4LhI=; b=UDDDbdF3jggo7tv4KJfVKsqns Qg/kBdcbDvLzUpIXbeKkuC2l2MnXsmcWCzC4LSsaoTDM+S7x1FKK6HiZtNO37liewCiJ4KhC2LAsg uSpBjXyhEePja3RgvMCuKyeurbGKXl9FsQ1uxW0fYuByBHLr9F0KDWJrogtCXcOQSgp6p183ZHpIX tPQze5N+a46F+Kaa85jqjCac9K8o3ZSefNPr/FL3hGNJfh6ye+wiWGR2NPF26qBkBBE5IL9jfnYBY OyEeRFj5f1SewI432hbeF4SMSZ2nvdVKta3ViBOAblY1MZKzfW0/1bSCwmzlrCazX2ddIJHyEzsuJ nn2MeoCVg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0KgW-0002Px-Oa; Tue, 28 Jul 2020 08:10:04 +0000 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0KgS-0002Mp-OH; Tue, 28 Jul 2020 08:10:01 +0000 Received: by mail-pj1-x1042.google.com with SMTP id ha11so3752813pjb.1; Tue, 28 Jul 2020 01:09:58 -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=hde6iQz/MhEipYQoyJWS3Id68zSsAlJ42AZ1HygJVtMBwoOLojTbm4HDQsuQCpXt+x fH9FLufXuq9Ti8TIFU1rjG3/4rAmjH+U9cHVxjJAHHLb2GbustqZLdn3vL2sBs2Ri7i0 lJCBBXkyb10vyrvphOt/U2zqJ82EWojKY9jdiDEznMTpK7b6L3D0D+9QRMjIo+ccKWqH ZWwGgZZoF4JxdUsHxBjtCJJvCTSqlIiCdcC2PL9BQWeDq4HpaxmpR+953az6JhIh4NF5 yOEhnAs0cNaWfbtyJ6KCCLi/qyZUlZrvx8ra58N3EAElqVOeBwhqt3Ron+JHsWK8elSM C3UQ== X-Gm-Message-State: AOAM5320Ybivf9GSHPNqjaM2iPToEIv0ULFt3bOU7SzhttS/UxBlEnQ4 vJNMchMsVD5uM5ZifYEjuT5ogBHtmN3YVseHIb/SVQcHu+w= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200728_041000_797800_0429CEEA X-CRM114-Status: GOOD ( 15.17 ) 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: "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 , Marek Szyprowski , 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel