From owner-freebsd-current@FreeBSD.ORG Thu Jan 29 18:35:31 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 099DF749 for ; Thu, 29 Jan 2015 18:35:31 +0000 (UTC) Received: from graal.it-profi.org.ua (graal.shurik.kiev.ua [193.239.74.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B01C62F7 for ; Thu, 29 Jan 2015 18:35:29 +0000 (UTC) Received: from [46.164.154.106] (helo=thinkpad.it-profi.org.ua) by graal.it-profi.org.ua with esmtpa (Exim 4.84 (FreeBSD)) (envelope-from ) id 1YGtez-000EED-RN for freebsd-current@freebsd.org; Thu, 29 Jan 2015 20:17:45 +0200 Message-ID: <54CA7949.6060202@shurik.kiev.ua> Date: Thu, 29 Jan 2015 20:17:45 +0200 From: Alexandr Krivulya User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: drm2 regression: backlight adjustment on ivybridge no longer works References: <000e01d039fb$d5959930$80c0cb90$@Wilcox-Tech.com> <009501d03acb$4f380d70$eda82850$@Wilcox-Tech.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 46.164.154.106 X-SA-Exim-Mail-From: shuriku@shurik.kiev.ua X-SA-Exim-Scanned: No (on graal.it-profi.org.ua); SAEximRunCond expanded to false X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2015 18:35:31 -0000 29.01.2015 12:46, Ranjan1018 . пишет: > 2015-01-28 10:11 GMT+01:00 Adrian Chadd : > >> ugh, so because i can't sleep, I read the Linux i915 history for >> backlight changes. >> >> Turns out if I disable bit 30 in ivb_pch_pwm_override() to register >> BLC_PWM_PCH_CTL1, the acpi video setting works. The keyboard settings >> still don't, but I'll worry about that later. >> >> Bit 30 in the linux drm code is: >> >> #define BLM_PCH_OVERRIDE_ENABLE (1 << 30) >> >> The linux dri code doesn't set that for ivybridge - only for broadwell. >> >> (also, the linux driver has POSTING_READ() which I'm guessing is to >> ensure things made it out to the device and have been flushed before >> doing another IO operation.) >> >> I have my (via sysctl) panel backlight control working again. >> >> >> >> -adrian >> > Thank you guys, > the backlight control works again on my laptop with this patch, suggested > by Adrian : > > --- sys/dev/drm2/i915/intel_display.c.orig (revision 277487) > +++ sys/dev/drm2/i915/intel_display.c (working copy) > @@ -6995,7 +6995,7 @@ > */ > I915_WRITE(BLC_PWM_CPU_CTL2, PWM_ENABLE); > I915_WRITE(BLC_PWM_CPU_CTL, 0); > - I915_WRITE(BLC_PWM_PCH_CTL1, PWM_ENABLE | (1<<30)); > + I915_WRITE(BLC_PWM_PCH_CTL1, PWM_ENABLE); > } > > void intel_modeset_init_hw(struct drm_device *dev) > This patch fixes problem for me too, but only when acpi_video module is not loaded. With acpi_video loaded I still see this errors (but it's probably another topic): Jan 29 19:02:27 thinkpad kernel: ACPI Exception: AE_AML_PACKAGE_LIMIT, Index (0x0000000FF) is beyond end of object (length 0x16) (20140926/exoparg2-452) Jan 29 19:02:27 thinkpad kernel: ACPI Error: Method parse/execution failed [\_SB_.PCI0.LPCB.EC0_.BRNS] (Node 0xfffff80007541b00), AE_AML_PACKAGE_LIMIT (20140926/psparse-552) Jan 29 19:02:27 thinkpad kernel: ACPI Error: Method parse/execution failed [\_SB_.PCI0.VID_.LCD0._BCM] (Node 0xfffff80007550280), AE_AML_PACKAGE_LIMIT (20140926/psparse-552) Jan 29 19:02:27 thinkpad kernel: can't evaluate \_SB_.PCI0.VID_.LCD0._BCM - AE_AML_PACKAGE_LIMIT