Received: by 10.213.65.68 with SMTP id h4csp330128imn; Tue, 20 Mar 2018 04:46:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELuOv+97aEbFXBVrrM64sCFFLtxlY+hRwgOdnjg4Vi5BCGPAfwwGY/ORkfIWlCHLmDbpGpI3 X-Received: by 10.99.181.10 with SMTP id y10mr12075328pge.222.1521546418658; Tue, 20 Mar 2018 04:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521546418; cv=none; d=google.com; s=arc-20160816; b=HzwN/oSFlU+NXj1GwsMAVXpkL1oL54MPJzlSb/PLQauYKn/AYqGQjrw6/mTJ4ldwXE dgZc7pQeRc8W1iC6QSJ0BQKyXc90jSXp/OfjcCkCkGlyEcr1CZpWT+Nwwy1OEEMNFS6u BUeA/E/O5xwKsRNNnWj+LFLvYRvROuvSAK9i5ApoCqjBj841yGzlbZZVsyjyPxyjBPf8 1EpSGByu1R2jQA3NE7h6hvn6vKC2P5adGEfzOMEXpUnLS3j41JZH8UBhzDnyUBL2wiKv PT5RDC6hSTOzjq/0k492QnNJmeo1K6RDH6JGJ9vguJbN8R0nlxAT/JxoLhujOS2wcDeR 90WA== 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=k8hM8jjY+OdYsqj1dt4mdC6syGT1i23ZJQkv9QApQn8=; b=i2cP82DF7YF1UEnzUtKOBIxdIJWqKqpk4Fi00JNqCYFeG6vFlr5KCy74PYO8Bdg7e/ 5cBJ+KpxIXWS2g6S3El0V0ASogkorFLujplH0wdDU6xWyDhcnup786r4wwgBvvh1dm3l nUX88P6lR8Mj0K+Uqrb0TS+e761dGyPjk1McArSAU1SAg9BxQFDH/Vwn2+T9ciAcuCI/ 78oTZe3wffD/96oh8UCpRiYgBLkmfKEt+WuzG7UfKtsm2YsFvtbPH1ptjjEcKAzUpeIt f1lEcLInvn4hpZUypIyLSHjzKrvpLt9q1eh+WWbeOADLO1+/moTKXnn4Zc/mi0CYm4uS BkEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=QPePq62u; dkim=pass header.i=@codeaurora.org header.s=default header.b=HieibKSc; 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 v2si1065719pgf.530.2018.03.20.04.46.44; Tue, 20 Mar 2018 04:46:58 -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=QPePq62u; dkim=pass header.i=@codeaurora.org header.s=default header.b=HieibKSc; 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 S1752952AbeCTLpo (ORCPT + 99 others); Tue, 20 Mar 2018 07:45:44 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:51560 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752808AbeCTLpm (ORCPT ); Tue, 20 Mar 2018 07:45:42 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EA67760591; Tue, 20 Mar 2018 11:45:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521546341; bh=PD2avXm1S4heel/NZDb7RdWC6yzWq8vRzBwtnX+23PM=; h=From:To:Cc:Subject:Date:From; b=QPePq62uNg9iMGs5wH2IVbilCW1g7bT5HV40MK9yRKcEni6yODUdbO1ea8A9KSjvT FqY2T+9K+QnjMBdu+iWkUSRSmCWaWOEiVFk8Pbc0L28+gZa7VzKmIoXGEGezk2sDYp ZVexp7wFCwA2J9QqUjP2al5UYdxNWp5VcIfcq940= 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 1BF2560591; Tue, 20 Mar 2018 11:45:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521546339; bh=PD2avXm1S4heel/NZDb7RdWC6yzWq8vRzBwtnX+23PM=; h=From:To:Cc:Subject:Date:From; b=HieibKScsoFUOM/RmX3RGO2UjPzl3lWBwhBHj5dtg5snMkAvETCLIzvHYW5Zca4xQ 1t03a3PDpS7psnnuzExVgtAMZDmx27UBQp6o6RYTIa/aGTennjbeJ+bMPAmx7BFhT1 1H9/6iSDIvTg97hv7Lizx2GNe9Wh5vxiQCpDbUao= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1BF2560591 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 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, toshi.kani@hpe.com, Chintan Pandya Subject: [PATCH v4 0/3] Fix issues with huge mapping in ioremap for ARM64 Date: Tue, 20 Mar 2018 17:15:11 +0530 Message-Id: <1521546314-31753-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. Chintan Pandya (3): ioremap: Update pgtable free interfaces with addr arm64: Implement page table free interfaces Revert "arm64: Enforce BBM for huge IO/VMAP mappings" 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/mm/mmu.c | 51 +++++++++++++++++++++++++++++++++---------- arch/x86/mm/pgtable.c | 6 +++-- include/asm-generic/pgtable.h | 8 +++---- lib/ioremap.c | 4 ++-- 4 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