mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2GB laptop has pcmcia_cs looking for _insane_ sockets
@ 2003-08-14 15:37 Lincoln Durey
  2003-08-14 16:06 ` Linus Torvalds
  0 siblings, 1 reply; 2+ messages in thread
From: Lincoln Durey @ 2003-08-14 15:37 UTC (permalink / raw)
  To: LKML; +Cc: EmperorLinux Research


There can't be that many laptops with 2GB RAM, but surely this report
indicates an error somewhere in the pcmcia_cs code (it is looking for
socket number e9b91000 !!)  This bug is a feature of having 2GB ram in
the system and has nothing to do with specific PC cards drop back to 1GB
and all is well (linux 2.4.[19,20,21] and pcmcia_cs 3.2.[3,4]..):

	booting with 2GB ram:

kernel: Linux Kernel Card Services 3.1.22
kernel:   options:  [pci] [cardbus] [pm]
kernel: Yenta IRQ list 0000, PCI irq9
kernel: Socket status: 080c2420
kernel: Yenta IRQ list 0000, PCI irq11
kernel: Socket status: 000dd9e2
kernel: cs: socket e9b91000 timed out during reset.

at a guess, I might say "socket->cap.irq_mask" is wrong, and
I've never seen those Socket status numbers either.
is socket_info_t getting filled incorrectly when there is 2GB ram? 

	The "socket" number varies wildly from boot to boot:

kernel: cs: socket f68d0000 timed out during reset.  Try increasing
setup_delay.
kernel: cs: socket f626c800 timed out during reset.  Try increasing
setup_delay.

	revert that laptop to 1GB ram, and you get a happy PCMCIA slot:

kernel: Linux Kernel Card Services 3.1.22
kernel:   options:  [pci] [cardbus] [pm]
kernel: Yenta IRQ list 04f8, PCI irq9
kernel: Socket status: 30000006
kernel: Yenta IRQ list 04f8, PCI irq11
kernel: Socket status: 30000006

cardmgr[1374]: watching 2 sockets
cardmgr[1375]: starting, version is 3.2.4
cardmgr[1375]: socket 1: 3Com 589 Ethernet
cardmgr[1375]: socket 0: Serial or Modem

lspci: IBM T40
02:00.0 CardBus bridge: Texas Instruments PCI1250 PC card Cardbus
Controller (rev 01)
02:00.1 CardBus bridge: Texas Instruments PCI1250 PC card Cardbus
Controller (rev 01) 

	Full logs are available: http://www.emperorlinux.com/research/lkml/


 -- Lincoln @ EmperorLinux     http://www.EmperorLinux.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2GB laptop has pcmcia_cs looking for _insane_ sockets
  2003-08-14 15:37 2GB laptop has pcmcia_cs looking for _insane_ sockets Lincoln Durey
@ 2003-08-14 16:06 ` Linus Torvalds
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Torvalds @ 2003-08-14 16:06 UTC (permalink / raw)
  To: Lincoln Durey; +Cc: LKML, EmperorLinux Research


On 14 Aug 2003, Lincoln Durey wrote:
> 
> There can't be that many laptops with 2GB RAM, but surely this report
> indicates an error somewhere in the pcmcia_cs code (it is looking for
> socket number e9b91000 !!)

The socket number is just a random allocation (but useful to keep two 
different sockets separated - think of it as just a unique ID). That value 
actually looks reasonable, it's in the kernel virtual address space.

However, the fact that it doesn't work clearly means that _something_ is 
wrong, and the memory size part is interesting:

>			  This bug is a feature of having 2GB ram in
> the system and has nothing to do with specific PC cards drop back to 1GB
> and all is well

It's almost certainly the Yenta PCI resource that got allocated in the 
wrong area, and instead of pointing to PCI memory-mapped space it just 
points to RAM. 

Can you show the results of "cat /proc/iomem" and "lspci -vvxxx", and also
try this with a 2.6.0-test3 kernel just to see if the resource handling is
fixed?

			Linus


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-14 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-14 15:37 2GB laptop has pcmcia_cs looking for _insane_ sockets Lincoln Durey
2003-08-14 16:06 ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®