public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kernel disables interrupts
@ 2004-02-26 18:25 Jim Deas
  2004-02-26 18:48 ` Ben Collins
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jim Deas @ 2004-02-26 18:25 UTC (permalink / raw)
  To: linux-kernel

I am trouble shooting a new driver and have found a new
kernel item that makes trouble shooting a bit harder.
When I unload my test driver and before I can reload it
(reseting the interrut controls)the Kernerl disables
the chattering interrupt.
Once the kernel has disable a spurious interrupt is there
a way to get it back?

JD


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

* Re: kernel disables interrupts
  2004-02-26 18:25 kernel disables interrupts Jim Deas
@ 2004-02-26 18:48 ` Ben Collins
  2004-02-26 19:18 ` Richard B. Johnson
  2004-02-26 19:25 ` Zwane Mwaikambo
  2 siblings, 0 replies; 4+ messages in thread
From: Ben Collins @ 2004-02-26 18:48 UTC (permalink / raw)
  To: Jim Deas; +Cc: linux-kernel

On Thu, Feb 26, 2004 at 10:25:02AM -0800, Jim Deas wrote:
> I am trouble shooting a new driver and have found a new
> kernel item that makes trouble shooting a bit harder.
> When I unload my test driver and before I can reload it
> (reseting the interrut controls)the Kernerl disables
> the chattering interrupt.
> Once the kernel has disable a spurious interrupt is there
> a way to get it back?

Shouldn't your driver just disable the interrupt before unloading?

-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/

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

* Re: kernel disables interrupts
  2004-02-26 18:25 kernel disables interrupts Jim Deas
  2004-02-26 18:48 ` Ben Collins
@ 2004-02-26 19:18 ` Richard B. Johnson
  2004-02-26 19:25 ` Zwane Mwaikambo
  2 siblings, 0 replies; 4+ messages in thread
From: Richard B. Johnson @ 2004-02-26 19:18 UTC (permalink / raw)
  To: Jim Deas; +Cc: linux-kernel

On Thu, 26 Feb 2004, Jim Deas wrote:

> I am trouble shooting a new driver and have found a new
> kernel item that makes trouble shooting a bit harder.
> When I unload my test driver and before I can reload it
> (reseting the interrut controls)the Kernerl disables
> the chattering interrupt.
> Once the kernel has disable a spurious interrupt is there
> a way to get it back?
>
> JD

Linux version 2.4.24 doesn't "disable" a spurious interrupt!
When you unload the driver, you deallocate the interrupt you
are using (I sure hope so). When you load the driver again,
you reallocate the interrupt. If you FAILED to release the
IRQ when you unloaded the module, guess what? It's still
allocated and you can't have it anymore. That's probably
what's happening.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
            Note 96.31% of all statistics are fiction.



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

* Re: kernel disables interrupts
  2004-02-26 18:25 kernel disables interrupts Jim Deas
  2004-02-26 18:48 ` Ben Collins
  2004-02-26 19:18 ` Richard B. Johnson
@ 2004-02-26 19:25 ` Zwane Mwaikambo
  2 siblings, 0 replies; 4+ messages in thread
From: Zwane Mwaikambo @ 2004-02-26 19:25 UTC (permalink / raw)
  To: Jim Deas; +Cc: linux-kernel

On Thu, 26 Feb 2004, Jim Deas wrote:

> I am trouble shooting a new driver and have found a new
> kernel item that makes trouble shooting a bit harder.
> When I unload my test driver and before I can reload it
> (reseting the interrut controls)the Kernerl disables
> the chattering interrupt.
> Once the kernel has disable a spurious interrupt is there
> a way to get it back?

I take it you're referring to 2.6? Before you disable this feature (doable
via kernel parameter noirqdebug) be sure that you're disabling your device
before exiting the driver.

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

end of thread, other threads:[~2004-02-26 19:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-26 18:25 kernel disables interrupts Jim Deas
2004-02-26 18:48 ` Ben Collins
2004-02-26 19:18 ` Richard B. Johnson
2004-02-26 19:25 ` Zwane Mwaikambo

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