Re: misc questions about the device&driver arch

From: John Baldwin (jhb_at_freebsd.org)
Date: 11/29/05

  • Next message: Warner Losh: "Re: misc questions about the device&driver arch"
    To: kylin <fierykylin@gmail.com>
    Date: Tue, 29 Nov 2005 14:49:44 -0500
    
    

    On Thursday 10 November 2005 05:48 am, kylin wrote:
    > Sir ,i am still puzzled by the windows and freebsd arch similar.
    > 1
    > the window TPS say that windwo allocate the resource window in default
    > size of 1M or 2M,so there may be hole ,does that happen in freebsd 5
    > or 6?

    No.

    > 2
    > in my view i believe that freebsd us the "just enough "tactics,so
    > the nexus level of resource view is ===continuous====with NO hole in
    > a boot up system, IF hot remove do not happen .am i right?

    Sorta. We actually will use whatever the BIOS uses by default. We only try
    to alloc resources if the BIOS doesn't, and I'm not sure how we handle a
    bridge running out of resources. I think we might just fail the allocation.

    > 3
    > IF i do a PCI hotplug under a bridge, and the bridge 's MEM Window is
    > full ,i have to do reballacne (including use the device_pause
    > method:)), and if i can not declaim the resource from other bridge
    > because "nexus level of resource view is ===continuous====with NO hole
    > ", can i extend the physical address space beyond the boot time
    > locate range to PCI host bridge ?

    Well, if you had device_pause() you would be able to shuffle resources from
    one bridge to another perhaps. Preallocating bigger chunks as your first
    question suggested might be a lot simpler though not completely fool proof.

    > On 11/6/05, John Baldwin <jhb@freebsd.org> wrote:
    > > On Sunday 06 November 2005 06:14 am, kylin wrote:
    > > > On 11/6/05, M. Warner Losh <imp@bsdimp.com> wrote:
    > > > > In message:
    > > > > <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.com>
    > > > >
    > > > > kylin <fierykylin@gmail.com> writes:
    > > > > : ///////////////
    > > > > : pci bridge dynamic resize
    > > > > : /////////////
    > > > > : it seems that the device arch of freebsd is similar to what is
    > > > > : revealed in window OS. i have read the pcie hotplug tps of windows
    > > > > : longhorn ,it is said that with some hardware mechanisms the pci
    > > > > : bridge driver can do global pci resource window reconfiguration.so
    > > > > : good to the hotplugin pci device for it avoid prelocating resource
    > > > > : for the device .
    > > > > : i wonder ,if the mem /io/irq reconfiguration possible under freebsd
    > > > > : .:) 1
    > > > >
    > > > > Yes. Cardbus does it all the time. However, there's no pcie
    > > > > hot-plug support yet, so the process for kicking off configuration of
    > > > > the new device doesn't happen.
    > > > >
    > > > > Warner
    > > >
    > > > sorry for my poor grammar ,i think i confused the public:) i will make
    > > > myself clear with the words below about the PCI Multi-level Rebalance
    > > >
    > > > PCI Multi-level Rebalance in Windows Longhorn
    > > > Updated: November 25, 2003
    > >
    > > No, FreeBSD doesn't currently do what this decribes yet. It would be
    > > possible to do it by adding a new device_pause() method that drivers
    > > would be required to implement while the resources were shuffled around
    > > though and possibly a device_unpause() method so that they could update
    > > their state if their resources were changed while the device was paused.
    > >
    > > --
    > > John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
    > > "Power Users Use the Power to Serve" = http://www.FreeBSD.org
    >
    > --
    > we who r about to die,salute u!

    -- 
    John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
    "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Warner Losh: "Re: misc questions about the device&driver arch"

    Relevant Pages

    • Re: OT - A little humor
      ... was full of customers and a uniformed officer was standing at the counter. ... Apparently they failed to notice the window was closed. ... along the walkway of the bridge at 4:30 AM. ... elephant an olive oil enema when the relieved beast unloaded. ...
      (rec.crafts.metalworking)
    • Re: bridge collapse in Mineapolis ...sit rep ?
      ... Well if I were a terrorist wanting to take a bridge out, ... The pressure from even a couple of feet of water prevents window operation. ... use your feet against the largest glass surface you can get to. ...
      (misc.survivalism)
    • Re: Iconized application takes looooong to wake up
      ... When you restore the window quickly, the OS has not, in the interim, ... multiple machines), or lack of resources. ... including applications currently on display. ... I've also seen Windows choke on redrawing windows with too many widgets. ...
      (comp.lang.tcl)
    • Re: PCI ROM resource allocation issue with 2.6.17-rc2
      ... my secondary head is being assigned non-prefetchable resources outside ... Note that the "transparent" really means that it forwards all IO resources ... IO window: b000-bfff ... is the bridge, ...
      (Linux-Kernel)
    • Re: ACPIPNP and too large IO resources
      ... you probably have a bridge device that consumes the ... range for downstream PNP devices. ... We might need to consider this patch as ... A patch in -mm kernel correct the parsing of "address resources" of pnpacpi. ...
      (Linux-Kernel)

    Loading