Received: by 2002:a17:90a:bc8d:0:0:0:0 with SMTP id x13csp1548299pjr; Mon, 18 May 2020 16:06:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIZ7isjb/asss3/OskQvfkNP+XWymp3HzXnW9KgaHhdNpz7OmCxC8xuRRA/lx5QT/oqAcR X-Received: by 2002:a05:6402:a41:: with SMTP id bt1mr15337773edb.151.1589843170427; Mon, 18 May 2020 16:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589843170; cv=none; d=google.com; s=arc-20160816; b=FKlZbqvhGIW3iB6SEcexpWLHtELrOCC5+fdengJmDIZvekG98IUKJ7XUWTattxZNmo YUu/GRoCVhtg2/8jUNypK5uTFETr62TG4aEzhregHYMT9pJ64NWUvZdUd7AtZQh18rXB TMreXvt7HHzvySYJrx+EKK1M2smdObrvVqUPB/WAzqbtMJCyc6tn5uz69P8lM/nA8yMl DyjOxKXnpasOoIRrFE9QG7vhhY4kT8m0Vt74eSb319bO55Au239L+SRhXrCxxHoOtqcX YZsaMm/tmYDgLCC6FQ9+pnZl087biO0Mh+BbtYtK6VMjKIZJPaEYq3+otAgtiv8HyJU0 rxJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bnphSAGifjXmfPeYoXi66a8/xXPkyYYmrjEgpMICBZA=; b=Elogz1fIs5mBKvHHR4EjBcc968Inta6Xt8PDCDlxQMXPHZ6UiT25OQ/sp8t3bUfuyq XShT3VpuEHB81an5LDII8QxCyEcVJBDstfHmvsBRi8kmxlUwWlSui2b3a8OP0fElN/T1 DDPl75SlF8vhu2mm6gd1eqWLKwcAgKBuTymbV/ga+H+LIfYcdLlwgF+zt54SQSh/lq/S /7pWPyDYJtoHl/nrdWAqhT/DrnaTWnTut/22Nh+llFXj4HLkmPMe5SmcljmE9GqdDTNm M6BnexIJp6rgfXL/pzW5r5LXnOmSjaUPHXr9Mba2Ez0ETiQyT8rkHlzGne0ajm14VJop IArw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VHXwzWPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 13si6970909ejz.499.2020.05.18.16.05.47; Mon, 18 May 2020 16:06:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VHXwzWPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728209AbgERXEU (ORCPT + 99 others); Mon, 18 May 2020 19:04:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:50020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726490AbgERXEU (ORCPT ); Mon, 18 May 2020 19:04:20 -0400 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 97D012081A; Mon, 18 May 2020 23:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589843060; bh=FivWSGA5nKr+8BVNRlfId66BwqKvfngHdf0PvsDY1Gk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VHXwzWPUne9lNRLze2eVuRdHvkAB3cprbaBFfewEjJY46dL74bSD6c43meXBwefFz 8Ff13vNT0YVAVYK6ZuLCiCBb/hKd8p1jjr5DR7uackt2nEf7mrkdz1hmvgIJkixlww eBns6vIZvKw6GHKnaVdx54+jKGUPcy+BwXaxDiHs= From: Will Deacon To: Daniel Thompson , Douglas Anderson , Jason Wessel Cc: catalin.marinas@arm.com, Will Deacon , Mark Rutland , Zenghui Yu , sumit.garg@linaro.org, Allison Randal , linux-kernel@vger.kernel.org, James Morse , kgdb-bugreport@lists.sourceforge.net, Enrico Weigelt , Thomas Gleixner , Masami Hiramatsu , linux-arm-kernel@lists.infradead.org, jinho lim , Dave Martin , Alexios Zavras , liwei391@huawei.com, "Eric W. Biederman" , "Paul E. McKenney" , Greg Kroah-Hartman Subject: Re: [PATCH] arm64: Call debug_traps_init() from trap_init() to help early kgdb Date: Tue, 19 May 2020 00:04:04 +0100 Message-Id: <158982068109.260335.5582031208894337234.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200513160501.1.I0b5edf030cc6ebef6ab4829f8867cdaea42485d8@changeid> References: <20200513160501.1.I0b5edf030cc6ebef6ab4829f8867cdaea42485d8@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 May 2020 16:06:37 -0700, Douglas Anderson wrote: > A new kgdb feature will soon land (kgdb_earlycon) that lets us run > kgdb much earlier. In order for everything to work properly it's > important that the break hook is setup by the time we process > "kgdbwait". > > Right now the break hook is setup in debug_traps_init() and that's > called from arch_initcall(). That's a bit too late since > kgdb_earlycon really needs things to be setup by the time the system > calls dbg_late_init(). > > [...] Applied to arm64 (for-next/misc), thanks! [1/1] arm64: Call debug_traps_init() from trap_init() to help early kgdb https://git.kernel.org/arm64/c/b322c65f8ca3 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev