Received: by 10.213.65.68 with SMTP id h4csp3239869imn; Tue, 3 Apr 2018 01:02:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+m9gJOvcRfPjFiSHUzr/s588fB6d091l7is53a//4iagc8Ik5H/leQuhTpF1xl9yV0O6JB X-Received: by 2002:a17:902:20eb:: with SMTP id v40-v6mr13124540plg.277.1522742565820; Tue, 03 Apr 2018 01:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522742565; cv=none; d=google.com; s=arc-20160816; b=QuXSXGBDpRoySQ1WKPBd1BaHUew6e/wx/naxj75mH+HRJXaszrJW3xcSbMKMNrTw/W 5U99SsFqTjOSD3fA8uyZf/HV2Vw2MCmjIum+9E6R2TRpbdOhMYAO465y6tCMkhKwI9ay RuQ74bx9k5QrbKQJD22HGoqlribGcbvUQBbK2l5/Qw4YRCDwoZ0edsJusLY78ivCYxLU 1so3DUy1+Jg20pPCEypdY+D37mBVaK1IKkd0O+YxJmCUHAWD3Mo9NAdYeuD/T17h1vaI HhR4j+ZvmBCrx9axssr7D+GZfuIYLuG0qH4DdX6zeDtX7sIXm5JHt6ZF26tSh0QNgHw9 3woA== 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=izlosYSX2Z2ixUlImOJkArGmhuf2QgixllKKuHJ8PWE=; b=b9GzzBuZT8hUpaI6iWWd68zCso8RTuYUUW3YHHAJFp4bMoTTXFor3ToGZ8vVEcATh0 PTm2Y6IIoyETeyyte0GG38z1pAT2JNCbk7XrFt5ZgX7aYDNTeEKOAysfLR41ZT72YGfb SVK82KgYoWMg7gOLf7QXuztHMVUB8yIupw5rjb7U7n7FeRQMsvAIGvGG8Ilr4yPc064C f/Kgb45VGcte13o0f2fivfMZYUS/BgPE9ZMH6/RJTYb99L8yj/VzNNry0snkN+8ntTJJ zotmMIPO7+IIHW3ftOCUy1TTGGTKq5MHKL6SQxdt8KrlkIsQaIMLywk0oT++xUe/6YWq ailw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=NTIz6mIW; dkim=pass header.i=@codeaurora.org header.s=default header.b=WoPF3OXs; 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 j9-v6si2437053plt.555.2018.04.03.01.02.31; Tue, 03 Apr 2018 01:02:45 -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=NTIz6mIW; dkim=pass header.i=@codeaurora.org header.s=default header.b=WoPF3OXs; 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 S1754943AbeDCIBE (ORCPT + 99 others); Tue, 3 Apr 2018 04:01:04 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:40656 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754583AbeDCIBC (ORCPT ); Tue, 3 Apr 2018 04:01:02 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1C69C60807; Tue, 3 Apr 2018 08:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522742462; bh=vGQrJqkZlBrq0oBsJkAoYWac2Wy8I7pNez/0Q748yXc=; h=From:To:Cc:Subject:Date:From; b=NTIz6mIWdnevT4kUNsm5gOjrkKCDv0+lxTDTuakv0CHc2cpDlDI8n5R/ZNqc6Fcl+ Ce95dZOW0wmWFlCmmXhmrdB3NOUtkBuEPF0XyhX+RCq2bUus/WRD9aUsygnwgI0oou HqMDF2cPwfDeWGxlENnEUSyZfK4d+RNCmMGwI1iM= 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 C14A6602B7; Tue, 3 Apr 2018 08:00:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522742460; bh=vGQrJqkZlBrq0oBsJkAoYWac2Wy8I7pNez/0Q748yXc=; h=From:To:Cc:Subject:Date:From; b=WoPF3OXsoT+SXrbQQcD44p6b0GVbYlkc/zvBasUQv/5I31QBN0JbvP11KwT7HfQgs FovpV/Amz0L8AyyMkiVP08y5t5BFqtEA3Qtz7Bm9rEQ7xQ8UHt/I5rpKXGvLsKpwHO J93ZUMDlkdI6X/v29BjcmpAy+KotSu7k4IXykxIk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C14A6602B7 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, mark.rutland@arm.com, toshi.kani@hpe.com Cc: arnd@arndb.de, 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, Chintan Pandya Subject: [PATCH v8 0/4] Fix issues with huge mapping in ioremap for ARM64 Date: Tue, 3 Apr 2018 13:30:42 +0530 Message-Id: <1522742446-5084-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 This series of patches are follow up work (and depends on) Toshi Kani 's patches "fix memory leak/ panic in ioremap huge pages". This series of patches are tested on 4.9 kernel with Cortex-A75 based SoC. These patches can also go into '-stable' branch (if accepted) for 4.6 onwards. From V7->V8: - Properly fixed compilation issue in x86 file From V6->V7: - Fixed compilation issue in x86 case - V6 patches were not properly enumarated From V5->V6: - Use __flush_tlb_kernel_pgtable() for both PUD and PMD. Remove "bool tlb_inv" based variance as it is not need now - Re-naming for consistency From V4->V5: - Add new API __flush_tlb_kernel_pgtable(unsigned long addr) for kernel addresses From V3->V4: - Add header for 'addr' in x86 implementation - Re-order pmd/pud clear and table free - Avoid redundant TLB invalidatation in one perticular case From V2->V3: - Use the exisiting page table free interface to do arm64 specific things 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 Chintan Pandya (4): ioremap: Update pgtable free interfaces with addr arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable arm64: Implement page table free interfaces Revert "arm64: Enforce BBM for huge IO/VMAP mappings" arch/arm64/include/asm/tlbflush.h | 6 ++++++ arch/arm64/mm/mmu.c | 37 +++++++++++++++++++++++++------------ arch/x86/mm/pgtable.c | 8 +++++--- include/asm-generic/pgtable.h | 8 ++++---- lib/ioremap.c | 4 ++-- 5 files changed, 42 insertions(+), 21 deletions(-) -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project