From: Yaroslav Rastrigin <yarick-343whMTK1pU@public.gmane.org>
To: ACPI-Devel mailing list
<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: ACPI + 3c556 - the saga continues
Date: Wed, 16 Jul 2003 14:04:33 +0400 [thread overview]
Message-ID: <3F152331.9080803@relex.ru> (raw)
Hi everyone.
Well, encouraged by utter silence on my questions (some of them were lame, I
have to admit :-), I've continued my investigations.
Turns out, DSTD in my laptop (IBM ThinkPad T21) is somewhat screwed.
I've hand-applied custom-DSDT patch
(I'm running 2.6.0-test1-ac1 + 20030714 ACPI rev.), and started playing with DSDT.
To make long story short - my network card now kinda works with ACPI. What do
I mean:
When I'm booting with ACPI enabled, lspci -vv shows correct values (Regions,
IRQ and other info) for the NIC , but after loading NIC driver fails to read
device configuration (loads garbage, 0xFF in every byte read from card's
conf), and network doesnt work.
rmmod 3c59x, then I'm feeding
setpci -s 00:03.00 BASE_ADDRESS_0=0x1801
(PCI data was taken from good working APM boot),
modprobe 3c59x
and magically NIC is OK.
It turns out offending _INI code is:
/*
If (And (PAM1, 0x03))
{
Store (0x00, C0LN)
}
If (And (PAM1, 0x30))
{
Store (0x00, C4LN)
}
If (And (PAM2, 0x03))
{
Store (0x00, C8LN)
}
*/
Where C?LN are defined as
CreateDWordField (_CRS, 0x68, C0LN)
CreateDWordField (_CRS, 0x82, C4LN)
CreateDWordField (_CRS, 0x9C, C8LN)
inside Device (PCI0)
and PAM?s are:
OperationRegion (X000, PCI_Config, 0x00, 0x0100)
Field (X000, DWordAcc, NoLock, Preserve)
{
Offset (0x59),
PAM0, 8,
PAM1, 8,
PAM2, 8,
.....
}
(My DSDT can be found at
http://www.relex.ru/~yarick/acpi/DSDT.dsl
)
I'm not a PCI programming guru (yet ?), so new questions are:
what's going on here ? Where or how could I find which PCI registers are
overwritten by aforementioned three Store's ? I think I could write custom
_INI for my NIC, but could someone help me to start ?
And another question:
What conditions should be met for ACPI event to appear in /proc/acpi/event ?
When I'm manually triggering LID microswitch ,f.e, I'm seeing lot's of ACPI
activity in logs (with upped debug level), and I could see _LID method
executed, but nothing appears in /proc/acpi/event, and I can't make acpid
to suspend machine when LID is closed.
Moreover, there are no events in /proc/acpi/event at all, alhough ACPI
subsystem notices and handles them. Did I screwed something in my setup , and
if yes, then what to look for ?
With all the best, yarick at relex dot ru
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
next reply other threads:[~2003-07-16 10:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-16 10:04 Yaroslav Rastrigin [this message]
[not found] ` <3F152331.9080803-343whMTK1pU@public.gmane.org>
2003-07-16 11:21 ` ACPI + 3c556 - the saga continues Sebastian Henschel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F152331.9080803@relex.ru \
--to=yarick-343whmtk1pu@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox