1. 27 4月, 2009 1 次提交
  2. 22 4月, 2009 1 次提交
    • S
      x86: x2apic, IR: remove reinit_intr_remapped_IO_APIC() · ff166cb5
      Suresh Siddha 提交于
      When interrupt-remapping is enabled, we are relying on
      setup_IO_APIC_irqs() to configure remapped entries in the
      IO-APIC, which comes little bit later after enabling
      interrupt-remapping.
      
      Meanwhile, restoration of old io-apic entries after enabling
      interrupt-remapping will not make the interrupts through
      io-apic functional anyway.
      
      So remove the unnecessary reinit_intr_remapped_IO_APIC() step.
      
      The longer story:
      
      When interrupt-remapping is enabled, IO-APIC entries need to be
      setup in the re-mappable format (pointing to
      interrupt-remapping table entries setup by the OS). This
      remapping configuration is happening in the same place where we
      traditionally configure IO-APIC (i.e., in
      setup_IO_APIC_irqs()).
      
      So when we enable interrupt-remapping successfully, there is no
      need to restore old io-apic RTE entries before we actually do a
      complete configuration shortly in setup_IO_APIC_irqs(). Old
      IO-APIC RTE's may be in traditional format (non re-mappable) or
      in re-mappable format pointing to interrupt-remapping table
      entries setup by BIOS. Restoring both of these will not make
      IO-APIC functional. We have to rely on setup_IO_APIC_irqs() for
      proper configuration by OS.
      
      So I am removing this unnecessary and broken step.
      
      [ Impact: remove unnecessary/broken IO-APIC setup step ]
      Signed-off-by: NSuresh Siddha <suresh.b.siddha@intel.com>
      Acked-by: NWeidong Han <weidong.han@intel.com>
      Cc: dwmw2@infradead.org
      LKML-Reference: <20090420200450.552359000@linux-os.sc.intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      ff166cb5
  3. 21 4月, 2009 2 次提交
  4. 19 4月, 2009 2 次提交
  5. 14 4月, 2009 1 次提交
  6. 13 4月, 2009 2 次提交
    • C
      x86: apic - introduce dummy apic operations · 08306ce6
      Cyrill Gorcunov 提交于
      Impact: refactor, speed up and robustize code
      
      In case if apic was disabled by kernel option
      or by hardware limits we can use dummy operations
      in apic->write to simplify the ack_APIC_irq() code.
      
      At the lame time the patch fixes the missed EOI in
      do_IRQ function (which has place if kernel is compiled
      as X86-32 and interrupt without handler happens where
      apic was not asked to be disabled via kernel option).
      
      Note that native_apic_write_dummy() consists of
      WARN_ON_ONCE to catch any buggy writes on enabled
      APICs. Could be removed after some time of testing.
      Signed-off-by: NCyrill Gorcunov <gorcunov@openvz.org>
      LKML-Reference: <20090412165058.724788431@openvz.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      08306ce6
    • C
      x86: apic - introduce imcr_ helpers · c0eaa453
      Cyrill Gorcunov 提交于
      Impact: cleanup
      
      Distinguish port writting magic into helpers with comments.
      Signed-off-by: NCyrill Gorcunov <gorcunov@openvz.org>
      LKML-Reference: <20090412165058.535921550@openvz.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      c0eaa453
  7. 08 4月, 2009 1 次提交
  8. 04 4月, 2009 1 次提交
  9. 18 3月, 2009 2 次提交
  10. 23 2月, 2009 2 次提交
    • I
      x86: refactor x86_quirks support · 8e6dafd6
      Ingo Molnar 提交于
      Impact: cleanup
      
      Make x86_quirks support more transparent. The highlevel
      methods are now named:
      
        extern void x86_quirk_pre_intr_init(void);
        extern void x86_quirk_intr_init(void);
      
        extern void x86_quirk_trap_init(void);
      
        extern void x86_quirk_pre_time_init(void);
        extern void x86_quirk_time_init(void);
      
      This makes it clear that if some platform extension has to
      do something here that it is considered ... weird, and is
      discouraged.
      
      Also remove arch_hooks.h and move it into setup.h (and other
      header files where appropriate).
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      8e6dafd6
    • S
      x86: select x2apic ops in early apic probe only if x2apic mode is enabled · ef1f87aa
      Suresh Siddha 提交于
      If BIOS hands over the control to OS in legacy xapic mode, select
      legacy xapic related ops in the early apic probe and shift to x2apic
      ops later in the boot sequence, only after enabling x2apic mode.
      
      If BIOS hands over the control in x2apic mode, select x2apic related
      ops in the early apic probe.
      
      This fixes the early boot panic, where we were selecting x2apic ops,
      while the cpu is still in legacy xapic mode.
      Signed-off-by: NSuresh Siddha <suresh.b.siddha@intel.com>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      ef1f87aa
  11. 18 2月, 2009 3 次提交
  12. 17 2月, 2009 2 次提交
  13. 16 2月, 2009 1 次提交
  14. 15 2月, 2009 1 次提交
  15. 06 2月, 2009 2 次提交
  16. 04 2月, 2009 1 次提交
  17. 31 1月, 2009 3 次提交
  18. 30 1月, 2009 2 次提交
    • Y
      x86: unify PM-Timer messages · 39ba5d43
      Yasuaki Ishimatsu 提交于
      Impact: Cleans up printk formatting
      
      When LOCAL APIC was calibrated, the debug message is displayed as follows.
      
      	CPU0: Intel(R) Xeon(R) CPU            5110  @ 1.60GHz stepping 06
      	Using local APIC timer interrupts.
      	calibrating APIC timer ...
      	... lapic delta = 3773131
      	... PM timer delta = 812434
      	APIC calibration not consistent with PM Timer: 226ms instead of 100ms
      	APIC delta adjusted to PM-Timer: 1662420 (3773131)
      	TSC delta adjusted to PM-Timer: 159592409 (362220564)
      	..... delta 1662420
      	..... mult: 71411249
      	..... calibration result: 265987
      	..... CPU clock speed is 1595.0924 MHz.
      	..... host bus clock speed is 265.0987 MHz.
      
      There are three type of PM-Timer (PM-Timer, PM Timer, and PM timer),
      in this message. This patch unifies those messages to PM-Timer.
      Signed-off-by: NYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      39ba5d43
    • Y
      x86: fix debug message of CPU clock speed · 754ef0cd
      Yasuaki Ishimatsu 提交于
      Impact: Fixes incorrect printk
      
      LOCAL APIC is corrected by PM-Timer, when SMI occurred while LOCAL APIC is calibrated.
      In this case, LOCAL APIC debug message(Boot with apic=debug) is displayed correctly,
      however, CPU clock speed debug message is displayed wrongly .
      
      When SMI occured on my machine, which has 1.6GHz CPU, CPU clock speed is displayed
      3622.0205 MHz as follow.
      
      	CPU0: Intel(R) Xeon(R) CPU            5110  @ 1.60GHz stepping 06
      	Using local APIC timer interrupts.
      	calibrating APIC timer ...
      	... lapic delta = 3773130
      	... PM timer delta = 812434
      	APIC calibration not consistent with PM Timer: 226ms instead of 100ms
      	APIC delta adjusted to PM-Timer: 1662420 (3773130)
      	..... delta 1662420
      	..... mult: 71411249
      	..... calibration result: 265987
      	..... CPU clock speed is 3622.0205 MHz.  =====>  here
      	..... host bus clock speed is 265.0987 MHz.
      
      This patch fixes to displaying CPU clock speed correctly as follow.
      
      	CPU0: Intel(R) Xeon(R) CPU            5110  @ 1.60GHz stepping 06
      	Using local APIC timer interrupts.
      	calibrating APIC timer ...
      	... lapic delta = 3773131
      	... PM timer delta = 812434
      	APIC calibration not consistent with PM Timer: 226ms instead of 100ms
      	APIC delta adjusted to PM-Timer: 1662420 (3773131)
      	TSC delta adjusted to PM-Timer: 159592409 (362220564)
      	..... delta 1662420
      	..... mult: 71411249
      	..... calibration result: 265987
      	..... CPU clock speed is 1595.0924 MHz.
      	..... host bus clock speed is 265.0987 MHz.
      Signed-off-by: NYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      754ef0cd
  19. 29 1月, 2009 10 次提交