From owner-freebsd-i386@FreeBSD.ORG Sun Sep 22 14:00:00 2013 Return-Path: Delivered-To: freebsd-i386@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C266EFE2 for ; Sun, 22 Sep 2013 14:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A1E8320EE for ; Sun, 22 Sep 2013 14:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8ME00Yk071451 for ; Sun, 22 Sep 2013 14:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8ME00IG071437; Sun, 22 Sep 2013 14:00:00 GMT (envelope-from gnats) Resent-Date: Sun, 22 Sep 2013 14:00:00 GMT Resent-Message-Id: <201309221400.r8ME00IG071437@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, Gabor Berczi Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EEABFF31 for ; Sun, 22 Sep 2013 13:57:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DD57F20D1 for ; Sun, 22 Sep 2013 13:57:55 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8MDvqxG063814 for ; Sun, 22 Sep 2013 13:57:52 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8MDvqCu063810; Sun, 22 Sep 2013 13:57:52 GMT (envelope-from nobody) Message-Id: <201309221357.r8MDvqCu063810@oldred.freebsd.org> Date: Sun, 22 Sep 2013 13:57:52 GMT From: Gabor Berczi To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: i386/182297: ArcNet driver fails to detect the link address - and does not work at all X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Sep 2013 14:00:00 -0000 >Number: 182297 >Category: i386 >Synopsis: ArcNet driver fails to detect the link address - and does not work at all >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: Sun Sep 22 14:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Gabor Berczi >Release: 8.4 >Organization: >Environment: FreeBSD vohaul 8.4-RELEASE-p4 FreeBSD 8.4-RELEASE-p4 #0: Sat Sep 21 11:02:36 CEST 2013 root@i386:/usr/src/sys/i386/compile/ipx i386 >Description: Driver output: > cm0 at port 0x2e0-0x2ef iomem 0xd0000-0xd07ff irq 5 on isa0 > cm0: [ITHREAD] > cm0: link addr 0xf5 (245) The problem is, the card's address is not 0xF5. The detection would take place in dev/cm/smc90cx6.c (cm_attach): > linkaddress = GETMEM(CMMACOFF); // CMMACOFF is 1 In fact, not only the offset 1, but any offset I read is "0xF5". This leads me to think there could be some breakage around memory handling. smc90cx6var.h: > #define GETMEM(off) \ > bus_space_read_1(rman_get_bustag((sc)->mem_res), \ > rman_get_bushandle((sc)->mem_res), \ > (off)) The card otherwise works fine in DOS and Linux (both can read the link address correctly). I also tried with another card, same model. It made no difference. Also tried setting the card to actually have 0xf5 link address, but it still didn't work. >How-To-Repeat: Try to use it. >Fix: >Release-Note: >Audit-Trail: >Unformatted: