Next-in-Thread Next Message

More More info about the problem 

Forum: PCMCIA driver development
Re: Question Error reading CIS with a Long Link Tuple to Common Memory (Dani Castro)
Date: 2000, Jun 29
From: Dani Castro Dani

Here are the dump of cs_memory driver.

When I want to attach the memory_cs driver after the pcmcia service is started, first I've got to insert any other card (if the mortara card is the first card I insert, no one card is recognized after). So, after doing this, I insert the unrecognized card and automaticaly cardmanager attaches the memory_cs.

Here are the logs in /var/log/messages:

Jun 23 17:38:57 gsipc6 kernel: unloading PCMCIA Card Services
Jun 23 17:38:58 gsipc6 kernel: Linux PCMCIA Card Services 3.1.16
Jun 23 17:38:58 gsipc6 kernel: kernel build: 2.2.14-15mdk #6 ven mai 19 19:08:02 CEST 2000
Jun 23 17:38:58 gsipc6 kernel: options: [pci] [apm]
Jun 23 17:38:58 gsipc6 kernel: PCI routing table version 1.0 at 0xfdf30
Jun 23 17:38:58 gsipc6 kernel: Intel PCIC probe:
Jun 23 17:38:58 gsipc6 kernel: Intel i82365sl B step rev 00 ISA-to-PCMCIA at port 0x3e0 ofs 0x00
Jun 23 17:38:58 gsipc6 kernel: host opts [0]: none
Jun 23 17:38:58 gsipc6 kernel: host opts [1]: none
Jun 23 17:38:58 gsipc6 kernel: ISA irqs (scanned) = 3,4,7 status change on irq 7
Jun 23 17:38:58 gsipc6 cardmgr[1342]: starting, version is 3.1.16
Jun 23 17:38:58 gsipc6 cardmgr[1342]: watching 2 sockets
Jun 23 17:38:58 gsipc6 kernel: cs: IO port probe 0x0c00-0x0cff: excluding 0xcf8-0xcff
Jun 23 17:38:58 gsipc6 kernel: cs: IO port probe 0x0800-0x08ff: clean.
Jun 23 17:38:58 gsipc6 kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x200-0x207 0x388-0x38f 0x3b0-0x3e7 0x4d0-0x4d7
Jun 23 17:38:58 gsipc6 kernel: cs: IO port probe 0x1000-0x17ff: excluding 0x1000-0x102f 0x1040-0x105f
Jun 23 17:38:58 gsipc6 kernel: cs: IO port probe 0x0a00-0x0aff: clean.
Jun 23 17:39:54 gsipc6 cardmgr[1342]: initializing socket 1
Jun 23 17:39:54 gsipc6 cardmgr[1342]: unsupported card in socket 1
Jun 23 17:39:54 gsipc6 kernel: cs: memory probe 0x0d0000-0x0dffff:<7>cs: read_cis_mem(1, 0x0, 2)
Jun 23 17:39:54 gsipc6 kernel: clean.
Jun 23 17:39:54 gsipc6 cardmgr[1342]: product info: "PROXIM", "LAN PC CARD", "RANGELAN2"
Jun 23 17:39:54 gsipc6 cardmgr[1342]: manfid: 0x0126, 0x1158 function: 6 (network)

(Here start messages after the insertion of mortara card)

Jun 23 17:42:23 gsipc6 cardmgr[1342]: initializing socket 1
Jun 23 17:42:23 gsipc6 cardmgr[1342]: socket 1: Anonymous Memory
Jun 23 17:42:23 gsipc6 cardmgr[1342]: executing: 'modprobe sram_mtd'
Jun 23 17:42:23 gsipc6 kernel: sram_mtd.c 1.48 2000/05/16 21:31:37 (David Hinds)
Jun 23 17:42:23 gsipc6 cardmgr[1342]: Common memory region at 0x0: Generic or SRAM
Jun 23 17:42:23 gsipc6 kernel: sram_attach()
Jun 23 17:42:23 gsipc6 kernel: sram_config(0xc6bb7a00)
Jun 23 17:42:23 gsipc6 kernel: sram_mtd: common at 0x0, 16 kb, 150 ns
Jun 23 17:42:23 gsipc6 cardmgr[1342]: executing: 'modprobe memory_cs'
Jun 23 17:42:23 gsipc6 kernel: memory_cs: mem0: common 16 kb
Jun 23 17:42:23 gsipc6 cardmgr[1342]: executing: './memory start mem0'

