public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] CR[TPR] initialization in test12 kernel
@ 2000-12-21  8:20 Hirofumi Fujita
  0 siblings, 0 replies; 2+ messages in thread
From: Hirofumi Fujita @ 2000-12-21  8:20 UTC (permalink / raw)
  To: linux-ia64

Hi,

In test12 kernel,
CR[TPR] is not initialized for APs (application processors).

SAL spec says nothing about it's value at SAL to OS handoff,
but we cannot expect it has been set to 0.
So it should be set to 0 when interrupts are enabled in smp_callin().

BSP's CR[TPR] is correctly initialized in init_IRQ().

--- linux-2.4.0-test12-ia64-001214/arch/ia64/kernel/smp.c.org	Fri Dec 15 14:27:12 2000
+++ linux-2.4.0-test12-ia64-001214/arch/ia64/kernel/smp.c	Tue Dec 19 17:45:25 2000
@@ -532,6 +532,7 @@
 	ia64_set_lrr0(0, 1);	
 	ia64_set_lrr1(0, 1);	
 
+	ia64_set_tpr(0);
 	local_irq_enable();		/* Interrupts have been off until now */
 
 	calibrate_delay();


And, here is another patch for init_IRQ().
CR[CMCV] is already initialized to correct value in ia64_mca_init().

--- linux-2.4.0-test12-ia64-001214/arch/ia64/kernel/irq_ia64.c.org	Fri Dec 15 14:23:21 2000
+++ linux-2.4.0-test12-ia64-001214/arch/ia64/kernel/irq_ia64.c	Tue Dec 19 17:54:32 2000
@@ -165,7 +165,6 @@
 #endif
 
 	ia64_set_pmv(1 << 16);
-	ia64_set_cmcv(CMC_IRQ);			/* XXX fix me */
 
 	platform_irq_init();
 

Thanks,

Hirofumi Fujita
Hitachi, Ltd.


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

* Re: [Linux-ia64] CR[TPR] initialization in test12 kernel
@ 2001-01-05 19:17 David Mosberger
  0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2001-01-05 19:17 UTC (permalink / raw)
  To: linux-ia64

Hi Hirofumi,

>>>>> On Thu, 21 Dec 2000 17:20:12 +0900, Hirofumi Fujita <h-fujita@ebina.hitachi.co.jp> said:

  Hirofumi> Hi, In test12 kernel, CR[TPR] is not initialized for APs
  Hirofumi> (application processors).

  Hirofumi> SAL spec says nothing about it's value at SAL to OS
  Hirofumi> handoff, but we cannot expect it has been set to 0.  So it
  Hirofumi> should be set to 0 when interrupts are enabled in
  Hirofumi> smp_callin().

  Hirofumi> BSP's CR[TPR] is correctly initialized in init_IRQ().

Good point.  I moved the initialization of the CPU-local irq sources
into init_cpu(), where it should have been in the first place.

Thanks!

	--david


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

end of thread, other threads:[~2001-01-05 19:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-21  8:20 [Linux-ia64] CR[TPR] initialization in test12 kernel Hirofumi Fujita
  -- strict thread matches above, loose matches on Subject: below --
2001-01-05 19:17 David Mosberger

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