On Thu, Jul 21, 2011 at 10:53 AM, John Baldwin <j...@freebsd.org> wrote:
> Hmm, so there does look to be a reasonable _CRS method.  Oh, I think I see
> what I don't like:
>
>                DWordMemory (ResourceProducer, PosDecode, MinNotFixed, 
> MaxFixed, Cacheable, ReadWrite,
>                    0x00000000,         // Granularity
>                    0x00000000,         // Range Minimum
>                    0xFFDFFFFF,         // Range Maximum
>                    0x00000000,         // Translation Offset
>                    0x00000000,         // Length
>                    ,, _Y01, AddressRangeMemory, TypeStatic)
>

This patch fixed the problem with my recent install of FreeBSD 9.0 on
VirtualBox.

Thanks for the fix.

Scot

> It should be using MinFixed, not MinNotFixed.  Try this patch:
>
> Index: acpi_pcib_acpi.c
> ===================================================================
> --- acpi_pcib_acpi.c    (revision 224217)
> +++ acpi_pcib_acpi.c    (working copy)
> @@ -207,10 +207,12 @@ acpi_pcib_producer_handler(ACPI_RESOURCE *res, voi
>                        length = res->Data.ExtAddress64.AddressLength;
>                        break;
>                }
> -               if (length == 0 ||
> -                   res->Data.Address.MinAddressFixed != ACPI_ADDRESS_FIXED ||
> -                   res->Data.Address.MaxAddressFixed != ACPI_ADDRESS_FIXED)
> +               if (length == 0)
>                        break;
> +               if (min + length - 1 != max &&
> +                   (res->Data.Address.MinAddressFixed != ACPI_ADDRESS_FIXED 
> ||
> +                   res->Data.Address.MaxAddressFixed != ACPI_ADDRESS_FIXED))
> +                       break;
>                flags = 0;
>                switch (res->Data.Address.ResourceType) {
>                case ACPI_MEMORY_RANGE:
>
> --
> John Baldwin
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to