All of lore.kernel.org
 help / color / mirror / Atom feed
* AGP module removal impossible ?
@ 2005-03-14 23:28 Brice Goglin
  2005-03-15  1:06 ` Dave Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Brice Goglin @ 2005-03-14 23:28 UTC (permalink / raw)
  To: Dave Jones; +Cc: Linux Kernel

Hi Dave,

I can't remove the AGP chipset module on my boxes.
Looks like the AGP chipset driver holds a reference on itself and
thus makes removal impossible.

 From what I understand, as soon as intel_agp is loaded, agp_intel_probe
is called. It gets a reference on intel_agp module through
!try_module_get(bridge->driver->owner) in agp_add_bridge.
Then this reference can only be released through module_put in
agp_remove_bridge which is called agp_intel_remove which is only called
when removing the module.

Thus it looks impossible to remove this module at all.
And I think the problem occurs with all other AGP chipset drivers.

I hope the reason is not just that module removal support is not important
in 2.6 :) It looks strange to implement a module removal routine if we
know it can't be used :)

Regards,
Brice Goglin

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

* Re: AGP module removal impossible ?
  2005-03-14 23:28 AGP module removal impossible ? Brice Goglin
@ 2005-03-15  1:06 ` Dave Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Jones @ 2005-03-15  1:06 UTC (permalink / raw)
  To: Brice Goglin; +Cc: Linux Kernel

On Tue, Mar 15, 2005 at 12:28:51AM +0100, Brice Goglin wrote:
 > Hi Dave,
 > 
 > I can't remove the AGP chipset module on my boxes.
 > Looks like the AGP chipset driver holds a reference on itself and
 > thus makes removal impossible.
 > 
 > From what I understand, as soon as intel_agp is loaded, agp_intel_probe
 > is called. It gets a reference on intel_agp module through
 > !try_module_get(bridge->driver->owner) in agp_add_bridge.
 > Then this reference can only be released through module_put in
 > agp_remove_bridge which is called agp_intel_remove which is only called
 > when removing the module.
 > 
 > Thus it looks impossible to remove this module at all.
 > And I think the problem occurs with all other AGP chipset drivers.
 > 
 > I hope the reason is not just that module removal support is not important
 > in 2.6 :) It looks strange to implement a module removal routine if we
 > know it can't be used :)

The locking is screwed up and has been for some time.
I've been meaning to take a look at it for a while, but keep finding
more important things to do.  It should be fixed to lock/unlock when
the device is opened, as it was in 2.4

		Dave


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

end of thread, other threads:[~2005-03-15  1:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-14 23:28 AGP module removal impossible ? Brice Goglin
2005-03-15  1:06 ` Dave Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.