From owner-freebsd-bugs@FreeBSD.ORG Sat Jul 2 19:10:13 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E16A16A41C for ; Sat, 2 Jul 2005 19:10:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2576F43D1F for ; Sat, 2 Jul 2005 19:10:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j62JADuD080752 for ; Sat, 2 Jul 2005 19:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j62JADIu080751; Sat, 2 Jul 2005 19:10:13 GMT (envelope-from gnats) Resent-Date: Sat, 2 Jul 2005 19:10:13 GMT Resent-Message-Id: <200507021910.j62JADIu080751@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David Taylor Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F14816A41C for ; Sat, 2 Jul 2005 19:07:24 +0000 (GMT) (envelope-from davidt@yadt.co.uk) Received: from outcold.yadt.co.uk (outcold.yadt.co.uk [81.187.204.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1DC643D48 for ; Sat, 2 Jul 2005 19:07:20 +0000 (GMT) (envelope-from davidt@yadt.co.uk) Received: from localhost (localhost [127.0.0.1]) by outcold.yadt.co.uk (Postfix) with ESMTP id 322101DD695 for ; Sat, 2 Jul 2005 20:07:47 +0100 (BST) Received: from outcold.yadt.co.uk ([127.0.0.1]) by localhost (outcold.yadt.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00839-01 for ; Sat, 2 Jul 2005 20:07:37 +0100 (BST) Received: by outcold.yadt.co.uk (Postfix, from userid 1001) id 9FB281DD69A; Sat, 2 Jul 2005 20:07:37 +0100 (BST) Message-Id: <20050702190737.9FB281DD69A@outcold.yadt.co.uk> Date: Sat, 2 Jul 2005 20:07:37 +0100 (BST) From: David Taylor To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/82901: ECP mode fails on NetMos ppc card - "PWord not supported" X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Taylor List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2005 19:10:13 -0000 >Number: 82901 >Category: kern >Synopsis: ECP mode fails on NetMos ppc card - "PWord not supported" >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 02 19:10:12 GMT 2005 >Closed-Date: >Last-Modified: >Originator: David Taylor >Release: FreeBSD 5.4-STABLE amd64 >Organization: >Environment: System: FreeBSD outcold.yadt.co.uk 5.4-STABLE FreeBSD 5.4-STABLE #0: Mon Jun 27 01:32:21 BST 2005 davidt@outcold.yadt.co.uk:/usr/obj/repo/FreeBSD/FreeBSD-5.x/src/sys/OUTCOLD amd64 Using NetMos PCI single IEEE1284 printer port card: puc0: port 0xd000-0xd00f,0xd400-0xd407,0xd800-0xd807, 0xdc00-0xdc07,0xe000-0xe007,0xe400-0xe407 irq 19 at device 8.0 on pci0 >Description: The new lpt device works correctly, but is extremely slow. Attempting to enable ECP mode using "lptcontrol -e /dev/lpt0" succeeds, giving a "lpt0: switched to polled extended mode" message. However, attempting to print anything causes a (large) number of "lpt0: advanced mode not avail, polling" error messages. After trying a verbose boot I think the error is due to ppc_detect_fifo() failing: .. puc0: port 0xd000-0xd00f,0xd400-0xd407,0xd800-0xd807,0xdc00-0xdc07,0xe000-0xe007,0xe400-0xe407 irq 19 at device 8.0 on pci0 puc0: Reserved 0x8 bytes for rid 0x10 type 4 at 0xe400 ppc0: using extended I/O port range ppc0: EPP SPP ppc_detect_fifo: PWord not supported ppc0: on puc0 ppc0: Generic chipset (ECP-only) in ECP mode ppbus0: on ppc0 ppbus0: IEEE1284 device found /NIBBLE/ECP/NIBBLE_ID/ECP_ID/Extensibility Link Probing for PnP devices on ppbus0: ppbus0: MLC,PCL,PML lpt0: on ppbus0 lpt0: Interrupt-driven port .. This is presumably due to the following XXX comment in ppc_detect_fifo. /* XXX 16 and 32 bits implementations not supported */ if (ppc->ppc_pword != PPC_PWORD_8) { LOG_PPC(__func__, ppc, "PWord not supported"); goto error; } >How-To-Repeat: 1. Install an ECP ppc which exibits the problem (e.g. NetMos NM9805) 2. Turn on extended mode (lptcontrol -e /dev/lptX) 3. Print something 4. Observe lack of working ECP mode >Fix: Unknown. Additional information on NetMos NM9805 card is available from the MosChip (who now own NetMos) website: http://www.moschip.com/htmls/download_matrix1.htm >Release-Note: >Audit-Trail: >Unformatted: