2001-12-18 21:16:16

by Petr Kulhavy

[permalink] [raw]
Subject: Problems with GUS PnP: ad1848, pnp

Hello.

When I'm loading modules for my GUS PnP card, I get "No PnP cards found! Trying
standard ones..." message from the ad1848 module. Can you tell me if this is
an error or correct behaviour?

Do I have to give the ad1848 module some parameters? It has io, irq, dma and
dma2 parameters.

I also don't know which pnp driver/tool use to initialize the card. When I use
isapnp tools (and set io=0x220 irq=11,12 dma=5,7) and then read /proc/isapnp, I
get really WEIRD output. I'm using lates 1.26 version of isapnp tools.

Card 1 'GRV0001:Advanced Gravis InterWave Audio' PnP version 1.0 Product version 1.0
Logical device 0 'GRV0000:Synth & Codec'
Supported registers 0x2
Device is active
Active port 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff
Active IRQ 255 [0xff],255 [0xff]
Active DMA 255,255
Active memory 0xffffffff,0xffffffff,0xffffffff,0xffffffff

When I set the values using cat > /proc/isapnp (as described in
Documentation/isapnp.txt) and then cat /proc/isapnp, the values are correct.
That means one of (or both ;-) ) either isa-pnp module or isapnp tools ISN'T
ABLE to setup the PnP card. Can you tell me which one is the bad working?

Thanx

Brain

--------------------------------
Petr `Brain' Kulhavy
<[email protected]>
http://artax.karlin.mff.cuni.cz/~brain
Faculty of Mathematics and Physics, Charles University Prague, Czech Republic

---
Putt's Law:
Technology is dominated by two types of people:
Those who understand what they do not manage.
Those who manage what they do not understand.


2001-12-19 10:25:55

by Petr Kulhavy

[permalink] [raw]
Subject: Re: Problems with GUS PnP: ad1848, pnp

On Thu, 20 Dec 2001, Andrey Panin wrote:

> First, don't mix isapnptools and kernel level ISAPNP support.

Why? Both should set card parameters, shouldn't they? And when one sets
parameters, the second should be able to read them (and read the same
values).

> Second, send a copy of /proc/isapnp to lkml, may be we can add isapnp
> support for your card.

OK. But how do I learn if my card is supported or not?

Brain

--------------------------------
Petr `Brain' Kulhavy
<[email protected]>
http://artax.karlin.mff.cuni.cz/~brain
Faculty of Mathematics and Physics, Charles University Prague, Czech Republic

---
Never eat anything bigger than your head.

2001-12-19 14:54:42

by Andrey Panin

[permalink] [raw]
Subject: Re: Problems with GUS PnP: ad1848, pnp

On Wed, Dec 19, 2001 at 11:25:22AM +0100, Petr Kulhavy wrote:
> On Thu, 20 Dec 2001, Andrey Panin wrote:
>
> > First, don't mix isapnptools and kernel level ISAPNP support.
>
> Why? Both should set card parameters, shouldn't they? And when one sets
> parameters, the second should be able to read them (and read the same
> values).

They both touch hardware at the same time and ISA PnP handling isn't simple.

>
> > Second, send a copy of /proc/isapnp to lkml, may be we can add isapnp
> > support for your card.
>
> OK. But how do I learn if my card is supported or not?

IIRC, Gravis Ultrasound PnP listed as supported in Hardware Compatibility
HOWTO, but it can lack ISA PnP configuration support. So send us a copy
of /proc/isapnp anyway :))

--
Andrey Panin | Embedded systems software engineer
[email protected] | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc


Attachments:
(No filename) (232.00 B)

2001-12-20 18:25:59

by Petr Kulhavy

[permalink] [raw]
Subject: Re: Problems with GUS PnP: ad1848, pnp

On Thu, 20 Dec 2001, Andrey Panin wrote:

> IIRC, Gravis Ultrasound PnP listed as supported in Hardware Compatibility
> HOWTO, but it can lack ISA PnP configuration support. So send us a copy
> of /proc/isapnp anyway :))

OK. Here it is. It was set by isapnptools, so the values are a bit wild :-) But
the resources are visible.

Brain

--------------------------------
Petr `Brain' Kulhavy
<[email protected]>
http://artax.karlin.mff.cuni.cz/~brain
Faculty of Mathematics and Physics, Charles University Prague, Czech Republic

---
I am looking for a honest man.
-- Diogenes the Cynic


Attachments:
bla (3.58 kB)
/proc/isapnp

2001-12-21 09:29:14

by Andrey Panin

[permalink] [raw]
Subject: Re: Problems with GUS PnP: ad1848, pnp

On Thu, Dec 20, 2001 at 08:25:44PM +0100, [email protected] wrote:
> On Thu, 20 Dec 2001, Andrey Panin wrote:
>
> > IIRC, Gravis Ultrasound PnP listed as supported in Hardware Compatibility
> > HOWTO, but it can lack ISA PnP configuration support. So send us a copy
> > of /proc/isapnp anyway :))
>
> OK. Here it is. It was set by isapnptools, so the values are a bit wild :-) But
> the resources are visible.
>

Does the attached patch help you ?

--
Andrey Panin | Embedded systems software engineer
[email protected] | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc


Attachments:
patch-gus-isapnp (883.00 B)
(No filename) (232.00 B)
Download all attachments

2001-12-21 23:14:14

by Petr Kulhavy

[permalink] [raw]
Subject: Re: Problems with GUS PnP: ad1848, pnp

On Sat, 22 Dec 2001, Andrey Panin wrote:

> Does the attached patch help you ?

Thanx. Now the ad1848 is able to detect the card. Ad1848 info about the card
corresponds with /proc/isapnp (io, irq, dma). But the DMA/IRQ conflict persists.

Brain

--------------------------------
Petr `Brain' Kulhavy
<[email protected]>
http://artax.karlin.mff.cuni.cz/~brain
Faculty of Mathematics and Physics, Charles University Prague, Czech Republic

---
Wedding is destiny, and hanging likewise.
-- John Heywood