From owner-freebsd-bugs@FreeBSD.ORG Wed May 21 18:12:45 2008 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BF5E106568B for ; Wed, 21 May 2008 18:12:45 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 86CE18FC17 for ; Wed, 21 May 2008 18:12:44 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [202.108.54.204]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 9CEA82846D for ; Thu, 22 May 2008 02:12:43 +0800 (CST) Received: from localhost (tarsier.geekcn.org [202.108.54.204]) by tarsier.geekcn.org (Postfix) with ESMTP id 410EDEB71FB; Thu, 22 May 2008 02:12:43 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([202.108.54.204]) by localhost (mail.geekcn.org [202.108.54.204]) (amavisd-new, port 10024) with ESMTP id KwhBoPad5eIF; Thu, 22 May 2008 02:12:30 +0800 (CST) Received: from charlie.delphij.net (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id B9181EB0B90; Thu, 22 May 2008 02:12:24 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=ciUHvzz0Hq3edmP7mx9cFppTNKbE4QXQ1JcKF82TuI1dJH4UU5DJDGQgMg+cQB8Mx 6D1h9FelNGOMHcRx8qZPg== Message-ID: <48346605.4000200@delphij.net> Date: Wed, 21 May 2008 11:12:21 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: "Alexander N. Banketov" References: <15921616750.20080520160652@ukr.net> <48334570.9010106@delphij.net> <735728453.20080521125043@ukr.net> In-Reply-To: <735728453.20080521125043@ukr.net> X-Enigmail-Version: 0.95.6 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bugs@FreeBSD.org, d@delphij.net Subject: Re: FreeBSDand notebook Samung X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 May 2008 18:12:45 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Alexander N. Banketov wrote: | Hello Xin, | | Wednesday, May 21, 2008, 12:41:04 AM, you wrote: | | XL> Alexander N. Banketov wrote: | XL> | Hello freebsd-bugs, | XL> | | XL> | Lag FreeBSD on notebook Samsung | XL> | | XL> | FreeBSD 7.0 | XL> | | XL> | uname -a | XL> | FreeBSD NB.bom.od.ua 7.0-RELEASE FreeBSD 7.0-RELEASE #8: Mon Apr 21 | XL> 16:23:28 EEST 2008 root@NB.bom.od.ua:/usr/obj/usr/src/sys/NOTEBOOK i386 | XL> | | XL> | Has established FreeBSD 7.0 (tried 5.2, 4.11, with the same result), | XL> | On notebook Samsung R60. at attempt to make shutdown or reboot I receive | XL> | System going down IMMEDIATELY | XL> | | XL> | | XL> | | XL> | System shutdown time has arrived | XL> | syncing disks 4 0 2 0 0 done | XL> | Uptime : 56s (the last time) | XL> | | XL> | And notebook hangs | XL> [...] | XL> Could you please try this patch? | XL> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/usb/ehci_pci.c.diff?r1=1.28.2.1;r2=1.28.2.2 | I probably incorrectly have understood you, have created a file power.sh as it is described on specified by you url | | ./power.sh Em... It should be: cd /usr/src/sys/dev/usb patch < power.sh (actually it should be something like ehci_pci.c.diff but hey, it's Unix and we don't care about filenames that much :) | ---: not found | +++: not found | @@: not found | ./power.sh: icq/: Permission denied | ./power.sh: 7: Syntax error: word unexpected (expecting ")") | | cat power.sh | --- src/sys/dev/usb/ehci_pci.c 2007/11/26 18:21:42 1.28.2.1 | +++ src/sys/dev/usb/ehci_pci.c 2008/03/19 16:38:55 1.28.2.2 | @@ -36,7 +36,7 @@ | */ | | #include | -__FBSDID("$FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/dev/usb/ehci_pci.c,v 1.28.2.1 2007/11/26 18:21:42 jfv Exp $"); | +__FBSDID("$FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/dev/usb/ehci_pci.c,v 1.28.2.2 2008/03/19 16:38:55 jhb Exp $"); | | /* | * USB Enhanced Host Controller Driver, a.k.a. USB 2.0 controller. | @@ -538,8 +538,9 @@ ehci_pci_takecontroller(device_t self) | if (EHCI_EECP_ID(eec) != EHCI_EC_LEGSUP) | continue; | legsup = eec; | - pci_write_config(self, eecp, legsup | EHCI_LEGSUP_OSOWNED, 4); | if (legsup & EHCI_LEGSUP_BIOSOWNED) { | + pci_write_config(self, eecp, | + legsup | EHCI_LEGSUP_OSOWNED, 4); | printf("%s: waiting for BIOS to give up control\n", | device_get_nameunit(sc->sc_bus.bdev)); | for (i = 0; i < 5000; i++) { | @@ -558,6 +559,7 @@ ehci_pci_takecontroller(device_t self) | static void | ehci_pci_givecontroller(device_t self) | { | +#if 0 | ehci_softc_t *sc = device_get_softc(self); | u_int32_t cparams, eec, legsup; | int eecp; | @@ -571,6 +573,7 @@ ehci_pci_givecontroller(device_t self) | legsup = eec; | pci_write_config(self, eecp, legsup & ~EHCI_LEGSUP_OSOWNED, 4); | } | +#endif | } | | static device_method_t ehci_methods[] = { | | Describe please, that I have made not and give more detailed | instruction. | XL> Note that you can safely ignore the failed patch of hunk #1. | | XL> Cheers, | XL> - -- | XL> ** Help China's quake relief at http://www.redcross.org.cn/ | |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | XL> Xin LI http://www.delphij.net/ | XL> FreeBSD - The Power to Serve! | XL> -----BEGIN PGP SIGNATURE----- | XL> Version: GnuPG v2.0.9 (FreeBSD) | | XL> iEYEARECAAYFAkgzRXAACgkQi+vbBBjt66ApBACfQTnNA2iQc8CZ9o4gCeJl/wIo | XL> nyEAni+BMXUQYAW9O9+GYZRco+lVjZwd | XL> =tqWT | XL> -----END PGP SIGNATURE----- | | Thanks | | - -- ** Help China's quake relief at http://www.redcross.org.cn/ |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkg0ZgUACgkQi+vbBBjt66DdFwCdGDmRVIOxwYL/+ePIDfOmfqT/ gkAAn0AnzarawRQKzzlTO15WY68YMZSO =fFvX -----END PGP SIGNATURE-----