Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 2010 08:50:21 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/acpica acpi.c acpi_cpu.c
Message-ID:  <201002110850.o1B8ogHZ076767@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
avg         2010-02-11 08:50:21 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/acpica       acpi.c acpi_cpu.c 
  Log:
  SVN rev 203776 on 2010-02-11 08:50:21Z by avg
  
  acpi cpu: probe+attach before all other enumerated children on acpi bus
  
  Some current systems dynamically load SSDT(s) when _PDC/_OSC method
  of Processor is evaluated.  Other devices in ACPI namespace may access
  objects defined in the dynamic SSDT.  Drivers for such devices might
  have to have a rather high priority, because of other dependencies.
  Good example is acpi_ec driver for EC.
  Thus we attach to Processors as early as possible to load the SSDTs
  before any other drivers may try to evaluate control methods.
  It also seems to be a natural order for a processor in a device
  hierarchy.
  
  On the other hand, some child devices on acpi cpu bus need to access
  other system resources like PCI configuration space of chipset devices,
  so they need to be probed and attached rather late.
  For this reason we probe and attach the cpu bus at
  SI_SUB_CONFIGURE:SI_ORDER_MIDDLE SYSINIT level.
  In the future this could be done more elegantly via multipass.
  
  Please note that acpi drivers that might access ACPI namespace from
  device_identify will do that before _PDC/_OSC of Processors are evaluated.
  
  Legacy cpu driver is not affected by this change.
  
  PR:             kern/142561 (in part)
  Reviewed by:    jhb
  Silence from:   acpi@
  MFC after:      5 weeks
  
  Revision  Changes    Path
  1.273     +5 -5      src/sys/dev/acpica/acpi.c
  1.85      +22 -4     src/sys/dev/acpica/acpi_cpu.c



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