Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1199485

Re: [RFC] perf: Clear MSRs on kexec

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [RFC] perf: Clear MSRs on kexec
Date 2015-08-04 09:50 +0200
Message-ID <pTF90-41P-15@gated-at.bofh.it> (permalink)
References <pTvCF-6Zh-7@gated-at.bofh.it> <pTvW2-7m9-21@gated-at.bofh.it> <pTDqy-1uG-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Aug 04, 2015 at 07:52:29AM +0200, Jiri Olsa wrote:
> On Mon, Aug 03, 2015 at 11:54:17PM +0200, Peter Zijlstra wrote:
> > On Mon, Aug 03, 2015 at 11:32:28PM +0200, Jiri Olsa wrote:
> > > hi,
> > > I'm getting following message on the kdump kernel start
> > > 
> > >   Broken BIOS detected, complain to your hardware vendor.\
> > >   [Firmware Bug]: the BIOS has corrupted hw-PMU resources (MSR 38d is b0)
> > > 
> > > it seems to be caused by NMI watchdog being configured
> > > and fixed counter values stays in MSRs, which triggers
> > > warning in check_hw_exists and disables perf support
> > > in kdump kernel.. which probably does not hurt ;-)
> > > 
> > > zeroing MSRs during kdump shutdown seems to work (attached)
> > > but I'm not sure thats correct place for kdump perf callback
> > 
> > Right, but why bother? All that kernel needs to do is write a memory
> > dump to someplace and reboot, right? The less you do, the less can go
> > wrong.
> 
> well, I was hunting that 'Broken BIOS..' message which is wrong

Not really. The previous kernel being the BIOS in this case did
leave the counters in a funky state.

> I wouldn't think anyone wants to use perf under kdump kernel,
> but you never know ;-)

Yeah, I think we knew about this back then (might've been 2010) and
chose to not 'fix' it.

http://lkml.iu.edu/hypermail/linux/kernel/1012.1/00380.html

Is what google finds me.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC] perf: Clear MSRs on kexec Jiri Olsa <jolsa@redhat.com> - 2015-08-03 23:40 +0200
  Re: [RFC] perf: Clear MSRs on kexec Peter Zijlstra <peterz@infradead.org> - 2015-08-04 00:00 +0200
    Re: [RFC] perf: Clear MSRs on kexec Jiri Olsa <jolsa@redhat.com> - 2015-08-04 08:00 +0200
      Re: [RFC] perf: Clear MSRs on kexec Peter Zijlstra <peterz@infradead.org> - 2015-08-04 09:50 +0200
      Re: [RFC] perf: Clear MSRs on kexec Don Zickus <dzickus@redhat.com> - 2015-08-04 16:00 +0200

csiph-web