Bug 49942

Summary: opl3sa2 isapnp activation broken
Product: [Retired] Red Hat Linux Reporter: Gerald Teschl <gt>
Component: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-06-04 16:04:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/proc/isapnp befor setting up the card
none
patch to opl3sa2.c
none
patch which makes the use of dma channel 0 configurable
none
patch which fixes the isapnp activation of newer opl3sa4 cards which only accept dma channel 0 none

Description Gerald Teschl 2001-07-25 15:48:06 UTC
The opl3sa2 driver has an isapnp option but if inserted with isapnp=1 it
fails to
activate the card and subsequently does not find it. If I activate the card
by writing
to /proc/isapnp

cat > /proc/isapnp <<EOF
card 0 YMH0800
dev 0 YMH0021
port 0 0x220
port 1 0x530
port 2 0x388
port 3 0x330
port 4 0x370
irq 0 5
dma 0 0
dma 1 1
activate
dev 0 YMH0022
port 0 0x201
activate
EOF


and then insert the module with isapnp=1 it works fine.

Comment 1 Bill Nottingham 2001-07-25 17:25:52 UTC
*** Bug 49948 has been marked as a duplicate of this bug. ***

Comment 2 Glen Foster 2001-07-25 23:10:42 UTC
This defect is considered SHOULD-FIX for the Fairfax release.

Comment 3 Arjan van de Ven 2001-08-17 12:20:07 UTC
How is the card identified BEFORE you set values into it ?

Comment 4 Gerald Teschl 2001-08-21 13:20:03 UTC
You mean the content of /proc/isapnp ?



Comment 5 Gerald Teschl 2001-08-21 13:21:08 UTC
Created attachment 28695 [details]
/proc/isapnp befor setting up the card

Comment 6 Gerald Teschl 2002-05-24 11:32:53 UTC
Still broken in 7.3.

Comment 7 Gerald Teschl 2002-06-03 12:13:57 UTC
I debugged this problem: The cause is that the card requires dma=0 to work but
isapnp.c excludes "0" for dma values. I have sent a proposed patch to the
kernel mailing list.

Comment 8 Gerald Teschl 2002-06-04 16:01:56 UTC
Created attachment 59528 [details]
patch to opl3sa2.c

Comment 9 Gerald Teschl 2002-06-04 16:04:00 UTC
This is the patch which fixes the problem (it has been discussed on
the kernel/sound mailing list).

Comment 10 Arjan van de Ven 2002-06-05 11:33:04 UTC
Added for the next errata build

Comment 11 Gerald Teschl 2002-06-07 08:04:44 UTC
I had some further discussions with the maintainer of the opl3sa2 driver
and we decided that a better fix is to add this as a quirk to the isapnp
driver. I'll attach the two necessary patches. Sorry...

Comment 12 Gerald Teschl 2002-06-07 08:06:25 UTC
Created attachment 60004 [details]
patch which makes the use of dma channel 0 configurable

Comment 13 Gerald Teschl 2002-06-07 08:08:25 UTC
Created attachment 60005 [details]
patch which fixes the isapnp activation of newer opl3sa4 cards which only accept dma channel 0