From q@uni.de  Sun Oct 10 18:32:39 2004
Return-Path: <q@uni.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 2C92216A4CE; Sun, 10 Oct 2004 18:32:39 +0000 (GMT)
Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id B55C443D3F; Sun, 10 Oct 2004 18:32:38 +0000 (GMT)
	(envelope-from q@uni.de)
Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34])
	by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP
	id 10B6CD4659; Sun, 10 Oct 2004 20:32:38 +0200 (CEST)
Received: from virusscan (localhost [127.0.0.1])
	by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP
	id E7A0F9E825; Sun, 10 Oct 2004 20:32:37 +0200 (CEST)
Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28])
	by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP
	id CF64688420; Sun, 10 Oct 2004 20:32:37 +0200 (CEST)
Received: from coyote.q.local (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14])
	by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP
	id BAFE4D4659; Sun, 10 Oct 2004 20:32:37 +0200 (CEST)
Received: from igor.q.local (igor.q.local [192.168.0.147])
	by coyote.q.local (8.12.10/8.12.10) with ESMTP id i9AIWbA4070722;
	Sun, 10 Oct 2004 20:32:37 +0200 (CEST)
	(envelope-from q@igor.q.local)
Received: from igor.q.local (localhost.q.local [127.0.0.1])
	by igor.q.local (8.13.1/8.13.1) with ESMTP id i9AIWb23001281;
	Sun, 10 Oct 2004 20:32:37 +0200 (CEST)
	(envelope-from q@igor.q.local)
Received: (from q@localhost)
	by igor.q.local (8.13.1/8.13.1/Submit) id i9AIWb9e001280;
	Sun, 10 Oct 2004 20:32:37 +0200 (CEST)
	(envelope-from q)
Message-Id: <200410101832.i9AIWb9e001280@igor.q.local>
Date: Sun, 10 Oct 2004 20:32:37 +0200 (CEST)
From: Ulrich Spoerlein <q@uni.de>
Reply-To: Ulrich Spoerlein <q@uni.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: njl@freebsd.org
Subject: ppc(4) flags are ignored when ACPI is enabled
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         72489
>Category:       kern
>Synopsis:       ppc(4) flags are ignored when ACPI is enabled
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 10 18:40:22 GMT 2004
>Closed-Date:    Wed Oct 13 07:11:27 GMT 2004
>Last-Modified:  Wed Oct 13 07:11:27 GMT 2004
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 5.3-BETA5 i386
>Organization:
>Environment:
System: FreeBSD igor 5.3-BETA5
>Description:
When ppc(4) is attached via ACPI, the hints in /boot/device.hints are
ignored, this places the parallel port in interrupt-mode by default.
Coupled with bin/57630 this effectively disables polled/extended mode
for lpt0.
>How-To-Repeat:
I have this in /boot/device.hints
hint.ppc.0.at="isa"
hint.ppc.0.irq="7"
hint.ppc.0.drq="3"
hint.ppc.0.flags="0x3C"

which works when booting without ACPI
ppc0: <Parallel port> at port 0x378-0x37f irq 7 drq 3 flags 0x3c on isa0
ppc0: SMC-like chipset (ECP/EPP) in ECP+EPP mode (EPP 1.7)
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Polled port

But fails when booting with ACPI. Since ppc0 attaches to acpi0 I tried
changing the line to this
hint.ppc.0.at="acpi"
with no effect.
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: njl 
State-Changed-When: Wed Oct 13 07:10:18 GMT 2004 
State-Changed-Why:  
Patch committed, rev 1.161 of subr_bus.c.  I'll try to MFC it before 5.3. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72489 
>Unformatted:
