Received: by 10.213.65.68 with SMTP id h4csp1642408imn; Thu, 15 Mar 2018 05:47:51 -0700 (PDT) X-Google-Smtp-Source: AG47ELuIErRHZ11CPGoLVOGge2E1QnZRLOpzwNecx83R3ZN3mWW9IHfhjP/BvN/GT4HsyaasKAcM X-Received: by 10.98.226.16 with SMTP id a16mr7564654pfi.157.1521118071072; Thu, 15 Mar 2018 05:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521118071; cv=none; d=google.com; s=arc-20160816; b=gxUUg3Sj8pijQwLIigAw6YzGoA872f3teer4ZRHhkZ1N7t714G8yHsYQG7xigriDzL kula8RRbqQq2hW9ieR4xdXny0OBkPKxuvw4a/5ecgUwkJwr/rWcrfkLe9FZ8d7l2Z/Pf I3Z+tiqsFnH4vXqqrLhzRKdWS2f78eFQiWu0rxl6TTxlcAMOJHBe4ZZ1C2uSdy7IWAJA OvNCHLX/YiQMQ2SJ1SInnm54G6Fq2eWYjQIuZ0djd8f4cci18Rmrd5OxRRyse5aFmRfT 5qZgfldGAd4EQDDMGm1AtkO6KE4+YPEt3XZevoUYQF0q/SsEDbQrefHez7gWs0WWsEh0 61pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=lBzfBNWZM8yzleg8AzLbWY9SqTkibmMuna0rZgsJa60=; b=nhYKDkSnW4PzcsREEwPIREOPBVsTrfeM99z7PajKZPD1Ex1OwbPxa08CHuLrcY7ODo i3J2yoO0D7HbJyA2d1CqSE+btaoAB9SXuNxKOMI5WHYxcndgBjr4mQiGjpcmQn5mNseF 3x5PmLST/zdU5sKWz07SccjAzpaVnez9PXf7c0pspQWe4fowltbu4nmUka3oS0vkH+/s 3jD7kaS5lF4+/H5OoL/gisg+Kf3ICmQ8BfbXIGm4S/sNbnug6pUZXN9SUSkILiikIX5f NDHvXUBZdeY+LIuXQIhTgFOlyui0EV3SJW/+nSomROsoDWll7ENhZ5d/DAK3wb+J1wWR EPmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Nq4+0QS6; dkim=pass header.i=@codeaurora.org header.s=default header.b=lNxQZ78J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f63si3704508pfb.325.2018.03.15.05.47.36; Thu, 15 Mar 2018 05:47:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Nq4+0QS6; dkim=pass header.i=@codeaurora.org header.s=default header.b=lNxQZ78J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751860AbeCOMpX (ORCPT + 99 others); Thu, 15 Mar 2018 08:45:23 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54392 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751559AbeCOMpW (ORCPT ); Thu, 15 Mar 2018 08:45:22 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A972760C66; Thu, 15 Mar 2018 12:45:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521117921; bh=oJmupnSZWSFFLel/bxuOxfmBaaW8NREeFZ50RDL0s9o=; h=From:To:Cc:Subject:Date:From; b=Nq4+0QS64r4hXLXX8Pq/d8H/jp24qHVIFeW+k8yczhjRzq9RQoVrTt2cggyw62XlM 2FKCHLBgXiiv2BPhrvhpqmfM4G8seXfpyupY9ADbtlN6nFWfzd1PzBv1f71X8zZ7xP UUd1N4/Tq7hMho/m1TkT2LsPyL2zBamBgFCH7s4Q= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from cpandya-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: cpandya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 03AA260128; Thu, 15 Mar 2018 12:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521117919; bh=oJmupnSZWSFFLel/bxuOxfmBaaW8NREeFZ50RDL0s9o=; h=From:To:Cc:Subject:Date:From; b=lNxQZ78JjRli5pVkKWE47Kp/SdKy1OK3gp2QmNo6hs5ZCcwwbjCu1FiiRu2oaq1Kk 6ujrE98Lj1qCZOI/8xAYNVeUMh+vKYDGxKA29audMa1jkSkKHiXGjoLzcJJ1r/z358 nghqhFST3QDPjRnvy3pZ4zfzo+VHpoSWCB5QoHX4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 03AA260128 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=cpandya@codeaurora.org From: Chintan Pandya To: catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de Cc: mark.rutland@arm.com, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, james.morse@arm.com, kristina.martsenko@arm.com, takahiro.akashi@linaro.org, gregkh@linuxfoundation.org, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, akpm@linux-foundation.org, toshi.kani@hpe.com, Chintan Pandya Subject: [PATCH v2 0/4] Fix issues with huge mapping in ioremap for ARM64 Date: Thu, 15 Mar 2018 18:15:02 +0530 Message-Id: <1521117906-20107-1-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These series of patches are follow up work (and depends on) Toshi Kani 's patches "fix memory leak/ panic in ioremap huge pages". IOREMAP code has been touched up to honor BBM which is requirement for some arch (like arm64) and works well with all other. Chintan Pandya (4): asm/tlbflush: Add flush_tlb_pgtable() for ARM64 ioremap: Implement TLB_INV before huge mapping arm64: Implement page table free interfaces Revert "arm64: Enforce BBM for huge IO/VMAP mappings" From V1->V2: - Rebased my patches on top of "[PATCH v2 1/2] mm/vmalloc: Add interfaces to free unmapped page table" - Honored BBM for ARM64 arch/arm64/include/asm/tlbflush.h | 5 +++++ arch/arm64/mm/mmu.c | 28 ++++++++++++++++++---------- include/asm-generic/tlb.h | 6 ++++++ lib/ioremap.c | 25 +++++++++++++++++++------ 4 files changed, 48 insertions(+), 16 deletions(-) -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project