* Re: Again PCMCIA problems
[not found] <20011212140119.A12086@gehtnix.fernuni-hagen.de>
@ 2001-12-12 14:44 ` Benjamin Herrenschmidt
2001-12-17 18:16 ` Uwe Steinmann
0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2001-12-12 14:44 UTC (permalink / raw)
To: Uwe Steinmann, linuxppc-dev
>
>include memory 0x90000000-0x90ffffff
>include port 0x0fff-0x1fff
Some cards wants ports below 0xfff, and make sure the
memory range you provide is actually available
(do a cat /proc/iomem to check that). If the memory
is allocated to cardbus (which happens on some machines
which pre-configure the cardbus bridge from OF), it will
not be userable by pcmcia
I'd also suggest you update your kernel as some pcmcia
fixes were lost around 2.4.16 and recovered later during
2.4.17-pre cycle, yours may still lack them.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Again PCMCIA problems
2001-12-12 14:44 ` Again PCMCIA problems Benjamin Herrenschmidt
@ 2001-12-17 18:16 ` Uwe Steinmann
2001-12-18 5:00 ` Paul Mackerras
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Steinmann @ 2001-12-17 18:16 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: Uwe Steinmann, linuxppc-dev
On Wed, Dec 12, 2001 at 03:44:14PM +0100, Benjamin Herrenschmidt wrote:
> >
> >include memory 0x90000000-0x90ffffff
> >include port 0x0fff-0x1fff
>
> Some cards wants ports below 0xfff, and make sure the
> memory range you provide is actually available
> (do a cat /proc/iomem to check that). If the memory
> is allocated to cardbus (which happens on some machines
> which pre-configure the cardbus bridge from OF), it will
> not be userable by pcmcia
>
> I'd also suggest you update your kernel as some pcmcia
> fixes were lost around 2.4.16 and recovered later during
> 2.4.17-pre cycle, yours may still lack them.
>
> Ben.
Thanks for the help so far, I got finally a bit further, and it looks
very promissing but ran into another problem. For some reason the request for
irg 58 failled.
Dec 17 16:46:50 pb cardmgr[10624]: re-loading config file
Dec 17 16:46:52 pb cardmgr[10624]: initializing socket 0
Dec 17 16:46:52 pb cardmgr[10624]: socket 0: AVM ISDN-Controller A1
Dec 17 16:46:53 pb cardmgr[10624]: executing: 'modprobe isdn'
Dec 17 16:46:53 pb cardmgr[10624]: executing: 'modprobe hisax id=hisax1 type=26 protocol=2'
Dec 17 16:46:53 pb kernel: avma1_cs: testing i/o 0x140-0x149
Dec 17 16:46:53 pb kernel: avma1_cs: checking at i/o 0x140, irq 58
Dec 17 16:46:53 pb kernel: HiSax: Card 1 Protocol EDSS1 Id=HiSax (0)
Dec 17 16:46:53 pb kernel: HiSax: AVM A1 PCMCIA driver Rev. 1.1.4.1
Dec 17 16:46:53 pb kernel: AVM A1 PCMCIA: io 0x140 irq 58 model 1 version 2
Dec 17 16:46:53 pb kernel: AVM A1 PCMCIA: ISAC version (0): 2086/2186 V1.1
Dec 17 16:46:53 pb kernel: AVM A1 PCMCIA: HSCX version A: V2.1 B: V2.1
Dec 17 16:46:53 pb kernel: AVM A1 (PCMCIA): IRQ 58 count 0
Dec 17 16:46:53 pb kernel: HiSax: couldn't get interrupt 58
Dec 17 16:46:53 pb kernel: HiSax: Card AVM A1 (PCMCIA) not installed !
Dec 17 16:46:53 pb kernel: HiSax: module installed
>From my previos experiences with pcmcia I would guess the irg 58 isn't
too bad, somehow it isn't quite right in this case.
My config.opts looks like the following:
include port 0x100-0x4ff, port 0x1000-0x17ff
include memory 0x80080000-0x8008ffff
There is not statement in my configuration which forces the use of irq 58.
There has been another problem, probably not related to the one above.
In order to make the AVM A1 PCMCIA card work as much as it works now,
it needs a patch for
pcmcia-cs which includes a kernel module called avma1_cs.c. This
module uses the function kfree_s() which seems to be not available
in kernel 2.4.17-rc1-benh. I wonder if kfree is a replacement for it, although
it misses the second parameter of kfree_s()?
Uwe
--
MMK GmbH, Hagen
Uwe.Steinmann@mmk-hagen.de
Tel: +2331 987 4528 Fax: +2331 987 375
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Again PCMCIA problems
2001-12-17 18:16 ` Uwe Steinmann
@ 2001-12-18 5:00 ` Paul Mackerras
2001-12-18 9:24 ` Uwe Steinmann
0 siblings, 1 reply; 4+ messages in thread
From: Paul Mackerras @ 2001-12-18 5:00 UTC (permalink / raw)
To: Uwe Steinmann; +Cc: linuxppc-dev
Uwe Steinmann writes:
> Thanks for the help so far, I got finally a bit further, and it looks
> very promissing but ran into another problem. For some reason the request for
> irg 58 failled.
>
> Dec 17 16:46:50 pb cardmgr[10624]: re-loading config file
> Dec 17 16:46:52 pb cardmgr[10624]: initializing socket 0
> Dec 17 16:46:52 pb cardmgr[10624]: socket 0: AVM ISDN-Controller A1
> Dec 17 16:46:53 pb cardmgr[10624]: executing: 'modprobe isdn'
> Dec 17 16:46:53 pb cardmgr[10624]: executing: 'modprobe hisax id=hisax1 type=26 protocol=2'
> Dec 17 16:46:53 pb kernel: avma1_cs: testing i/o 0x140-0x149
> Dec 17 16:46:53 pb kernel: avma1_cs: checking at i/o 0x140, irq 58
> Dec 17 16:46:53 pb kernel: HiSax: Card 1 Protocol EDSS1 Id=HiSax (0)
> Dec 17 16:46:53 pb kernel: HiSax: AVM A1 PCMCIA driver Rev. 1.1.4.1
> Dec 17 16:46:53 pb kernel: AVM A1 PCMCIA: io 0x140 irq 58 model 1 version 2
> Dec 17 16:46:53 pb kernel: AVM A1 PCMCIA: ISAC version (0): 2086/2186 V1.1
> Dec 17 16:46:53 pb kernel: AVM A1 PCMCIA: HSCX version A: V2.1 B: V2.1
> Dec 17 16:46:53 pb kernel: AVM A1 (PCMCIA): IRQ 58 count 0
> Dec 17 16:46:53 pb kernel: HiSax: couldn't get interrupt 58
On powerbooks, the card functional interrupt is shared with the card
controller interrupt. That is, your HiSax card will use the same
interrupt for its operations as the TI cardbus controller. Thus, if
the HiSax driver doesn't include SA_SHIRQ in the flags value to the
request_irq call, the request_irq will fail. I would say that is what
you are seeing.
In other words, drivers for cardbus and pcmcia cards will fail on
powerbooks if they are not willing to share their interrupt line.
fail.
Paul.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Again PCMCIA problems
2001-12-18 5:00 ` Paul Mackerras
@ 2001-12-18 9:24 ` Uwe Steinmann
0 siblings, 0 replies; 4+ messages in thread
From: Uwe Steinmann @ 2001-12-18 9:24 UTC (permalink / raw)
To: Paul Mackerras; +Cc: Uwe Steinmann, linuxppc-dev
On Tue, Dec 18, 2001 at 04:00:08PM +1100, Paul Mackerras wrote:
> Uwe Steinmann writes:
>
> > Thanks for the help so far, I got finally a bit further, and it looks
> > very promissing but ran into another problem. For some reason the request for
> > irg 58 failled.
> >
> > Dec 17 16:46:50 pb cardmgr[10624]: re-loading config file
> > Dec 17 16:46:52 pb cardmgr[10624]: initializing socket 0
> > Dec 17 16:46:52 pb cardmgr[10624]: socket 0: AVM ISDN-Controller A1
> > Dec 17 16:46:53 pb cardmgr[10624]: executing: 'modprobe isdn'
> > Dec 17 16:46:53 pb cardmgr[10624]: executing: 'modprobe hisax id=hisax1 type=26 protocol=2'
> > Dec 17 16:46:53 pb kernel: avma1_cs: testing i/o 0x140-0x149
> > Dec 17 16:46:53 pb kernel: avma1_cs: checking at i/o 0x140, irq 58
> > Dec 17 16:46:53 pb kernel: HiSax: Card 1 Protocol EDSS1 Id=HiSax (0)
> > Dec 17 16:46:53 pb kernel: HiSax: AVM A1 PCMCIA driver Rev. 1.1.4.1
> > Dec 17 16:46:53 pb kernel: AVM A1 PCMCIA: io 0x140 irq 58 model 1 version 2
> > Dec 17 16:46:53 pb kernel: AVM A1 PCMCIA: ISAC version (0): 2086/2186 V1.1
> > Dec 17 16:46:53 pb kernel: AVM A1 PCMCIA: HSCX version A: V2.1 B: V2.1
> > Dec 17 16:46:53 pb kernel: AVM A1 (PCMCIA): IRQ 58 count 0
> > Dec 17 16:46:53 pb kernel: HiSax: couldn't get interrupt 58
>
> On powerbooks, the card functional interrupt is shared with the card
> controller interrupt. That is, your HiSax card will use the same
> interrupt for its operations as the TI cardbus controller. Thus, if
> the HiSax driver doesn't include SA_SHIRQ in the flags value to the
> request_irq call, the request_irq will fail. I would say that is what
> you are seeing.
You were quite right. There is a define in hisax.h where I4L_IRQ_FLAGS is
set to 0. If I change this to SA_SHIRQ it works! At least the card can be
configured. I'll check if I can get an internet connection over ISDN as
soon as I'm back home.
I'll send a note to the maintainer of the hisax driver.
Thanks for the help.
Uwe
--
MMK GmbH, Hagen
Uwe.Steinmann@mmk-hagen.de
Tel: +2331 987 4528 Fax: +2331 987 375
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-12-18 9:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20011212140119.A12086@gehtnix.fernuni-hagen.de>
2001-12-12 14:44 ` Again PCMCIA problems Benjamin Herrenschmidt
2001-12-17 18:16 ` Uwe Steinmann
2001-12-18 5:00 ` Paul Mackerras
2001-12-18 9:24 ` Uwe Steinmann
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).