NetBSD Problem Report #56244

From www@netbsd.org  Thu Jun 10 17:51:54 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6A6461A921F
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 10 Jun 2021 17:51:54 +0000 (UTC)
Message-Id: <20210610175153.144A51A923B@mollari.NetBSD.org>
Date: Thu, 10 Jun 2021 17:51:53 +0000 (UTC)
From: rherdware@yahoo.com
Reply-To: rherdware@yahoo.com
To: gnats-bugs@NetBSD.org
Subject: Expresscard re(4) does not attach
X-Send-Pr-Version: www-1.0

>Number:         56244
>Category:       kern
>Synopsis:       Expresscard re(4) does not attach
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 10 17:55:00 +0000 2021
>Last-Modified:  Thu Jun 10 20:10:01 +0000 2021
>Originator:     Björn Johannesson
>Release:        9.2
>Organization:
>Environment:
NetBSD 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
I got a gigabit ethernet ExpressCard/34 for a Thinkpad R400 that I wanted to put to some actual use. However when booted with the card inserted it does not attach. It does, of course, work with Windows 10.
In the log this single line appears:
re0 at pci3 dev 0 function 0autoconfiguration error:  : can't map registers
(The missing space is as it appears in the dmesg)
I assume the error message is from https://nxr.netbsd.org/xref//src/sys/dev/pci/if_re_pci.c#256

Card is a "Delock 66216 Express Card Gigabit Lan Card"
>How-To-Repeat:
Boot with Expresscard re(4)
>Fix:

>Audit-Trail:
From: =?UTF-8?Q?Bj=C3=B6rn_Johannesson?= <rherdware@yahoo.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/56244
Date: Thu, 10 Jun 2021 18:39:29 +0000 (UTC)

 Turns out the card attaches IFF I turn off power managment for PCI Express
  in the BIOS, or if the card has a cable with active link at boot time.

From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/56244: Expresscard re(4) does not attach
Date: Thu, 10 Jun 2021 20:09:06 -0000 (UTC)

 rherdware@yahoo.com writes:

 >I got a gigabit ethernet ExpressCard/34 for a Thinkpad R400 that I wanted to put to some actual use. However when booted with the card inserted it does not attach. It does, of course, work with Windows 10.

 >In the log this single line appears:
 >re0 at pci3 dev 0 function 0autoconfiguration error:  : can't map registers

 The kernel configures PCI only with the kernel option PCI_NETBSD_CONFIGURE,
 otherwise it relies on firmware (BIOS/UEFI) to do the configuration.

 The kernel also doesn't support PCI hotplug. It scans PCI busses
 once and allocates address space for all devices found.

 ExpressCard needs both.

 I have some local patches that handle ExpressCards on my T420 when
 plugged in at boot time, but without hotplug support, it isn't
 worth much. Especially when you have an USB3.0 ExpressCard that
 gets ejected when you plug in the USB cable thanks to the lousy
 mechanical qualities of the ExpressCard specification.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.