All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sumit Garg <sumit.garg@linaro.org>
To: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
	Lecopzer Chen <lecopzer.chen@mediatek.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Alexandru Elisei <alexandru.elisei@arm.com>,
	kernel-team@android.com,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH] Revert "arm64: Enable perf events based hard lockup detector"
Date: Wed, 13 Jan 2021 19:12:59 +0530	[thread overview]
Message-ID: <CAFA6WYOCxY4U21Rg9d-mh94M9KxUdFDN11QMqo4HjE6paJR-eg@mail.gmail.com> (raw)
In-Reply-To: <20210113102841.GA11503@willie-the-truck>

On Wed, 13 Jan 2021 at 15:58, Will Deacon <will@kernel.org> wrote:
>
> On Wed, Jan 13, 2021 at 12:00:01PM +0530, Sumit Garg wrote:
> > On Wed, 13 Jan 2021 at 03:49, Will Deacon <will@kernel.org> wrote:
> > >
> > > This reverts commit 367c820ef08082e68df8a3bc12e62393af21e4b5.
> > >
> > > lockup_detector_init() makes heavy use of per-cpu variables and must be
> > > called with preemption disabled. Usually, it's handled early during boot
> > > in kernel_ionit_freeable(), before SMP has been initialised.
> > >
> > > Since we do not know whether or not our PMU interrupt can be signalled
> > > as an NMI until considerably later in the boot process, the Arm PMU
> > > driver attempts to re-initialise the lockup detector off the back of a
> > > device_initcall(). Unfortunately, this is called from preemptible
> > > context and results in the following splat:
> >
> > Can we consider the following fix (compile tested only) to bind the
> > call to lockup_detector_init() to a particular CPU instead of
> > reverting the hard lockup detection feature as a whole?
>
> I think the revert is the right approach for 5.11, and you still have time
> to post a new (preferably more than just compile-tested!) version for 5.12.
>
> This is a new feature so we have time to get it right.
>

Okay, fair enough. I will post the new version for 5.12 with this fix included.

-Sumit

> Thanks,
>
> Will

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2021-01-13 13:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-12 22:18 [PATCH] Revert "arm64: Enable perf events based hard lockup detector" Will Deacon
2021-01-13  6:30 ` Sumit Garg
2021-01-13 10:28   ` Will Deacon
2021-01-13 13:42     ` Sumit Garg [this message]
2021-01-13 13:02 ` Mark Rutland
2021-01-28  7:05   ` Sumit Garg
2021-01-13 16:07 ` Catalin Marinas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFA6WYOCxY4U21Rg9d-mh94M9KxUdFDN11QMqo4HjE6paJR-eg@mail.gmail.com \
    --to=sumit.garg@linaro.org \
    --cc=alexandru.elisei@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=kernel-team@android.com \
    --cc=lecopzer.chen@mediatek.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.