Re: [RFC] PCI bridge driver rewrite

From: Adam Belay (abelay_at_novell.com)
Date: 03/01/05

  • Next message: Nick Piggin: "Re: Slowdown on high-load machines with 3000 sockets"
    To: Jon Smirl <jonsmirl@gmail.com>
    Date:	Mon, 28 Feb 2005 18:39:46 -0500
    
    

    On Thu, 2005-02-24 at 02:25 -0500, Jon Smirl wrote:
    > When you start writing the PCI root bridge driver you'll run into the
    > AGP drivers that are already attached to the bridge. I was surprised
    > by this since I expected AGP to be attached to the AGP bridge but now
    > I learned that it is a root bridge function.

    I'm going to have the PCI root bridge driver bind to a device on the
    primary side of the bridge. The device could be enumerated by ACPI or
    created manually when the bridge is detected. It will not, however, be
    a PCI device.

    >
    > An ISA LPC bridge driver would be nice too. It would let you turn off
    > serial ports, etc and let other systems know how many ports there are.
    > No real need for this, just a nice toy.

    I think this would make a lot of sense. ACPI could be used to enumerate
    child devices for this bridge. I'd like to begin work on a generic ISA
    bus driver soon.

    >
    > Does this work to cause a probe based on PCI class?
    > static struct pci_device_id p2p_id_tbl[] = {
    > { PCI_DEVICE_CLASS(PCI_CLASS_BRIDGE_PCI << 8, 0xffff00) },
    > { 0 },
    > };

    Yes, the macro is used when matching against only a class of device.

    >
    > I would like to install a driver that gets called whenever new
    > CLASS_VGA hardware shows up via hotplug. It won't attach to the
    > device, it will just add some sysfs attributes. The framebuffer
    > drivers need to attach the device. If I add attributes this way how
    > can I remove them?

    It would be possible, but probably not a clean solution. Ideally we
    want one driver to bind to the graphics controller and remain bound. It
    will then create class devices for each graphics subsystem, such as
    framebuffer. Much work remains to be done before this can happen.

    Thanks,
    Adam

    -
    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: Nick Piggin: "Re: Slowdown on high-load machines with 3000 sockets"

    Relevant Pages

    • Re: [RFC&PATCH 1/2] PCI Error Recovery (readX_check)
      ... This document describes about the implementation and usage of driver APIs ... Generally, system has multiple PCI buses, every bus could have multiple ... Often host bus bridge(Host-to-PCI bridge, connecting PCI system to the host) ... and bridge has 2 sets of status register for both of its neighbor buses. ...
      (Linux-Kernel)
    • Re: [RFC] PCI bridge driver rewrite
      ... AGP drivers that are already attached to the bridge. ... I learned that it is a root bridge function. ... An ISA LPC bridge driver would be nice too. ...
      (Linux-Kernel)
    • Re: Bridge disaster - What happened to the truck driver ?
      ... Do you mean the rig next to the school bus? ... that was once the Interstate 35W bridge in Minneapolis. ... Five people were confirmed dead at press time including the truck ... driver, but authorities feared more bodies would be found. ...
      (misc.transport.trucking)
    • Re: Accessing PCI device behind a non-transparent bridge.
      ... Maybe you need your own driver for non-transparent PCI bridge, ... Such a driver of your own should have implemented the DMA interface and the ... I have a PCI bridge that originates a PCI like bus on its secondary device. ...
      (microsoft.public.development.device.drivers)
    • Re: Good start - lets see bridge bashers sued next.
      ... approached a low bridge, carrying the Huddersfield - Sheffield line ... A professional driver ... cabs of double-decker buses, but I've never seen inside an HGV cab so I ...
      (uk.railway)