* Problems with GUS PnP: ad1848, pnp
@ 2001-12-18 22:13 brain
0 siblings, 0 replies; 6+ messages in thread
From: brain @ 2001-12-18 22:13 UTC (permalink / raw)
To: linux-kernel
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
<brain@artax.karlin.mff.cuni.cz>
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problems with GUS PnP: ad1848, pnp
[not found] <20011220104657.A195@pazke.ipt>
@ 2001-12-19 10:25 ` Petr Kulhavy
2001-12-20 14:57 ` Andrey Panin
0 siblings, 1 reply; 6+ messages in thread
From: Petr Kulhavy @ 2001-12-19 10:25 UTC (permalink / raw)
To: Andrey Panin; +Cc: linux-kernel
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
<brain@artax.karlin.mff.cuni.cz>
http://artax.karlin.mff.cuni.cz/~brain
Faculty of Mathematics and Physics, Charles University Prague, Czech Republic
---
Never eat anything bigger than your head.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problems with GUS PnP: ad1848, pnp
2001-12-19 10:25 ` Problems with GUS PnP: ad1848, pnp Petr Kulhavy
@ 2001-12-20 14:57 ` Andrey Panin
2001-12-20 19:25 ` brain
0 siblings, 1 reply; 6+ messages in thread
From: Andrey Panin @ 2001-12-20 14:57 UTC (permalink / raw)
To: Petr Kulhavy; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 920 bytes --]
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
pazke@orbita1.ru | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problems with GUS PnP: ad1848, pnp
2001-12-20 14:57 ` Andrey Panin
@ 2001-12-20 19:25 ` brain
2001-12-22 9:32 ` Andrey Panin
0 siblings, 1 reply; 6+ messages in thread
From: brain @ 2001-12-20 19:25 UTC (permalink / raw)
To: Andrey Panin; +Cc: linux-kernel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 615 bytes --]
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
<brain@artax.karlin.mff.cuni.cz>
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
[-- Attachment #2: /proc/isapnp --]
[-- Type: TEXT/PLAIN, Size: 3662 bytes --]
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
Resources 0
Priority preferred
IRQ 2/9,11,12,15 High-Edge
IRQ 2/9,11,12,15 High-Edge
DMA 0,1,3,5,6,7 8-bit&16-bit compatible
DMA 0,1,3,5,6,7 8-bit&16-bit compatible
Resources 1
Priority preferred
Port 0x220-0x220, align 0x0, size 0x10, 10-bit address decoding
Port 0x320-0x320, align 0x0, size 0x8, 10-bit address decoding
Port 0x32c-0x32c, align 0x0, size 0x4, 10-bit address decoding
Alternate resources 1:1
Priority acceptable
Port 0x240-0x240, align 0x0, size 0x10, 10-bit address decoding
Port 0x340-0x340, align 0x0, size 0x8, 10-bit address decoding
Port 0x34c-0x34c, align 0x0, size 0x4, 10-bit address decoding
Logical device 1 'GRV0001:ATAPI CD-ROM'
Supported registers 0x2
Compatible device PNP0600
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
Resources 0
Priority preferred
IRQ 2/9,11,12,15 High-Edge
DMA 0,1,3,5,6,7 8-bit&16-bit compatible
Resources 1
Priority acceptable
Port 0x170-0x170, align 0x0, size 0x8, 10-bit address decoding
Port 0x376-0x376, align 0x0, size 0x2, 10-bit address decoding
Alternate resources 1:1
Priority acceptable
Port 0x168-0x168, align 0x0, size 0x8, 10-bit address decoding
Port 0x36e-0x36e, align 0x0, size 0x2, 10-bit address decoding
Alternate resources 1:2
Priority acceptable
Port 0x1e8-0x1e8, align 0x0, size 0x8, 10-bit address decoding
Port 0x3ee-0x3ee, align 0x0, size 0x2, 10-bit address decoding
Logical device 2 'GRV0002:Game Port'
Supported registers 0x2
Compatible device PNPb02f
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
Resources 0
Priority preferred
Port 0x201-0x201, align 0x0, size 0x1, 10-bit address decoding
Logical device 3 'GRV0003:SB Digital Audio'
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
Resources 0
Priority preferred
Port 0x388-0x388, align 0x0, size 0x2, 10-bit address decoding
IRQ 5,7 High-Edge
Logical device 4 'GRV0004:GM Music'
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
Resources 0
Priority preferred
IRQ 2/9 High-Edge
Alternate resources 0:1
Priority acceptable
IRQ 10 High-Edge
Alternate resources 0:2
Priority acceptable
IRQ 11 High-Edge
Resources 1
Priority preferred
Port 0x330-0x336, align 0x1, size 0x2, 10-bit address decoding
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problems with GUS PnP: ad1848, pnp
2001-12-22 9:32 ` Andrey Panin
@ 2001-12-22 0:14 ` brain
0 siblings, 0 replies; 6+ messages in thread
From: brain @ 2001-12-22 0:14 UTC (permalink / raw)
To: Andrey Panin; +Cc: linux-kernel
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
<brain@artax.karlin.mff.cuni.cz>
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problems with GUS PnP: ad1848, pnp
2001-12-20 19:25 ` brain
@ 2001-12-22 9:32 ` Andrey Panin
2001-12-22 0:14 ` brain
0 siblings, 1 reply; 6+ messages in thread
From: Andrey Panin @ 2001-12-22 9:32 UTC (permalink / raw)
To: brain; +Cc: linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 624 bytes --]
On Thu, Dec 20, 2001 at 08:25:44PM +0100, brain@artax.karlin.mff.cuni.cz 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
pazke@orbita1.ru | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc
[-- Attachment #1.2: patch-gus-isapnp --]
[-- Type: text/plain, Size: 906 bytes --]
diff -urN -X /usr/dontdiff /linux.vanilla/drivers/sound/ad1848.c /linux.2.5.1/drivers/sound/ad1848.c
--- /linux.vanilla/drivers/sound/ad1848.c Sat Dec 22 12:22:18 2001
+++ /linux.2.5.1/drivers/sound/ad1848.c Sat Dec 22 11:41:03 2001
@@ -2965,6 +2965,10 @@
ISAPNP_ANY_ID, ISAPNP_ANY_ID,
ISAPNP_VENDOR('Y','M','H'), ISAPNP_FUNCTION(0x0021),
1, 0, 0, 1, 1},
+ {"Advanced Gravis InterWave Audio",
+ ISAPNP_VENDOR('G','R','V'), ISAPNP_DEVICE(0x0001),
+ ISAPNP_VENDOR('G','R','V'), ISAPNP_FUNCTION(0x0000),
+ 0, 0, 0, 1, 0},
{0}
};
@@ -2977,6 +2981,8 @@
ISAPNP_VENDOR('C','S','C'), ISAPNP_FUNCTION(0x0100), 0 },
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID,
ISAPNP_VENDOR('Y','M','H'), ISAPNP_FUNCTION(0x0021), 0 },
+ { ISAPNP_VENDOR('G','R','V'), ISAPNP_DEVICE(0x0001),
+ ISAPNP_VENDOR('G','R','V'), ISAPNP_FUNCTION(0x0000), 0 },
{0}
};
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-12-21 23:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20011220104657.A195@pazke.ipt>
2001-12-19 10:25 ` Problems with GUS PnP: ad1848, pnp Petr Kulhavy
2001-12-20 14:57 ` Andrey Panin
2001-12-20 19:25 ` brain
2001-12-22 9:32 ` Andrey Panin
2001-12-22 0:14 ` brain
2001-12-18 22:13 brain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox