From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C391C2D0A8 for ; Mon, 28 Sep 2020 21:58:16 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A43702083B for ; Mon, 28 Sep 2020 21:58:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UW0JEqkh"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="18Z5Lxq1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A43702083B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FtOQ0S9XIGLo/5KPqaVMp8HJshwzbpzTJV/n9It5YMA=; b=UW0JEqkhn/Y6hNnKiMDjg9WR9 Ovus4rKzNhy+fU9T9779uWz1vYoiMz2iIXq73QKBGjqB3aE9jlRsgUDvWhqiZylIjpcygp6U7Z/pg TEpRzIFcIfveEyfoizVjU6jffGcLjzOJ86GO5ejPcpxizm7n4EzndS2eyODOV5SgAzwAmkgJxR2HR qwotoPsdRobATmaDndPszrXi1DA4UzD47kj9l5qiZNxEXw1jnrur5FhU/41+nh8p7wwCQ4kTzseXq TLwY8Tfm5QobI8DZKayN/ssMzRhtTl4svgIrbUtJVVVJv5uqNAzMl7uFp4CufTJ2IE1fYFnKjzuCr Iq80Y3fOA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kN18L-0000iU-6i; Mon, 28 Sep 2020 21:56:33 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kN18I-0000ht-UM for linux-arm-kernel@lists.infradead.org; Mon, 28 Sep 2020 21:56:32 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B9CD22100A; Mon, 28 Sep 2020 21:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601330189; bh=lULlNsQDZL/smum8V+MwMDKmqTF7314n/PQhHN07CzI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=18Z5Lxq1YqjbLwrA8Ye49kijflWy0NxlJDBX9LQMoldKOxrm8ZZ7bX6luPzuJSnwl 3I7uEwQ7lS0EUJNKeTGrKJwibhNW8NJiXZnJO3Fil4fvo2Y0WSe4lhBy2l7Rgb8Xat Xl1qrwoRSC2sEamwOLr7qRnt/tUZmaIVtCI5/SUA= Date: Mon, 28 Sep 2020 22:56:23 +0100 From: Will Deacon To: Sumit Garg , alexandru.elisei@arm.com Subject: Re: [PATCH v3] arm64: Enable perf events based hard lockup detector Message-ID: <20200928215622.GA12677@willie-the-truck> References: <1599204397-17596-1-git-send-email-sumit.garg@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1599204397-17596-1-git-send-email-sumit.garg@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200928_175631_150988_0FF29AE4 X-CRM114-Status: GOOD ( 18.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, daniel.thompson@linaro.org, linux-kernel@vger.kernel.org, peterz@infradead.org, catalin.marinas@arm.com, alexandru.elisei@arm.com, dianders@chromium.org, acme@kernel.org, swboyd@chromium.org, alexander.shishkin@linux.intel.com, mingo@redhat.com, julien.thierry.kdev@gmail.com, namhyung@kernel.org, tglx@linutronix.de, jolsa@redhat.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Sep 04, 2020 at 12:56:37PM +0530, Sumit Garg wrote: > With the recent feature added to enable perf events to use pseudo NMIs > as interrupts on platforms which support GICv3 or later, its now been > possible to enable hard lockup detector (or NMI watchdog) on arm64 > platforms. So enable corresponding support. > > One thing to note here is that normally lockup detector is initialized > just after the early initcalls but PMU on arm64 comes up much later as > device_initcall(). So we need to re-initialize lockup detection once > PMU has been initialized. > > Signed-off-by: Sumit Garg > --- > > Changes in v3: > - Rebased to latest pmu NMI patch-set [1]. > - Addressed misc. comments from Stephen. > > [1] https://lkml.org/lkml/2020/8/19/671 > > Changes since RFC: > - Rebased on top of Alex's WIP-pmu-nmi branch. > - Add comment for safe max. CPU frequency. > - Misc. cleanup. > > arch/arm64/Kconfig | 2 ++ > arch/arm64/kernel/perf_event.c | 41 +++++++++++++++++++++++++++++++++++++++-- > drivers/perf/arm_pmu.c | 9 +++++++++ > include/linux/perf/arm_pmu.h | 2 ++ > 4 files changed, 52 insertions(+), 2 deletions(-) It would be great to have Alexandru's ack on this, since it builds directly on top of his code. Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel