[PATCH v2] kexec: Fix kdump failure with notsc
Ingo Molnar
mingo at kernel.org
Fri Jul 8 00:38:28 PDT 2016
* Eric W. Biederman <ebiederm at xmission.com> wrote:
> Sigh. Can we please just do the work to rip out the apic shutdown code from the
> kexec on panic code path?
>
> I forgetting details but the only reason we have do any apic shutdown is bugs in
> older kernels that could not initialize a system properly if we did not shut
> down the apics.
>
> I certainly don't see an issue with goofy cases like notsc not working on a
> crash capture kernel if we are not initializing the hardware properly.
>
> The strategy really needs to be to only do the absolutely essential hardware
> shutdown in the crashing kernel, every adintional line of code we execute in the
> crashing kernel increases our chances of hitting a bug.
Fully agreed.
> Under that policy things like requring we don't pass boot options that inhibit
> the dump catpure kernel from initializing the hardware from a random state are
> reasonable requirements. AKA I don't see any justification in this as to why we
> would even want to support notsc on the dump capture kernel. Especially when
> things clearly work when that option is not specified.
So at least on the surface it appears 'surprising' that the 'notsc' option (which,
supposedly, disables TSC handling) interferes with being able to fully boot. Even
if 'notsc' is specified we are still using the local APIC, right?
So it might be a good idea to find the root cause of this bootup fragility even if
'notsc' is specified. And I fully agree that it should be fixed in the bootup path
of the dump kernel, not the crash kernel reboot path.
Thanks,
Ingo
More information about the kexec
mailing list