From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH 10/10] x86, ACPI: default to reboot via ACPI (again) Date: Thu, 13 Nov 2008 09:42:02 -0800 Message-ID: <491C66EA.7030900@zytor.com> References: <200811081050.25477.arvidjaar@mail.ru> <20081108115956.GE8354@elte.hu> <4916B38B.7050905@redhat.com> <4916B4DB.90602@zytor.com> <20081110083938.GD22392@elte.hu> <20081110115732.GA30181@srcf.ucam.org> <20081110125630.GC28643@elte.hu> <20081110130029.GC30894@srcf.ucam.org> <20081112115806.GD11352@elte.hu> <491ACAB9.40203@redhat.com> <1226546613.4006.110.camel@yakui_zhao.sh.intel.com> <1226554186.4006.136.camel@yakui_zhao.sh.intel.com> <1226567180.4006.171.camel@yakui_zhao.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from terminus.zytor.com ([198.137.202.10]:60530 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066AbYKMRmq (ORCPT ); Thu, 13 Nov 2008 12:42:46 -0500 In-Reply-To: <1226567180.4006.171.camel@yakui_zhao.sh.intel.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Zhao Yakui Cc: "Eric W. Biederman" , Avi Kivity , Ingo Molnar , Len Brown , Stephen Rothwell , Andrew Morton , Matthew Garrett , Andrey Borzenkov , "linux-acpi@vger.kernel.org" , "Brown, Len" , Thomas Gleixner , Eduardo Habkost Zhao Yakui wrote: > I am sorry that I don't describe it very clearly. The value written into > 0xCF9 I/O port maybe vary on different chipset vendors. In such case it > is difficult to write the generic 0xCF9 reboot mechanism. If the same > standard about 0xCF9 I/O port is followed by most chipset vendors, it > will be OK. What my patch does is: u8 cf9 = inb(0xcf9) & ~6; outb(cf9|2, 0xcf9); /* Request hard reset */ udelay(50); outb(cf9|6, 0xcf9); /* Actually do the reset */ udelay(50); > I have a laptop on which the ACPI reboot mechanism is not supported.(The > reset flag is not present). But there exists the definition of RESET_REG > & RESET_VALUE. The RESET_REG is 0xCF9 I/O port. (The box is based on > Intel i915 chipsets) > When writing 0x06 to 0xCF9 I/O port the box will hang and can't be > rebooted. (Hardware reset will fail) > When writing 0x04 to 0xCF9 I/O port the box can be > rebooted.(Software reset is OK) What happens if you write 0x02 first, and *then* write 0x06? More details about this laptop, please? Also, what is RESET_REG and RESET_VALUE defined as? -hpa