mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Martin Wilck <Martin.Wilck@fujitsu-siemens.com>
Cc: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>,
	Ingo Molnar <mingo@elte.hu>,
	Linux Kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: Severe IRQ problems on Foster (P4 Xeon) system
Date: Wed, 20 Mar 2002 00:28:37 +0100	[thread overview]
Message-ID: <20020319232836.GB1758@elf.ucw.cz> (raw)
In-Reply-To: <Pine.GSO.3.96.1020319145208.12399I-100000@delta.ds2.pg.gda.pl> <Pine.LNX.4.33.0203191711070.9609-100000@biker.pdb.fsc.net>

Hi!

> --- ./arch/i386/kernel/time.c.ORIG	Fri Mar 15 14:57:00 2002
> +++ ./arch/i386/kernel/time.c	Tue Mar 19 17:27:12 2002
> @@ -384,7 +384,9 @@
>  /* last time the cmos clock got updated */
>  static long last_rtc_update;
> 
> +#ifndef CONFIG_X86_TSC
>  int timer_ack;
> +#endif
> 
>  /*
>   * timer_interrupt() needs to keep up the real-time clock,
> @@ -392,7 +394,7 @@
>   */
>  static inline void do_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
>  {
> -#ifdef CONFIG_X86_IO_APIC
> +#if defined (CONFIG_X86_IO_APIC) && ! defined (CONFIG_X86_TSC)
>  	if (timer_ack) {
>  		/*
>  		 * Subtle, when I/O APICs are used we have to ack timer IRQ
> --- ./arch/i386/kernel/io_apic.c.ORIG	Tue Mar 19 17:31:25 2002
> +++ ./arch/i386/kernel/io_apic.c	Tue Mar 19 17:30:02 2002
> @@ -1478,7 +1478,9 @@
>   */
>  static inline void check_timer(void)
>  {
> +#ifndef CONFIG_X86_TSC
>  	extern int timer_ack;
> +#endif
>  	int pin1, pin2;
>  	int vector;
> 
> @@ -1498,7 +1500,7 @@
>  	 */
>  	apic_write_around(APIC_LVT0, APIC_LVT_MASKED | APIC_DM_EXTINT);
>  	init_8259A(1);
> -	timer_ack = 1;
> +	timer_ack = !(cpu_has_tsc);
>  	enable_8259A_irq(0);
> 
>  	pin1 = find_isa_irq_pin(0, mp_INT);
> 
> 
> This would get us rid of our problem (although the BIOS hack may
> suffice). However, more than that, it also spares ~2 us on each timer
> interrupt for CPUs which do not need do_slow_gettimeoffset.
> 
> What do you think?

Well, you should get your bios fixed.

Then... Those ifdefs are not neccessary, right? You only need ...

> @@ -1498,7 +1500,7 @@
>  	 */
>  	apic_write_around(APIC_LVT0, APIC_LVT_MASKED | APIC_DM_EXTINT);
>  	init_8259A(1);
> -	timer_ack = 1;
> +	timer_ack = !(cpu_has_tsc);
>  	enable_8259A_irq(0);
> 
>  	pin1 = find_isa_irq_pin(0, mp_INT);

... these lines.
									Pavel

-- 
(about SSSCA) "I don't say this lightly.  However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa

  reply	other threads:[~2002-03-19 23:31 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-13 19:11 Martin Wilck
2002-03-13 19:10 ` Ingo Molnar
2002-03-13 22:22   ` Bill Davidsen
2002-03-13 22:51     ` Alan Cox
2002-03-14  5:29       ` rddunlap
2002-03-14 14:26         ` Alan Cox
2002-03-15  7:55     ` Ingo Molnar
2002-03-14 13:29   ` Martin Wilck
2002-03-14 14:34     ` Martin J. Bligh
2002-03-14 18:22     ` Martin J. Bligh
2002-03-15  7:50       ` Ingo Molnar
2002-03-15  7:43     ` Ingo Molnar
2002-03-15 18:08       ` Martin J. Bligh
2002-03-19 13:38         ` Maciej W. Rozycki
2002-03-19 13:11   ` Maciej W. Rozycki
2002-03-27 17:35   ` Steffen Persvold
2002-03-19 14:32 ` Maciej W. Rozycki
2002-03-19 16:39   ` Martin Wilck
2002-03-19 23:28     ` Pavel Machek [this message]
2002-03-20  7:52       ` Martin Wilck
2002-03-20 13:27         ` Maciej W. Rozycki
2002-03-20 13:47           ` Martin Wilck
2002-03-20 14:13             ` Maciej W. Rozycki
2002-03-20 14:29           ` Alan Cox
2002-03-21 18:53           ` Martin Wilck
2002-03-20 13:52     ` Maciej W. Rozycki
2002-03-20 16:19       ` Martin Wilck
2002-03-21 13:03         ` Maciej W. Rozycki
2002-03-20 20:24   ` William Lee Irwin III
2002-03-21  6:54     ` Zwane Mwaikambo
2002-03-21 23:35       ` William Lee Irwin III
2002-03-22  0:18         ` Maciej W. Rozycki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020319232836.GB1758@elf.ucw.cz \
    --to=pavel@suse.cz \
    --cc=Martin.Wilck@fujitsu-siemens.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=macro@ds2.pg.gda.pl \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®