https://bugzilla.novell.com/show_bug.cgi?id=224784 allau@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |allau@novell.com AssignedTo|hare@novell.com |kernel-maintainers@forge.provo.novell.com Status|NEEDINFO |NEW Info Provider|justin@jmicron.com | ------- Comment #4 from allau@novell.com 2006-12-18 21:20 MST ------- I'm looking at openSUSE 10.2 right now and seem like all the patch is already included, may be some other reason it is not allowing the patch to work. Justin, if you see this, please advice. Here is the patch already in the openSUSE 10.2 driver/pci/quirks.c line 1250 static void __devinit quirk_jmicron_dualfn(struct pci_dev *pdev) { u32 conf; u8 hdr; /* Only poke fn 0 */ if (PCI_FUNC(pdev->devfn)) return; switch(pdev->device) { case PCI_DEVICE_ID_JMICRON_JMB365: case PCI_DEVICE_ID_JMICRON_JMB366: /* Redirect IDE second PATA port to the right spot */ pci_read_config_dword(pdev, 0x80, &conf); conf |= (1 << 24); /* Fall through */ pci_write_config_dword(pdev, 0x80, conf); case PCI_DEVICE_ID_JMICRON_JMB361: case PCI_DEVICE_ID_JMICRON_JMB363: pci_read_config_dword(pdev, 0x40, &conf); /* Enable dual function mode, AHCI on fn 0, IDE fn1 */ /* Set the class codes correctly and then direct IDE 0 */ conf &= ~0x000F0200; /* Clear bit 9 and 16-19 */ conf |= 0x00C20002; /* Set bit 1, 17, 22, 23 */ pci_write_config_dword(pdev, 0x40, conf); /* Reconfigure so that the PCI scanner discovers the device is now multifunction */ pci_read_config_byte(pdev, PCI_HEADER_TYPE, &hdr); pdev->hdr_type = hdr & 0x7f; pdev->multifunction = !!(hdr & 0x80); break; } } to enable libata to pick up the dual function mode. This is because jmicron get card like 361 and 363 get two controller in one card. driver/pci/generic.c line 245 if (dev->vendor == PCI_VENDOR_ID_JMICRON) { if (dev->device != PCI_DEVICE_ID_JMICRON_JMB368 && PCI_FUNC(dev->devfn) != 1) goto out; } if (dev->vendor != PCI_VENDOR_ID_JMICRON) { pci_read_config_word(dev, PCI_COMMAND, &command); if (!(command & PCI_COMMAND_IO)) { printk(KERN_INFO "Skipping disabled %s IDE controller.\n", d->name); goto out; } } Justin, should this still needed even the following jmicron libata control already in? drivers/ata/pata_jmicron.c the complete file is in here for PATA mode ( this is the card that I have in hand which I should able to test with the ide DVDROM ) But it still won't find the root will that be device name problem for initrd installer in the install DVD? so bascially the generic and libata for PATA is all there. I should able to boot the DVD and see the DVD in kernel, but it is not happening right now. Please advice. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.