From owner-freebsd-bugs Mon Apr 22 0:11:56 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BEA4937B437 for ; Mon, 22 Apr 2002 00:11:32 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3M7A6317749; Mon, 22 Apr 2002 00:10:06 -0700 (PDT) (envelope-from gnats) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by hub.freebsd.org (Postfix) with ESMTP id 7D02037B419 for ; Mon, 22 Apr 2002 00:01:55 -0700 (PDT) Received: (from ari@localhost) by guinness.syncrontech.com (8.11.6/8.11.6) id g3M6xsM30623; Mon, 22 Apr 2002 09:59:54 +0300 (EEST) (envelope-from ari) Message-Id: <200204220659.g3M6xsM30623@guinness.syncrontech.com> Date: Mon, 22 Apr 2002 09:59:54 +0300 (EEST) From: ari.suutari@syncrontech.com Reply-To: ari.suutari@syncrontech.com To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/37333: puc driver does not recoginize new LAVA Quattro PCI cards Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37333 >Category: kern >Synopsis: puc driver does not recoginize new LAVA Quattro PCI cards >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Apr 22 00:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Ari Suutari >Release: FreeBSD 4.5-STABLE i386 >Organization: Syncron Tech Oy >Environment: System: FreeBSD guinness.syncrontech.com 4.5-STABLE FreeBSD 4.5-STABLE #0: Tue Mar 12 12:43:14 EET 2002 root@guinness.syncrontech.com:/usr/src/sys/compile/GUINNESS i386 >Description: puc driver does not recognize new LAVA 4-port serial cards. There are two reasons for this: First, in puc.c pic_read_config is called to get PCIR_HEADERTYPE and the return is tested for being 0. However, new LAVA card is a multifunction one so it reports 0x80 as return. The high bit should be stripped before testing for zero as it is the multifunction indicator. Second reason is that chip id is different in new versions. Instead of being 0x0100 it is now 0x0120. >How-To-Repeat: put LAVA Quattro-PCI card on FreeBSD 4.5-STABLE machine and compile kernel with 'puc' driver >Fix: Apply folloing patches. The add description for new card into pucdata.c and correct the test in probe code in puc.c begin 644 puc-patches M(R!4:&ES(&ES(&$@2!Y;W4@86YD"B,@:&%V92!D969A=6QT('!E MR`@("),879A($-O;7!U=&5R&9F9F,L"3`L"3`)?2P* M6"L@"2`@("!["E@K(`D)>R!054-?4$]25%]465!%7T-/32P@,'@Q,"P@,'@P M,"P@0T]-7T9215$@?2P*6"L@"0E[(%!50U]03U)47U194$5?0T]-+"`P>#$T M+"`P>#`P+"!#3TU?1E)%42!]+`I8*R`)("`@('TL"E@K(`E]+`I8*R`*6"`@ M"2\J($QA=F$@0V]M<'5T97)S($1397)I86P@4$-)('-ER`@("),879A($-O;7!U=&5RPDP>#$T,#Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message