Patch to make ymfpci legacy address 16 bits

From: Pete Zaitcev (zaitcev@redhat.com)
Date: Tue May 08 2001 - 19:37:05 EST


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

--- linux-2.4.4/drivers/sound/ymfpci.c Thu Apr 26 22:17:27 2001
+++ linux-2.4.4-niph/drivers/sound/ymfpci.c Tue May 8 16:46:58 2001
@@ -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:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 15 2001 - 21:00:15 EST