Re: [Solved] FreeBSD 9-Beta3 on X300 2 problems
On Wed, 28 Sep 2011 19:57:56 +0900, Taku YAMAMOTO t...@tackymt.homeip.net wrote: On Tue, 27 Sep 2011 13:06:21 +0100 Gavin Atkinson gavin.atkin...@ury.york.ac.uk wrote: On Tue, 2011-09-27 at 19:53 +0800, Adrian Chadd wrote: Hans, Why haven't those patches been committed? This patch is an absolute hack, and shouldn't be committed as it is. I would, however, appreciate some help in determining the correct solution. The solution may well involve not suspending/resuming hpet(4) or the other timers on the normal DEVICE_SUSPEND()/DEVICE_RESUME() path but instead doing them as the last thing to be suspended, or it may Like the attached patches do? instead involve reworking the USB code (and potentially other code) to not need to sleep during suspend/resume. I don't know the right solution, but would really like to work with somebody who does. Please also see the thread Choosing between DELAY(useconds) and pause() on -current. Gavin Hello. After longer testing thouse patches. I must say, they dont resolve my problem in 100%. Suspend/Resume on short time (about 2-3 hours, meybye little longer) works fine. But when i suspend it for longer (8-10 hours) system freeze after resume. Any another idea why ? Best regards, Adrian. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: [Solved] FreeBSD 9-Beta3 on X300 2 problems
On Fri, 30 Sep 2011 09:52:53 +0200, crsnet.pl crs...@crsnet.pl wrote: On Wed, 28 Sep 2011 19:57:56 +0900, Taku YAMAMOTO t...@tackymt.homeip.net wrote: On Tue, 27 Sep 2011 13:06:21 +0100 Gavin Atkinson gavin.atkin...@ury.york.ac.uk wrote: On Tue, 2011-09-27 at 19:53 +0800, Adrian Chadd wrote: Hans, Why haven't those patches been committed? This patch is an absolute hack, and shouldn't be committed as it is. I would, however, appreciate some help in determining the correct solution. The solution may well involve not suspending/resuming hpet(4) or the other timers on the normal DEVICE_SUSPEND()/DEVICE_RESUME() path but instead doing them as the last thing to be suspended, or it may Like the attached patches do? instead involve reworking the USB code (and potentially other code) to not need to sleep during suspend/resume. I don't know the right solution, but would really like to work with somebody who does. Please also see the thread Choosing between DELAY(useconds) and pause() on -current. Gavin Hello. After longer testing thouse patches. I must say, they dont resolve my problem in 100%. Suspend/Resume on short time (about 2-3 hours, meybye little longer) works fine. But when i suspend it for longer (8-10 hours) system freeze after resume. Any another idea why ? Best regards, Adrian. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: [Solved] FreeBSD 9-Beta3 on X300 2 problems
On Tue, 27 Sep 2011 13:06:21 +0100 Gavin Atkinson gavin.atkin...@ury.york.ac.uk wrote: On Tue, 2011-09-27 at 19:53 +0800, Adrian Chadd wrote: Hans, Why haven't those patches been committed? This patch is an absolute hack, and shouldn't be committed as it is. I would, however, appreciate some help in determining the correct solution. The solution may well involve not suspending/resuming hpet(4) or the other timers on the normal DEVICE_SUSPEND()/DEVICE_RESUME() path but instead doing them as the last thing to be suspended, or it may Like the attached patches do? instead involve reworking the USB code (and potentially other code) to not need to sleep during suspend/resume. I don't know the right solution, but would really like to work with somebody who does. Please also see the thread Choosing between DELAY(useconds) and pause() on -current. Gavin ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org -- -|-__ YAMAMOTO, Taku | __ t...@tackymt.homeip.net - A chicken is an egg's way of producing more eggs. - --- sys/kern/subr_bus.c.orig2010-12-02 13:28:01.0 +0900 +++ sys/kern/subr_bus.c 2010-12-08 12:37:05.524727855 +0900 @@ -3385,15 +3385,13 @@ int bus_generic_suspend(device_t dev) { int error; - device_tchild, child2; + device_tchild; - TAILQ_FOREACH(child, dev-children, link) { + TAILQ_FOREACH_REVERSE(child, dev-children, device_list, link) { error = DEVICE_SUSPEND(child); if (error) { - for (child2 = TAILQ_FIRST(dev-children); -child2 child2 != child; -child2 = TAILQ_NEXT(child2, link)) - DEVICE_RESUME(child2); + while ((child = TAILQ_NEXT(child, link)) != NULL) + DEVICE_RESUME(child); return (error); } } --- sys/dev/acpica/acpi.c.orig 2010-07-16 08:24:06.0 +0900 +++ sys/dev/acpica/acpi.c 2010-07-21 20:10:59.056243391 +0900 @@ -1702,7 +1702,7 @@ acpi_probe_order(ACPI_HANDLE handle, int *order = 1; else if (acpi_MatchHid(handle, PNP0C01) || acpi_MatchHid(handle, PNP0C02)) *order = 2; -else if (acpi_MatchHid(handle, PNP0C09)) +else if (acpi_MatchHid(handle, PNP0C09) || acpi_MatchHid(handle, PNP0103)) *order = 3; else if (acpi_MatchHid(handle, PNP0C0F)) *order = 4; ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: [Solved] FreeBSD 9-Beta3 on X300 2 problems
On Tue, 27 Sep 2011 08:21:23 +0800, Adrian Chadd adr...@freebsd.org wrote: Hi, Please try to do this without wlan loaded at all (not just down, but build your wifi support as a module.) Then try without X, see whether it's related to that or not. (And you haven't told us what your hardware is.) Gavin Atkinson send me this link : http://docs.freebsd.org/cgi/getmsg.cgi?fetch=96631+0+/usr/local/www/db/text/2011/freebsd-usb/20110605.freebsd-usb suspend / resume works like a charm with this pathes. Thanks all for help. Regards. Adrian ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: [Solved] FreeBSD 9-Beta3 on X300 2 problems
Hans, Why haven't those patches been committed? Adrian ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: [Solved] FreeBSD 9-Beta3 on X300 2 problems
On Tue, 2011-09-27 at 19:53 +0800, Adrian Chadd wrote: Hans, Why haven't those patches been committed? This patch is an absolute hack, and shouldn't be committed as it is. I would, however, appreciate some help in determining the correct solution. The solution may well involve not suspending/resuming hpet(4) or the other timers on the normal DEVICE_SUSPEND()/DEVICE_RESUME() path but instead doing them as the last thing to be suspended, or it may instead involve reworking the USB code (and potentially other code) to not need to sleep during suspend/resume. I don't know the right solution, but would really like to work with somebody who does. Please also see the thread Choosing between DELAY(useconds) and pause() on -current. Gavin ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: [Solved] FreeBSD 9-Beta3 on X300 2 problems
On Tuesday 27 September 2011 13:53:41 Adrian Chadd wrote: Hans, Why haven't those patches been committed? I don't know. There is no reason that they shouldn't, except I believe pause() should have the checks for cold and resuming/suspending instead of USB. Must have been forgotten :-) --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org