From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 14 16:58:55 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 38F8279C; Sun, 14 Jul 2013 16:58:55 +0000 (UTC) (envelope-from robertames@hotmail.com) Received: from blu0-omc3-s21.blu0.hotmail.com (blu0-omc3-s21.blu0.hotmail.com [65.55.116.96]) by mx1.freebsd.org (Postfix) with ESMTP id 0A27096F; Sun, 14 Jul 2013 16:58:54 +0000 (UTC) Received: from BLU177-W33 ([65.55.116.74]) by blu0-omc3-s21.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 14 Jul 2013 09:58:47 -0700 X-TMN: [az5R9k9ZrJOUAEX+8NOKtPYFu50f23Mv] X-Originating-Email: [robertames@hotmail.com] Message-ID: From: Robert Ames To: John Baldwin , "freebsd-hackers@freebsd.org" Subject: RE: Intel D2500CC serial ports Date: Sun, 14 Jul 2013 12:58:47 -0400 Importance: Normal In-Reply-To: <201307111014.42903.jhb@freebsd.org> References: , <201307111014.42903.jhb@freebsd.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 14 Jul 2013 16:58:47.0967 (UTC) FILETIME=[686B0AF0:01CE80B3] X-Mailman-Approved-At: Sun, 14 Jul 2013 21:10:28 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jul 2013 16:58:55 -0000 > From: jhb@freebsd.org=0A= > To: freebsd-hackers@freebsd.org=0A= > Subject: Re: Intel D2500CC serial ports=0A= > Date: Thu=2C 11 Jul 2013 10:14:42 -0400=0A= > CC: robertames@hotmail.com=0A= > =0A= > On Sunday=2C June 30=2C 2013 1:24:27 pm Robert Ames wrote:=0A= >> I just picked up an Intel D2500CCE motherboard and was disappointed=0A= >> to find the serial ports didn't work. There has been discussion=0A= >> about this problem here:=0A= >> =0A= >> http://lists.freebsd.org/pipermail/freebsd-current/2013-April/040897.htm= l=0A= >> http://lists.freebsd.org/pipermail/freebsd-current/2013-May/042088.html= =0A= >> =0A= >> As seen in the second link=2C Juergen Weiss was able to work around=0A= >> the problem. This patch (for 8.4-RELEASE amd64) makes all 4 serial=0A= >> ports functional.=0A= >> =0A= >> --- /usr/src/sys/amd64/amd64/io_apic.c.orig 2013-06-02 13:23:05.00000000= 0 -0500=0A= >> +++ /usr/src/sys/amd64/amd64/io_apic.c 2013-06-28 18:52:03.00000000= 0 -0500=0A= >> @@ -452=2C6 +452=2C10 @@=0A= >> KASSERT(!(trig =3D=3D INTR_TRIGGER_CONFORM || pol =3D=3D INTR_PO= LARITY_CONFORM)=2C=0A= >> ("%s: Conforming trigger or polarity\n"=2C __func__))=3B=0A= >> =0A= >> + if (trig =3D=3D INTR_TRIGGER_EDGE && pol =3D=3D INTR_POLARITY_LO= W) {=0A= >> + pol =3D INTR_POLARITY_HIGH=3B=0A= >> + }=0A= >> +=0A= > =0A= > Hmm=2C so this is your BIOS doing the wrong thing in its ASL.=0A= > =0A= > Maybe try this:=0A= > =0A= > --- //depot/user/jhb/acpipci/dev/acpica/acpi_resource.c 2011-07-22 17:59:= 31.000000000 0000=0A= > +++ /home/jhb/work/p4/acpipci/dev/acpica/acpi_resource.c 2011-07-22 17:59= :31.000000000 0000=0A= > @@ -141=2C6 +141=2C10 @@=0A= > default:=0A= > panic("%s: bad resource type %u"=2C __func__=2C res->Type)=3B=0A= > }=0A= > +#if defined(__amd64__) || defined(__i386__)=0A= > + if (irq < 16 && trig =3D=3D ACPI_EDGE_SENSITIVE && pol =3D=3D ACPI_A= CTIVE_LOW)=0A= > + pol =3D ACPI_ACTIVE_HIGH=3B=0A= > +#endif=0A= > BUS_CONFIG_INTR(dev=2C irq=2C (trig =3D=3D ACPI_EDGE_SENSITIVE) ?=0A= > INTR_TRIGGER_EDGE : INTR_TRIGGER_LEVEL=2C (pol =3D=3D ACPI_ACTIVE_HIGH)= ?=0A= > INTR_POLARITY_HIGH : INTR_POLARITY_LOW)=3B=0A= > =0A= > -- =0A= > John Baldwin=0A= =0A= Yes=2C this patch works too.=A0 All 4 serial ports are functional.=A0 Is=0A= this something that could be committed so that the serial ports on=0A= this board work out of the box on future releases?=0A= =0A= And for what it's worth=2C I seem to be running the latest BIOS=0A= identified as: CCCDT10N.86A.0039.2013.0425.1625 =