Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp984512imm; Wed, 6 Jun 2018 08:46:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLyQCiiO3lJwAz1n+EEh8T0uCC6GhyzlfwBmvQ/s/iBXDdMxX6bb4RQ9vcg65AqRDNTT6dE X-Received: by 2002:a63:6383:: with SMTP id x125-v6mr2896253pgb.277.1528300006814; Wed, 06 Jun 2018 08:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528300006; cv=none; d=google.com; s=arc-20160816; b=jvZD56/y+HAJwi91dNw01ZkMgqVR4XztgZ97yLQcggZr7qolSFLY5LKxtL6oZacrTs Ej98AV0q0b/8r1Fex216QqJMBy0pg4OLw7IRP9BzfPYrCGAv9GMi375QYWr/MTBxo9ZA yrf8kCgOF1htolPoWC4JXkQoeOVoo9bp+Grg/3R2wQgOi2NXjPvf4tP5ld/q4Q0GB1Pa XbcwIu02v4bE+XWeB/It0p8QJonpiX2gQFLeZbTAeGJ5h+f5pNM8xVkAx25OeBC69w5W 3IhE2OqKLvUNFLPSt26RcvPZZn6MxBpIYwa3yLJXoX5mOUfFVeKj7f4gjbyHYeZBfVbj CyEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=+kELa5SCqhyEWyBV+CWaWlf/8q17HlNJB2Ei7okV6TU=; b=zla5N/Ed1R1a1I+fEscJbX3PU1gBj51Mk3KTdtPXH/ACiFiIIF88YQ0Efu+OZw7U1o ep7JD5RlDyDOVhA92741RYx7NWwncg2rtTppmGMfEejUtctGL/mZZdEM5hmXAPe9q4Ht hrYqQaQvlUE0NP3nh5Eae+wxHU/A/shz5UI1t1nSr7Qcao3pIJWSOG6SFxPSEcnSXTYu fxdjQt/+Nrlyqbu0mNaVuj68jvxGSXo1E0xqgSEfGN1RPbA1wq6LP5QlJNOE+p/uxN4l ijNA9PlNCgMvkmcs/OZQw97Mqv6VlLxoKjWGFCLvhBKfTgjaH/H4++wyYGCiquhOLJPC y4tA== ARC-Authentication-Results: i=1; mx.google.com; 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 n34-v6si50894824pld.91.2018.06.06.08.46.32; Wed, 06 Jun 2018 08:46:46 -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; 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 S1752955AbeFFPow (ORCPT + 99 others); Wed, 6 Jun 2018 11:44:52 -0400 Received: from foss.arm.com ([217.140.101.70]:42334 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752927AbeFFPot (ORCPT ); Wed, 6 Jun 2018 11:44:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 55DA680D; Wed, 6 Jun 2018 08:44:49 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 27C5B3F25D; Wed, 6 Jun 2018 08:44:49 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 223C81AE53AB; Wed, 6 Jun 2018 16:45:21 +0100 (BST) Date: Wed, 6 Jun 2018 16:45:21 +0100 From: Will Deacon To: Chintan Pandya Cc: catalin.marinas@arm.com, mark.rutland@arm.com, akpm@linux-foundation.org, toshi.kani@hpe.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v13 0/3] Fix issues with huge mapping in ioremap for ARM64 Message-ID: <20180606154520.GM6631@arm.com> References: <1528268481-19299-1-git-send-email-cpandya@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1528268481-19299-1-git-send-email-cpandya@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chintan, Thanks for sticking with this. I've reviewed the series now and I'm keen for it to land in mainline. Just a couple of things below. On Wed, Jun 06, 2018 at 12:31:18PM +0530, Chintan Pandya wrote: > This series of patches re-bring huge vmap back for arm64. > > Patch 1/3 has been taken by Toshi in his series of patches > by name "[PATCH v3 0/3] fix free pmd/pte page handlings on x86" > to avoid merge conflict with this series. > > These patches are tested on 4.16 kernel with Cortex-A75 based SoC. > > The test used for verifying these patches is a stress test on > ioremap/unmap which tries to re-use same io-address but changes > size of mapping randomly i.e. 4K to 2M to 1G etc. The same test > used to reproduce 3rd level translation fault without these fixes > (and also of course with Revert "arm64: Enforce BBM for huge IO/VMAP > mappings" being part of the tree). [...] > These patches can also go into '-stable' branch (if accepted) > for 4.6 onwards. Not sure we need to target -stable, since we solved the crash by disabling the use of huge io mappings. > arch/arm64/include/asm/tlbflush.h | 7 ++++++ > arch/arm64/mm/mmu.c | 48 +++++++++++++++++++++++++++++++++++---- > arch/x86/mm/pgtable.c | 8 ++++--- > include/asm-generic/pgtable.h | 8 +++---- > lib/ioremap.c | 4 ++-- If you get an ack from the x86 folks, then I could take all of this via arm64. Alternatively, now that I've reviewed the series this could happily go via another tree (e.g. akpm). Thanks, Will