Multiple drivers for same hardware:, was: DRM and pci_driver conversion

From: Jon Smirl (jonsmirl_at_yahoo.com)
Date: 10/24/03

  • Next message: Randolph Chung: "[patch] fix __div64_32 to do division properly"
    Date:	Thu, 23 Oct 2003 20:47:01 -0700 (PDT)
    To: Jeff Garzik <jgarzik@pobox.com>, Linus Torvalds <torvalds@osdl.org>
    
    

    What about the fundamental question? We have several pairs of device drivers
    that want to control the same hardware. One example would be radeon DRM and
    radeon Framebuffer. How should these drivers coordinate probing and claiming
    resources?

    What should be the policy for multiple drivers?
    1) try new probe first and fall back to old scheme. First driver that loads
    gets the new probe, second gets the old. First driver reserves resources.
    2) Require a mini driver that handles probing. Then both drivers attach to the
    mini driver.
    3) Declare it illegal and make the drivers merge.
    4) Declare it illegal and only allow first one loaded to run.

    Right now radeonfb handles probing and resource reservation. DRM works in
    stealth mode. DRM uses all of the resources and never tells the kernel, that's
    how it avoids conflicting with framebuffer.

    DRM and framebuffer trade off control at VT switch. 2D state is save and
    restored. There is an assumption that framebuffer won't mess with the 3D state.
     I'm not sure that suspend/resume are coordinated in any way.

    =====
    Jon Smirl
    jonsmirl@yahoo.com

    __________________________________
    Do you Yahoo!?
    The New Yahoo! Shopping - with improved product search
    http://shopping.yahoo.com
    -
    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: Randolph Chung: "[patch] fix __div64_32 to do division properly"

    Relevant Pages

    • [git pull] drm tree with driver changes for 2.6.22-rc1
      ... This contains updates to the radeon and via drm drivers and cleans up the ... It also pulls in some fixes for via and radeon drivers from the DRI teams. ...
      (Linux-Kernel)
    • Re: 2.6.11-mm3 - DRM/i915 broken
      ... Initialized drm 1.0.0 20040925 ... # Firmware Drivers ... # Performance-monitoring counters support ... # Video For Linux ...
      (Linux-Kernel)
    • Re: [Dri-devel] Re: [Linux-fbdev-devel] DRM and pci_driver conversion
      ... > there some helper function I missed? ... >> I don't think DRM drivers are doing things correctly yet. ... >> code for marking PCI resources as being in use while DRM is using them. ...
      (Linux-Kernel)
    • Re: radeon-pre-2
      ... > The resource reservation conflicts are already solved in the current ... > DRM code. ... I _think_ Alan's argument is that this isn't about the resource ... And the drivers would never become non-stealth. ...
      (Linux-Kernel)
    • Re: OpenGL-based framebuffer concepts
      ... Merging DRM and fbdev is ... independent drivers are trying to control the same piece of hardware. ... The merging is blocked because of issues with DRM on BSD (merging ...
      (Linux-Kernel)