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=-5.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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 3D2A0C433E0 for ; Wed, 10 Jun 2020 10:44:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 064F120656 for ; Wed, 10 Jun 2020 10:44:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PcuXMvpz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 064F120656 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.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:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rABS+JEqIPeHVtDYvxpQIAyXti+s87jVBHA40orztEA=; b=PcuXMvpzFidS7E 7JDd4M45TQy0Lebp08nOUYlFFH0gOT75EDYZwuovY2n4RrZElSdlVq9pCua6FRA9GuWWb+vnLc0p8 XxuqBxV4zM772V9SlnDWhQWqlVgNpLCSJ4qRhmlazx7IQ1ExohUALAtsH16J4NDYFy5UesKXjqRmz LOzNkAgJ2raxu9Znp+z5ZJ/L0mCsds3pdFg9iyOkiPhh/TDHofdkdExY58U97D6CNNXnXRctRIAA6 nv+4clE6h6saTEY7fN0Zyb47vBnbu49EMea7uw8xkfi1CoipuiohaGsdsM6h8RvIMYvhQZVFOF/qa 2tiLJjSw21TMrouKc0UQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jiyE5-0000OG-EI; Wed, 10 Jun 2020 10:44:57 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jiyE1-0000NA-W4 for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 10:44:55 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3B2F81FB; Wed, 10 Jun 2020 03:44:50 -0700 (PDT) Received: from [10.37.8.208] (unknown [10.37.8.208]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8E87D3F66F; Wed, 10 Jun 2020 03:44:47 -0700 (PDT) Subject: Re: [PATCH v2] arm64: Enable perf events based hard lockup detector To: Sumit Garg , Stephen Boyd References: <1591272551-21326-1-git-send-email-sumit.garg@linaro.org> <159175395730.242598.3354488505981092317@swboyd.mtv.corp.google.com> From: Alexandru Elisei Message-ID: <5c7da179-a878-d544-03af-2053e6a1dff1@arm.com> Date: Wed, 10 Jun 2020 11:45:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200610_034454_075507_CFB6568D X-CRM114-Status: GOOD ( 13.84 ) 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 , Daniel Thompson , Will Deacon , Peter Zijlstra , Catalin Marinas , Douglas Anderson , acme@kernel.org, alexander.shishkin@linux.intel.com, mingo@redhat.com, julien.thierry.kdev@gmail.com, namhyung@kernel.org, Thomas Gleixner , jolsa@redhat.com, linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, On 6/10/20 6:02 AM, Sumit Garg wrote: > On Wed, 10 Jun 2020 at 07:22, Stephen Boyd wrote: >> Quoting Sumit Garg (2020-06-04 05:09:11) >>> 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 >>> --- >>> >>> This patch is dependent on perf NMI patch-set [1]. >>> >>> [1] https://patchwork.kernel.org/cover/11047407/ >> That patch series is from last year. Any progress on it? >> > Alexandru (in Cc) has been working on rebasing and reworking this > patch-set with WIP-pmu-nmi branch [1]. For more information refer to > this thread [2]. > > [1] http://www.linux-arm.org/git?p=linux-ae.git;a=shortlog;h=refs/heads/WIP-pmu-nmi > [2] https://lkml.org/lkml/2020/5/20/431 > I have pushed the newest version of the patches to the same branch, not many changes. I've tested it on the model, and everything works fine. On all my boards, TFA clears SCR_EL3.FIQ, which Linux doesn't support, so right now I'm searching for a board that I can use for testing. Thanks, Alex _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel