Bug 164189 - [pccard] FreeBSD 9.0-RELEASE on Toshiba Satellite Pro 440CDT; PCMCIA cards don't work "CIS is too long -- truncating"
Summary: [pccard] FreeBSD 9.0-RELEASE on Toshiba Satellite Pro 440CDT; PCMCIA cards do...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Warner Losh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-16 00:40 UTC by zmetzing
Modified: 2019-01-07 16:47 UTC (History)
1 user (show)

See Also:


Attachments
file.txt (38.39 KB, text/plain)
2012-01-16 00:40 UTC, zmetzing
no flags Details
devinfo.txt (1.83 KB, text/plain; charset=us-ascii)
2012-01-16 04:42 UTC, zmetzing
no flags Details
dmesg.short.txt (5.79 KB, text/plain; charset=us-ascii)
2012-01-16 04:42 UTC, zmetzing
no flags Details
pciconf.txt (1.00 KB, text/plain; charset=us-ascii)
2012-01-16 04:42 UTC, zmetzing
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description zmetzing 2012-01-16 00:40:07 UTC
The PCMCIA/CardBus bridge in this laptop does not appear to work correctly
with any card under FreeBSD 9.0-RELEASE. Upon card insertion, I get the
following message:

Status is 0x30000410
cbb1: card inserted: event=0x00000000, state=30000410
pccard1: chip_socket_enable
cbb_pcic_socket_enable:
cbb1: cbb_power: 5V
pccard1: read_cis
CIS is too long -- truncating
pccard1: check_cis_quirks
pccard1: Card has no functions!
cbb1: PC Card card activation failed

Cards I've tried (all 5V, 16-bit):

NETGEAR 802.11b 16-bit PCMCIA Model MA401 (verified working properly on
  another 8.2-RELEASE laptop)
Xircom RealPort Ethernet 10/100+Modem 56 P/N REM56G-100 (untested
  elsewhere)
Megahertz PC Card Modem P/N XJ4288 (worked last time I tried it on
  another laptop)
Dazzle CompactFlash Card Adapter (works elsewhere)

All cards give the same result. 100% failure, 100% reproducible on
demand.

I noticed that in src/sys/dev/pccard/pccard_cis.c that the delay before
reading the CIS information had been reduced from 1 second to 1/10th
second somewhere along the line, so I reverted it back to the old delay
as such:

        pause("pccard", hz);

This did not help the problem.

With hw.pccard.cis_debug=1 turned on, it looks like the pccard_scan_cis()
is getting back a whole lotta zeroes that should be card information.
Log(s) attached.

No additional releases have been tested, though I may try to load 5.4 or
earlier with OLDCARD on it and see if that fixes the problem.

Fix: Patch attached with submission follows:
How-To-Repeat: 1. Boot FreeBSD-9.0 on Toshiba 440CDT
2. Insert any 5V 16-bit PCMCIA card
3. Observe kernel error message, and that card does not work.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2012-01-16 01:37:10 UTC
Responsible Changed
From-To: freebsd-i386->freebsd-bugs

Could be a more generic problem than with just this machine.
Comment 2 zmetzing 2012-01-16 04:42:23 UTC
Attached, find additional system information.

--- Zach
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:26 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 4 Warner Losh freebsd_committer 2019-01-07 06:22:53 UTC
I think I have this laptop. Will see if I can recreate.
Comment 5 zmetzing 2019-01-07 16:47:54 UTC
I'm not sure I still have this laptop. :-)