From patchwork Wed Nov 18 15:03:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 7650491 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0D16EBF90C for ; Wed, 18 Nov 2015 15:06:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8F51720603 for ; Wed, 18 Nov 2015 15:06:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B0AA12057E for ; Wed, 18 Nov 2015 15:06:06 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zz4H6-0007SW-Op; Wed, 18 Nov 2015 15:03:56 +0000 Received: from eu-smtp-delivery-143.mimecast.com ([207.82.80.143]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zz4H1-0007OI-W5 for linux-arm-kernel@lists.infradead.org; Wed, 18 Nov 2015 15:03:54 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-26-6anH-JIKT3uaVQTdtxSY4Q-1; Wed, 18 Nov 2015 15:03:24 +0000 Received: from mammon-v1.localdomain.localdomain ([10.1.2.79]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 18 Nov 2015 15:03:24 +0000 From: Jeremy Linton To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] [PATCH] arm64: Boot failure on m400 with new cont PTEs Date: Wed, 18 Nov 2015 09:03:19 -0600 Message-Id: <1447858999-26665-1-git-send-email-jeremy.linton@arm.com> X-Mailer: git-send-email 2.4.3 X-OriginalArrivalTime: 18 Nov 2015 15:03:24.0354 (UTC) FILETIME=[45A34A20:01D12212] X-MC-Unique: 6anH-JIKT3uaVQTdtxSY4Q-1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151118_070352_416463_E71ED3B6 X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, lauraa@codeaurora.org, suzuki.poulose@arm.com, catalin.marinas@arm.com, ard.biesheuvel@linaro.org, will.deacon@arm.com, Jeremy Linton MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The HP m400 fails to boot the linux 4.4rc1 kernel. It usually hangs or sometimes takes an unhanded exception around the DMA zone messages. This was bisected to the new CONT PTE changes. Adding an extra flush_tlb_all() in the code path which is changing the kernel permissions allows the machine to boot consistently. Signed-off-by: Jeremy Linton --- arch/arm64/mm/mmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index e3f563c..e92fe77 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -121,6 +121,7 @@ static void __populate_init_pte(pte_t *pte, unsigned long addr, pfn++; addr += PAGE_SIZE; } while (addr != end); + flush_tlb_all(); } static void alloc_init_pte(pmd_t *pmd, unsigned long addr,