Skip to contentSkip to conversation

Patch to make ymfpci legacy address 16 bits

PATCH Pete Zaitcev 1 participant 1 message May 9, 2001

lore
Share & tools
lore
#0 lore raw

Hi:

I found that every time I run a 2.4 on my laptop, APM locks up the machine. Apparently, legacy YMF code enabled decoding of 10 bits of I/O address. A call to APM BIOS touched that and somehow the system locked up.

If Pavel Roskin, Daisuke Nagano or someone else do not mind, I want this in stock kernel.

-- Pete

drivers/sound/ymfpci.c +3 -2
@@ -2059,9 +2059,10 @@
 	}
 
 	if (mpuio >= 0 || oplio >= 0) {
-		v = 0x003e;
+		/* 0x0020: 1 - 10 bits of I/O address decoded, 0 - 16 bits. */
+		v = 0x001e;
 		pci_write_config_word(pcidev, PCIR_LEGCTRL, v);
-	
+
 		switch (pcidev->device) {
 		case PCI_DEVICE_ID_YAMAHA_724:
 		case PCI_DEVICE_ID_YAMAHA_740: