From owner-freebsd-acpi@FreeBSD.ORG Thu Jul 6 15:37:17 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8970916A4DE for ; Thu, 6 Jul 2006 15:37:17 +0000 (UTC) (envelope-from gofda-freebsd-acpi@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0DD443D45 for ; Thu, 6 Jul 2006 15:37:16 +0000 (GMT) (envelope-from gofda-freebsd-acpi@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FyVuY-0003Uk-T9 for freebsd-acpi@freebsd.org; Thu, 06 Jul 2006 17:37:02 +0200 Received: from gw205.f5.com ([205.229.151.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Jul 2006 17:37:02 +0200 Received: from atkin901 by gw205.f5.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Jul 2006 17:37:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-acpi@freebsd.org From: othermark Date: Thu, 06 Jul 2006 08:36:30 -0700 Lines: 76 Message-ID: References: <200607050838.44324.jhb@freebsd.org> <200607060700.22376.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gw205.f5.com User-Agent: KNode/0.10.2 Sender: news Subject: Re: acpi on msi-9218 (-current) swaps sio0 and sio1 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2006 15:37:17 -0000 John Baldwin wrote: > On Wednesday 05 July 2006 14:14, othermark wrote: >> John Baldwin wrote: >> >> > On Thursday 29 June 2006 17:51, othermark wrote: >> >> >> >> With acpi loaded on a msi-9218 motherboard, I'm seeing sio0 and sio1 >> >> get 'swapped.' Even though the kernel is compiled for console on >> >> 0x3f8, I've had to change the /etc/ttys to use ttyd1 so login is >> >> displayed when the system is booted. >> >> >> >> Empirically, this tells me that 0x3f8 is correct for sio0 (since the >> >> kernel and boot loader display fine using it as comconsole). >> >> >> >> Is there a way to force this to be consistant? This is -current from >> >> Jun >> >> 8. I will try a more recent kernel soon. The following is a verbose >> >> boot log. >> > >> > This is because your BIOS lists them backwards in the ASL. There isn't >> > a workaround currently short of fixing your ASL to list them in the >> > COM1/COM2 order and building a custom dsdt. >> >> Many thanks for your input, >> >> So would it be sufficient in the _INI method, just to swap the >> order of initialization (I'm guessing here) for the COMA and COMB >> sections? COMA and COMB both have full resource templates for all >> possible legal settings. > > No, you have to swap the COMA and COMB devices themselves. Ahh ok. You must forgive me if I seem dense since this is the first time I've looked at repairing these types of instruction files. Are you saying that the order that they appear in the .asl is important? I can find only subtle differences between the two methods COMA and COMB. One is the Store() after the Aquire() and the Store() in the _SRS submethod accompanying the COM methods. Lastly the order that their _PRS ResourceTemplate() appear seems implies an order of default settings. These defaults and order actually seem correct for COMA and COMB. If swapping them means swapping their differences, that could be done too. The actual Name(_DDN) might have significance as well if the OS is looking it up by that. >> 2535 Method (_INI, 0, NotSerialized) >> 2536 { >> 2537 Acquire (NSMX, 0xFFFF) >> 2538 Store (0x00, LDN) >> 2539 Store (ACTV, ^FDC.FDCS) >> 2540 Store (0x01, LDN) >> 2541 Store (ACTV, ^LPT.LPTS) >> 2542 Store (0x02, LDN) >> 2543 Store (ACTV, ^COMB.SP2S) >> 2544 Store (0x03, LDN) >> 2545 Store (ACTV, ^COMA.SP1S) >> 2546 Store (0x05, LDN) >> 2547 Store (ACTV, ^PS2M.PSMS) >> 2548 Store (KBST, Local0) >> 2549 Store (Local0, KBST) >> 2550 Store (MSST, Local0) >> 2551 Store (Local0, MSST) >> >> >> full (corrected for errors) .asl is here: >> >> http://kuoi.asui.uidaho.edu/~darkmark/msi-9618.asl >> > -- othermark atkin901 at nospam dot yahoo dot com (!wired)?(coffee++):(wired);