public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* HPET : timer routing setup with Legacy Routing Replacement bit set
@ 2006-09-27 17:46 Om Narasimhan
  2006-09-27 19:56 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Om Narasimhan @ 2006-09-27 17:46 UTC (permalink / raw)
  To: kernelnewbies, linux-kernel

Hi,
I am working with a new bios for a server our company build. I am
confused about the routing of the timer and arch/x86_64/kernel/time.c
irq setup.

HPET specification states that if Legacy routing replacement enable
bit is set, IRQ0 should not be connected to PIN0 of IOAPIC, and IRQ0
should not generate any interrupts. But in the kernel code, timer is
hard coded to irq0 (arch/x86_64/kernel/time.c : time_init(), calls
setup_irq(0,&irq0). 0 being the irq number)

My question is, should it not be IRQ2 if HPET is enabled and Legacy
Routing Replacement bit is enbaled?

Regards,
Om.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: HPET : timer routing setup with Legacy Routing Replacement bit set
  2006-09-27 17:46 HPET : timer routing setup with Legacy Routing Replacement bit set Om Narasimhan
@ 2006-09-27 19:56 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2006-09-27 19:56 UTC (permalink / raw)
  To: Om Narasimhan; +Cc: linux-kernel

"Om Narasimhan" <om.turyx@gmail.com> writes:

> Hi,
> I am working with a new bios for a server our company build. I am
> confused about the routing of the timer and arch/x86_64/kernel/time.c
> irq setup.
> 
> HPET specification states that if Legacy routing replacement enable
> bit is set, IRQ0 should not be connected to PIN0 of IOAPIC, and IRQ0
> should not generate any interrupts. But in the kernel code, timer is
> hard coded to irq0 (arch/x86_64/kernel/time.c : time_init(), calls
> setup_irq(0,&irq0). 0 being the irq number)
> 
> My question is, should it not be IRQ2 if HPET is enabled and Legacy
> Routing Replacement bit is enbaled?

Legacy Routing Replacement is currently not supported.

Feel free to contribute a patch supporting it though.

-Andi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-27 19:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-27 17:46 HPET : timer routing setup with Legacy Routing Replacement bit set Om Narasimhan
2006-09-27 19:56 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox