From owner-freebsd-amd64@FreeBSD.ORG Sat Aug 17 18:20:00 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C7567411 for ; Sat, 17 Aug 2013 18:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A584B24C8 for ; Sat, 17 Aug 2013 18:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7HIK0Mw095929 for ; Sat, 17 Aug 2013 18:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7HIK0nx095909; Sat, 17 Aug 2013 18:20:00 GMT (envelope-from gnats) Resent-Date: Sat, 17 Aug 2013 18:20:00 GMT Resent-Message-Id: <201308171820.r7HIK0nx095909@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Petermann Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CFAAF40A for ; Sat, 17 Aug 2013 18:19:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AC29924C2 for ; Sat, 17 Aug 2013 18:19:32 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7HIJWbe094162 for ; Sat, 17 Aug 2013 18:19:32 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7HIJWvW094158; Sat, 17 Aug 2013 18:19:32 GMT (envelope-from nobody) Message-Id: <201308171819.r7HIJWvW094158@oldred.freebsd.org> Date: Sat, 17 Aug 2013 18:19:32 GMT From: Matthias Petermann To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/181357: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) X-Mailman-Approved-At: Sun, 18 Aug 2013 02:21:51 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Aug 2013 18:20:00 -0000 >Number: 181357 >Category: amd64 >Synopsis: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Aug 17 18:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Matthias Petermann >Release: 10.0-CURRENT >Organization: >Environment: FreeBSD thinkpad.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r252853: Sat Jul 6 02:01:48 CEST 2013 >Description: The X121e is expected to increase/decrease LCD brightness by Fn+F9/Fn+F8. This is not working in FreeBSD 9.1 and FreeBSD 10.0. Direct ACPI calls (via sysutils/acpi_call port) provide a workaround. A comprehensive solution would be appreciated. I think a solution for this problem will help not just X121e users but any user of more recent thinkpads. I saw similiar postings in freebsd-current for X230 and X220 as well. I have FreeBSD 10.0-CURRENT installed permanently to my X121e and am willing to test / investigate at any time. Please advise if there is anything I could provide right now. The affected model is a Lenovo X121e (Model 3045-79G, i3, HD3000). Details: http://www.petermann-it.de/files/freebsd-pr-x121e-acpi/dmesg.txt http://www.petermann-it.de/files/freebsd-pr-x121e-acpi/devinfo.txt http://www.petermann-it.de/files/freebsd-pr-x121e-acpi/mpeterma-lenovo_x121e_i3.asl http://www.petermann-it.de/files/freebsd-pr-x121e-acpi/sysctl_hw_acpi.txt >How-To-Repeat: I tried: # acpi_video / sysctl hw.acpi.video.lcd0.brightness This is what is working on most of the other laptops I tried it. root@thinkpad:/usr/home/mpeterma # kldload acpi_video acpi_video0: on vgapci0 root@thinkpad:/usr/home/mpeterma # sysctl -a |grep bright hw.acpi.video.lcd0.brightness: 35 root@thinkpad:/usr/home/mpeterma # sysctl hw.acpi.video.lcd0.brightness=100 hw.acpi.video.lcd0.brightness: 35 -> 100 Result: LCD brightness doesn't change after sysctl call, Fn+F9/Fn+F8 not working. # acpi_ibm / sysctl dev.acpi_ibm.0.lcd_brightness This is what worked on some older Thinkpads. root@thinkpad:/usr/home/mpeterma # kldload acpi_ibm acpi_ibm0: on acpi0 root@thinkpad:/usr/home/mpeterma # sysctl -a | grep bright hw.acpi.video.lcd0.brightness: 90 dev.acpi_ibm.0.lcd_brightness: 7 root@thinkpad:/usr/home/mpeterma # root@thinkpad:/usr/home/mpeterma # sysctl dev.acpi_ibm.0.lcd_brightness=1 dev.acpi_ibm.0.lcd_brightness: 7 -> 1 Result: LCD brightness doesn't change after sysctl, Fn+F9/Fn+F8 still not working. # Activate sysctl dev.acpi_ibm.0.events root@thinkpad:/usr/home/mpeterma # sysctl -a | grep dev.acpi_ibm.0.availmask dev.acpi_ibm.0.availmask: 67733756 root@thinkpad:/usr/home/mpeterma # sysctl dev.acpi_ibm.0.events=1 dev.acpi_ibm.0.events: 0 -> 1 root@thinkpad:/usr/home/mpeterma # sysctl dev.acpi_ibm.0.handlerevents='0x03 0x04 0x10 0x11' Result: Fn+F9/Fn+F8 still not working. # Direct ACPI calls with acpi_call root@thinkpad:/usr/home/mpeterma # cd /usr/ports/sysutils/acpi_call/ root@thinkpad:/usr/ports/sysutils/acpi_call # make install clean root@thinkpad:/usr/ports/sysutils/acpi_call # kldload acpi_call root@thinkpad:/usr/ports/sysutils/acpi_call # acpi_call -p '\VBRU' root@thinkpad:/usr/ports/sysutils/acpi_call # acpi_call -p '\VBRD' Result: on each acpi_call, \VBRU increases and \VBRD decreases LCD brightness by one step. Fn+F9/Fn+F8 still not working. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-amd64@FreeBSD.ORG Sat Aug 17 18:40:00 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.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 ESMTP id D0EA1729 for ; Sat, 17 Aug 2013 18:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9E9D52587 for ; Sat, 17 Aug 2013 18:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7HIe0EP099577 for ; Sat, 17 Aug 2013 18:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7HIe0BK099576; Sat, 17 Aug 2013 18:40:00 GMT (envelope-from gnats) Resent-Date: Sat, 17 Aug 2013 18:40:00 GMT Resent-Message-Id: <201308171840.r7HIe0BK099576@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Petermann Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 23EEC60A for ; Sat, 17 Aug 2013 18:32:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EC6A32561 for ; Sat, 17 Aug 2013 18:32:20 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7HIWKKW045942 for ; Sat, 17 Aug 2013 18:32:20 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7HIWKMM045941; Sat, 17 Aug 2013 18:32:20 GMT (envelope-from nobody) Message-Id: <201308171832.r7HIWKMM045941@oldred.freebsd.org> Date: Sat, 17 Aug 2013 18:32:20 GMT From: Matthias Petermann To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/181358: Suspend to RAM not working correctly on Lenovo X121e (ACPI issue?) X-Mailman-Approved-At: Sun, 18 Aug 2013 02:22:02 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Aug 2013 18:40:01 -0000 >Number: 181358 >Category: amd64 >Synopsis: Suspend to RAM not working correctly on Lenovo X121e (ACPI issue?) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Aug 17 18:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Matthias Petermann >Release: 10.0-CURRENT >Organization: >Environment: FreeBSD thinkpad.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r252853: Sat Jul 6 02:01:48 CEST 2013 >Description: LCD remains dark after resume from suspend to ram (S3). I have FreeBSD 10.0-CURRENT installed permanently to my X121e and am willing to test / investigate at any time. Please advise if there is anything I could provide right now. The affected model is a Lenovo X121e (Model 3045-79G, i3, HD3000). Details: http://www.petermann-it.de/files/freebsd-pr-x121e-acpi/dmesg.txt http://www.petermann-it.de/files/freebsd-pr-x121e-acpi/devinfo.txt http://www.petermann-it.de/files/freebsd-pr-x121e-acpi/mpeterma-lenovo_x121e_i3.asl http://www.petermann-it.de/files/freebsd-pr-x121e-acpi/sysctl_hw_acpi.txt >How-To-Repeat: # Supported Sleep states as reported by sysctl root@thinkpad:/usr/home/mpeterma # sysctl -a |grep supported hw.acpi.supported_sleep_state: S3 S4 S5 # S3, hw.acpi.reset_video=0 root@thinkpad:/usr/home/mpeterma # sysctl hw.acpi.reset_video=0 hw.acpi.reset_video: 0 -> 0 root@thinkpad:/usr/home/mpeterma # acpiconf -s 3 Result: System suspends, no video after resume, black screen # S3, hw.acpi.reset_video=1 root@thinkpad:/usr/home/mpeterma # sysctl hw.acpi.reset_video=1 hw.acpi.reset_video: 0 -> 1 root@thinkpad:/usr/home/mpeterma # acpiconf -s 3 Result: system reboots immediately # Adding more debug output In ACPI Debugging guide it is recommended to recompile the ACPI module with additional debug mode. Anyway, when I try so, I get a warning: root@thinkpad:/home/mpeterma # cd /sys/modules/acpi/acpi root@thinkpad:/sys/modules/acpi/acpi # make clean make: "/usr/src/sys/modules/acpi/acpi/Makefile" line 4: "The ACPI module is deprecated, set FORCE_BUILD to force it" root@thinkpad:/sys/modules/acpi/acpi # Is this still the way to go, or doesn't the guide reflect the state of FreeBSD 10? >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-amd64@FreeBSD.ORG Sun Aug 18 15:48:05 2013 Return-Path: Delivered-To: freebsd-amd64@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 ESMTP id 8F47CDC8 for ; Sun, 18 Aug 2013 15:48:05 +0000 (UTC) (envelope-from zkolic@sbb.rs) Received: from smtp2.sbb.rs (smtp2.sbb.rs [89.216.2.34]) by mx1.freebsd.org (Postfix) with ESMTP id F1EDB2D45 for ; Sun, 18 Aug 2013 15:48:04 +0000 (UTC) Received: from knossos (cable-178-148-104-244.dynamic.sbb.rs [178.148.104.244]) by smtp2.sbb.rs (8.14.0/8.14.0) with ESMTP id r7IFYNr4011986 for ; Sun, 18 Aug 2013 17:34:28 +0200 Received: from localhost (1000@localhost [local]); by knossos (OpenSMTPD) with ESMTPA id e4adf6c6; for ; Sun, 18 Aug 2013 17:33:57 +0200 (CEST) User-Agent: OpenSMTPD enqueuer (Demoosh) Date: Sun, 18 Aug 2013 17:33:57 +0200 From: Zoran Kolic To: freebsd-amd64@freebsd.org Subject: Re: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) Message-ID: <20130818153357.GA10463@knossos> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Aug 2013 15:48:05 -0000 Out of curiosity, does it work from bios? That was the only way to correct brightness on my e320. Best regards Zoran From owner-freebsd-amd64@FreeBSD.ORG Sun Aug 18 20:20:02 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.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 ESMTP id 5FEC66E5 for ; Sun, 18 Aug 2013 20:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 39F552AAC for ; Sun, 18 Aug 2013 20:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7IKK1Ie007552 for ; Sun, 18 Aug 2013 20:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7IKK11c007551; Sun, 18 Aug 2013 20:20:01 GMT (envelope-from gnats) Date: Sun, 18 Aug 2013 20:20:01 GMT Message-Id: <201308182020.r7IKK11c007551@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Matthias Petermann Subject: amd64/181357: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Petermann List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Aug 2013 20:20:02 -0000 The following reply was made to PR amd64/181357; it has been noted by GNATS. From: Matthias Petermann To: bug-followup@freebsd.org Cc: matthias@petermann-it.de Subject: amd64/181357: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) Date: Sun, 18 Aug 2013 22:16:41 +0200 This message is in MIME format. --=_u7jrKzkqA8e5X0RGN1287A1 Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: 8bit Hello, to narrow down the issue I added some temporar logging to acpi_ibm.c. The attached patch is not intended to be committed, just for demonstration where I put the statements. With this applied and the following sequence: # kldload acpi_ibm # sysctl dev.acpi_ibm.0.events=1 # sysctl dev.acpi_ibm.0.handlerevents='0x03 0x04 0x10 0x11' # tail -f /var/log/messages I see the following output, when I press Fn+F9/F8 multiple times: [Fn+F9] Aug 18 22:02:55 thinkpad kernel: acpi_ibm0: #### Tune brightness #### Aug 18 22:02:55 thinkpad kernel: acpi_ibm0: #### in cmos handle #### Aug 18 22:02:55 thinkpad kernel: acpi_ibm0: #### before acpi_ec_write ####: 1 [Fn+F9] Aug 18 22:02:57 thinkpad kernel: acpi_ibm0: #### Tune brightness #### Aug 18 22:02:57 thinkpad kernel: acpi_ibm0: #### in cmos handle #### Aug 18 22:02:57 thinkpad kernel: acpi_ibm0: #### before acpi_ec_write ####: 2 [Fn+F9] Aug 18 22:02:58 thinkpad kernel: acpi_ibm0: #### Tune brightness #### Aug 18 22:02:58 thinkpad kernel: acpi_ibm0: #### in cmos handle #### Aug 18 22:02:58 thinkpad kernel: acpi_ibm0: #### before acpi_ec_write ####: 3 [Fn+F9] Aug 18 22:02:59 thinkpad kernel: acpi_ibm0: #### Tune brightness #### Aug 18 22:02:59 thinkpad kernel: acpi_ibm0: #### in cmos handle #### Aug 18 22:02:59 thinkpad kernel: acpi_ibm0: #### before acpi_ec_write ####: 4 [Fn+F9] Aug 18 22:02:59 thinkpad kernel: acpi_ibm0: #### Tune brightness #### Aug 18 22:02:59 thinkpad kernel: acpi_ibm0: #### in cmos handle #### Aug 18 22:02:59 thinkpad kernel: acpi_ibm0: #### before acpi_ec_write ####: 5 [Fn+F9] Aug 18 22:03:00 thinkpad kernel: acpi_ibm0: #### Tune brightness #### Aug 18 22:03:00 thinkpad kernel: acpi_ibm0: #### in cmos handle #### Aug 18 22:03:00 thinkpad kernel: acpi_ibm0: #### before acpi_ec_write ####: 6 [Fn+F9] Aug 18 22:03:00 thinkpad kernel: acpi_ibm0: #### Tune brightness #### Aug 18 22:03:00 thinkpad kernel: acpi_ibm0: #### in cmos handle #### Aug 18 22:03:00 thinkpad kernel: acpi_ibm0: #### before acpi_ec_write ####: 7 [Fn+F8] Aug 18 22:03:01 thinkpad kernel: acpi_ibm0: #### Tune brightness #### Aug 18 22:03:01 thinkpad kernel: acpi_ibm0: #### in cmos handle #### Aug 18 22:03:01 thinkpad kernel: acpi_ibm0: #### before acpi_ec_write ####: 6 [Fn+F8] Aug 18 22:03:02 thinkpad kernel: acpi_ibm0: #### Tune brightness #### Aug 18 22:03:02 thinkpad kernel: acpi_ibm0: #### in cmos handle #### Aug 18 22:03:02 thinkpad kernel: acpi_ibm0: #### before acpi_ec_write ####: 5 ... Looks like acpi_ec_write gets proper values. From this point, the keys for brightness control seem to work, but acpi_ec_write doesn't have any effect. So next stop would be ACPI_EC_WRITE(...). Are there any known assumptions for potential causes where I should focus on? Thanks in advance & regards, Matthias -- Matthias Petermann Ihr Partner für anspruchsvolle IT-Lösungen www.petermann-it.de - lösungsorientiert, innovativ und erfolgreich --=_u7jrKzkqA8e5X0RGN1287A1 Content-Type: text/x-diff; name=2013-08-18-patch_acpi_ibm.c_debug.txt; charset=us-ascii Content-Disposition: attachment; size=2013; filename=2013-08-18-patch_acpi_ibm.c_debug.txt --- acpi_ibm.c.orig 2013-08-18 02:01:11.000000000 +0200 +++ acpi_ibm.c 2013-08-18 21:57:14.000000000 +0200 @@ -367,7 +367,7 @@ devclass_t ec_devclass; ACPI_FUNCTION_TRACE((char *)(uintptr_t) __func__); - + sc = device_get_softc(dev); sc->dev = dev; sc->handle = acpi_get_handle(dev); @@ -983,6 +983,7 @@ static int acpi_ibm_brightness_set(struct acpi_ibm_softc *sc, int arg) { + int val, step; UINT64 val_ec; ACPI_OBJECT Arg; @@ -992,15 +993,20 @@ ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); ACPI_SERIAL_ASSERT(ibm); - if (arg < 0 || arg > 7) + if (arg < 0 || arg > 7) { + device_printf(sc->dev, "#### arg out of range ####\n"); return (EINVAL); - + } + /* Read the current brightness */ status = ACPI_EC_READ(sc->ec_dev, IBM_EC_BRIGHTNESS, &val_ec, 1); - if (ACPI_FAILURE(status)) + if (ACPI_FAILURE(status)) { + device_printf(sc->dev, "#### failure read current brightness 2 ####\n"); return (status); - + } + if (sc->cmos_handle) { + device_printf(sc->dev, "#### in cmos handle ####\n"); val = val_ec & IBM_EC_MASK_BRI; Args.Count = 1; @@ -1024,7 +1030,10 @@ } } - return ACPI_EC_WRITE(sc->ec_dev, IBM_EC_BRIGHTNESS, arg, 1); + /* This is the original code from FreeBSD 10 current. I just added + * a log statement to see if it tries to set the proper values */ + device_printf(sc->dev, "#### before acpi_ec_write ####: %d\n",arg); + return ACPI_EC_WRITE(sc->ec_dev, IBM_EC_BRIGHTNESS, arg, 1); } static int @@ -1175,11 +1184,14 @@ case IBM_EVENT_BRIGHTNESS_UP: case IBM_EVENT_BRIGHTNESS_DOWN: + device_printf(sc->dev, "#### Tune brightness ####\n"); /* Read the current brightness */ status = ACPI_EC_READ(sc->ec_dev, IBM_EC_BRIGHTNESS, &val_ec, 1); - if (ACPI_FAILURE(status)) + if (ACPI_FAILURE(status)) { + device_printf(sc->dev, "#### Failure read current brightness 1 ####\n"); return; + } val = val_ec & IBM_EC_MASK_BRI; val = (arg == IBM_EVENT_BRIGHTNESS_UP) ? val + 1 : val - 1; --=_u7jrKzkqA8e5X0RGN1287A1-- From owner-freebsd-amd64@FreeBSD.ORG Sun Aug 18 20:30:31 2013 Return-Path: Delivered-To: freebsd-amd64@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 ESMTP id C328B8FF for ; Sun, 18 Aug 2013 20:30:31 +0000 (UTC) (envelope-from matthias@petermann-it.de) Received: from mail.s1.d2ux.org (static.209.96.9.5.clients.your-server.de [5.9.96.209]) by mx1.freebsd.org (Postfix) with ESMTP id 80A572B46 for ; Sun, 18 Aug 2013 20:30:31 +0000 (UTC) Received: from mail.s1.d2ux.org (mail [10.0.0.3]) by mail.s1.d2ux.org (Postfix) with ESMTP id 5963D84F25C9 for ; Sun, 18 Aug 2013 22:30:30 +0200 (CEST) Received: from mail.s1.d2ux.org ([10.0.0.3]) by mail.s1.d2ux.org (mail.s1.d2ux.org [10.0.0.3]) (amavisd-new, port 10024) with ESMTP id Nwda2gzFulr8 for ; Sun, 18 Aug 2013 22:30:28 +0200 (CEST) Received: from workstation.local (p579D284D.dip0.t-ipconnect.de [87.157.40.77]) by mail.s1.d2ux.org (Postfix) with ESMTPSA id 73A1984F25DD for ; Sun, 18 Aug 2013 22:30:28 +0200 (CEST) Message-ID: <52112E81.2000100@petermann-it.de> Date: Sun, 18 Aug 2013 22:28:49 +0200 From: Matthias Petermann User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130526 Thunderbird/17.0.6 MIME-Version: 1.0 To: freebsd-amd64@freebsd.org Subject: Re: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) References: <20130818153357.GA10463@knossos> In-Reply-To: <20130818153357.GA10463@knossos> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Aug 2013 20:30:31 -0000 Hi Zoran, yes, I just checked this. At the time the big "ThinkPad" logo is shown at cold start, I am able to use Fn+F8/F9 to tune brightness. As mentioned in current@, there is a workaround for the X121e to do this at runtime, by using sysutils/acpi_call, e.g. # acpi_call -p '\VBRU' (brightness up one step) # acpi_call -p '\VBRD' (brightness down one stop) Kind regards, Matthias Am 18.08.2013 17:33, schrieb Zoran Kolic: > Out of curiosity, does it work from bios? > That was the only way to correct brightness on my e320. > Best regards > > Zoran > > _______________________________________________ > freebsd-amd64@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-amd64 > To unsubscribe, send any mail to "freebsd-amd64-unsubscribe@freebsd.org" From owner-freebsd-amd64@FreeBSD.ORG Mon Aug 19 11:06:40 2013 Return-Path: Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4D493D37 for ; Mon, 19 Aug 2013 11:06:40 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 397482503 for ; Mon, 19 Aug 2013 11:06:40 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7JB6esu005939 for ; Mon, 19 Aug 2013 11:06:40 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7JB6dbX005937 for freebsd-amd64@FreeBSD.org; Mon, 19 Aug 2013 11:06:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 19 Aug 2013 11:06:39 GMT Message-Id: <201308191106.r7JB6dbX005937@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-amd64@FreeBSD.org Subject: Current problem reports assigned to freebsd-amd64@FreeBSD.org X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Aug 2013 11:06:40 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o amd64/181358 amd64 Suspend to RAM not working correctly on Lenovo X121e ( o amd64/181357 amd64 LCD Brightness Control not working on Lenovo X121e (AC o amd64/181285 amd64 x11/xorg does not start if Nvidia Optimus is enabled o o amd64/181282 amd64 3h of work on battery on FreeBSD while 10h on Windows o amd64/180862 amd64 [install] Installing FreeBSD 9.1 (AMD64 DVD) and then o amd64/180562 amd64 amdtemp and ACPI not working with motherboard ASUS M5A o amd64/180018 amd64 [panic] System panics when bsnmpd is started o amd64/179556 amd64 FreeBSD 9-1 amd64 - Install freeze on HP Proliant DL58 o amd64/179376 amd64 xhci ehci irq storm o amd64/179288 amd64 unable to install on HP ProLiant DL380p Gen8 with 128G o amd64/179282 amd64 [PATCH] Intel SMAP for FreeBSD-CURRENT o amd64/179038 amd64 instant reboot doesnt even try too install o amd64/178792 amd64 -march=native fails with clang on certain CPU's o amd64/178357 amd64 [patch] export CPU physical and virtual address sizes o amd64/176835 amd64 Fatal trap 12: page fault while in kernel mode o amd64/176474 amd64 kernel panic o amd64/175725 amd64 Audio through USB has not as good hi quality as it has o amd64/175655 amd64 When enabled tty console OS hang during boot o amd64/175370 amd64 kernel panic the rebuild kernel with vimage options in o amd64/175282 amd64 Freebsd 9.1 release amd64, mb Intel D525MW, not worked o amd64/175129 amd64 laptop won't suspend on lid close o amd64/174679 amd64 Intel i5 laptop overheats and shuts down [regression] o amd64/173869 amd64 buildworld breaks with clang o amd64/173680 amd64 9.1rc3 installer hangs at "rootpass" o amd64/173502 amd64 Patch inhibition of warnings that appear in the combin o amd64/173465 amd64 FreeBSD 9.1 restarts in random fashion after upgrade t o amd64/173311 amd64 FreeBSD 9.1 RC2 , 12 servers restart in random fashion o amd64/173235 amd64 Have received two crashes within 1 day after installin o amd64/172926 amd64 [boot] booting hangs after 9.1-RC2 install in 2nd (MBR o amd64/171835 amd64 bsdinstall abort on Dell PowerEdge R420 with PERC H310 o amd64/171814 amd64 [panic] bioq_init or bioq_remove (unsure which) o amd64/171701 amd64 [install] 9.0-rel amd64 installer 'guided' or 'manual' o amd64/171250 amd64 ldd32 cannot find some i386 libraries o amd64/170487 amd64 [boot] Thinkpad X61s cannot boot 9.1-BETA1 o amd64/170351 amd64 [kernel] [patch] amd64: 64-bit process can't always ge o amd64/170115 amd64 Serial boot broken in 9.0 o amd64/168659 amd64 [boot] FreeBSD 9 - Crash upon booting off install CD ( o amd64/167582 amd64 Compile of MySQL NDB Cluster Fails 8.2 AMD64 o amd64/167543 amd64 [kernel] Install FreeBSD can show error message with c o amd64/167393 amd64 [boot] MacBook4,1 hangs on SMP boot o amd64/166639 amd64 [boot] Syscons issue Intel D2700 o amd64/166229 amd64 [boot] Unable to install FreeBSD 9 on Acer Extensa 522 o amd64/165850 amd64 [build] 8.3-RC1 (amd64): world doesn't build with CPUT o amd64/165845 amd64 [build] Unable to build kernel on 8.2-STABLE o amd64/165351 amd64 [boot] Error while installing or booting the freeBSD O o amd64/164773 amd64 [boot] 9.0 amd64 fails to boot on HP DL145 G3 [regress o amd64/164707 amd64 FreeBSD 9 installer does not work with IBM uefi o amd64/164643 amd64 Kernel Panic at 9.0-RELEASE o amd64/164619 amd64 when logged in as root the user and group applications o amd64/164457 amd64 [install] Can't install FreeBSD 9.0 (amd64) on HP Blad o amd64/164301 amd64 [install] 9.0 - Can't install, no DHCP lease o amd64/164136 amd64 after fresh install 8.1 release or 8.2 release the har o amd64/164116 amd64 [boot] FreeBSD 9.0-RELEASE installations mediums fails o amd64/164089 amd64 FreeBSD-9.0-RELEASE-amd64-memstick.img does not boot o amd64/164073 amd64 /etc/rc warning after booting o amd64/164036 amd64 [keyboard] Moused fails on 9_0_RELENG o amd64/163736 amd64 Freebsd 8.2 with MPD5 and about 100 PPPoE clients pani o amd64/163710 amd64 setjump in userboot.so causes stack corruption o amd64/163625 amd64 Install problems of RC3 amd64 on ASRock N68 GE3 UCC o amd64/163568 amd64 hard drive naming o amd64/163285 amd64 when installing gnome2-lite not all dependent packages o amd64/163284 amd64 print manager failed to install correctly o amd64/163114 amd64 no boot on Via Nanao netbook Samsung NC20 o amd64/163092 amd64 FreeBSD 9.0-RC2 fails to boot from raid-z2 if AHCI is o amd64/163048 amd64 normal user cant mount ntfs-3g o amd64/162936 amd64 fails boot and destabilizes other OSes on FreeBSD 9 RC o amd64/162489 amd64 After some time X blanks the screen and does not respo o amd64/162314 amd64 not able to install FreeBSD-8.2-RELEASE-amd64-dvd1 as o amd64/162170 amd64 Unable to install due to freeze at "run_interrupt_driv o amd64/161974 amd64 FreeBSD 9 new installer installs succesful, renders ma o kern/160833 amd64 Keyboard USB doesn't work o amd64/157386 amd64 [powerd] Enabling powerd(8) with default settings on I o amd64/156106 amd64 [boot] boot0 fails to start o amd64/155135 amd64 [boot] Does Not Boot On a Very Standard Hardware o amd64/154957 amd64 [boot] Install boot CD won't boot up - keeps rebooting o amd64/154629 amd64 [panic] Fatal trap 9: general protection fault while i o amd64/153935 amd64 [hang] system hangs while trying to do 'shutdown -h no o amd64/153831 amd64 [boot] CD bootloader won't on Tyan s2912G2nr o amd64/153496 amd64 [hyper-v] [install] Install on Hyper-V leaves corrupt o amd64/153372 amd64 [panic] kernel panic o amd64/153175 amd64 [amd64] Kernel Panic on only FreeBSD 8 amd64 o amd64/152874 amd64 [install] 8.1 install fails where 7.3 works due to lac o amd64/152430 amd64 [boot] HP ProLiant Microserver n36l cannot boot into i o amd64/145991 amd64 [NOTES] [patch] Add a requires line to /sys/amd64/conf o amd64/144405 amd64 [build] [patch] include /usr/obj/lib32 in cleanworld t s amd64/143173 amd64 [ata] Promise FastTrack TX4 + SATA DVD, installer can' p amd64/141413 amd64 [hang] Tyan 2881 m3289 SMDC freeze o amd64/137942 amd64 [pci] 8.0-BETA2 having problems with Asus M2N-SLI-delu o amd64/127640 amd64 [amd64] gcc(1) will not build shared libraries with -f o amd64/115194 amd64 LCD screen remains blank after Dell XPS M1210 lid is c 90 problems total. From owner-freebsd-amd64@FreeBSD.ORG Wed Aug 21 08:00:03 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 05AE1BA8 for ; Wed, 21 Aug 2013 08:00:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D898A215F for ; Wed, 21 Aug 2013 08:00:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7L802oC083124 for ; Wed, 21 Aug 2013 08:00:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7L802Fo083123; Wed, 21 Aug 2013 08:00:02 GMT (envelope-from gnats) Resent-Date: Wed, 21 Aug 2013 08:00:02 GMT Resent-Message-Id: <201308210800.r7L802Fo083123@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Daria 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 ESMTP id 458299E7 for ; Wed, 21 Aug 2013 07:50:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 33B522101 for ; Wed, 21 Aug 2013 07:50:54 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7L7orcD043615 for ; Wed, 21 Aug 2013 07:50:53 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7L7orbK043609; Wed, 21 Aug 2013 07:50:53 GMT (envelope-from nobody) Message-Id: <201308210750.r7L7orbK043609@oldred.freebsd.org> Date: Wed, 21 Aug 2013 07:50:53 GMT From: Daria To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/181448: Using sysctl for mlxen stats might crash the kernel. X-Mailman-Approved-At: Wed, 21 Aug 2013 11:57:44 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Aug 2013 08:00:03 -0000 >Number: 181448 >Category: amd64 >Synopsis: Using sysctl for mlxen stats might crash the kernel. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 21 08:00:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Daria >Release: 9.1 >Organization: Mellanox >Environment: FreeBSD 9.1-RELEASE FreeBSD 9.1-RELEASE root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When reloading mlxen there are messages in the logs: can't re-use a leaf (various leaf names)! then, when trying to read these leafs - the kernel crashes. >How-To-Repeat: reload mlxen then try sysctl -a or a certain problematic leaf. >Fix: The order of releasing resources in mlxen needed to be corrected. Index: sys/ofed/drivers/net/mlx4/en_netdev.c =================================================================== --- sys/ofed/drivers/net/mlx4/en_netdev.c (revision 254594) +++ sys/ofed/drivers/net/mlx4/en_netdev.c (working copy) @@ -924,9 +924,6 @@ void mlx4_en_destroy_netdev(struct net_device *dev if (priv->allocated) mlx4_free_hwq_res(mdev->dev, &priv->res, MLX4_EN_PAGE_SIZE); - if (priv->sysctl) - sysctl_ctx_free(&priv->conf_ctx); - cancel_delayed_work(&priv->stats_task); /* flush any pending task for this netdev */ flush_workqueue(mdev->workqueue); @@ -937,6 +934,10 @@ void mlx4_en_destroy_netdev(struct net_device *dev mutex_unlock(&mdev->state_lock); mlx4_en_free_resources(priv); + + if (priv->sysctl) + sysctl_ctx_free(&priv->conf_ctx); + mtx_destroy(&priv->stats_lock.m); mtx_destroy(&priv->vlan_lock.m); kfree(priv); >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-amd64@FreeBSD.ORG Thu Aug 22 01:46:59 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 52780C8B; Thu, 22 Aug 2013 01:46:59 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2581D2469; Thu, 22 Aug 2013 01:46:59 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7M1kwTl007065; Thu, 22 Aug 2013 01:46:58 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7M1kwXW007064; Thu, 22 Aug 2013 01:46:58 GMT (envelope-from linimon) Date: Thu, 22 Aug 2013 01:46:58 GMT Message-Id: <201308220146.r7M1kwXW007064@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-amd64@FreeBSD.org, freebsd-bugs@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: kern/181448: [mlxen] [patch] Using sysctl for mlxen stats might crash the kernel. X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2013 01:46:59 -0000 Old Synopsis: Using sysctl for mlxen stats might crash the kernel. New Synopsis: [mlxen] [patch] Using sysctl for mlxen stats might crash the kernel. Responsible-Changed-From-To: freebsd-amd64->freebsd-bugs Responsible-Changed-By: linimon Responsible-Changed-When: Thu Aug 22 01:45:52 UTC 2013 Responsible-Changed-Why: not amd64-specific. http://www.freebsd.org/cgi/query-pr.cgi?pr=181448 From owner-freebsd-amd64@FreeBSD.ORG Thu Aug 22 07:12:34 2013 Return-Path: Delivered-To: amd64@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 ESMTP id 94C39513; Thu, 22 Aug 2013 07:12:34 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-stable.sentex.ca (freebsd-stable.sentex.ca [IPv6:2607:f3e0:0:3::6502:9b]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 69D1623EB; Thu, 22 Aug 2013 07:12:34 +0000 (UTC) Received: from freebsd-stable.sentex.ca (localhost [127.0.0.1]) by freebsd-stable.sentex.ca (8.14.5/8.14.5) with ESMTP id r7M7CX3g019593; Thu, 22 Aug 2013 07:12:33 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-stable.sentex.ca (8.14.5/8.14.5/Submit) id r7M7CXfs019591; Thu, 22 Aug 2013 07:12:33 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 22 Aug 2013 07:12:33 GMT Message-Id: <201308220712.r7M7CXfs019591@freebsd-stable.sentex.ca> X-Authentication-Warning: freebsd-stable.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [releng_9 tinderbox] failure on amd64/amd64 Precedence: bulk X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2013 07:12:34 -0000 TB --- 2013-08-22 04:35:23 - tinderbox 2.10 running on freebsd-stable.sentex.ca TB --- 2013-08-22 04:35:23 - FreeBSD freebsd-stable.sentex.ca 8.3-STABLE FreeBSD 8.3-STABLE #0: Tue Oct 16 17:37:58 UTC 2012 mdtancsa@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/server amd64 TB --- 2013-08-22 04:35:23 - starting RELENG_9 tinderbox run for amd64/amd64 TB --- 2013-08-22 04:35:23 - cleaning the object tree TB --- 2013-08-22 04:35:23 - /usr/local/bin/svn stat /src TB --- 2013-08-22 04:35:28 - At svn revision 254636 TB --- 2013-08-22 04:35:29 - building world TB --- 2013-08-22 04:35:29 - CROSS_BUILD_TESTING=YES TB --- 2013-08-22 04:35:29 - MAKEOBJDIRPREFIX=/obj TB --- 2013-08-22 04:35:29 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-08-22 04:35:29 - SRCCONF=/dev/null TB --- 2013-08-22 04:35:29 - TARGET=amd64 TB --- 2013-08-22 04:35:29 - TARGET_ARCH=amd64 TB --- 2013-08-22 04:35:29 - TZ=UTC TB --- 2013-08-22 04:35:29 - __MAKE_CONF=/dev/null TB --- 2013-08-22 04:35:29 - cd /src TB --- 2013-08-22 04:35:29 - /usr/bin/make -B buildworld >>> World build started on Thu Aug 22 04:35:30 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -DDES -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c /src/bin/ed/undo.c cc -O2 -pipe -DDES -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -o ed buf.o cbc.o glbl.o io.o main.o re.o sub.o undo.o -lcrypto gzip -cn /src/bin/ed/ed.1 > ed.1.gz ===> bin/expr (all) cc -O2 -pipe -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c expr.c cc1: warnings being treated as errors expr.c:812: warning: redundant redeclaration of 'yyparse' /src/bin/expr/expr.y:77: warning: previous declaration of 'yyparse' was here *** Error code 1 Stop in /src/bin/expr. *** Error code 1 Stop in /src/bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2013-08-22 07:12:33 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-08-22 07:12:33 - ERROR: failed to build world TB --- 2013-08-22 07:12:33 - 7331.58 user 722.82 system 9430.30 real http://tinderbox.freebsd.org/tinderbox-freebsd9-build-RELENG_9-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Thu Aug 22 11:48:34 2013 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 27D15200; Thu, 22 Aug 2013 11:48:34 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-stable.sentex.ca (freebsd-stable.sentex.ca [IPv6:2607:f3e0:0:3::6502:9b]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CC6B525E2; Thu, 22 Aug 2013 11:48:33 +0000 (UTC) Received: from freebsd-stable.sentex.ca (localhost [127.0.0.1]) by freebsd-stable.sentex.ca (8.14.5/8.14.5) with ESMTP id r7MBmWEx031694; Thu, 22 Aug 2013 11:48:32 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-stable.sentex.ca (8.14.5/8.14.5/Submit) id r7MBmWFv031693; Thu, 22 Aug 2013 11:48:32 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 22 Aug 2013 11:48:32 GMT Message-Id: <201308221148.r7MBmWFv031693@freebsd-stable.sentex.ca> X-Authentication-Warning: freebsd-stable.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [releng_9 tinderbox] failure on amd64/amd64 Precedence: bulk X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2013 11:48:34 -0000 TB --- 2013-08-22 09:10:26 - tinderbox 2.10 running on freebsd-stable.sentex.ca TB --- 2013-08-22 09:10:26 - FreeBSD freebsd-stable.sentex.ca 8.3-STABLE FreeBSD 8.3-STABLE #0: Tue Oct 16 17:37:58 UTC 2012 mdtancsa@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/server amd64 TB --- 2013-08-22 09:10:26 - starting RELENG_9 tinderbox run for amd64/amd64 TB --- 2013-08-22 09:10:26 - cleaning the object tree TB --- 2013-08-22 09:10:53 - /usr/local/bin/svn stat /src TB --- 2013-08-22 09:10:57 - At svn revision 254652 TB --- 2013-08-22 09:10:58 - building world TB --- 2013-08-22 09:10:58 - CROSS_BUILD_TESTING=YES TB --- 2013-08-22 09:10:58 - MAKEOBJDIRPREFIX=/obj TB --- 2013-08-22 09:10:58 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-08-22 09:10:58 - SRCCONF=/dev/null TB --- 2013-08-22 09:10:58 - TARGET=amd64 TB --- 2013-08-22 09:10:58 - TARGET_ARCH=amd64 TB --- 2013-08-22 09:10:58 - TZ=UTC TB --- 2013-08-22 09:10:58 - __MAKE_CONF=/dev/null TB --- 2013-08-22 09:10:58 - cd /src TB --- 2013-08-22 09:10:58 - /usr/bin/make -B buildworld >>> World build started on Thu Aug 22 09:11:00 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -DDES -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c /src/bin/ed/undo.c cc -O2 -pipe -DDES -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -o ed buf.o cbc.o glbl.o io.o main.o re.o sub.o undo.o -lcrypto gzip -cn /src/bin/ed/ed.1 > ed.1.gz ===> bin/expr (all) cc -O2 -pipe -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c expr.c cc1: warnings being treated as errors expr.c:812: warning: redundant redeclaration of 'yyparse' /src/bin/expr/expr.y:77: warning: previous declaration of 'yyparse' was here *** Error code 1 Stop in /src/bin/expr. *** Error code 1 Stop in /src/bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2013-08-22 11:48:32 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-08-22 11:48:32 - ERROR: failed to build world TB --- 2013-08-22 11:48:32 - 7317.15 user 724.31 system 9486.05 real http://tinderbox.freebsd.org/tinderbox-freebsd9-build-RELENG_9-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Thu Aug 22 16:27:59 2013 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 847FDA84; Thu, 22 Aug 2013 16:27:59 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-stable.sentex.ca (freebsd-stable.sentex.ca [IPv6:2607:f3e0:0:3::6502:9b]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 270DC296D; Thu, 22 Aug 2013 16:27:59 +0000 (UTC) Received: from freebsd-stable.sentex.ca (localhost [127.0.0.1]) by freebsd-stable.sentex.ca (8.14.5/8.14.5) with ESMTP id r7MGRwOs046593; Thu, 22 Aug 2013 16:27:58 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-stable.sentex.ca (8.14.5/8.14.5/Submit) id r7MGRv7L046588; Thu, 22 Aug 2013 16:27:57 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 22 Aug 2013 16:27:57 GMT Message-Id: <201308221627.r7MGRv7L046588@freebsd-stable.sentex.ca> X-Authentication-Warning: freebsd-stable.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [releng_9 tinderbox] failure on amd64/amd64 Precedence: bulk X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2013 16:27:59 -0000 TB --- 2013-08-22 13:50:26 - tinderbox 2.10 running on freebsd-stable.sentex.ca TB --- 2013-08-22 13:50:26 - FreeBSD freebsd-stable.sentex.ca 8.3-STABLE FreeBSD 8.3-STABLE #0: Tue Oct 16 17:37:58 UTC 2012 mdtancsa@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/server amd64 TB --- 2013-08-22 13:50:26 - starting RELENG_9 tinderbox run for amd64/amd64 TB --- 2013-08-22 13:50:26 - cleaning the object tree TB --- 2013-08-22 13:51:03 - /usr/local/bin/svn stat /src TB --- 2013-08-22 13:51:05 - At svn revision 254656 TB --- 2013-08-22 13:51:06 - building world TB --- 2013-08-22 13:51:06 - CROSS_BUILD_TESTING=YES TB --- 2013-08-22 13:51:06 - MAKEOBJDIRPREFIX=/obj TB --- 2013-08-22 13:51:06 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-08-22 13:51:06 - SRCCONF=/dev/null TB --- 2013-08-22 13:51:06 - TARGET=amd64 TB --- 2013-08-22 13:51:06 - TARGET_ARCH=amd64 TB --- 2013-08-22 13:51:06 - TZ=UTC TB --- 2013-08-22 13:51:06 - __MAKE_CONF=/dev/null TB --- 2013-08-22 13:51:06 - cd /src TB --- 2013-08-22 13:51:06 - /usr/bin/make -B buildworld >>> World build started on Thu Aug 22 13:51:07 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -DDES -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c /src/bin/ed/undo.c cc -O2 -pipe -DDES -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -o ed buf.o cbc.o glbl.o io.o main.o re.o sub.o undo.o -lcrypto gzip -cn /src/bin/ed/ed.1 > ed.1.gz ===> bin/expr (all) cc -O2 -pipe -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c expr.c cc1: warnings being treated as errors expr.c:812: warning: redundant redeclaration of 'yyparse' /src/bin/expr/expr.y:77: warning: previous declaration of 'yyparse' was here *** Error code 1 Stop in /src/bin/expr. *** Error code 1 Stop in /src/bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2013-08-22 16:27:57 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-08-22 16:27:57 - ERROR: failed to build world TB --- 2013-08-22 16:27:57 - 7316.72 user 721.22 system 9451.08 real http://tinderbox.freebsd.org/tinderbox-freebsd9-build-RELENG_9-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Thu Aug 22 16:50:02 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.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 ESMTP id 85EF7549 for ; Thu, 22 Aug 2013 16:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 749232AE3 for ; Thu, 22 Aug 2013 16:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7MGo1fO095370 for ; Thu, 22 Aug 2013 16:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7MGo1sf095369; Thu, 22 Aug 2013 16:50:01 GMT (envelope-from gnats) Date: Thu, 22 Aug 2013 16:50:01 GMT Message-Id: <201308221650.r7MGo1sf095369@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: tin Subject: Re: amd64/179376: xhci ehci irq storm X-Mailman-Approved-At: Thu, 22 Aug 2013 18:59:45 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: tin List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2013 16:50:02 -0000 The following reply was made to PR amd64/179376; it has been noted by GNATS. From: tin To: bug-followup@FreeBSD.org,michal@sviba.cz Cc: Subject: Re: amd64/179376: xhci ehci irq storm Date: Thu, 22 Aug 2013 19:33:30 +0300 --Sig_/V=ZCWjGkaLzA_z+AnM5xQ+n Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable The same issue on FreeBSD 9.1-RELEASE GENERIC amd64: # uname -rsmi FreeBSD 9.1-RELEASE amd64 GENERIC #sysctl hw.usb.xhci.debug=3D16 ; sleep 1; sysctl hw.usb.xhci.debug=3D0 Aug 22 19:00:00 pedpresa-NEW kernel: interrupt storm detected on "irq16:"; = throttling interrupt source Aug 22 19:00:31 pedpresa-NEW last message repeated 31 times Aug 22 19:02:32 pedpresa-NEW last message repeated 121 times Aug 22 19:12:33 pedpresa-NEW last message repeated 601 times Aug 22 19:16:53 pedpresa-NEW last message repeated 260 times Aug 22 19:16:54 pedpresa-NEW kernel: xhci_interrupt: real interrupt (sts=3D= 0x00000000, iman=3D0x00000002) Aug 22 19:16:54 pedpresa-NEW last message repeated 279 times Aug 22 19:16:54 pedpresa-NEW kernel: interrupt storm detected on "irq16:"; = throttling interrupt source Aug 22 19:16:54 pedpresa-NEW kernel: xhci_interrupt: real interrupt (sts=3D= 0x00000000, iman=3D0x00000002) Aug 22 19:16:55 pedpresa-NEW last message repeated 311 times Aug 22 19:16:55 pedpresa-NEW kernel: interrupt storm detected on "irq16:"; = throttling interrupt source # vmstat -i interrupt total rate irq16: xhci0 ehci0 5588674976 53577 irq17: re0 1247393 11 irq23: ehci1 157524 1 cpu0:timer 15492154 148 irq264: hdac0 93 0 irq266: ahci1 903811 8 cpu1:timer 10026802 96 cpu7:timer 9218769 88 cpu4:timer 9207822 88 cpu2:timer 10149700 97 cpu6:timer 47883543 459 cpu5:timer 8447886 80 cpu3:timer 10476273 100 Total 5711886746 54758 # top -SHb 1000 | grep "intr{irq" 12 root -88 - 0K 368K istorm 3 363:26 0.88% intr{irq16: x= hci0 ehc} 12 root -92 - 0K 368K WAIT 5 0:06 0.00% intr{irq17: r= e0} 12 root -88 - 0K 368K WAIT 3 0:05 0.00% intr{irq266: = ahci1} 12 root -88 - 0K 368K WAIT 0 0:00 0.00% intr{irq23: e= hci1} 12 root -96 - 0K 368K WAIT 1 0:00 0.00% intr{irq264: = hdac0} 12 root -84 - 0K 368K WAIT 0 0:00 0.00% intr{irq1: at= kbd0} 12 root -84 - 0K 368K WAIT 0 0:00 0.00% intr{irq5: pp= c1} 12 root -88 - 0K 368K WAIT 0 0:00 0.00% intr{irq265: = ahci0} #pciconf -lvc xhci0@pci0:0:20:0: class=3D0x0c0330 card=3D0x50071458 chip=3D0x1e318086 rev= =3D0x04 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D 'Panther Point USB xHCI Host Controller' class =3D serial bus subclass =3D USB cap 01[70] =3D powerspec 2 supports D0 D3 current D0 cap 05[80] =3D MSI supports 8 messages, 64 bit=20 --- ehci0@pci0:0:26:0: class=3D0x0c0320 card=3D0x50061458 chip=3D0x1e2d8086 rev= =3D0x04 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D 'Panther Point USB Enhanced Host Controller' class =3D serial bus subclass =3D USB cap 01[50] =3D powerspec 2 supports D0 D3 current D0 cap 0a[58] =3D EHCI Debug Port at offset 0xa0 in map 0x14 cap 13[98] =3D PCI Advanced Features: FLR TP --=20 #include /* Pavel Shanaiev */ /* Mob. +38(050)7777850 */ --Sig_/V=ZCWjGkaLzA_z+AnM5xQ+n Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJSFj1aAAoJEC7dEGKX1IjeuAsH/1peh33hK8gY2e2EGbsF1KWB MQ3wsQy46m0mL6ZXqKDdy1G4OQ8UDn6QOZLPDzYGE8fUTfeK9Z5K5dH4fRWWh+Bn MAL0iVsITpOyk/IOraLKRVhWe0td1Vz/EHxAdqFrvLbDqmBvj/w44LCsnYbxXf2A jS0B24GFEUFsAwfkCczEl6lIGjIK8GFtGh6btplNSBnllUpKJEflpZlHKpZRWpTh RBCui8SGAn3b9oQjnuR8GBlsMIohgM5qZOdIcfSewPjS75IrkBkGGBReiBN+DnSt Yhwju4Rb0Lgh9IIUl12EuJ3+5rA62vUr/ftGbUL9HlhIXGe5qG2AwvLPafo6yhc= =mGH6 -----END PGP SIGNATURE----- --Sig_/V=ZCWjGkaLzA_z+AnM5xQ+n-- From owner-freebsd-amd64@FreeBSD.ORG Thu Aug 22 21:07:26 2013 Return-Path: Delivered-To: amd64@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 ESMTP id AFC22492; Thu, 22 Aug 2013 21:07:26 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-stable.sentex.ca (freebsd-stable.sentex.ca [IPv6:2607:f3e0:0:3::6502:9b]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 499EF2290; Thu, 22 Aug 2013 21:07:26 +0000 (UTC) Received: from freebsd-stable.sentex.ca (localhost [127.0.0.1]) by freebsd-stable.sentex.ca (8.14.5/8.14.5) with ESMTP id r7ML7PpI062798; Thu, 22 Aug 2013 21:07:25 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-stable.sentex.ca (8.14.5/8.14.5/Submit) id r7ML7PAZ062797; Thu, 22 Aug 2013 21:07:25 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 22 Aug 2013 21:07:25 GMT Message-Id: <201308222107.r7ML7PAZ062797@freebsd-stable.sentex.ca> X-Authentication-Warning: freebsd-stable.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [releng_9 tinderbox] failure on amd64/amd64 Precedence: bulk X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2013 21:07:26 -0000 TB --- 2013-08-22 18:30:31 - tinderbox 2.10 running on freebsd-stable.sentex.ca TB --- 2013-08-22 18:30:31 - FreeBSD freebsd-stable.sentex.ca 8.3-STABLE FreeBSD 8.3-STABLE #0: Tue Oct 16 17:37:58 UTC 2012 mdtancsa@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/server amd64 TB --- 2013-08-22 18:30:31 - starting RELENG_9 tinderbox run for amd64/amd64 TB --- 2013-08-22 18:30:31 - cleaning the object tree TB --- 2013-08-22 18:30:57 - /usr/local/bin/svn stat /src TB --- 2013-08-22 18:31:03 - At svn revision 254668 TB --- 2013-08-22 18:31:04 - building world TB --- 2013-08-22 18:31:04 - CROSS_BUILD_TESTING=YES TB --- 2013-08-22 18:31:04 - MAKEOBJDIRPREFIX=/obj TB --- 2013-08-22 18:31:04 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-08-22 18:31:04 - SRCCONF=/dev/null TB --- 2013-08-22 18:31:04 - TARGET=amd64 TB --- 2013-08-22 18:31:04 - TARGET_ARCH=amd64 TB --- 2013-08-22 18:31:04 - TZ=UTC TB --- 2013-08-22 18:31:04 - __MAKE_CONF=/dev/null TB --- 2013-08-22 18:31:04 - cd /src TB --- 2013-08-22 18:31:04 - /usr/bin/make -B buildworld >>> World build started on Thu Aug 22 18:31:05 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -DDES -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c /src/bin/ed/undo.c cc -O2 -pipe -DDES -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -o ed buf.o cbc.o glbl.o io.o main.o re.o sub.o undo.o -lcrypto gzip -cn /src/bin/ed/ed.1 > ed.1.gz ===> bin/expr (all) cc -O2 -pipe -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c expr.c cc1: warnings being treated as errors expr.c:812: warning: redundant redeclaration of 'yyparse' /src/bin/expr/expr.y:77: warning: previous declaration of 'yyparse' was here *** Error code 1 Stop in /src/bin/expr. *** Error code 1 Stop in /src/bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2013-08-22 21:07:25 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-08-22 21:07:25 - ERROR: failed to build world TB --- 2013-08-22 21:07:25 - 7322.10 user 720.02 system 9413.26 real http://tinderbox.freebsd.org/tinderbox-freebsd9-build-RELENG_9-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Fri Aug 23 17:07:09 2013 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D6716570; Fri, 23 Aug 2013 17:07:09 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-legacy2.sentex.ca (freebsd-legacy2.sentex.ca [IPv6:2607:f3e0:0:3::6502:9c]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 522E824B6; Fri, 23 Aug 2013 17:07:09 +0000 (UTC) Received: from freebsd-legacy2.sentex.ca (localhost [127.0.0.1]) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5) with ESMTP id r7NH77bt046069; Fri, 23 Aug 2013 17:07:07 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5/Submit) id r7NH77xP046064; Fri, 23 Aug 2013 17:07:07 GMT (envelope-from tinderbox@freebsd.org) Date: Fri, 23 Aug 2013 17:07:07 GMT Message-Id: <201308231707.r7NH77xP046064@freebsd-legacy2.sentex.ca> X-Authentication-Warning: freebsd-legacy2.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [releng_8 tinderbox] failure on amd64/amd64 Precedence: bulk X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 17:07:10 -0000 TB --- 2013-08-23 15:55:13 - tinderbox 2.10 running on freebsd-legacy2.sentex.ca TB --- 2013-08-23 15:55:13 - FreeBSD freebsd-legacy2.sentex.ca 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2013-08-23 15:55:13 - starting RELENG_8 tinderbox run for amd64/amd64 TB --- 2013-08-23 15:55:13 - cleaning the object tree TB --- 2013-08-23 15:55:13 - /usr/local/bin/svn stat /src TB --- 2013-08-23 15:55:17 - At svn revision 254716 TB --- 2013-08-23 15:55:18 - building world TB --- 2013-08-23 15:55:18 - CROSS_BUILD_TESTING=YES TB --- 2013-08-23 15:55:18 - MAKEOBJDIRPREFIX=/obj TB --- 2013-08-23 15:55:18 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-08-23 15:55:18 - SRCCONF=/dev/null TB --- 2013-08-23 15:55:18 - TARGET=amd64 TB --- 2013-08-23 15:55:18 - TARGET_ARCH=amd64 TB --- 2013-08-23 15:55:18 - TZ=UTC TB --- 2013-08-23 15:55:18 - __MAKE_CONF=/dev/null TB --- 2013-08-23 15:55:18 - cd /src TB --- 2013-08-23 15:55:18 - /usr/bin/make -B buildworld >>> World build started on Fri Aug 23 15:55:18 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries >>> World build completed on Fri Aug 23 17:00:25 UTC 2013 TB --- 2013-08-23 17:00:25 - generating LINT kernel config TB --- 2013-08-23 17:00:25 - cd /src/sys/amd64/conf TB --- 2013-08-23 17:00:25 - /usr/bin/make -B LINT TB --- 2013-08-23 17:00:25 - cd /src/sys/amd64/conf TB --- 2013-08-23 17:00:25 - /usr/sbin/config -m LINT TB --- 2013-08-23 17:00:25 - building LINT kernel TB --- 2013-08-23 17:00:25 - CROSS_BUILD_TESTING=YES TB --- 2013-08-23 17:00:25 - MAKEOBJDIRPREFIX=/obj TB --- 2013-08-23 17:00:25 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-08-23 17:00:25 - SRCCONF=/dev/null TB --- 2013-08-23 17:00:25 - TARGET=amd64 TB --- 2013-08-23 17:00:25 - TARGET_ARCH=amd64 TB --- 2013-08-23 17:00:25 - TZ=UTC TB --- 2013-08-23 17:00:25 - __MAKE_CONF=/dev/null TB --- 2013-08-23 17:00:25 - cd /src TB --- 2013-08-23 17:00:25 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Aug 23 17:00:25 UTC 2013 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -DGPROF -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror -pg -mprofiler-epilogue /src/sys/fs/deadfs/dead_vnops.c cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -DGPROF -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror -pg -mprofiler-epilogue /src/sys/fs/devfs/devfs_devs.c cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -DGPROF -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror -pg -mprofiler-epilogue /src/sys/fs/devfs/devfs_rule.c cc1: warnings being treated as errors /src/sys/fs/devfs/devfs_rule.c: In function 'devfs_rule_matchpath': /src/sys/fs/devfs/devfs_rule.c:592: warning: implicit declaration of function 'devfs_fqpn' /src/sys/fs/devfs/devfs_rule.c:592: warning: nested extern declaration of 'devfs_fqpn' /src/sys/fs/devfs/devfs_rule.c:592: warning: assignment makes pointer from integer without a cast *** [devfs_rule.o] Error code 1 Stop in /obj/amd64/src/sys/LINT. *** [buildkernel] Error code 1 Stop in /src. *** [buildkernel] Error code 1 Stop in /src. TB --- 2013-08-23 17:07:07 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-08-23 17:07:07 - ERROR: failed to build LINT kernel TB --- 2013-08-23 17:07:07 - 3597.76 user 668.95 system 4314.00 real http://tinderbox.freebsd.org/tinderbox-freebsd8-build-RELENG_8-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Sat Aug 24 15:20:02 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.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 ESMTP id 1AA49BBC for ; Sat, 24 Aug 2013 15:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 05DD52336 for ; Sat, 24 Aug 2013 15:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7OFK1pU006325 for ; Sat, 24 Aug 2013 15:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7OFK1af006324; Sat, 24 Aug 2013 15:20:01 GMT (envelope-from gnats) Date: Sat, 24 Aug 2013 15:20:01 GMT Message-Id: <201308241520.r7OFK1af006324@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Matthias Petermann Subject: Re: amd64/181357: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Petermann List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 15:20:02 -0000 The following reply was made to PR amd64/181357; it has been noted by GNATS. From: Matthias Petermann To: bug-followup@FreeBSD.org, matthias@petermann-it.de, current@freebsd.org Cc: Subject: Re: amd64/181357: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) Date: Sat, 24 Aug 2013 17:08:25 +0200 Hello, regarding this PR I made some further observation. Even the acpi_ec_write seems to not have any effect on the brightness, the values set to the appropriate register (IBM_EC_BRIGHTNESS 0x31) survive a reboot. Looks like the values are stored correctly, but EC doesn't care for them when setting brightness? I'm not sure where to look next. Could this be a hardware issue with the Device? Kind regards, Matthias From owner-freebsd-amd64@FreeBSD.ORG Sat Aug 24 18:40:01 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.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 ESMTP id A6620820 for ; Sat, 24 Aug 2013 18:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 931CF2CF7 for ; Sat, 24 Aug 2013 18:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7OIe1UU046059 for ; Sat, 24 Aug 2013 18:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7OIe1qh046058; Sat, 24 Aug 2013 18:40:01 GMT (envelope-from gnats) Date: Sat, 24 Aug 2013 18:40:01 GMT Message-Id: <201308241840.r7OIe1qh046058@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Matthias Petermann Subject: Re: amd64/181357: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Petermann List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 18:40:01 -0000 The following reply was made to PR amd64/181357; it has been noted by GNATS. From: Matthias Petermann To: Dominic Fandrey Cc: bug-followup@FreeBSD.org, current@freebsd.org Subject: Re: amd64/181357: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) Date: Sat, 24 Aug 2013 20:37:44 +0200 Am 24.08.2013 20:02, schrieb Dominic Fandrey: > My LCD brightness control stopped working when I switched to NEW_XORG > with Intel KMS (on stable/9). It's the same issue when I run in console only mode (without Xorg, without KMS kernel module loaded). What Lenovo model are you using? From owner-freebsd-amd64@FreeBSD.ORG Sat Aug 24 19:40:01 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.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 ESMTP id 8D4D54FA for ; Sat, 24 Aug 2013 19:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 609652F6E for ; Sat, 24 Aug 2013 19:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7OJe1Le057654 for ; Sat, 24 Aug 2013 19:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7OJe1n5057653; Sat, 24 Aug 2013 19:40:01 GMT (envelope-from gnats) Date: Sat, 24 Aug 2013 19:40:01 GMT Message-Id: <201308241940.r7OJe1n5057653@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Matthias Petermann Subject: Re: amd64/181358: Suspend to RAM not working correctly on Lenovo X121e (ACPI issue?) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Petermann List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 19:40:01 -0000 The following reply was made to PR amd64/181358; it has been noted by GNATS. From: Matthias Petermann To: bug-followup@FreeBSD.org, matthias@petermann-it.de Cc: Subject: Re: amd64/181358: Suspend to RAM not working correctly on Lenovo X121e (ACPI issue?) Date: Sat, 24 Aug 2013 21:31:03 +0200 Today I did one further test. Following the guide [1] I tried: $ sysctl debug.acpi.suspend_bounce=1 $ acpiconf -s 3 I ended up with a blank screen (LCD backlight was on). [1] https://wiki.freebsd.org/SuspendResume From owner-freebsd-amd64@FreeBSD.ORG Sat Aug 24 18:10:01 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A3051F58 for ; Sat, 24 Aug 2013 18:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8E3F22BAA for ; Sat, 24 Aug 2013 18:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7OIA1d4039943 for ; Sat, 24 Aug 2013 18:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7OIA05n039942; Sat, 24 Aug 2013 18:10:00 GMT (envelope-from gnats) Date: Sat, 24 Aug 2013 18:10:00 GMT Message-Id: <201308241810.r7OIA05n039942@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Dominic Fandrey Subject: Re: amd64/181357: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) X-Mailman-Approved-At: Sat, 24 Aug 2013 20:30:32 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Dominic Fandrey List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 18:10:01 -0000 The following reply was made to PR amd64/181357; it has been noted by GNATS. From: Dominic Fandrey To: Matthias Petermann Cc: bug-followup@FreeBSD.org, current@freebsd.org Subject: Re: amd64/181357: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) Date: Sat, 24 Aug 2013 20:02:28 +0200 On 24/08/2013 17:08, Matthias Petermann wrote: > regarding this PR I made some further observation. Even the acpi_ec_write seems to not have any effect on the brightness, the values set to the appropriate register (IBM_EC_BRIGHTNESS 0x31) survive a reboot. My LCD brightness control stopped working when I switched to NEW_XORG with Intel KMS (on stable/9). -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? From owner-freebsd-amd64@FreeBSD.ORG Sat Aug 24 21:40:16 2013 Return-Path: Delivered-To: freebsd-amd64@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 ESMTP id 9032E709; Sat, 24 Aug 2013 21:40:16 +0000 (UTC) (envelope-from matthias@petermann-it.de) Received: from mail.s1.d2ux.org (static.209.96.9.5.clients.your-server.de [5.9.96.209]) by mx1.freebsd.org (Postfix) with ESMTP id 13A01254C; Sat, 24 Aug 2013 21:40:15 +0000 (UTC) Received: from mail.s1.d2ux.org (mail [10.0.0.3]) by mail.s1.d2ux.org (Postfix) with ESMTP id E6BFD84F25D0; Sat, 24 Aug 2013 23:40:14 +0200 (CEST) Received: from mail.s1.d2ux.org ([10.0.0.3]) by mail.s1.d2ux.org (mail.s1.d2ux.org [10.0.0.3]) (amavisd-new, port 10024) with ESMTP id 0w852W_NkQJr; Sat, 24 Aug 2013 23:40:13 +0200 (CEST) Received: from workstation.local (p579D360C.dip0.t-ipconnect.de [87.157.54.12]) by mail.s1.d2ux.org (Postfix) with ESMTPSA id EB97D84F2573; Sat, 24 Aug 2013 23:40:12 +0200 (CEST) Message-ID: <521927D5.80807@petermann-it.de> Date: Sat, 24 Aug 2013 23:38:29 +0200 From: Matthias Petermann User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130526 Thunderbird/17.0.6 MIME-Version: 1.0 To: freebsd-amd64@freebsd.org, current@freebsd.org, freebsd-acpi@freebsd.org, bug-followup@FreeBSD.org Subject: amd64/181358: Suspend to RAM not working correctly on Lenovo X121e (ACPI issue?) References: <201308241940.r7OJe1n5057653@freefall.freebsd.org> In-Reply-To: <201308241940.r7OJe1n5057653@freefall.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 21:40:16 -0000 Hello, regarding the issue mentioned in the subject (Lenovo Thinkpad X121e not able to resume after suspend to ram) there is finally some progress. I found this few months old discussion[1] on freebsd-acpi (related to Thinkpad X201): "I had a similar problem. After syncing with FreeBSD 10-CURRENT and compiling a kernel without VESA support, I was able to get graphics to work on resume, but only when running X. " This works for the X121e too! It is now able to suspend and resume properly when running Xorg (with i915kms.ko). I'm really happy :-) There is only a (very minor) problem: after the first resume Xorg graphics seem to slow down. When moving windows on the screen they leave some traces behind and it takes some milliseconds until they are wiped away and replaced with the background image. Kind regards, Matthias [1] http://freebsd.1045724.n5.nabble.com/Resume-failed-after-Suspend-on-Thinkpad-x201i-td5723622.html From owner-freebsd-amd64@FreeBSD.ORG Sat Aug 24 21:50:02 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0687894E for ; Sat, 24 Aug 2013 21:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D5F0025C4 for ; Sat, 24 Aug 2013 21:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7OLo1ZE083122 for ; Sat, 24 Aug 2013 21:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7OLo1lU083121; Sat, 24 Aug 2013 21:50:01 GMT (envelope-from gnats) Date: Sat, 24 Aug 2013 21:50:01 GMT Message-Id: <201308242150.r7OLo1lU083121@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Matthias Petermann Subject: amd64/181358: Suspend to RAM not working correctly on Lenovo X121e (ACPI issue?) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Petermann List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 21:50:02 -0000 The following reply was made to PR amd64/181358; it has been noted by GNATS. From: Matthias Petermann To: freebsd-amd64@freebsd.org, current@freebsd.org, freebsd-acpi@freebsd.org, bug-followup@FreeBSD.org Cc: Subject: amd64/181358: Suspend to RAM not working correctly on Lenovo X121e (ACPI issue?) Date: Sat, 24 Aug 2013 23:38:29 +0200 This is a multi-part message in MIME format. --------------000902030606040504060809 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, regarding the issue mentioned in the subject (Lenovo Thinkpad X121e not able to resume after suspend to ram) there is finally some progress. I found this few months old discussion[1] on freebsd-acpi (related to Thinkpad X201): "I had a similar problem. After syncing with FreeBSD 10-CURRENT and compiling a kernel without VESA support, I was able to get graphics to work on resume, but only when running X. " This works for the X121e too! It is now able to suspend and resume properly when running Xorg (with i915kms.ko). I'm really happy :-) There is only a (very minor) problem: after the first resume Xorg graphics seem to slow down. When moving windows on the screen they leave some traces behind and it takes some milliseconds until they are wiped away and replaced with the background image. Kind regards, Matthias [1] http://freebsd.1045724.n5.nabble.com/Resume-failed-after-Suspend-on-Thinkpad-x201i-td5723622.html --------------000902030606040504060809 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello,

regarding the issue mentioned in the subject (Lenovo Thinkpad X121e not able to resume after suspend to ram) there is finally some progress. I found this few months old discussion[1] on freebsd-acpi (related to Thinkpad X201):

"I had a similar problem. After syncing with FreeBSD 10-CURRENT and compiling a kernel without
VESA support, I was able to get graphics to work on resume, but only when running X. "

This works for the X121e too! It is now able to suspend and resume properly when running Xorg (with i915kms.ko). I'm really happy :-)

There is only a (very minor) problem: after the first resume Xorg graphics seem to slow down. When moving windows on the screen they leave some traces behind and it takes some milliseconds until they are wiped away and replaced with the background image.

Kind regards,
Matthias


[1]

http://freebsd.1045724.n5.nabble.com/Resume-failed-after-Suspend-on-Thinkpad-x201i-td5723622.html

--------------000902030606040504060809-- From owner-freebsd-amd64@FreeBSD.ORG Sat Aug 24 22:01:42 2013 Return-Path: Delivered-To: amd64@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 ESMTP id 36BDDBC4; Sat, 24 Aug 2013 22:01:42 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F1676265A; Sat, 24 Aug 2013 22:01:41 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.5/8.14.5) with ESMTP id r7OM1f0S016177; Sat, 24 Aug 2013 18:01:41 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id r7OM1f8u016173; Sat, 24 Aug 2013 22:01:41 GMT (envelope-from tinderbox@freebsd.org) Date: Sat, 24 Aug 2013 22:01:41 GMT Message-Id: <201308242201.r7OM1f8u016173@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [head tinderbox] failure on amd64/amd64 Precedence: bulk X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 22:01:42 -0000 TB --- 2013-08-24 18:00:20 - tinderbox 2.10 running on freebsd-current.sentex.ca TB --- 2013-08-24 18:00:20 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 des@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2013-08-24 18:00:20 - starting HEAD tinderbox run for amd64/amd64 TB --- 2013-08-24 18:00:20 - cleaning the object tree TB --- 2013-08-24 18:00:20 - /usr/local/bin/svn stat /src TB --- 2013-08-24 18:00:25 - At svn revision 254801 TB --- 2013-08-24 18:00:26 - building world TB --- 2013-08-24 18:00:26 - CROSS_BUILD_TESTING=YES TB --- 2013-08-24 18:00:26 - MAKEOBJDIRPREFIX=/obj TB --- 2013-08-24 18:00:26 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-08-24 18:00:26 - SRCCONF=/dev/null TB --- 2013-08-24 18:00:26 - TARGET=amd64 TB --- 2013-08-24 18:00:26 - TARGET_ARCH=amd64 TB --- 2013-08-24 18:00:26 - TZ=UTC TB --- 2013-08-24 18:00:26 - __MAKE_CONF=/dev/null TB --- 2013-08-24 18:00:26 - cd /src TB --- 2013-08-24 18:00:26 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Sat Aug 24 18:00:33 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries >>> World build completed on Sat Aug 24 21:47:47 UTC 2013 TB --- 2013-08-24 21:47:47 - generating LINT kernel config TB --- 2013-08-24 21:47:47 - cd /src/sys/amd64/conf TB --- 2013-08-24 21:47:47 - /usr/bin/make -B LINT TB --- 2013-08-24 21:47:48 - cd /src/sys/amd64/conf TB --- 2013-08-24 21:47:48 - /usr/sbin/config -m LINT TB --- 2013-08-24 21:47:48 - building LINT kernel TB --- 2013-08-24 21:47:48 - CROSS_BUILD_TESTING=YES TB --- 2013-08-24 21:47:48 - MAKEOBJDIRPREFIX=/obj TB --- 2013-08-24 21:47:48 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-08-24 21:47:48 - SRCCONF=/dev/null TB --- 2013-08-24 21:47:48 - TARGET=amd64 TB --- 2013-08-24 21:47:48 - TARGET_ARCH=amd64 TB --- 2013-08-24 21:47:48 - TZ=UTC TB --- 2013-08-24 21:47:48 - __MAKE_CONF=/dev/null TB --- 2013-08-24 21:47:48 - cd /src TB --- 2013-08-24 21:47:48 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sat Aug 24 21:47:48 UTC 2013 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /src/sys/sys/mbuf.h:687:50: note: expanded from macro 'MEXTADD' (void )m_extadd((m), (caddr_t)(buf), (size), (free), (arg1), (arg2),\ ^~~~~~ /src/sys/sys/mbuf.h:825:14: note: passing argument to parameter here void (*)(struct mbuf *, void *, void *), void *, void *, ^ 1 error generated. *** Error code 1 Stop. bmake[1]: stopped in /obj/amd64.amd64/src/sys/LINT *** Error code 1 Stop. bmake: stopped in /src *** Error code 1 Stop in /src. TB --- 2013-08-24 22:01:41 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-08-24 22:01:41 - ERROR: failed to build LINT kernel TB --- 2013-08-24 22:01:41 - 11503.14 user 2114.82 system 14480.23 real http://tinderbox.freebsd.org/tinderbox-head-build-HEAD-amd64-amd64.full