Re: 2.6.30 enabling cpu1 on resume fails after suspend to memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

>-----Original Message-----
>From: Thomas Gleixner [mailto:tglx@xxxxxxxxxxxxx] 
>Sent: Sunday, June 14, 2009 6:17 AM
>To: Pallipadi, Venkatesh
>Cc: Benjamin S.; Rafael J. Wysocki; Ingo Molnar; LKML; 
>js@xxxxxxxxx; Jesse Barnes; pm list; Linux PCI; Matthew Wilcox
>Subject: RE: 2.6.30 enabling cpu1 on resume fails after 
>suspend to memory
>
>On Sun, 14 Jun 2009, Pallipadi, Venkatesh wrote:
>> >On Sun, 14 Jun 2009, Benjamin S. wrote:
>> >
>> >This is odd as well:
>> >>            CPU0       CPU1       
>> >>   0:         42          1   IO-APIC-edge      timer
>> >>  24:       4830          0  HPET_MSI-edge      hpet2
>> >> LOC:         42       5070   Local timer interrupts
>> >
>> >So we set up only one hpet channel for CPU0 and CPU1 uses the local
>> >timer interrupt. Need to look at that as well.
>> >
>>
> 
>> Logic in percpu HPET is something like this.
>>
>> - Number of per cpu HPET channels = total number of HPET channels -
>>   1 (global HPET) - 1 (legacy RTC replacement) - 1 (reserved for
>>   /dev/hpet).
>>
>> - So, this number is assigned one per CPU and remaining CPUs use
>>   APIC timer + broadcast logic
>>
>> Looks like there is a slight problem with the above though. We
>> should start such per cpu assignment from CPU 1 instead of CPU 0,
>> when number of HPET channels is less than number of CPUs. Will send
>> a patch for that. But, this suspend resume problem should not be due
>> to the percpu HPET logic. It will be good to try with hpet=disable
>> to make sure...
>
>Benjamin just confirmed that. The logic in disable_device_interrupts()
>already skips interrupts marked with IRQF_TIMER, but I suspect that
>the hpet/MSI interupts are not marked that way.
>

For percpu hpet at offline we will have
- clockevent shutdown which will disable the interrupt
- free_irq that will unregister on CPU DEAD

Thanks,
Venki
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux