lkml.org 
[lkml]   [2007]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH] kexec: force x86_64 arches to boot kdump kernels on boot cpu
    Date
    Neil Horman <nhorman@redhat.com> writes:

    > What makes you say this? I don't see any need for interrupts prior to
    > calibrate_delay()

    Yes. calibrate_delay() is the first place we send interrupts over
    hypertransport. However I/O still works. Thus hypertransport from
    the first cpu is working, and hypertransport itself is working.

    This is an interrupt specific problem not some generic hypertransport
    problem.

    >> I agree that there is a problem.
    >>
    >> The reliable fix is to totally skip the PIC interrupt mode and go directly
    >> to apic mode.
    >>
    >> To make the code kexec on panic code path reliable we need to remove code
    >> not add it.
    >>
    >> Frankly I think switching cpus is one of the least reliable things that
    >> we can do in general.
    >>
    > I understand the sentiment here, but its not like we're adding additional
    > functionality with this patch. We're already sending an IPI to all the
    > processors to halt them

    And we don't care if they halt. If they don't get the IPI we timeout.
    Making the IPI mandatory is a _singificant_ change.

    The only reason that code is on the kexec on panic code path is that
    there is no other possible place we could put it.

    > , we're just adding logic here so that we can detect the
    > boot cpu and use it to jump to the kexec image instead of halting. I don't
    > think this is any less reliable that what we have currently.

    It doesn't make things more reliable, and it adds code to a code path
    that already has to much code to be solid reliable (thus your
    problem).

    Putting the system back in PIC legacy mode on the kexec on panic path
    was supposed to be a short term hack until we could remove the need
    by always deliver interrupts in apic mode.

    If you can't root cause your problem and figure out how the apics
    are misconfigured for legacy mode let's remove the need for going into
    to legacy PIC mode and do what we should be able to do reliably. The
    reward is much higher, as we kill all possibility of restoring PIC
    mode wrong because we don't need to bother.

    Eric
    -
    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/

    \
     
     \ /
      Last update: 2007-11-27 14:33    [W:4.925 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site