Toshiba ToPIC developer info
Daniel Ritz
daniel.ritz at gmx.ch
Sun Jun 26 11:43:31 EDT 2005
On Sunday 26 June 2005 07.48, Ryan Underwood wrote:
>
> > attached a patch that makes the ToPIC95 work for both 16bit and cardbus
> > cards. tested on my old tecra530cdt. my topic97 rev5 does not require this.
> > akpm: -mm please
>
> This patch works. The only ToPIC related problems I see are following:
>
> cardctl status:
> 5V 16-bit PC Card
> function 0: [ready], [bat dead], [bat low]
> function 1: [busy], [bat dead], [bat low], [req attn]
mine works fine here with a xircom ce2/3 and a ne2000
>
> None of these flags make any sense because this isn't a SRAM card (its a
> combo modem/ethernet card)
>
> Also, the 16-bit card doesn't generate a hotplug event (32-bit does), so
> cardmgr is still required, but maybe that's offtopic for this list. A
> problem related to this is if cardmgr is not running and a 16-bit card
> is inserted, the following is printed:
>
> cs: unable to map card memory!
> cs: unable to map card memory!
>
> and the system seems to be swamped with interrupts (or something
> polling/busy-waiting?) so it is almost unresponsive, until cardmgr is
> started again and the 16-bit card's driver(s) are loaded once cardmgr
> sees it.
>
may be a problem with the assigned resources in config.opts. mine attached
> I still think that it would be a better idea to use this method on all
> ToPIC chips, or at least ToPIC97 in addition, since there may be a
> corner case laying around. Since this method should work on all Toshiba
> chips, using it when it is not required would be better than not using
> it when it is required.
>
i disagree. i haven't seen a single report with problems on topic97.
show me one and i change my mind. for revisions < 5.
also i'm not using 2.6.12 but the git tree from yesterday. this has
http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.12/2.6.12-mm1/broken-out/yenta-ti-turn-off-interrupts-during-card-power-on-more-2.patch
already applied. one of the effects is that it helps if the socket is
in a bad state after boot. please test with that one and see if those
[busy], [bat dead], [bat low], [req attn]
go away.
for the interrupt storm your seeing: i cannot reproduce them. i tried
both cards using ISA and using the PCI interrupt. stable here.
also a full dmesg and a hexdump of /proc/bus/pci/xx/yy.z
of the cardbus bridge please. my bios may have done a bit
more than yours so a bit of more init code could be needed.
rgds
-daniel
-------------- next part --------------
#
# Local PCMCIA Configuration File
#
#----------------------------------------------------------------------
#
# System resources available for PCMCIA cards
#
# NOTE: these settings have no effect on resources assigned to a
# CardBus bridge device itself; this file only affects resources
# assigned to cards. Also, interrupt settings here will only affect
# ISA bus interrupts assigned to 16-bit cards. PCI interrupts
# generally can't be reconfigured.
#
# With the kernel PCMCIA subsystem, these settings also have no effect
# at all on resources used for 32-bit CardBus cards. Those are set by
# the PCI hotplug subsystem.
#
include port 0x100-0x4ff, port 0x800-0x8ff, port 0xc00-0xcff
include memory 0xc0000-0xfffff
include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff
# High port numbers do not always work...
# include port 0x1000-0x17ff
# Extra port range for IBM Token Ring
include port 0xa00-0xaff
# Resources we should not use, even if they appear to be available
# First built-in serial port
exclude irq 4
# Second built-in serial port
exclude irq 3
# First built-in parallel port
exclude irq 7
#----------------------------------------------------------------------
# Examples of options for loadable modules
# To fix sluggish network with IBM ethernet adapter...
#module "pcnet_cs" opts "mem_speed=600"
# Options for IBM Token Ring adapters
#module "ibmtr_cs" opts "mmiobase=0xd0000 srambase=0xd4000"
# Options for Raylink/WebGear driver: uncomment only one line...
# Generic ad-hoc network
module "ray_cs" opts "essid=ADHOC_ESSID hop_dwell=128 beacon_period=256 translate=1"
# Infrastructure network for older cards
#module "ray_cs" opts "net_type=1 essid=ESSID1"
# Infrastructure network for WebGear
#module "ray_cs" opts "net_type=1 essid=ESSID1 translate=1 hop_dwell=128 beacon_period=256"
# Options for WaveLAN/IEEE driver (AccessPoint mode)...
#module "wvlan_cs" opts "station_name=MY_PC"
# Options for WaveLAN/IEEE driver (ad-hoc mode)...
#module "wvlan_cs" opts "port_type=3 channel=1 station_name=MY_PC"
# Options for Xircom Netwave driver...
#module "netwave_cs" opts "domain=0x100 scramble_key=0x0"
More information about the linux-pcmcia
mailing list