From: Thomas Renninger <mail-smMupaH/RwJM7kwft8N7nw@public.gmane.org>
To: ML ACPI-devel
<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Cc: Dominik Brodowski <linux-JhLEnvuH02M@public.gmane.org>
Subject: bus master activity must be polled?
Date: Tue, 03 May 2005 14:08:43 +0200 [thread overview]
Message-ID: <427769CB.4050802@renninger.de> (raw)
Hi,
I searched the APCI spec up and down, but couldn't find
anything where bus master activity can be read out
through interrupts?
Even something is listed under Fixed ACPI Events as bus master request,
what sounds like some kind of notification through hardware (p.137, spec 3.0),
I think it is not possible to get notified?
Is this right, that bm_sts always needs to be polled, then?
If I understand things right, this is how it is (must be?) done:
- check bm_sts bit on every idle() call
- if bm_sts bit is set wait at least xy ms (32 ms (100Hz), 40 ms (1000Hz))
before triggering deeper sleeping states (C3, ...).
- this is because bm_sts bit will be set when a bus master transaction
started. When it is stopped cannot be detected, therefore it is assumed (cannot not
be assured?) that the transaction finished after at least 30 ms. If bm_sts
is not set again -> no bm activity -> trigger C3 or deeper states.
Playing around a bit with C-states I recognised that bm activity appears to
be set quite often.
If there would be the possibility of a notification if all bm transactions finished,
the efficiency of C-states could probably increased significantly (e.g. a realistic
average of bm activity appearing on my machine is ~100ms, waiting 40ms means the machine can be in
deeper sleeping states not more than 60% of total time, even if idle).
Maybe there are other ways to detect bus master activity than using ACPI interface?
Could somebody confirm whether this is right or whether I am wrong in some points, please?
Does somebody have any idea how this could be tweaked?
Thanks,
Thomas
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
next reply other threads:[~2005-05-03 12:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <426CB990.9030306@renninger.de>
2005-05-03 12:08 ` Thomas Renninger [this message]
[not found] ` <426CB990.9030306-smMupaH/RwJM7kwft8N7nw@public.gmane.org>
[not found] ` <427769CB.4050802-smMupaH/RwJM7kwft8N7nw@public.gmane.org>
2005-05-04 21:51 ` bus master activity must be polled? Dominik Brodowski
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=427769CB.4050802@renninger.de \
--to=mail-smmupah/rwjm7kwft8n7nw@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=linux-JhLEnvuH02M@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