2001-11-02 07:33:15

by Zwane Mwaikambo

[permalink] [raw]
Subject: Forcing 8259A for one irq.

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?


2001-11-02 09:49:18

by Paul Komkoff

[permalink] [raw]
Subject: error in cache-counting, or so

-----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)[email protected] // (http)stingr.net // (pgp)0xA4B4ECA4
-----BEGIN PGP SIGNATURE-----

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