Skip to contentSkip to conversation

Wrong IRQ for USB on Sony Vaio (dmi_scan.c, pci-irq.c)

PATCH Pete Zaitcev 2 participants 2 messages Apr 19, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines

Broken BIOS of these notebooks assigns IRQ 10 for USB, even though it is actually wired to IRQ 9.

I use PCG-FX240 model of Sony Vaio, but I have proofs of other users, that exactly the same problem exists on models:
FX200, FX220, FX250, FX270, FX290, FX370, FX503, R505JS, R505JL These models use Intel's 82801BA controller, and Phoenix bios.

Only problem is I don't have DMI Product names for all involved models. That's why I left pretty general:
MATCH(DMI_PRODUCT_NAME, "PCG-")

My Z505JE works perfectly without it. In general Z505's are known to work.

Review

Quoted 11 lines
(quoted diff) +11 -0
+	/* Work around broken Sony Vaio Notebooks which assign USB to
+	 * IRQ 10 even though it is actually wired to IRQ 9 
+	 * Send comments to: Jan Slupski, [email protected]
+	 */
+
+	if (broken_sony_vaio_bios_irq10 && pirq == 0x63 && dev->irq == 9 &&
+			dev->vendor == 0x8086 && dev->device == 0x2442){
+		dev->irq = 9;
+		pci_write_config_byte(dev, PCI_INTERRUPT_LINE, 9);
+		r->set(pirq_router_dev, dev, pirq, 9);
+	}

So...

	if (dev->irq == 9) {
		dev->irq = 9;
	}

Are you sure it's right?

-- Pete

#2 lore raw
Quoted 10 lines · Pete Zaitcev
Quoted 7 lines

Broken BIOS of these notebooks assigns IRQ 10 for USB, even though it is actually wired to IRQ 9.

I use PCG-FX240 model of Sony Vaio, but I have proofs of other users, that exactly the same problem exists on models:
FX200, FX220, FX250, FX270, FX290, FX370, FX503, R505JS, R505JL These models use Intel's 82801BA controller, and Phoenix bios.

My Z505JE works perfectly without it. In general Z505's are known to work.

I don't know nothing more than this...
I already send an email, and I hope I'll get DMI & PCI informations for these computers.

(fwd)
From: girish <[email protected]>

Thanks for your USB patch. I got the USB mouse to work on Sony Vaio PCG-R505JL. I installed RedHat 7.2 first and the mouse would work for a few minutes and die (with timeout messages appearing on /var/log/messages). I did not find the source code for redhat on the CD. So I ended up compiling the latest kernel (2.4.18). This is the first time I compiled the linux kernel, couldn't have been easier!

(fwd)
From: Kirk VanOpdorp <[email protected]>

I had the same USB problem on the Sony PCG-R505JS laptop. Your kernel patch worked perfectly. At least on the 2.4.18 kernel.

Quoted 5 lines

Review

Quoted 4 lines
(quoted diff) +4 -0
+             dev->irq = 9;
+             pci_write_config_byte(dev, PCI_INTERRUPT_LINE, 9);
+             r->set(pirq_router_dev, dev, pirq, 9);
+     }
Quoted 7 lines

So...

        if (dev->irq == 9) {
                dev->irq = 9;
        }

Are you sure it's right?

OK.
This line isn't very important. ;)
Other two are!

I just modified HP Pavillion code taht do the same, but numbers are other .

Jan

   _  _  _  _  _____________________________________________
   | |_| |\ |  S L U P S K I              [email protected]
 |_| | | | \|                 http://www.pm.waw.pl/~jslupski