Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp65346pxu; Wed, 14 Oct 2020 20:28:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylHpg+bORUL5hJogTE8JR6QohIMErCdDSX/Dtrw7/7rV7tKpxvyluPbV7y4c0J26utR+zS X-Received: by 2002:a05:6402:3191:: with SMTP id di17mr2147136edb.376.1602732523750; Wed, 14 Oct 2020 20:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602732523; cv=none; d=google.com; s=arc-20160816; b=kGVFxujj7x0CNZrGOj3WKs5LmhlOAYDZbYqsT5h8TVObfufm87oGvBNGBRMCZJo2Hq PsE2NgzGe+HoSTKvXy79CK5+znNWs7NSMCyQv+iryiCJdc9hNhgIJt+uSrb7B3S2XCGD 92MKP5VzrfK2oy8ammfzhKCa6HajgBVejyOkxi8YlHJ24pOBUpCdHl7env9qYcfQ8ZtW JBe8X1nlA/3C8W8avYgal9LqOcgNsVjfBaP7Zuhq+p0VfkHDJC1OLfnBJBPKBDqNHTWB nwcdW1TGa22Unqy8XEwAgtVrVlWkXS1jR8hzofvW6kga9NnAcdXAxhX4IloPDv8CvaQe YUVw== 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=yIIQcEQnBXxEWUBnlhO1K3S+LXQ6GG3CMGJFwdqQjgPRrzhPhD+KjtlU4dR7BXaJbp ia08GB967b2N/uWjSsh29jQgTl46iYnPK8qV2FEMMV18e8zCs1Tm8VChvFQ4j8SoHuJw vlGfQHWYlMq8k3Awhu2GQf5RxKwIFZXMssW5iFlo3aNj6O5JIL+wIk09SywxnYVbTlPN dAknHNaDpwMZp7kaGHnuqi99zDMBRDFfWzOwn0iFtK5tnOp/n8ltuGH5Kdf0B2SsDzZ+ EkYNdMHXCtWB0IbpF6kDsCNJbcpRtLzG0FPjM4Y9VxxDoseXNf5lCeTCWLXn/t3tLDDe uVZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=DqyugyGA; 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 a42si1427101edf.535.2020.10.14.20.28.21; Wed, 14 Oct 2020 20:28:43 -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=DqyugyGA; 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 S1728319AbgJOAvx (ORCPT + 99 others); Wed, 14 Oct 2020 20:51:53 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:54522 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726018AbgJOAvx (ORCPT ); Wed, 14 Oct 2020 20:51:53 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602723112; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=z6t7HV4bH2v0mmuzaitSoFrMCe6hQz3tk9NSin7efdk=; b=DqyugyGAZveVYwMEB4ofTSYa46U210fjZR2n2Dh2/0LlkZ6xtzvBfABQgPKC8TDJLkXLODEq nf2SyIAmkeEijycTSWXcKfpfunq5JrN8pY1jisw3wh2C1kQjRpsdVgh7euc5Eq+AuVW0yxMu VCVB2SuIHi1jD8kJGyFE188fbrE= X-Mailgun-Sending-Ip: 69.72.42.4 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-n02.prod.us-west-2.postgun.com with SMTP id 5f879d27319d4e9cb5c2720e (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 15 Oct 2020 00:51:51 GMT Sender: sudaraja=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E6D94C433C9; Thu, 15 Oct 2020 00:51:51 +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 22719C433CB; Thu, 15 Oct 2020 00:51:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 22719C433CB 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: Wed, 14 Oct 2020 17:51:22 -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