svn commit: r270516 - head/sys/dev/drm2/i915

Bjoern A. Zeeb bz at FreeBSD.org
Mon Aug 25 12:45:48 UTC 2014


On 25 Aug 2014, at 05:03 , Adrian Chadd <adrian at freebsd.org> wrote:

> Author: adrian
> Date: Mon Aug 25 05:03:10 2014
> New Revision: 270516
> URL: http://svnweb.freebsd.org/changeset/base/270516
> 
> Log:
>  i915 driver - enable opregion handle; program CADL.
> 
>  add opregion handling for drm2 - which exposes some ACPI video configuration
>  pieces that some Lenovo laptop models use to flesh out which video device
>  to speak to.  This enables the brightness control in ACPI to work these models.
> 
>  The CADL bits are also important - it's used to figure out which ACPI
>  events to hook the brightness buttons into.  It doesn't yet seem to work
>  for me, but it does for the OP.
> 


This broke pc98:

@/contrib/dev/acpica/include/platform/acfreebsd.h:75:10: fatal error: 'machine/acpica_machdep.h' file not found



>  Tested:
> 
>  * Lenovo X230 (mine)
>  * OP: ASUS UX51VZ
> 
>  PR:	190186
>  Submitted by:	Henry Hu <henry.hu.sh at gmail.com>
>  Reviewed by:	dumbbell
> 
> Modified:
>  head/sys/dev/drm2/i915/i915_drv.h
>  head/sys/dev/drm2/i915/i915_irq.c
>  head/sys/dev/drm2/i915/intel_opregion.c
>


> Modified: head/sys/dev/drm2/i915/intel_opregion.c
> ==============================================================================
> --- head/sys/dev/drm2/i915/intel_opregion.c	Mon Aug 25 03:02:38 2014	(r270515)
> +++ head/sys/dev/drm2/i915/intel_opregion.c	Mon Aug 25 05:03:10 2014	(r270516)
> @@ -32,6 +32,9 @@ __FBSDID("$FreeBSD$");
> #include <dev/drm2/i915/i915_drm.h>
> #include <dev/drm2/i915/i915_drv.h>
> #include <dev/drm2/i915/intel_drv.h>
> +#include <contrib/dev/acpica/include/acpi.h>
> +#include <contrib/dev/acpica/include/accommon.h>
> +#include <dev/acpica/acpivar.h>
> 
> #define PCI_ASLE 0xe4
> #define PCI_ASLS 0xfc

— 
Bjoern A. Zeeb             "Come on. Learn, goddamn it.", WarGames, 1983



More information about the svn-src-all mailing list