public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* ACPI + 3c556 - the saga continues
@ 2003-07-16 10:04 Yaroslav Rastrigin
       [not found] ` <3F152331.9080803-343whMTK1pU@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Yaroslav Rastrigin @ 2003-07-16 10:04 UTC (permalink / raw)
  To: ACPI-Devel mailing list

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ACPI + 3c556 - the saga continues
       [not found] ` <3F152331.9080803-343whMTK1pU@public.gmane.org>
@ 2003-07-16 11:21   ` Sebastian Henschel
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Henschel @ 2003-07-16 11:21 UTC (permalink / raw)
  To: ACPI-Devel mailing list

[-- Attachment #1: Type: text/plain, Size: 1040 bytes --]

hello yaroslav..

* Yaroslav Rastrigin <yarick-343whMTK1pU@public.gmane.org> [2003-07-16 12:42 +0200]:

> 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 ?

do you know of acpid? check
http://acpid.sourceforge.net
this daemon usually logs output from /proc/acpi/event to /var/log/acpid
(among other things).

and how did you try to access p/a/event? a "tail -f" does not work, but
"cat" does.

hth,
 sebastian
-- 
::: sebastian henschel
::: kodeaffe
::: lynx -source http://www.kodeaffe.de/shensche.pub | gpg --import

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-16 11:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-16 10:04 ACPI + 3c556 - the saga continues Yaroslav Rastrigin
     [not found] ` <3F152331.9080803-343whMTK1pU@public.gmane.org>
2003-07-16 11:21   ` Sebastian Henschel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox