Dominik Brodowski wrote:
Hi,
On Wed, Jan 11, 2006 at 12:22:05PM +0100, Thomas Renninger wrote:
What to do once bm_activity is or was detected, yes. How to determine
whether there is current bus mastering activity, no -- that's core stuff,
not policy stuff.
I had the experience that tweaking how bm_activity is detected could help a
lot.
I think we still don't speak about the same topic:
Ok, that's the problem.
a) how to detect bus mastering activity?
acpi_get_register(ACPI_BITREG_BUS_MASTER_STATUS, &bm_status,
ACPI_MTX_DO_NOT_LOCK);
if (errata.piix4.bmisx) {
if ((inb_p(errata.piix4.bmisx + 0x02) & 0x01)
|| (inb_p(errata.piix4.bmisx + 0x0A) & 0x01))
pr->power.bm_activity++;
}
=> generic
b) what to do?
demote/allow faulty transition/...
=> driver-specific
So all I want is the following:
static int acpi_processor_bm_status(void) {
u32 bm_status;
acpi_get_register(ACPI_BITREG_BUS_MASTER_STATUS, &bm_status,
ACPI_MTX_DO_NOT_LOCK);
if (bm_status)
return 1;
else if (errata.piix4.bmisx) {
if ((inb_p(errata.piix4.bmisx + 0x02) & 0x01)
|| (inb_p(errata.piix4.bmisx + 0x0A) & 0x01))
return 1;
}
return 0;
}
Yep, now I get your point and agree.
Thomas
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html