Received: by 10.213.65.68 with SMTP id h4csp655620imn; Tue, 27 Mar 2018 06:27:21 -0700 (PDT) X-Google-Smtp-Source: AG47ELtLldJ6kFYnXS742hcgwoO8sfgZ3Kayz7sOZplvofLaC8dORXgGFX+QQwp0fk+1iZNumcMz X-Received: by 10.99.143.3 with SMTP id n3mr16624086pgd.136.1522157241255; Tue, 27 Mar 2018 06:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522157241; cv=none; d=google.com; s=arc-20160816; b=tJymg21JR+7pEO5MNfEiTBjMJcmYvUC8zGBY13RPlPpoh3Hj3o5d48hr51ffAt1Ca2 VhhqwKCcvIMN0Ye4VAhGzLsznq/LWALqHl+apmPczLmo6lIYgeD8SmoxFVhpqst8n8/a 29LpnA4MhE015gFMQufYEZX7YrttfItdKJgt5hyz4Oghe6Duw5f8nYZ2jjv7Sa+BKOfO gwPKXxj9kXM5+xD5mcTuj98qkZV/RN2+6Ukix0/hS1tI6VaarDe5FTEBKmWZxQqJaj6f 8iAb86ih3K349W1tymBKlifVEuQHj7pqbZa6rWXvv0W+UFBXUcLuvCEhUYlmmMak6GDh wESw== 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=A7aLEfRYOFoDJiSkGx6hSch9fAlRI3TqYrkTHhL50r0=; b=kRDqZa/UBuBfxWJlbUNrv4sOzalHv8XlIVuxZ8uUbcd8KVbV8lt8rSWG3WDmrgIgd6 +/z6vsE6DkVGYeql3CGwXygNg+92PY+J0CfLYlvAyw9LYuhgolVt9ZpYsBIf7mfkR7yB BNUj0VBpn9nOY+7PvsjIgThJjOuoWWQA1r55nb3k+PXFSuZD/ySxVuvPNR2XTgaCzUYc M6nRzb+ykygKQM40VETZ6fifKQpW5yli3/uc9tZXp9fg5i+GcP42+3mp2oinEQTjn2hb l6LMUXdZYdMwfIpKlXHsE57NXBmzPS1iXoowQTr4Nd3eKhkpEdP/iWTiW1LXuzODDQ8F k66Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=VmaOBNnO; dkim=pass header.i=@codeaurora.org header.s=default header.b=QtOYTcP4; 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 a6-v6si1399170pln.632.2018.03.27.06.27.06; Tue, 27 Mar 2018 06:27:21 -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=VmaOBNnO; dkim=pass header.i=@codeaurora.org header.s=default header.b=QtOYTcP4; 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 S1752848AbeC0NZV (ORCPT + 99 others); Tue, 27 Mar 2018 09:25:21 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60610 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752348AbeC0NZS (ORCPT ); Tue, 27 Mar 2018 09:25:18 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id AA00360C64; Tue, 27 Mar 2018 13:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522157117; bh=UVIPI7CGEaytkmcv94tXMercXzftr2Zxso7uHwCtisw=; h=From:To:Cc:Subject:Date:From; b=VmaOBNnOxZye9pwtjNZ56IcBxxVUOP7cvjoWFsBU0f7EiGo/Q91uj8vw4KEeG7gLj OkaDnS3ZGgrk1U1Hofuki2d55Cinl0GUjP4/GKpaBTQN6YKod6YYvHI1En0YKcUzvc HXv8V+96VQkxQhM1AOimbcc9gvUOCm4+TJWqdTWs= 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 B0D7C6070A; Tue, 27 Mar 2018 13:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522157116; bh=UVIPI7CGEaytkmcv94tXMercXzftr2Zxso7uHwCtisw=; h=From:To:Cc:Subject:Date:From; b=QtOYTcP4+1F1gaHJxL0z62C+qozFRuLeVDAP6UKeykp9G/3esS1KnhWWf+zJQ3TFh KCCVJ8QYfgGbeHXjqdixWONO7B4rFm1WEDvq1gVeNaX5pNaIm/E7OiVyp33H+E7KlR H0NH9y6FUhcu43N8pMg0k46wNnZxV31YFLF7FzTA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B0D7C6070A 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 v5 0/4] Fix issues with huge mapping in ioremap for ARM64 Date: Tue, 27 Mar 2018 18:54:56 +0530 Message-Id: <1522157100-16879-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. 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" 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 arch/arm64/include/asm/tlbflush.h | 6 ++++++ arch/arm64/mm/mmu.c | 45 ++++++++++++++++++++++++++++----------- arch/x86/mm/pgtable.c | 6 ++++-- include/asm-generic/pgtable.h | 8 +++---- lib/ioremap.c | 4 ++-- 5 files changed, 49 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