Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp48288pxk; Wed, 30 Sep 2020 17:29:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJeG/VKUNsnzd4lc+DD4mz4VGNS3F6amYtqjvoVWo7Y4JdIlI8xUBEMHJl98ohNA4KNh0h X-Received: by 2002:a05:6402:699:: with SMTP id f25mr543411edy.372.1601512167147; Wed, 30 Sep 2020 17:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601512167; cv=none; d=google.com; s=arc-20160816; b=QIm2oTkIZORkEa5DYAj4GoPtic6zuDoNP0lETvKVivppbEdxJhbtyjpdcB6DSX3t3Y rCFwlSVY7MmOl5f7wHW8T9zFjmgaFmmoOomcmy78lLL9J618UO/iMMpvurermz3S4115 dR0Kqprzqh++AwpbQIO/RSG16nnKkSCvx2FaKlr67Y4YHVk3SXL1u4TsndSgvUgGbg3V d+73JUBc/XbLgOXB5JoALGbLP6112XQjcE+iOefpfljZwPF3iKW96e8auc/IO5QAdcjX Tr9Ujy/IgT98hWFhQ6vHgD+GSsv/K8d7oCgPUc2lShdkgR2tXK/dtnCBalsOYa8/MGzR IGWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=chQsnKkXPtaojJj7PnZJx3rfUwTJoltXNgUX/5BFAZ8=; b=bSSH2+ffJ0vTGj6v4kIP/bhYuO/Sqmo4q395buSt2YPJvaJ6+cvjySHwzqQy+oKl8T 8yW45y++v//uPxXPCeefKnoel5ZiByvxMOROJVGAL2iHx7Ur0NxRW80QxiPcubjQoGsT oDl76HA0NM/mHaufsWVuyJSmNl0rq6f7rcqCdVDJK0Ciw1aPBoVfQNLOLMM41WWcwBx5 EX5h7CTqJUEoT+tMuKkmIp7tkk6DwZKfX92BVyf4ZmuC7dVPlcYPErjjXSdTe0nnhDhV dAAiGcjpGuwkorpY43nmYlJmwJxuzXkxa3IGwjcUHRRCKgEY7c71l1jKSa44lj0l6Uyz +oag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Fey9Q5CG; 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 dm2si2370493ejc.334.2020.09.30.17.29.05; Wed, 30 Sep 2020 17:29:27 -0700 (PDT) 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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Fey9Q5CG; 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 S1731204AbgI3XN6 (ORCPT + 99 others); Wed, 30 Sep 2020 19:13:58 -0400 Received: from z5.mailgun.us ([104.130.96.5]:63853 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730528AbgI3XNl (ORCPT ); Wed, 30 Sep 2020 19:13:41 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601507621; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=chQsnKkXPtaojJj7PnZJx3rfUwTJoltXNgUX/5BFAZ8=; b=Fey9Q5CG+BXuflgIhsKHFFOb0N/SoVzWVQGO0v1PfWSI+2VGNnsME8ULSO/RRpLGUBqS/ANG v929WGVbt/Fn+pGNS0ih0eJMHyu703MSIn4Fiira0WUporAsS5RrpS3sI9mb09sN3CjHShRT L5AYv/mzfqNgR0EVWN/SBzjW7jo= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 5f75112325e92f5003056f22 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 30 Sep 2020 23:13:39 GMT Sender: sudaraja=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 84769C433CA; Wed, 30 Sep 2020 23:13:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from th-lint-014.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sudaraja) by smtp.codeaurora.org (Postfix) with ESMTPSA id 02F86C433C8; Wed, 30 Sep 2020 23:13:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 02F86C433C8 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=sudaraja@codeaurora.org From: Sudarshan Rajagopalan To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Sudarshan Rajagopalan Subject: [PATCH v2] arm64/mm: add fallback option to allocate virtually Date: Wed, 30 Sep 2020 16:13:24 -0700 Message-Id: X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org V1: The initial patch used the approach to abort at the first instance of PMD_SIZE allocation failure, unmaps all previously mapped sections using vmemmap_free and maps the entire request with vmemmap_populate_basepages to allocate virtually contiguous memory. https://lkml.org/lkml/2020/9/10/66 V2: Allocates virtually contiguous memory only for sections that failed PMD_SIZE allocation, and continues to allocate physically contiguous memory for other sections. Sudarshan Rajagopalan (1): arm64/mm: add fallback option to allocate virtually contiguous memory arch/arm64/mm/mmu.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project