Here are the logs in dmesg (after the insertion of mortara card):
setup_socket(1): applying power
cs: resetting socket 1
cs: reset done on socket 1
cs: send_event(sock 1, event 4, pri 0)
cs: CardServices(ValidateCIS, 0xc72ad000, 0xc26edcf8)
cs: read_cis_mem(1, 0x0, 2)
cs: 0x01 0x03 0xac 0xda ...
cs: CardServices(GetFirstTuple, 0xc72ad000, 0xc26eda8c)
cs: read_cis_mem(1, 0x5, 2)
cs: 0x12 0x04 0x2c 0xd9 ...
cs: read_cis_mem(1, 0x7, 4)
cs: 0x20 0x00 0x00 0x00 ...
cs: read_cis_mem(1, 0xb, 2)
cs: 0xff 0x00 0x2c 0xd9 ...
cs: read_cis_mem(0, 0x20, 5)
cs: 0x13 0x13 0x43 0x43 ...
cs: CardServices(GetFirstTuple, 0xc72ad000, 0xc26eda8c)
cs: CardServices(GetFirstTuple, 0xc72ad000, 0xc26eda8c)
cs: CardServices(GetStatus, 0xc72ad000, 0xc26edcf8)
cs: CardServices(GetFirstRegion, 0xc72ad000, 0xc26edcf8)
cs: setup_regions(0xc72ad000, 0, 0xc734b134)
cs: CardServices(GetFirstTuple, 0xc72ad000, 0xc26edb3c)
cs: CardServices(GetTupleData, 0xc72ad000, 0xc26edb3c)
cs: read_cis_mem(1, 0x2, 3)
cs: 0xdb 0x0a 0xff 0x00 ...
cs: CardServices(ParseTuple, 0xc72ad000, 0xc26edb3c)
cs: CardServices(GetFirstTuple, 0xc72ad000, 0xc26edb3c)
cs: CardServices(GetFirstTuple, 0xc72ad000, 0xc26edb3c)
cs: setup_regions(0xc72ad000, 1, 0xc734b138)
cs: CardServices(GetFirstTuple, 0xc72ad000, 0xc26edb2c)
sram_mtd.c 1.48 2000/05/16 21:31:37 (David Hinds)
cs: CardServices(GetCardServicesInfo, 0xc38b1f28, 0xc38b1f64)
ds: register_pccard_driver('sram_mtd')
cs: CardServices(BindMTD, 0xc26edc9c, 0xc26edcac)
cs: bind_mtd(): attr 0x0, offset 0x0, dev sram_mtd
cs: CardServices(GetNextRegion, 0xc72ad000, 0xc26edcf8)
cs: CardServices(GetFirstRegion, 0xc72ad000, 0xc26edcf8)
cs: CardServices(BindDevice, 0xc26edca4, 0xc26edcac)
cs: bind_device(): client 0xc7fbcda0, sock 1, dev sram_mtd
sram_attach()
cs: CardServices(RegisterClient, 0xc6bb7a24, 0xc26edc4c)
cs: CardServices(GetFirstTuple, 0xc7fbcda0, 0xc26edb3c)
cs: register_client(): client 0xc7fbcda0, sock 1, dev sram_mtd
sram_config(0xc6bb7a00)
cs: CardServices(RequestWindow, 0xc6bb7a78, 0xc26edb1c)
cs: CardServices(GetFirstRegion, 0xc7fbcda0, 0xc26edaf0)
cs: CardServices(RegisterMTD, 0xc7fbcda0, 0xc26edb10)
cs: register_mtd(0xc7fbcda0, 'sram_mtd', 0x0)
sram_mtd: common at 0x0, 16 kb, 150 ns
cs: CardServices(GetNextRegion, 0xc26edaf0, 0xc26edb2c)
cs: CardServices(GetFirstRegion, 0xc7fbcda0, 0xc26edaf0)
memory_cs.c 1.71 2000/06/09 22:15:05 (David Hinds)
cs: CardServices(GetCardServicesInfo, 0xc38b1f18, 0xc02588c8)
ds: register_pccard_driver('memory_cs')
cs: CardServices(BindDevice, 0xc26edca4, 0xc26edcac)
cs: bind_device(): client 0xc7fbcc80, sock 1, dev memory_cs
memory_attach()

After this I used the command dd -if=/dev/mem0c -of=cis -bs=256 -count=1
and got the next data:

0x00000000 0100 0300 db00 0a00 ff00 1200 0400 2000
0x00000010 0000 0000 0000 ff00 0000 0000 0000 0000
0x00000020 1303 4349 5315 6004 014d 6f72 7461 7261
0x00000030 2049 6e73 7472 756d 656e 7400 5465 6c65
0x00000040 6d65 7472 7920 5072 6f63 6573 736f 7200
0x00000050 436f 7079 7269 6768 742c 204d 6f72 7461
0x00000060 7261 2049 6e73 7472 756d 656e 742c 2049
0x00000070 6e63 2031 3939 3900 4857 312e 3030 0053
0x00000080 5731 2e31 3000 ff20 04e9 0101 0021 0202
0x00000090 001a 0501 0100 2001 1b08 c101 3030 b8de
0x000000a0 4000 1400 ff30 0000 0000 0000 0000 0000
0x000000b0 0000 0000 0000 0000 0000 0000 0000 0000
0x000000c0 0000 0000 0000 0000 0000 0000 0000 0000
0x000000d0 0000 0000 0000 0000 0000 0000 0000 0000
0x000000e0 0000 0000 0000 0000 0000 0000 0000 0000
0x000000f0 0000 0000 0000 0000 0000 0000 0000 0000

As you can see, at position 0x00000020 the data is 13 03 43 49 53 and the logs say it is 13 13 43 43 53.

Any idea?

Next-in-Thread Next Message

Messages Inline: 1 All Outline: 1 2 All

1. Feedback No hardware problem by Dani Castro, 2000, Jul 07

Add Message to: "More info about the problem"

Members Subscribe Admin Mode Show Frames Help for HyperNews at pcmcia-cs.sourceforge.net 1.10