From owner-freebsd-i386@FreeBSD.ORG Thu Nov 2 08:30:21 2006 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6052316A407 for ; Thu, 2 Nov 2006 08:30:21 +0000 (UTC) (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 DCA7343D62 for ; Thu, 2 Nov 2006 08:30:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kA28UKtK013537 for ; Thu, 2 Nov 2006 08:30:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kA28UKi3013536; Thu, 2 Nov 2006 08:30:20 GMT (envelope-from gnats) Resent-Date: Thu, 2 Nov 2006 08:30:20 GMT Resent-Message-Id: <200611020830.kA28UKi3013536@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Kirillov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5E3416A47B for ; Thu, 2 Nov 2006 08:26:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D06F643D6B for ; Thu, 2 Nov 2006 08:26:23 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kA28QNLa022149 for ; Thu, 2 Nov 2006 08:26:23 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id kA28QNvL022148; Thu, 2 Nov 2006 08:26:23 GMT (envelope-from nobody) Message-Id: <200611020826.kA28QNvL022148@www.freebsd.org> Date: Thu, 2 Nov 2006 08:26:23 GMT From: Alexander Kirillov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: i386/105063: US Robotics (3Com) 3CP5609 PCI 16550 Modem works bad in FreeBSD 5.4, 6.1 X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2006 08:30:21 -0000 >Number: 105063 >Category: i386 >Synopsis: US Robotics (3Com) 3CP5609 PCI 16550 Modem works bad in FreeBSD 5.4, 6.1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 02 08:30:19 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Alexander Kirillov >Release: 5.4, 6.1 >Organization: >Environment: FreeBSD avc.orionet.ru 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: After plugging modem in motherboard: I. At boot time (with sio2 & sio3 commented in /boot/device.hints): sio0: <3COM PCI FaxModem> port 0xe000-0xe007 irq 11 at device 13.0 on pci0 sio0: moving to sio2 sio2: type 16550A fdc0: port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 can't re-use a leaf (%desc)! can't re-use a leaf (%driver)! can't re-use a leaf (%location)! can't re-use a leaf (%pnpinfo)! can't re-use a leaf (%parent)! sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A II. After boot: 1) Configuring /etc/ppp/ppp.conf to work with that modem, starting ppp in interactive mode, entering terminal mode. 2) On ttyv0 appeared message "Interrupt storm detected on "irq11:"; throttling interrupt source" 3) a) By typing something in terminal (for ex., ATI4), we recieve modem echo with delay in 1 symbol (typing "A" -- got nothing, typing "T" -- got "A" and so on). b) Modem response (for "ATI4" in our case) we can recieve only with typing something in terminal -- for ex., pressing ENTER multiple times. One symbol of response per one pressing. >How-To-Repeat: Described in previous field. >Fix: I think that code in /usr/src/sys/dev/sio/sio_pci.c for moving serial port from sio0 to first empty sioX is uncorrect. Function sio_pci_kludge_unit, line 131: "err = device_set_unit(dev, unit); /* EVIL DO NOT COPY */" Anyway, my fixing way was: 1. enable in kernel "device puc", rebuild kernel. For FreeBSD 5.4 it will be enough: modem will be detected as puc0 and starts work correctly. 2. In 6.1, I think, code of sio_pci.c loads before code of /usr/src/sys/puc/puc_pci.c; than we need also (before kernel rebuild) to comment id line for our modem in sio_pci.c -- line 71, after "static struct pci_ids pci_ids[] = {". I think that all modems listed there will cause problems identically to my one. >Release-Note: >Audit-Trail: >Unformatted: