Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2547566imm; Thu, 16 Aug 2018 11:15:45 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxOFXHu70mO1wv8HgQTVeooM4E2oM3B4/IzNBxGY5ojxMDdbmynclWJccbRJQwIGXfsEnnv X-Received: by 2002:a63:d309:: with SMTP id b9-v6mr29972611pgg.163.1534443345039; Thu, 16 Aug 2018 11:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534443345; cv=none; d=google.com; s=arc-20160816; b=qkFgtAXbZ4UK9GVWf1yxgrjaSTKW3sO4vY4RJrawM6jnGutTodZTwqUYiq6G6KwSUG 3Hd2jwFoI1P3KaXw5SFO2QUzFfljSAjVsPymS/vCkKhW4WPFhXmox3l35oPTpNqvfMoU UWtJgted5OGofE19s7m86KVAPpLQFKLmQpryTEWobGLb4+xLqpNu0UMkg4jhenQRc204 13lDhFgbr2ixjdxttdUQYYhBfCbZVag+1FgHBf6FLGNMzYq/XyAtSe24gW8WeT1mf5py CLAmfUXnbIl53E2ndjA2tJHaTZax5lSrpgsA4b8Ccn7BTRWIWsdW9DdoFrxOw8lXfIBy vaWg== 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=b1KPRQBI688LTYU42PU6ATYpLwYQtEma0Q7Sc9zvRik=; b=ZqwZ/RqdBibo2A4Qc06buEXKVruUZpkIqSRomcet74+gJSJHL9xZSY6sxpXdt10OZS XEkSDw+MOh7DRef7sWGr/v+IJuE+++3DN5bVZmME3blzVkoS6V/KJ5Az/BCdQVrplbhx 3Efbgb01EjxkNW/ddqpCaCcwrhzR47lNiuUHACHUjz1oAljxhnoHiOw3qLiM4WRsuFdA LmU6nPn4IBDYFIdTULAIlAGyfghxRm2QK/LZH/OHACOLy6LdMp6z/YLssgPwQt/0WSDF I2/dYP5gGg6txf6VrRX0Lz55+K4El4RLSy/oBMyQv5SdX82Yi2+9vSHJeMp6cNAAy0nU rIiw== 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 j1-v6si26255677pgh.160.2018.08.16.11.15.29; Thu, 16 Aug 2018 11:15:45 -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 S2390986AbeHPNTq (ORCPT + 99 others); Thu, 16 Aug 2018 09:19:46 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:35274 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729663AbeHPNTq (ORCPT ); Thu, 16 Aug 2018 09:19:46 -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 4FA167A9; Thu, 16 Aug 2018 03:22:13 -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 2080A3F5BC; Thu, 16 Aug 2018 03:22:13 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 4E9531AE2DA4; Thu, 16 Aug 2018 11:22:20 +0100 (BST) Date: Thu, 16 Aug 2018 11:22:20 +0100 From: Will Deacon To: Tuomas Tynkkynen Cc: Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, john.stultz@linaro.org Subject: Re: AArch64 boot failure on Hikey960 on latest master after "arm64: insn: Don't fallback on nosync path for general insn patching" Message-ID: <20180816102219.GF31093@arm.com> References: <462f8ae6-9948-a8e5-7504-623d40344336@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <462f8ae6-9948-a8e5-7504-623d40344336@iki.fi> 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 Tuomas, [+John] On Thu, Aug 16, 2018 at 02:38:51AM +0300, Tuomas Tynkkynen wrote: > Booting Linus's master of today with the usual arm64 defconfig fails for > me on the Hikey960 board. I've bisected it down to: > > commit 693350a7998018391852c48f68956cf0f855b2b9 (HEAD, refs/bisect/bad) > Author: Will Deacon > Date: Tue Jun 19 17:55:28 2018 +0100 > > arm64: insn: Don't fallback on nosync path for general insn patching > > Here's the boot log with earlycon enabled after which the boot hangs: Thanks for the boot log, that's really helpful. Please can you try the diff below? Out of interest -- do you know if Hikey960 is used by any boot-testing farms? The patch above has been in linux-next for ages, but we didn't see any complaints until it hit mainline :( Cheers, Will --->8 diff --git a/arch/arm64/kernel/jump_label.c b/arch/arm64/kernel/jump_label.c index c2dd1ad3e648..e0756416e567 100644 --- a/arch/arm64/kernel/jump_label.c +++ b/arch/arm64/kernel/jump_label.c @@ -36,7 +36,7 @@ void arch_jump_label_transform(struct jump_entry *entry, insn = aarch64_insn_gen_nop(); } - aarch64_insn_patch_text(&addr, &insn, 1); + aarch64_insn_patch_text_nosync(addr, insn); } void arch_jump_label_transform_static(struct jump_entry *entry,