Re: Instability without ACPI and quirks

Sérgio Monteiro Basto
2003-07-12T03:25:23Z

Hi thanks for replying
Results:
root@darkstar:~#/setpci -v -H1 -s 0:0.0 52
00:00.0:52 = eb
root@darkstar:~#setpci -v -H1 -s 0:0.0 52=$(printf %x $((0x$(setpci -H1 -s 0:0.0 52) | 0x80)))
00:00.0:52 eb
root@darkstar:~#setpci -v -H1 -s 0:0.0 52=$(printf %x $((0x$(setpci -H1 -s 0:0.0 52) & 0x7f)))
00:00.0:52 6b
root@darkstar:~#setpci -v -H1 -s 0:0.0 52=$(printf %x $((0x$(setpci -H1 -s 0:0.0 52) | 0x80)))
00:00.0:52 eb

I don't resit to tell you, this doesn't do nothing !
so why 52 ?

I have a compaq presario 706EA
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133]
(rev 80)
00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev
40)

Seems to be one KT133 but I am not sure,
This for me doesn't make sense every via chipset or every Athlons have a
rol of bugs, but for me the conclusion is:
Without acpi, we can put this kind of machine working correctly.
first because they are purely ACPI implementation ( the beginning of
implementation of ACPI in ordinary laptops? )
Other thing is APIC, with someones APIC is disable by kernel, sometimes
we have to disable it and other time APIC seems to be detected but we
have problems with IRQ routing.
So many time I ask people to disable APIC no know if it work better or
if can resolve some problem, for me, is a test that I like to be
informed.
So I try to find out IRQ routing problems on my laptop (of course) and I
found one bunch of quirks, so my (not well proved) theory is that bunch
of quirks is to correct the problem of don't have ACPI.
Since now (happily) have ACPI in main kernel maybe we can begging
removing quirks from kernel.
I am testing (in my laptop) the first two removing quirks
quirk_via_acpi
quirk_vt82c686_acpi
this two applied are applied to 00:07.4 Apollo Super ACPI
after 4 days, nothing happens (everything works fine).
And now I am going for next two
this are applied to 00:07.5 VT82C686 AC97 Audio Controller and 00:07.2
USB Controller and is the same function in drivers/pci/quirks.c where
you can read :
* Via 686A/B: The PCI_INTERRUPT_LINE register for the on-chip
* devices, USB0/1, AC97, MC97, and ACPI, has an unusual feature:
* when written, it makes an internal connection to the PIC.
* For these devices, this register is defined to be 4 bits wide.
* Normally this is fine. However for IO-APIC motherboards, or
* non-x86 architectures (yes Via exists on PPC among other places),
* we must mask the PCI_INTERRUPT_LINE value versus 0xf to get
* interrupts delivered properly.
*
* TODO: When we have device-specific interrupt routers,
* quirk_via_irqpic will go away from quirks.

Thanks

On Fri, 2003-07-11 at 19:46, Ducrot Bruno wrote:
> On Fri, Jul 11, 2003 at 07:17:25PM +0100, Sérgio Monteiro Basto wrote:
> > On Fri, 2003-07-11 at 18:26, Ducrot Bruno wrote:
> > >
> > > You probably need acpi due to power states for the cpu. Common problem
> > > with laptop shipped with athlon in general (there is a tool called
> > > lvcool though if you do not have acpi).
> >
> > sounds cool
> > I have one athlon 4 on one KT133.
> > but after reading
> > http://cip.uni-trier.de/nofftz/linux/Athlon-Powersaving-HOWTO.html
> >
> > in 2.5
> > This is the only solution which does not use the ACPI system of the
> > Linux kernel.
>
> This one will do exactly what ACPI does (that is, in the main loop,
> read LVL2 register). So the exact same issue will likely happens.
>
> ...
>
> > 2.1. The Command-line Hack
> > you can enable/disable the power-saving right from the command-line
> > without any need for rebooting.
> >
> > on KT133/133A, KX133, KL/KLE133, KM/KN133, ...:
> > enable: setpci -v -H1 -s 0:0.0 52=$(printf %x $((0x$(setpci -H1 -s 0:0.0
> > 52) | 0x80)))
> > disable: setpci -v -H1 -s 0:0.0 52=$(printf %x $((0x$(setpci -H1 -s
> > 0:0.0 52) & 0x7f)))
> >
> > How I know if it enable or disable ?
>
> setpci -H1 -s 0:0.0 52
> then look if bit 8 is set (enable) or not (disable).
>
> > is it safe try this commands?
>
> I don't know.
>
> --
> Ducrot Bruno
>
> -- Which is worse: ignorance or apathy?
> -- Don't know. Don't care.
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Parasoft
> Error proof Web apps, automate testing & more.
> Download & eval WebKing and get a free book.
> www.parasoft.com/bulletproofapps1
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel
--
SérgioMB
email: sergiomb-hHo3WeeoaswVhHzd4jOs4w@public.gmane.org

Who gives me one shell, give me everything.