From owner-svn-src-all@FreeBSD.ORG Mon Aug 25 12:45:48 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0948EF3A; Mon, 25 Aug 2014 12:45:48 +0000 (UTC) Received: from mx1.sbone.de (bird.sbone.de [46.4.1.90]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B09333734; Mon, 25 Aug 2014 12:45:46 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 314D925D387C; Mon, 25 Aug 2014 12:45:36 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 175F8C77036; Mon, 25 Aug 2014 12:45:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id w6FGKJ1rcJ9p; Mon, 25 Aug 2014 12:45:32 +0000 (UTC) Received: from [IPv6:fde9:577b:c1a9:4420:cabc:c8ff:fe8b:4fe6] (orange-tun0-ula.sbone.de [IPv6:fde9:577b:c1a9:4420:cabc:c8ff:fe8b:4fe6]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 73D7AC22F5A; Mon, 25 Aug 2014 12:45:28 +0000 (UTC) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: svn commit: r270516 - head/sys/dev/drm2/i915 From: "Bjoern A. Zeeb" In-Reply-To: <201408250503.s7P53Axo057720@svn.freebsd.org> Date: Mon, 25 Aug 2014 12:45:23 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201408250503.s7P53Axo057720@svn.freebsd.org> To: Adrian Chadd X-Mailer: Apple Mail (2.1878.6) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2014 12:45:48 -0000 On 25 Aug 2014, at 05:03 , Adrian Chadd wrote: > Author: adrian > Date: Mon Aug 25 05:03:10 2014 > New Revision: 270516 > URL: http://svnweb.freebsd.org/changeset/base/270516 >=20 > Log: > i915 driver - enable opregion handle; program CADL. >=20 > 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. >=20 > 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. >=20 This broke pc98: @/contrib/dev/acpica/include/platform/acfreebsd.h:75:10: fatal error: = 'machine/acpica_machdep.h' file not found > Tested: >=20 > * Lenovo X230 (mine) > * OP: ASUS UX51VZ >=20 > PR: 190186 > Submitted by: Henry Hu > Reviewed by: dumbbell >=20 > 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 > =85 > Modified: head/sys/dev/drm2/i915/intel_opregion.c > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- 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 > #include > #include > +#include > +#include > +#include >=20 > #define PCI_ASLE 0xe4 > #define PCI_ASLS 0xfc =97=20 Bjoern A. Zeeb "Come on. Learn, goddamn it.", WarGames, 1983