Re: newbus ioport usage

From: M. Warner Losh (imp_at_bsdimp.com)
Date: 01/28/04

  • Next message: Craig Rodrigues: "ULE testing with "late" tool?"
    Date: Wed, 28 Jan 2004 00:34:40 -0700 (MST)
    To: nate@root.org
    
    

    In message: <20040127225912.A77804@root.org>
                Nate Lawson <nate@root.org> writes:
    : Now acpi0 owns the resources. In acpi_alloc_resource, I
    : call resource_list_alloc(). If it returns NULL, then loop through all
    : rids, calling resource_list_find() on each. For each that it finds, check
    : if rl->start + rl->count overlaps the requested address. If so, free this
    : resource via resource_list_free(), call BUS_ALLOC_RESOURCE() for the
    : caller's resource, then generate a new resource_list_alloc() for the
    : truncated range. This would be unnecessary if we had a way to free a
    : partial range of a resource, but it appears this is the only way.
    :
    : Thoughts?

    I'd be tempted to create your own resource manager, and use the rman
    code to deal. Once you allocate the resources from the upstream
    manager (using BUS_ALLOC_RESOURCE), you can then search the resource
    manager to dole out the resources. Since these resources aren't
    associated in a 1-1 manner with how the devices will use it, unlike
    pci or pc card busses, this may be the easiest way to cope. The
    resource manager does the stuff that you talk about. The resource
    manager is how you deal with partial ranges.

    Be aware that jhb believes that there might be some bugs in the dark
    corners of rman that would account for some weird behavior that we've
    seen from time to time, but I'm less sure. You'd need to rman_init()
    things, and then rman_manage_region the appropriate regions. The code
    would look a lot like what is in nexus.

    Warner
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Craig Rodrigues: "ULE testing with "late" tool?"

    Relevant Pages

    • Jobs: US - Environmental / Ecology Jobs
      ... Biomass Energy Resource Center ... Freshwater Fish Ecology and Conservation ... Programme Manager (Forestry) ... Environmental Educator and Nature Center Assistant ...
      (sci.bio.ecology)
    • Jobs: US - Environmental / Recycling Jobs
      ... Biomass Energy Resource Center ... Freshwater Fish Ecology and Conservation ... Programme Manager (Forestry) ... Environmental Educator and Nature Center Assistant ...
      (sci.environment.waste)
    • Re: Role of Resource Manager
      ... Looks like you're deeply in need of Project Server, Trent? ... Project Manager - MCP ... > On one hand the Project Leader only has visibility of resource engaged ...
      (microsoft.public.project.pro_and_server)
    • Re: Commenting work hours
      ... So if Joe Resource spends today taking 2 ... hours debugging module X, 1 hour meeting with a client, 2 hours designing ... It's designed for the manager to ... *plan* what the resources are supposed to be doing when, ...
      (microsoft.public.project)
    • Re: Can Team Member updates flow to Resource Manager before Proj Mgr
      ... The project manager builds the team for the project to include the ... The project manager assigns the resource manager to any tasks that the ... The RM selects a task and clicks the Delegate Task button ...
      (microsoft.public.project.pro_and_server)

  • Quantcast