LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* 2.4.17-pre8-ben0: kernel oops using pcmcia services
@ 2001-12-14 15:59 Ralf Weidemann
  2001-12-14 16:26 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Ralf Weidemann @ 2001-12-14 15:59 UTC (permalink / raw)
  To: linuxppc-dev


I get the below kernel oops after I put my cisco aironet pcmcia card into
the external slot on my tibook. Kernel bug or wrong setup ? While loading
the airo_cs module per hand I get no oops.

Ralf

[root@tibook /root]# cat /etc/sysconfig/pcmcia
PCMCIA=yes
PCIC=yenta_socket
PCIC_OPTS=cardbus
CORE_OPTS=
CARDMGR_OPTS=-f

[root@tibook /root]# cat /etc/init.d/pcmcia start

[root@tibook /root]# lsmod
Module                  Size  Used by
ds                      8720   1
yenta_socket           11088   1
pcmcia_core            43120   0  [ds yenta_socket]
airport                 3840   1
orinoco                36000   0  [airport]
hermes                  6288   0  [airport orinoco]
dmasound_pmac          43136   0
i2c-core               14736   0  [dmasound_pmac]
dmasound_core          13616   0  [dmasound_pmac]
soundcore               4736   3  [dmasound_core]

[root@tibook /root]# ps x | grep cardm
   717 ?        S      0:00 /sbin/cardmgr -f
   726 pts/0    S      0:00 grep cardm


dmesg output after I put in the card:

Linux Kernel Card Services 3.1.22
   options:  [pci] [cardbus] [pm]
Yenta IRQ list 0000, PCI irq58
Socket status: 30000006
cs: memory probe 0x0c0000-0x0fffff:__ioremap(): phys addr c0000 is RAM lr c000f754
Oops: kernel access of bad area, sig: 11
NIP: E182C238 XER: 20000000 LR: E182C214 SP: C6321660 REGS: c63215b0 TRAP: 0300    Not tainted
MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
DAR: 00000000, DSISR: 40000000
TASK = c6320000[717] 'cardmgr' Last syscall: 54
last math c6bc6000 last altivec 00000000
GPR00: 00001000 C6321660 C6320000 00000000 E183C815 00000000 00000002 C63216CA
GPR08: 00000000 00000000 08100000 00001000 24004024 1002207C 00000000 00000000
GPR16: 00000000 00000000 00000000 E182C468 00000000 00000000 E182C654 C6A77800
GPR24: 00040000 C63216CA 00000002 C6A77844 C63216CA 00000002 C6A77800 00000000
Call backtrace:
E182C214 E182C924 E182CE84 E182CC40 E182E870 E182C4B4 E182EE84
E182F01C E182C708 E182C100 E182C924 E182CE84 E182CC40 E182E870
E183F438 C004888C C000407C 0000000E 10001D3C 100032F4 10004A14
0FEE4238 00000000




[root@tibook /root]# modprobe airo_cs
[root@tibook /root]# lsmod
Module                  Size  Used by
airo_cs                 4192   0  (unused)
airo                   39264   0  [airo_cs]
ds                      8720   1  [airo_cs]
yenta_socket           11088   1
pcmcia_core            43120   0  [airo_cs ds yenta_socket]
airport                 3840   1
orinoco                36000   0  [airport]
hermes                  6288   0  [airport orinoco]
dmasound_pmac          43136   0
i2c-core               14736   0  [dmasound_pmac]
dmasound_core          13616   0  [dmasound_pmac]
soundcore               4736   3  [dmasound_core]


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: 2.4.17-pre8-ben0: kernel oops using pcmcia services
  2001-12-14 15:59 2.4.17-pre8-ben0: kernel oops using pcmcia services Ralf Weidemann
@ 2001-12-14 16:26 ` Benjamin Herrenschmidt
  2001-12-14 16:32   ` Ralf Weidemann
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2001-12-14 16:26 UTC (permalink / raw)
  To: Ralf Weidemann, linuxppc-dev


>I get the below kernel oops after I put my cisco aironet pcmcia card into
>the external slot on my tibook. Kernel bug or wrong setup ? While loading
>the airo_cs module per hand I get no oops.

Looks like it tried to ioremap an ISA memory address, bad bad bad...

Either your memory options in config.opts is wrong or that driver
has a bug.

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: 2.4.17-pre8-ben0: kernel oops using pcmcia services
  2001-12-14 16:26 ` Benjamin Herrenschmidt
@ 2001-12-14 16:32   ` Ralf Weidemann
  2001-12-14 16:39     ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Ralf Weidemann @ 2001-12-14 16:32 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev


Benjamin Herrenschmidt wrote:

>>I get the below kernel oops after I put my cisco aironet pcmcia card into
>>the external slot on my tibook. Kernel bug or wrong setup ? While loading
>>the airo_cs module per hand I get no oops.
>>
>
> Looks like it tried to ioremap an ISA memory address, bad bad bad...
>
> Either your memory options in config.opts is wrong or that driver
> has a bug.


Hmm.. don't know. Here is my config.opts, maybe you could take a look
on it ?

Thanks
Ralf


[root@tibook /root]# cat /etc/pcmcia/config.opts
#
# Local PCMCIA Configuration File
#
#----------------------------------------------------------------------

# System resources available for PCMCIA devices

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"


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: 2.4.17-pre8-ben0: kernel oops using pcmcia services
  2001-12-14 16:32   ` Ralf Weidemann
@ 2001-12-14 16:39     ` Benjamin Herrenschmidt
  2001-12-14 17:34       ` Ralf Weidemann
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2001-12-14 16:39 UTC (permalink / raw)
  To: Ralf Weidemann, linuxppc-dev


First make sure the memory resources you use are available
in /proc/iomem

>include port 0x100-0x4ff, port 0x800-0x8ff, port 0xc00-0xcff

Those should be ok

>include memory 0xc0000-0xfffff

This one is wrong (this is in the middle of RAM !)

>include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff

Hrm...  the second one is wrong at least.

try

include memory 0xa1000000-0xa1ffffff, I think this one is available
on your machine.

>
># First built-in serial port
>exclude irq 4
># Second built-in serial port
>#exclude irq 3
># First built-in parallel port
>exclude irq 7

Remove the above exclude, they don't make sense on pmacs

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: 2.4.17-pre8-ben0: kernel oops using pcmcia services
  2001-12-14 16:39     ` Benjamin Herrenschmidt
@ 2001-12-14 17:34       ` Ralf Weidemann
  0 siblings, 0 replies; 5+ messages in thread
From: Ralf Weidemann @ 2001-12-14 17:34 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev


It works ! Thanks Ben !! ;)

Ralf

Benjamin Herrenschmidt wrote:

> First make sure the memory resources you use are available
> in /proc/iomem
>
>
>>include port 0x100-0x4ff, port 0x800-0x8ff, port 0xc00-0xcff
>>
>
> Those should be ok
>
>
>>include memory 0xc0000-0xfffff
>>
>
> This one is wrong (this is in the middle of RAM !)
>
>
>>include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff
>>
>
> Hrm...  the second one is wrong at least.
>
> try
>
> include memory 0xa1000000-0xa1ffffff, I think this one is available
> on your machine.
>
>
>># First built-in serial port
>>exclude irq 4
>># Second built-in serial port
>>#exclude irq 3
>># First built-in parallel port
>>exclude irq 7
>>
>
> Remove the above exclude, they don't make sense on pmacs
>
> Ben.
>
>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2001-12-14 17:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-14 15:59 2.4.17-pre8-ben0: kernel oops using pcmcia services Ralf Weidemann
2001-12-14 16:26 ` Benjamin Herrenschmidt
2001-12-14 16:32   ` Ralf Weidemann
2001-12-14 16:39     ` Benjamin Herrenschmidt
2001-12-14 17:34       ` Ralf Weidemann

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