Re: newbus ioport usage

From: Mike Smith (msmith_at_freebsd.org)
Date: 01/27/04

  • Next message: Mike Smith: "Re: newbus ioport usage"
    Date: Mon, 26 Jan 2004 22:34:43 -0800
    To: Nate Lawson <nate@root.org>
    
    

    > Ok, I've found what's going on. Apparently my acpi_sysresource0
    > pseudo-device is claiming all resources in its _CRS method. If I don't
    > boot with 0x101c and 0x101d attached, it attaches to 0x1010-0x109d.
    > But
    > if I boot attaching them, it reserves less of the range.

    It just comes along later, I think.

    > I'm not sure of a way around this. All ASL I've seen keeps these
    > registers contiguous so I could whack out a block of 8 of them,
    > although
    > that doesn't seem correct. Perhaps acpi_cpu should be able to override
    > the acpi_sysresource0 allocations, maybe by asking it for the resource
    > if
    > bus_resource_alloc returns NULL. Thoughts?

    You probably need the concept of a "may be considered system device"
    device,
    which can steal resource ranges from the sysresource placeholder.

    The whole reason for the sysresource device was to have something
    sitting on
    resources that the AML said had "something" behind them so that they
    didn't get
    handed out to devices on eg. PCI. If you're in the same sort of scope
    as the
    sysresource device, it's fair to say that you know more than eg. the
    PCI bus
    resource code does about whether you can use the resource in question.

      = Mike

    _______________________________________________
    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: Mike Smith: "Re: newbus ioport usage"

    Relevant Pages