From: Dave Jones <davej@redhat.com>
To: "Rafał Bilski" <rafalbilski@interia.pl>
Cc: cpufreq@lists.linux.org.uk
Subject: Re: [PATCH] Longhaul - Disable arbiter
Date: Tue, 8 Aug 2006 15:58:58 -0400 [thread overview]
Message-ID: <20060808195858.GC17618@redhat.com> (raw)
In-Reply-To: <44D8C5F4.4050406@interia.pl>
On Tue, Aug 08, 2006 at 07:12:20PM +0200, Rafał Bilski wrote:
> ACPI C3 works for "Powersaver" processors, so use it
> only for them.
>
> Older CPU will change frequency on "halt" only. But we
> can protect transition in two ways:
> - by ACPI PM2 register, there is "bus master arbiter
> disable" bit. This isn't tested because VIA mainboards
> don't have PM2 register,
> - by PLE133 PCI/AGP arbiter disable register. There
> are two bits in this register. First is "PCI arbiter
> disable", second "AGP arbiter disable". This is
> working on VIA Epia 800 mainboards.
The only part about this I don't like is that we now need to add
code to do similar things on every possible VIA chipset that
could take a C3, and there's quite a few of them, and until
we have good coverage...
>
> + /* Find ACPI data for processor */
> + acpi_walk_namespace(ACPI_TYPE_PROCESSOR, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
> + &longhaul_walk_callback, NULL, (void *)&pr);
> + if (pr == NULL) goto err_acpi;
> +
> + if (longhaul_version == TYPE_POWERSAVER) {
> + /* Check ACPI support for C3 state */
> + cx = &pr->power.states[ACPI_STATE_C3];
> + if (cx->address == 0 || cx->latency > 1000) goto err_acpi;
> + } else {
> + /* Check ACPI support for bus master arbiter disable */
> + if (!pr->flags.bm_control) {
> + if ( !enable_arbiter_disable() ) {
> + printk(KERN_ERR PFX "No ACPI support. No VT8601 host bridge. Aborting.\n");
> + return -ENODEV;
> + } else
> + port22_en = 1;
> + }
> + }
We're going to -ENODEV, possibly breaking some setups that it might actually
already work on (even if only by chance).
Dave
--
http://www.codemonkey.org.uk
next prev parent reply other threads:[~2006-08-08 19:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-08 17:12 [PATCH] Longhaul - Disable arbiter Rafał Bilski
2006-08-08 19:58 ` Dave Jones [this message]
2006-08-08 20:57 ` Rafał Bilski
2006-08-08 21:06 ` Dave Jones
-- strict thread matches above, loose matches on Subject: below --
2006-08-01 5:51 Rafał Bilski
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=20060808195858.GC17618@redhat.com \
--to=davej@redhat.com \
--cc=cpufreq@lists.linux.org.uk \
--cc=rafalbilski@interia.pl \
/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