Current problem reports assigned to freebsd-acpi@FreeBSD.org

2013-04-01 Thread FreeBSD bugmaster
Note: to view an individual PR, use:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).

The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.


S Tracker  Resp.  Description

o kern/174766  acpi   [acpi] Random acpi panic
o kern/174504  acpi   [ACPI] Suspend/resume broken on Lenovo x220
o kern/171305  acpi   [acpi] acpi_tz0: _CRT value is absurd, ignored (256.0C
o kern/165381  acpi   [cpufreq] powerd(8) eats CPUs for breakfast
o kern/164329  acpi   [acpi] hw.acpi.thermal.tz0.temperature shows strange v
o kern/163268  acpi   [acpi_hp] [patch] fix driver detach in absence of CMI
o kern/162859  acpi   [acpi] ACPI battery/acline monitoring partialy working
o kern/161715  acpi   [acpi] Dell E6520 doesn't resume after ACPI suspend
o kern/161713  acpi   [acpi] Suspend on Dell E6520
o kern/160838  acpi   [acpi] ACPI Battery Monitor Non-Functional
o kern/160419  acpi   [acpi_thermal] acpi_thermal kernel thread high CPU usa
o kern/158689  acpi   [acpi] value of sysctl hw.acpi.thermal.polling_rate ne
o kern/154955  acpi   [acpi] Keyboard or ACPI doesn't work on Lenovo S10-3
o kern/152438  acpi   [acpi]: patch to acpi_asus(4) to add extra sysctls for
o kern/152098  acpi   [acpi] Lenovo T61p does not resume
o i386/146715  acpi   [acpi] Suspend works, resume not on a HP Probook 4510s
o kern/145306  acpi   [acpi]: Can't change brightness on HP ProBook 4510s
o i386/143798  acpi   [acpi] shutdown problem with SiS K7S5A
o kern/143420  acpi   [acpi] ACPI issues with Toshiba
o kern/142009  acpi   [acpi] [panic] Panic in AcpiNsGetAttachedObject
o kern/139088  acpi   [acpi] ACPI Exception: AE_AML_INFINITE_LOOP error
o amd64/138210 acpi   [acpi] acer aspire 5536 ACPI problems (S3, brightness,
o kern/137042  acpi   [acpi] hp laptop's lcd not wakes up after suspend to r
o i386/136008  acpi   [acpi] Dell Vostro 1310 will not shutdown (Requires us
o kern/132602  acpi   [acpi] ACPI Problem with Intel SS4200: System does not
p kern/128634  acpi   [patch] fix acpi_asus(4) in asus a6f laptop
o bin/126162   acpi   [acpi] ACPI autoload failed : loading required module 
o kern/123039  acpi   [acpi] ACPI AML_BUFFER_LIMIT errors during boot
a i386/122887  acpi   [panic] [atkbdc]  7.0-RELEASE on IBM HS20 panics immed
s kern/112544  acpi   [acpi] [patch] Add High Precision Event Timer Driver f
o kern/105537  acpi   [acpi] problems in acpi on HP Compaq nc6320
o kern/91594   acpi   [acpi] FreeBSD  5.4 w/ACPI fails to detect Intel Pro/
o kern/73823   acpi   [request] acpi / power-on by timer support
o kern/56024   acpi   ACPI suspend drains battery while in S3

34 problems total.

___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org


Re: call suspend_cpus() under smp_ipi_mtx

2013-04-01 Thread John Baldwin
On Saturday, March 23, 2013 5:48:50 am Andriy Gapon wrote:
 
 Looks like this issue needs more thinking and discussing.
 
 The basic idea is that suspend_cpus() must be called with smp_ipi_mtx held (on
 SMP systems).
 This is for exactly the same reasons as to why we first take smp_ipi_mtx 
 before
 calling stop_cpus() in the shutdown path.  Essentially one CPU could be 
 holding
 smp_ipi_mtx (and thus with interrupts disabled[*]) and waiting for an
 acknowledgement from other CPUs (e.g. in smp_rendezvous or in a TLB 
 shootdown),
 while another CPU could be with interrupts disabled (explicitly - like in the
 shutdown or ACPI suspend paths) and trying to deliver an IPI to other CPUs.
 
 In my opinion, we must consistently use the same lock, smp_ipi_mtx, for all
 regular (non-NMI) synchronous IPI-based communication between CPUs.  
 Otherwise a
 deadlock is quite possible.
 
 Some obstacles for just going ahead and making the suggested change:
 
 - acpi_sleep_machdep() calls intr_suspend() with interrupts disabled; 
 currently
 witness(9) is not aware of that, but if smp_ipi_mtx spin-lock is used, then we
 would have to make intr_table_lock and msi_lock the spin-locks as well;
 - AcpiLeaveSleepStatePrep() (from ACPICA) is called with interrupts disabled 
 and
 currently it performs an action that requires memory allocation; again, with
 interrupts disabled via intr_disable() this fact is not visible to witness, 
 etc,
 but with smp_ipi_mtx it needs to be somehow handled.
 
 I talked to ACPICA guys about the last issue and they told me that what is
 currently done in AcpiLeaveSleepStatePrep does not need to be with interrupts
 disabled and can be moved to AcpiLeaveSleepState.  This is after the _BFS and
 _GTS support was removed.
 
 What do you think?
 Thank you.

Hmm, I think intr_table_lock used to be a spin lock at some point.  I don't 
remember
why we changed it to a regular mutex.  It may be that there was a lock order 
reason
for that. :(

-- 
John Baldwin
___
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org