lkml.org 
[lkml]   [2009]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: perf sched record hangs machine
From
On 9/23/09, Ingo Molnar <mingo@elte.hu> wrote:
>
> * Ingo Molnar <mingo@elte.hu> wrote:
>
>>
>> * Peter Zijlstra <peterz@infradead.org> wrote:
>>
>> > .size default_send_IPI_self, .-default_send_IPI_self
>> >
>> > Which seems to suggest that cmove is in __prepare_ICR, but I'm not
>> > sure how that can cause a page-fault, as that function is rather
>> > pointer-less.
>> >
>> > Did it maybe delay evaluating apic->dest_logical that late, it appear
>> > to be the first usage of that argument?
>> >
>> > Ingo, any ideas?
>>
>> Yeah, the problem is:
>>
>> [ 0.042445] Local APIC not detected. Using dummy APIC emulation.
>>
>> we shouldnt be trying to program the lapic in that case - all ops
>> should be a NOP, including send-ipi-self. Cyrill?
>
> Cyrill, the right fix would be to define a:
>
> struct apic apic_none;
>
> with dummy functions injected. Set struct apic *apic to _that_, instead
> of apic_default.
>
> This means that if we manage to detect a local APIC, we will set it to
> apic_default (or some other driver) - but the bootup default will be 'no
> APIC'.
>

May it wait till evening (i'll back from office and take a look)?

> This is a lot cleaner and a lot less error-prone than the direct
> frobbing of the function pointers.
>
> Ingo
>


\
 
 \ /
  Last update: 2009-09-23 09:47    [W:0.347 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site