Re: modprobe + request_module() deadlock

From: Johannes Stezenbach (js_at_linuxtv.org)
Date: 11/22/04

  • Next message: Ingo Molnar: "Re: [patch] Real-Time Preemption, -RT-2.6.10-rc2-mm2-V0.7.30-2"
    Date:	Mon, 22 Nov 2004 15:16:07 +0100
    To: Gerd Knorr <kraxel@suse.de>
    
    

    (someone dropped me off the Cc: list for this thread :-(, which is
    doubly bad because I'm not subscribed to lkml :-(( )

    Gerd Knorr wrote:
    > > The traditional way to do this has been to have saa7134-empress do its
    > > own probe, and likewise saa7134-dvb.
    >
    > They can't actually probe themself. It's _one_ PCI device (driven by
    > the saa7134 module) which can handle (among other v4l-related things)
    > the DMA transfer of mpeg streams. That can be used in different ways
    > (or not at all) and the different use cases are handled by the
    > sub-modules.
    >
    > So the way it is intended to work is that saa7134 has the pci table and
    > gets autoloaded by hotplug, it will have a look at the hardware and then
    > load either saa7134-empress or saa7134-dvb or none of them, so you'll
    > get everything nicely autoloaded.

    The saa7146 driver seems to have a working solution for this
    problem: The PCI ids are registered to the subdrivers (e.g. dvb-ttpci
    or mxb) so that these are loaded via hotplug. They then register to the
    saa7146 core as an "extension" module, and the core then does the probing.
    Grep for saa7146_register_extension().

    Johannes
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Ingo Molnar: "Re: [patch] Real-Time Preemption, -RT-2.6.10-rc2-mm2-V0.7.30-2"

    Relevant Pages

    • [patch 2.6.27-rc8-git] add drivers/mfd/twl4030-core.c
      ... This patch adds the core of the TWL4030 driver, ... There are some known issues with this core code. ... * often at around 3 Mbit/sec, including for interrupt handling. ... and exports register access primitives. ...
      (Linux-Kernel)
    • Re: custom peripheral registers
      ... The IP core gets triggered by the register ... The core goes off and does its thing. ... high for several clock cycles. ... if' statement is added to the slave register implementation in the ...
      (comp.arch.fpga)
    • Re: ptrace problem on ia64 with kernel 2.4.26
      ... > ddd, and other debugging tools, which depend on ptrace system call, don't ... > modification to peek info about register r4. ... > We use the following configuration: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 2.6] Altix - ioc3 serial support
      ... ports, and for console ports, it is assumed that the console code has ... >> tty_buffer_request_room is a hint to help the kernel manage buffers>> better. ... register for this. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: module-init-tools - input devices id support
      ... This is the first time I've looked at the input code, ... at least so I was assured by Greg. ... But it's designed for the hotplug stuff. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)