mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Forcing 8259A for one irq.
@ 2001-11-02  7:44 Zwane Mwaikambo
  2001-11-02  9:48 ` error in cache-counting, or so Paul P Komkoff Jr
  0 siblings, 1 reply; 2+ messages in thread
From: Zwane Mwaikambo @ 2001-11-02  7:44 UTC (permalink / raw)
  To: linux-kernel

I've got a strange scenario whereupon i have a box with IO-APIC enabled
(SMP box) and a driver which seems not to be SMP safe and only works if i
boot the kernel with noapic. My question is, which is the cleanest way of
making a specific IRQ use the 8259 instead of IOAPIC? (kind of like the
timer on some boxes).

I've looked at the enable_8259A_irq function, but my method looks terribly
incorrect (and untested too). Would this method work? And is there
anything i should look out for?

irq_num = IRQ below 15 (specified as parameter to module)
add entry to IO-APIC routing table? (local-apic to CPU#0)
enable_8259A_irq(irq_num)

This is only a temporary measure until i get the driver completely SMP
safe and i want to avoid running noapic.

Thanks in advance,
	Zwane Mwaikambo

--
Anyone for a LUG in Swaziland?


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

* error in cache-counting, or so
  2001-11-02  7:44 Forcing 8259A for one irq Zwane Mwaikambo
@ 2001-11-02  9:48 ` Paul P Komkoff Jr
  0 siblings, 0 replies; 2+ messages in thread
From: Paul P Komkoff Jr @ 2001-11-02  9:48 UTC (permalink / raw)
  To: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

[stingray stingray]$ uname -a
Linux kg 2.4.13-ac5 #1 SMP Thu Nov 1 23:50:07 MSK 2001 i686 unknown
[stingray stingray]$ cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  129765376 23408640 106356736        0  9134080 18446744073706065920
Swap: 148013056        0 148013056
MemTotal:       126724 kB
MemFree:        103864 kB
MemShared:           0 kB
Buffers:          8920 kB
Cached:       4294963892 kB
SwapCached:          0 kB
Active:          14144 kB
Inact_dirty:       292 kB
Inact_clean:         0 kB
Inact_target:    26212 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       126724 kB
LowFree:        103864 kB
SwapTotal:      144544 kB
SwapFree:       144544 kB

need anything else ? .config etc. can be sent by req :)))
- -- 
Paul P 'Stingray' Komkoff 'Greatest' Jr // (icq)23200764 // (irc)Spacebar
  PPKJ1-RIPE // (smtp)i@stingr.net // (http)stingr.net // (pgp)0xA4B4ECA4
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAjvia+0ACgkQyMW8naS07KS6WQCbBKSw6RAa35qgv7KkqPxWK5XD
9uAAoMn8ixhziC0jbtImM6y9LeKSTWz3
=m4kY
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2001-11-02  9:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-02  7:44 Forcing 8259A for one irq Zwane Mwaikambo
2001-11-02  9:48 ` error in cache-counting, or so Paul P Komkoff Jr

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®