Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4809490pxu; Tue, 13 Oct 2020 07:40:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJBjCHQYwn8C1w5vn3k28ajPxkQeCge9y7riuhYhj5vJpD8/GBWvp42EDDpbKUyMaIgndI X-Received: by 2002:a17:906:2681:: with SMTP id t1mr59515ejc.474.1602600035880; Tue, 13 Oct 2020 07:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602600035; cv=none; d=google.com; s=arc-20160816; b=Q+V0iGf6JqgSF1FpQnTBqISu2JZwCI8hqafHqQeVIUU8no2i2N8m1m0H3rZfdmp1Qi gkLu1EAtWI6CtgYsDfvUrC59jorHZXR5xF9k7/UL5Gffy9hmOJ63RIbh/lrE12msdkb3 vy8/CxUXlPRfUXUyPj+w4G59BLWwrUhRsPLoO/Zh0W8IJnczmYl3T6zxD0mGjMeHtoON lkjnNY00z1ZHMtFEWwEd+PAKJ62JCv9jTT8kLM+j2Gu1T2tjhtgPsmZXzFkDdp0zYLrW Mx8v7i7SBbmRyg+oaqs1CcOw66faXD/cd3cjV7XNjCExSpT2Xpyq3jrAOA0NCA4KUeW1 lthw== 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 :message-id:date:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=z6t7HV4bH2v0mmuzaitSoFrMCe6hQz3tk9NSin7efdk=; b=sD3o4zELC4tl8JFNitY1rpqDSk2nkctRtZJ4nmJF0LfpsH/RV1nQPjI3tKDo9Br8cv nEDkPm7ShMQwS4KqMiyXLIWasaaEc147ZjD6wZHvLnhiROAgOoIGhqRoElyUyp8mjuI/ COkbiAGLyJedCkNa7232/Ie84nJZ1iAh35o8J5be9oNRJsqfgd0k6HlT9tV16//LgMh3 9VuNTrzGmo0mQW3AOwPwZthrdv8yYv95bzW8WpLVKk6gCmsQ1ysRnkjFGCqHG0MTuVw2 CclGZVBr6mKD/GE5M10mGZq03S0+0ZUYy0GB7fPb5Zioufj4xnNUNRQQFICuzWnG3Zng Us8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=b5uPDGsl; 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 dj16si13765152edb.110.2020.10.13.07.40.06; Tue, 13 Oct 2020 07:40:35 -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=b5uPDGsl; 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 S2390947AbgJLXGS (ORCPT + 99 others); Mon, 12 Oct 2020 19:06:18 -0400 Received: from z5.mailgun.us ([104.130.96.5]:18557 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731023AbgJLXGS (ORCPT ); Mon, 12 Oct 2020 19:06:18 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602543977; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=z6t7HV4bH2v0mmuzaitSoFrMCe6hQz3tk9NSin7efdk=; b=b5uPDGsllsijZG1b8QZ++VN7iAIiw+iBHus1EACmqQ9MfrE3v/SoOMXB16sc4P8cS4DUl2gx dDqBKS9lBs9vYYPdQrkW2pVfR+2wQNjJ7B1xVlXRLv2jXjAOV0QB6lSQ897d8uw60gfaCiVF KTt55YcHGQoeo+Ud7EqPKeSd4Bg= 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-n01.prod.us-west-2.postgun.com with SMTP id 5f84e168319d4e9cb5f3e948 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 12 Oct 2020 23:06:16 GMT Sender: sudaraja=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id C3FB9C433CB; Mon, 12 Oct 2020 23:06:16 +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 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 3F5BBC433C9; Mon, 12 Oct 2020 23:06:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3F5BBC433C9 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 v3] arm64/mm: add fallback option to allocate virtually contiguous memory Date: Mon, 12 Oct 2020 16:05:57 -0700 Message-Id: X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 continous to allocate physically contiguous memory for other sections. https://lkml.org/lkml/2020/9/30/1489 V3: Addressed trivial review comments. Pass in altmap to vmemmap_populate_basepages. Sudarshan Rajagopalan (1): arm64/mm: add fallback option to allocate virtually contiguous memory arch/arm64/mm/mmu.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project