Received: by 10.213.65.68 with SMTP id h4csp357188imn; Wed, 28 Mar 2018 05:05:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx48YMSNfMd4S9ZnVX5Bc5NFDx4o4LSSoAkH75E/HoOO5eeFKEIP62EZUklTFlXEcnmekgwFM X-Received: by 10.99.64.3 with SMTP id n3mr1859907pga.13.1522238737092; Wed, 28 Mar 2018 05:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522238737; cv=none; d=google.com; s=arc-20160816; b=VzFZX14ZsshtI/KaMkQIwu/4L8WR3IkAW97xZb73EsqZ5uco4GAUic1M3MuCeoofwG 9LZjyFmS8NGbS2T5VOP6yi6Onz5lwVU00IqFeN2AAzZ9nMjxfzpRo2cHNSDQVPoO0Zqh EXmQQ2BkaFQ0V3ZxOU/XDHb8gBRA8mFBWenEzMRUnwKq8XrcA4FNPE5g0qhdyDdy5o9T JBHSxaonhC43yoff8culn1j8x7IPmv40tpzbL3IM3ucsYHBqdAcZEKlyncPbDdRtqTk1 NE6IrHMHPwkUZ4zZNTqIrQG+hghY7SsbPwxq4Tjnqwe1gmLg3s/BlLiLkA0RjjJSIOHJ BE1Q== 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=k2TjdzelsM7uOCHk6/2juJ+G4jRSKoebzxd20Mv8wEE=; b=x1CnaWSAzYMJG+pKjzKEODUsqPMpxeq07Z9AYgjJR9iCWJPuGUkR/0nusJSBYVqIna MMCfEBAaAnH54iLfREhxCjlLiKcgePlr58w2EQKTaqlHmiw7vxSrqv57OM9+ZqLcDMaY GT4ZxofldL6YP6a2wNa3dtNO5nrvCewTUL6ZUNGRAorfE/ouv72HT/w6jYpYkEW75PPp eeheIHGZV6wY6v4q7xCmGSqKAMjqNxPu10vp9qPFGSYveoGwLfGX2ki9hXKQExpA/Wm8 aCTmhqWYJnAw5xQhTgQVH80FueOdegL3XyRM6UdiDP9oqeZvNbdGHAoH6QMPyPmvxxGO BiMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=B3dmTPfZ; dkim=pass header.i=@codeaurora.org header.s=default header.b=fYMowMqQ; 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 w9si2729341pfk.14.2018.03.28.05.04.57; Wed, 28 Mar 2018 05:05:37 -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=B3dmTPfZ; dkim=pass header.i=@codeaurora.org header.s=default header.b=fYMowMqQ; 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 S1752603AbeC1K7L (ORCPT + 99 others); Wed, 28 Mar 2018 06:59:11 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:34404 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752532AbeC1K7J (ORCPT ); Wed, 28 Mar 2018 06:59:09 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 71D0F60F61; Wed, 28 Mar 2018 10:59:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522234749; bh=/plZat18kG2TKSk0uwyFCLYqFH+7DAYulk1NLsQNbqg=; h=From:To:Cc:Subject:Date:From; b=B3dmTPfZwqIc08dAKz7wir5j3Vo1PGkaXHHtzaLEcyQaKxOe6e9lty0bH9Jyo7sAP 5V5uTi6DHWcKz8UCRq7YyFJLg08C1hKLkjxusAEze1aOXF8FuxYjLr3MNe9xdrzMLt j9QrZu82NWQeEbAC01M0wWzqBaFLPwwf891bRL+s= 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 7157360C66; Wed, 28 Mar 2018 10:59:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522234745; bh=/plZat18kG2TKSk0uwyFCLYqFH+7DAYulk1NLsQNbqg=; h=From:To:Cc:Subject:Date:From; b=fYMowMqQpWolYQ3RMQi7mjEuVTVQhZPBzvvaqUX6RcCxHHNK2cOWFKwHCrCjkAj4c 7QC3ryRGeAKLvkjfSg7mPtcd5A7aV53JIfH2Yw92tCoNCGxoJI962AEimQaQAEujY4 7+spBsQfswZVOBmPXFWNCatELuNHjS5rOQXwoyPE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7157360C66 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 v6 0/4] Fix issues with huge mapping in ioremap for ARM64 Date: Wed, 28 Mar 2018 16:28:47 +0530 Message-Id: <1522234731-27397-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 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 | 6 ++++-- include/asm-generic/pgtable.h | 8 ++++---- lib/ioremap.c | 4 ++-- 5 files changed, 41 insertions(+), 20 deletions(-) -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project