From owner-freebsd-amd64@FreeBSD.ORG Mon Dec 15 05:30:13 2008 Return-Path: Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55FAC1065676; Mon, 15 Dec 2008 05:30:13 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forwards5.yandex.ru (forwards5.yandex.ru [77.88.61.37]) by mx1.freebsd.org (Postfix) with ESMTP id 8E95B8FC1B; Mon, 15 Dec 2008 05:30:12 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp17.yandex.ru (smtp17.yandex.ru [77.88.61.55]) by forwards5.yandex.ru (Yandex) with ESMTP id 6A1A3AE90D; Mon, 15 Dec 2008 08:30:10 +0300 (MSK) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:62156 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S13287529AbYLOFaC (ORCPT + 5 others); Mon, 15 Dec 2008 08:30:02 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp17 X-Yandex-TimeMark: 1229319002 X-BornDate: 1137963600 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 6 X-Comment: RFC 2476 MSA function at smtp17.yandex.ru logged sender identity as: bu7cher Message-ID: <4945EB56.1060608@yandex.ru> Date: Mon, 15 Dec 2008 08:29:58 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Nate Lawson References: <1224616985.00027652.1224606603@10.7.7.3> <1224728582.00028075.1224715806@10.7.7.3> <4932F34C.1040804@FreeBSD.org> <4944115C.5020403@lissyara.su> <494420C4.80702@lissyara.su> <49442375.4010401@root.org> In-Reply-To: <49442375.4010401@root.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 15 Dec 2008 16:19:13 +0000 Cc: Alexander Motin , freebsd-acpi@FreeBSD.org, freebsd-amd64@FreeBSD.org, =?UTF-8?B?U8O4cmVuIA==?= =?UTF-8?B?U2NobWlkdA==?= Subject: Re: Semi-working patch for amd64 suspend/resume X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 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, 15 Dec 2008 05:30:13 -0000 Nate Lawson wrote: >> #7 0xffffffff80551631 in device_attach (dev=0xffffff000772fb00) at >> bus_if.h:46 >> #8 0xffffffff805529ea in bus_generic_attach (dev=Variable "dev" is not >> available. >> ) at /usr/src/sys/kern/subr_bus.c:2953 >> #9 0xffffffff8024c2f7 in ata_identify (dev=0xffffff0001559a00) at >> /usr/src/sys/dev/ata/ata-all.c:713 >> #10 0xffffffff80254d22 in ata_sata_phy_event (context=Variable "context" >> is not available. >> ) at /usr/src/sys/dev/ata/ata-sata.c:69 >> #11 0xffffffff8056155a in taskqueue_run (queue=0xffffff0001499780) at >> /usr/src/sys/kern/subr_taskqueue.c:282 >> #12 0xffffffff80561802 in taskqueue_thread_loop (arg=Variable "arg" is >> not available. > > ATA should be disabling its SATA PHY task during suspend, then > re-enabling it after resume. Looks like it doesn't do this. It seems that resuming of ATA controller is already done. AHCI interrupts are enabled and PHY state was changed. And task are doing attach of hot-plugged device.. So, Alex, can you show output of a kgdb command: (kgdb) p "%s", msgbufp->msg_ptr -- WBR, Andrey V. Elsukov