2003-05-27 20:28:46

by Thomas Winischhofer

[permalink] [raw]
Subject: Re: [patch] sis650 irq router fix for 2.4.x

Alan Cox wrote:
> I'm keeping an eye on it. The correct answer appears to be
> "use ACPI" once it works on SiS

It already does. No problem, except for idiotic OS string checks which
require using a custom DSDT.

> I'll probably try some of those changes in a later -ac and see what
> happens

I patched the kernels of my 3 650 variants today (using a simpler
variant than submitted by Davide), and it works well. They are running a
webcam permanently, one is copying from and to a USB floppy in a loop,
and I am using a USB mouse on all of them.

The issue is that the 0x6x register hack seems to be required for _all_
96x variants. These come with the 740 as well as all 650 versions, and
probably many of the older chips (645, etc), too.

Unfortunately, I know of no way how to find out about these south
bridges. They have the same PCI ID like the IRQ controller and ISA
bridge of the 620, 530, 630 and the old 5595... and partly even the same
revision number. Typical SiS stuff, lines up exactly with their graphics
hardware...

Vojtech recommended doing it like the IDE drivers, but - as I said to
him - it feels a bit inappropriate to poke around in the IDE config
space for IRQ reasons... But anyone interested should take a look into
the newest 5513 ide driver (in the bk tree).

Thomas

--
Thomas Winischhofer
Vienna/Austria
mailto:[email protected] *** http://www.winischhofer.net
mailto:[email protected]


2003-05-27 21:35:58

by Alan

[permalink] [raw]
Subject: Re: [patch] sis650 irq router fix for 2.4.x

On Maw, 2003-05-27 at 21:42, Thomas Winischhofer wrote:
> Alan Cox wrote:
> > I'm keeping an eye on it. The correct answer appears to be
> > "use ACPI" once it works on SiS
>
> It already does. No problem, except for idiotic OS string checks which
> require using a custom DSDT.

It only works for setups that choose not to use the APIC in the ACPI
setup. I know how to fix it (indeed I fixed 2.5 ages ago with info from
Ollie)


2003-05-27 22:16:09

by Davide Libenzi

[permalink] [raw]
Subject: Re: [patch] sis650 irq router fix for 2.4.x

On Tue, 27 May 2003, Thomas Winischhofer wrote:

> I patched the kernels of my 3 650 variants today (using a simpler
> variant than submitted by Davide), and it works well. They are running a
> webcam permanently, one is copying from and to a USB floppy in a loop,
> and I am using a USB mouse on all of them.
>
> The issue is that the 0x6x register hack seems to be required for _all_
> 96x variants. These come with the 740 as well as all 650 versions, and
> probably many of the older chips (645, etc), too.
>
> Unfortunately, I know of no way how to find out about these south
> bridges. They have the same PCI ID like the IRQ controller and ISA
> bridge of the 620, 530, 630 and the old 5595... and partly even the same
> revision number. Typical SiS stuff, lines up exactly with their graphics
> hardware...
>
> Vojtech recommended doing it like the IDE drivers, but - as I said to
> him - it feels a bit inappropriate to poke around in the IDE config
> space for IRQ reasons... But anyone interested should take a look into
> the newest 5513 ide driver (in the bk tree).

It does not look right to me either to poke the IDE controller. Another
solution might be to parse the routing table and gather informations from
there. Example, the findings of 0x61,...,0x63 will tell us that we're
dealing with newer chipsets that uses those for values for the 3 OHCI and
the EHCI. The revision ID trick seems not effective, at least looking at
your machine with rev-id 0 that has 0x61..63. Martin, was the revision id
0, that you suggested to be handled with the old router, minded ?



- Davide