Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2579683imm; Thu, 16 Aug 2018 11:51:07 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxRMKbWE/aZeMawJpfPAgRuOydL19UxovkrllCglu0yuXGQIfh8OLDpIHfgl0x0ivmRlxy+ X-Received: by 2002:a17:902:5a82:: with SMTP id r2-v6mr29897578pli.315.1534445467510; Thu, 16 Aug 2018 11:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534445467; cv=none; d=google.com; s=arc-20160816; b=0KcO9CfAOQbsg3sgULdWQdeC+ozRySb7dUnFXFsV5v24xi/2nZka03l3g9er7RKE6M s2PfeMudZfJQvJ7wvx+fOkNl10XIzSeaFWOrA/VhBPUY4OM0ONe0F63orBurksRoe+8R 9pcJ3n/46mYTDsLNQia9Q9eF0VNojFGUeBHLLqIwnhZAdG1zG5KM7yzOFZnT5Nc3pYP6 NzLF61WUj9HhvULbC4UxMCE5B84ge1AKnNe3e9jTFjiOWaiBuHT8FBqUPYtz9VxHxXR6 waFQ2OUuwsaTiIfpgQmfAUvn6DicCEd5FrSywBfM7LC3C5wzl1ix2ABvp7ZR3SlFLwlc oGbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=a68Dp5w64kmxCYTa8oRODqoDJpt7Y3sZMn2X4p6B6w8=; b=yU18subX+2pS8R6LMgZA66gIsdBcH75UjVcJpJKbvalPobvRRXvbGJVsZgFpK5Z36U C3I5PkjsCEUAJTaUm+ng9Q1swtXggys1GppOkHJfr2S5P1kZQmfecK6I4IWDAsTl6C+y M4jfUdqsx1pWlLLmXp/qKejaZNJBbQjpagOLHpoehCazz2UIwjf5iTmnGXiRDB3XHI6C vzjAQCWtlh+0NF3vywY7d9xtB6Mg5/i96bvigSTxBLGQ3urxTE9gj8bmbsRaX9R7GibV mXRwe0SGrzJQLQrKDL6/mbSctTF/3RQnj2ZvxP2DVJKdfsXSjnC5vUCVr9LCe+HJtPcA leyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dLOh+8vz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f90-v6si64256plf.30.2018.08.16.11.50.52; Thu, 16 Aug 2018 11:51:07 -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=@linaro.org header.s=google header.b=dLOh+8vz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730067AbeHPU5t (ORCPT + 99 others); Thu, 16 Aug 2018 16:57:49 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44832 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726334AbeHPU5s (ORCPT ); Thu, 16 Aug 2018 16:57:48 -0400 Received: by mail-wr1-f67.google.com with SMTP id r16-v6so4894273wrt.11 for ; Thu, 16 Aug 2018 10:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=a68Dp5w64kmxCYTa8oRODqoDJpt7Y3sZMn2X4p6B6w8=; b=dLOh+8vzWchQ+xd06sjgr7k2wDr1HC6Ro0mXfXRf7CLkxeAZ8+q6oAnNhwBIIVXQQ+ 9n2YeP4enncLEZyB68rTVOkNtkGObs5DhERI9Al57Lsoe5oJ2Y6S7y5Lw3OscYysaqmi rHCBJgPEcqUc11sWJy/r7j9MUhG6uDj/o8gpQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=a68Dp5w64kmxCYTa8oRODqoDJpt7Y3sZMn2X4p6B6w8=; b=MBRO59oLsc03WXJq7S/ajVu6ok+Si09mhtNtq4Po//bgIJo8gzHgh9A28sg24RAjFy Mbj5hU/VXECnsWNpglcjIrTPsfd0Il2Ah8xCQrNr/unhjiZ8dxKrpJqY16L5hT/+w4+n pm6o8xbCKoneUdSbVkmHiPlJ1yqb8Ifk76W5h675gipftCe7NtjvmHi6B5RaN4M0JmsE Vj5u5aGpkyBNLDeHroy+SkWhx1aYoC5mu6QGLEXnp4HOp6d5Srj0mq19Dd1LOt8m05Bl GIfQ2DBAmxrttm5TwnB5xYrdenhq2yvzDaIUVoN24x7ZE9286Yx5DrkkVAkCsts77Rkt Wg0w== X-Gm-Message-State: AOUpUlFRfxV2y0PWs/7panCvx2OLs4Mc1DMDqQrRyVB9MUcZtO33n43l 5qzL6xjzjP8bQsvwY2VAR9paELAIRqGmK3JHTyDyEuvB X-Received: by 2002:a5d:480d:: with SMTP id l13-v6mr19690463wrq.234.1534442272180; Thu, 16 Aug 2018 10:57:52 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:c243:0:0:0:0:0 with HTTP; Thu, 16 Aug 2018 10:57:51 -0700 (PDT) In-Reply-To: <20180816102219.GF31093@arm.com> References: <462f8ae6-9948-a8e5-7504-623d40344336@iki.fi> <20180816102219.GF31093@arm.com> From: John Stultz Date: Thu, 16 Aug 2018 10:57:51 -0700 Message-ID: Subject: Re: AArch64 boot failure on Hikey960 on latest master after "arm64: insn: Don't fallback on nosync path for general insn patching" To: Will Deacon Cc: Tuomas Tynkkynen , Catalin Marinas , linux-arm-kernel , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 16, 2018 at 3:22 AM, Will Deacon wrote: > 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 :( Unfortunately not yet. HiKey960 upstreaming is ongoing, and the UFS support patches should land in the 4.19 merge window. After which, it will enable more mainline testing as folks won't have to carry patches just to get the system to boot. > 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, Yes, this works for me as well. Tested-by: John Stultz thanks so much! -john