linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.4.2 yenta_socket problems on ThinkPad 240
@ 2001-06-07  0:09 Eric Smith
  0 siblings, 0 replies; 14+ messages in thread
From: Eric Smith @ 2001-06-07  0:09 UTC (permalink / raw)
  To: linux-kernel

I upgraded my IBM ThinkPad 240 (Type 2609-31U) from Red Hat 7.0 to
Red Hat 7.1, which uses the 2.4.2 kernel and the kernel PCMCIA drivers.

Before the upgrade, all my CardBus and PCMCIA devices were working fine.
Now the yenta_socket module seems to be causing problems, and none of
the cards work.

Before doing 'modprobe yenta_socket', the PCI stuff looks OK:

    % ls -l /proc/bus/pci
    total 0
    dr-xr-xr-x    2 root    root            0 Jun  1 12:52 00
    -r--r--r--    1 root    root            0 Jun  1 12:52 devices

    % ls /proc/bus/pci/00
    00.0  07.0  07.1  07.2  07.3  09.0  0a.0  0b.0  0c.0

and lspci -vvv gives normal-looking output (which I can send if it's
useful).

After the 'modprobe yenta_socket':

    % ls -l /proc/bus/pci
    total 0
    dr-xr-xr-x    2 root    root            0 Jun  1 12:44 00
    dr-xr-xr-x    2 root    root            0 Jun  1 12:44 00
    -r--r--r--    1 root    root            0 Jun  1 12:44 devices

Note the two directories with the same name.

    % ls -l /proc/bus/pci/00
    total 0
    -rw-r--r--    1 root    root            0 Jun  1 12:48 00.0

    % lspci -vvv
    pcilib: Cannot open /proc/bus/pci/00/0c.0

Has anyone seen similar behavior?  Is there any way to force
yenta_socket to assign the cardbus to be bus 01 rather than 00?

Thanks!
Eric Smith

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: 2.4.2 yenta_socket problems on ThinkPad 240
@ 2001-06-15 23:14 Eric Smith
  2001-06-15 23:25 ` Jeff Garzik
  0 siblings, 1 reply; 14+ messages in thread
From: Eric Smith @ 2001-06-15 23:14 UTC (permalink / raw)
  To: linux-kernel

On 6-Jun-2001, I reported:
> I upgraded my IBM ThinkPad 240 (Type 2609-31U) from Red Hat 7.0 to
> Red Hat 7.1, which uses the 2.4.2 kernel and the kernel PCMCIA drivers.
> Before the upgrade, all my CardBus and PCMCIA devices were working fine.
> Now the yenta_socket module seems to be causing problems, and none of
> the cards work.

Arjan van de Ven of Red Hat tracked my problem down to a broken BIOS,
which is not configuring the TI PC1211 CardBus bridge correctly.  Even
IBM's latest BIOS for the ThinkPad 240, IRET75WW released 17-May-2001,
has this problem.  Apparently IBM has issued fixes for other ThinkPads
because the problem occurs with Windows 2000, but since Windows 2000 is
not supported on the ThinkPad 240, it is unlikely that they will fix it.

A one line change to linux/include/asm-i386/pci.h fixes it:

-#define pcibios_assign_all_busses()	0
+#define pcibios_assign_all_busses()	1

Given that this macro exists, I surmise that other people have been
bitten by similar problems.  So now my question is:

Does it make sense to turn pcibios_assign_all_busses into a variable
with a default value of zero, and implement a kernel argument to set it?
That way people with broken BIOSes could solve it by simply adding the
argument in their lilo.conf.  In an ideal world the BIOSes would get
fixed and such a workaround would be unnecessary, but in my experience
trying to get a vendor to fix a BIOS problem is an exercise in futility.

If no one is opposed to my proposed change, I'll be happy to generate a
suitable patch and send it in.

Thanks!
Eric Smith

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

end of thread, other threads:[~2001-06-22 23:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-07  0:09 2.4.2 yenta_socket problems on ThinkPad 240 Eric Smith
2001-06-15 23:14 Eric Smith
2001-06-15 23:25 ` Jeff Garzik
2001-06-16 13:25   ` Alan Cox
2001-06-16 17:55     ` Jeff Garzik
2001-06-16 18:02       ` Alan Cox
2001-06-16 18:15         ` Linus Torvalds
2001-06-22 23:14           ` Eric Smith
2001-06-22 23:27             ` Jeff Garzik
2001-06-16 18:16       ` Linus Torvalds
2001-06-17  4:03     ` Albert D. Cahalan
2001-06-16 18:10   ` Linus Torvalds
2001-06-16 18:23     ` Alan Cox
2001-06-16 19:22       ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).