Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Aug 2004 16:52:44 +0000 (UTC)
From:      Nate Lawson <njl@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/acpica acpi_resource.c
Message-ID:  <200408201652.i7KGqiRb030057@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
njl         2004-08-20 16:52:44 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/acpica       acpi_resource.c 
  Log:
  Correctly handle BIOS resources that are duplicated (!).  There are many
  systems that have overlapping regions specified in their sysresource
  objects.  This patch fixes ATA DMA and acpi_timer allocation for such
  sysctems.  It should eventually be moved to resource_list_add() if it is
  a valid generalized approach.  The minimal approach for 5.3 is:
  
  "Loop through all current resources to see if the new one overlaps
  any existing ones.  If so, the old one always takes precedence and
  the new one is adjusted (or rejected).  We check for three cases:
  
  1. Tail of new resource overlaps head of old resource:  truncate the
     new resource so it is contiguous with the start of the old.
  2. New resource wholly contained within the old resource:  error.
  3. Head of new resource overlaps tail of old resource:  truncate the
     new resource so it is contiguous, following the old."
  
  Tested by:      Radek Kozlowski <radek_at_raadradd.com>
  Discussed with: imp
  MFC after:      4 days
  
  Revision  Changes    Path
  1.29      +49 -4     src/sys/dev/acpica/acpi_resource.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408201652.i7KGqiRb030057>