https://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082009-10-27T01:06:56ZDragonFlyBSD bugtrackerDragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=77012009-10-27T01:06:56Zdillon
<ul></ul><p>: I am working on updating ACPI to modern state and ACPI interrupt<br />: routing. You can get the current code here [1]. It's going not bad but<br />: I have some questions which I need answers for before moving on.<br />:<br />: 1) Locking. I have no idea which one should be used. There're 2<br />: families of locking macros: ACPI_SERIAL_* and ACPI_LOCK_*<br />: (see sys/dev/acpica5/acpivar.h). FreeBSD uses mtx_* for ACPI_LOCK<br />: and sx_* for ACPI_SERIAL.</p>
<pre><code>Either a lockmgr lock or our new mtx* lock (which are blockable locks<br /> like lockmgr locks) for both. Our mtx lock API is different from<br /> FreeBSD's (not meant to be API compatible).</code></pre>
<p>: 2) APIC. Current APIC code doesn't allow setting interrupts from other<br />: subsystems and changing interrupts after boot, but this is required for<br />: BUS_CONFIG_INTR to work.</p>
<pre><code>Could you expand on this a bit? We set aside a fixed number of vectors<br /> but that's the only real limitation that I can think of.</code></pre>
<pre><code>-Matt<br /> Matthew Dillon <br /> &lt;<a class="email" href="mailto:dillon@backplane.com">dillon@backplane.com</a>&gt;</code></pre> DragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=77412009-11-06T01:17:18Zpolachok
<ul></ul><p>I'm planning to commit this on the weekend, so please test the branch<br />[1] or, alternatively, you can download cd [2] or usb [3] image. PCI<br />part is not enabled by default.</p>
<p>[1] <a class="external" href="http://gitweb.dragonflybsd.org/~polachok/dragonfly.git/newacpi">http://gitweb.dragonflybsd.org/~polachok/dragonfly.git/newacpi</a><br />[2] <a class="external" href="http://polachok.v12.su/dfly.iso.bz2">http://polachok.v12.su/dfly.iso.bz2</a><br />[3] <a class="external" href="http://polachok.v12.su/dfly.img.bz2">http://polachok.v12.su/dfly.img.bz2</a></p> DragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=77422009-11-06T03:30:26Zeocallaghan
<ul></ul><p>Works fine here, Lenovo X301.<br />Although hitting the function key for suspend/resume does nothing<br />although I assume its normal as its a livecd?</p>
<p>Cheers,<br />Edward.</p>
<p>2009/11/5 Alexander Polakov <<a class="email" href="mailto:polachok@gmail.com">polachok@gmail.com</a>>:</p>
<blockquote>
<p>2009/10/26, Alexander Polakov <<a class="email" href="mailto:polachok@gmail.com">polachok@gmail.com</a>>:</p>
<blockquote>
<p> I am working on updating ACPI to modern state and ACPI interrupt<br /> routing. You can get the current code here [1]. It's going not bad but<br /> I have some questions which I need answers for before moving on.</p>
</blockquote>
<p>I'm planning to commit this on the weekend, so please test the branch<br />[1] or, alternatively, you can download cd [2] or usb [3] image. PCI<br />part is not enabled by default.</p>
<p>[1] <a class="external" href="http://gitweb.dragonflybsd.org/~polachok/dragonfly.git/newacpi">http://gitweb.dragonflybsd.org/~polachok/dragonfly.git/newacpi</a><br />[2] <a class="external" href="http://polachok.v12.su/dfly.iso.bz2">http://polachok.v12.su/dfly.iso.bz2</a><br />[3] <a class="external" href="http://polachok.v12.su/dfly.img.bz2">http://polachok.v12.su/dfly.img.bz2</a></p>
</blockquote> DragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=77432009-11-07T18:31:01Zahuete.devel
<ul></ul><p>Hi Polachok,</p>
<p>I've just tried the USB image in my Acer Aspire One. It boots fine but<br />once it reaches the part where the login is displayed, it shows the<br />DFBSD logo like in a infinite loop and no login prompt is showed. I<br />can't try CD ISO because this notebook lacks of CD drive.</p>
<p>Cheers,<br />Antonio Huete</p>
<p>2009/11/5 Alexander Polakov <<a class="email" href="mailto:polachok@gmail.com">polachok@gmail.com</a>>:</p>
<blockquote>
<p>2009/10/26, Alexander Polakov <<a class="email" href="mailto:polachok@gmail.com">polachok@gmail.com</a>>:</p>
<blockquote>
<p> I am working on updating ACPI to modern state and ACPI interrupt<br /> routing. You can get the current code here [1]. It's going not bad but<br /> I have some questions which I need answers for before moving on.</p>
</blockquote>
<p>I'm planning to commit this on the weekend, so please test the branch<br />[1] or, alternatively, you can download cd [2] or usb [3] image. PCI<br />part is not enabled by default.</p>
<p>[1] <a class="external" href="http://gitweb.dragonflybsd.org/~polachok/dragonfly.git/newacpi">http://gitweb.dragonflybsd.org/~polachok/dragonfly.git/newacpi</a><br />[2] <a class="external" href="http://polachok.v12.su/dfly.iso.bz2">http://polachok.v12.su/dfly.iso.bz2</a><br />[3] <a class="external" href="http://polachok.v12.su/dfly.img.bz2">http://polachok.v12.su/dfly.img.bz2</a></p>
</blockquote> DragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=77462009-11-08T01:03:07Zjustin
<ul></ul><blockquote>
<p>Hi Polachok,</p>
<p>I've just tried the USB image in my Acer Aspire One. It boots fine but<br />once it reaches the part where the login is displayed, it shows the<br />DFBSD logo like in a infinite loop and no login prompt is showed. I<br />can't try CD ISO because this notebook lacks of CD drive.</p>
</blockquote>
<p>What does the "normal" DragonFly USB image do? If that one has the same<br />problem, then we know it's not the ACPI changes causing it. Plus I'm<br />curious to see if it works on that model Acer - I don't recall if it was<br />tried before.</p> DragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=77472009-11-08T01:16:00Zeocallaghan
<ul></ul><p>Hi,</p>
<p>Its got nothing to do with the ACPI changes.<br />I also seen this, move to another virtual terminal. Your see gettty<br />pegging the cpu at around 97% as it loops. (if I am thinking of the<br />same bug I saw the other day), any way, does not look complex to fix.</p>
<p>Cheers,<br />Edward.</p>
<p>2009/11/7 <<a class="email" href="mailto:justin@shiningsilence.com">justin@shiningsilence.com</a>>:</p>
<blockquote><blockquote>
<p>Hi Polachok,</p>
<p>I've just tried the USB image in my Acer Aspire One. It boots fine but<br />once it reaches the part where the login is displayed, it shows the<br />DFBSD logo like in a infinite loop and no login prompt is showed. I<br />can't try CD ISO because this notebook lacks of CD drive.</p>
</blockquote>
<p>What does the "normal" DragonFly USB image do? If that one has the same<br />problem, then we know it's not the ACPI changes causing it. Plus I'm<br />curious to see if it works on that model Acer - I don't recall if it was<br />tried before.</p>
</blockquote> DragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=77482009-11-08T01:52:04ZJohannes.Hofmann
<ul></ul><p>Alexander Polakov <<a class="email" href="mailto:polachok@gmail.com">polachok@gmail.com</a>> wrote:</p>
<blockquote>
<p>2009/10/26, Alexander Polakov <<a class="email" href="mailto:polachok@gmail.com">polachok@gmail.com</a>>:</p>
<blockquote>
<p>I am working on updating ACPI to modern state and ACPI interrupt<br />routing. You can get the current code here [1]. It's going not bad but<br />I have some questions which I need answers for before moving on.</p>
</blockquote>
<p>I'm planning to commit this on the weekend, so please test the branch<br />[1] or, alternatively, you can download cd [2] or usb [3] image. PCI<br />part is not enabled by default.</p>
<p>[1] <a class="external" href="http://gitweb.dragonflybsd.org/~polachok/dragonfly.git/newacpi">http://gitweb.dragonflybsd.org/~polachok/dragonfly.git/newacpi</a></p>
</blockquote>
<p>Boots and works fine on a Thinkpad X60s. APIC_IO needs still to be<br />commented out, otherwise it hangs on boot after detecting the ahci<br />based disk (same as with current ACPI).</p>
<p>Cheers,<br />Johannes</p> DragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=77492009-11-08T03:31:03Zeocallaghan
<ul></ul><p>Ah, well there was a fix for the AHCI stuff committed after the git<br />base of this ACPI branch and it was not rebased before the ISO was<br />spun, so its most likely fixed once this ACPI stuff hits the main tree<br />Johannes.</p>
<p>2009/11/7 Johannes Hofmann <<a class="email" href="mailto:johannes.hofmann@gmx.de">johannes.hofmann@gmx.de</a>>:</p>
<blockquote>
<p>Alexander Polakov <<a class="email" href="mailto:polachok@gmail.com">polachok@gmail.com</a>> wrote:</p>
<blockquote>
<p>2009/10/26, Alexander Polakov <<a class="email" href="mailto:polachok@gmail.com">polachok@gmail.com</a>>:</p>
<blockquote>
<p> I am working on updating ACPI to modern state and ACPI interrupt<br /> routing. You can get the current code here [1]. It's going not bad but<br /> I have some questions which I need answers for before moving on.</p>
</blockquote>
<p>I'm planning to commit this on the weekend, so please test the branch<br />[1] or, alternatively, you can download cd [2] or usb [3] image. PCI<br />part is not enabled by default.</p>
<p>[1] <a class="external" href="http://gitweb.dragonflybsd.org/~polachok/dragonfly.git/newacpi">http://gitweb.dragonflybsd.org/~polachok/dragonfly.git/newacpi</a></p>
</blockquote>
<p>Boots and works fine on a Thinkpad X60s. APIC_IO needs still to be<br />commented out, otherwise it hangs on boot after detecting the ahci<br />based disk (same as with current ACPI).</p>
<p>Cheers,<br />Johannes</p>
</blockquote> DragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=77582009-11-11T07:56:06Zeocallaghan
<ul></ul><p>I spotted a nasty looking problem:</p>
<p>ACPI Warning: Cannot release the ACPI Global Lock, it has not acquired 20090521<br />evmisc-629<br />ACPI Exception: AE_NOT_ACQUIRED, Could not release Global Lock 20090521 exutils-426</p>
<p>Could you have a look into this please polachok.</p>
<p>Thanks,<br />Edward.</p> DragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=77642009-11-12T04:57:59Zpolachok
<ul></ul><p>Can you please try this diff [1] ? I don't have hardware with both SMP and EC.</p>
<p>[1] <a class="external" href="http://leaf.dragonflybsd.org/~polachok/acpi-ec-lock.diff">http://leaf.dragonflybsd.org/~polachok/acpi-ec-lock.diff</a></p> DragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=77712009-11-12T15:47:17Zdillon
<ul></ul><p>:Alexander Polakov <<a class="email" href="mailto:polachok@gmail.com">polachok@gmail.com</a>> added the comment:<br />:<br />:Can you please try this diff [1] ? I don't have hardware with both SMP and =<br />:EC.<br />:<br />:[1] <a class="external" href="http://leaf.dragonflybsd.org/~polachok/acpi-ec-lock.diff">http://leaf.dragonflybsd.org/~polachok/acpi-ec-lock.diff</a><br />:</p>
<pre><code>How can I tell if I have this feature? What is acpi-ec?</code></pre>
<pre><code>-Matt<br /> Matthew Dillon <br /> &lt;<a class="email" href="mailto:dillon@backplane.com">dillon@backplane.com</a>&gt;</code></pre> DragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=77732009-11-12T20:33:28ZTGEN
<ul></ul><p>Matthew Dillon wrote:</p>
<blockquote>
<p>:Alexander Polakov <<a class="email" href="mailto:polachok@gmail.com">polachok@gmail.com</a>> added the comment:<br />:<br />:Can you please try this diff [1] ? I don't have hardware with both SMP and =<br />:EC.<br />:<br />:[1] <a class="external" href="http://leaf.dragonflybsd.org/~polachok/acpi-ec-lock.diff">http://leaf.dragonflybsd.org/~polachok/acpi-ec-lock.diff</a></p>
<p>How can I tell if I have this feature? What is acpi-ec?</p>
</blockquote>
<p>That is an ACPI Embedded Controller, a microcontroller device which<br />manages a system and offers an interface via ACPI to query its status<br />and execute commands. Examples are setting brightness levels on an LCD<br />screen if the graphics controller doesn't allow you to set it, advanced<br />queries regarding the state of a battery in a laptop, acceleration<br />sensors, the ThinkLight in IBM/Lenovo ThinkPad laptops, etc. Most<br />(modern) laptops have one, and if you see acpi_ec attach in dmesg you<br />probably do as well.</p>
<p>Cheers,<br />-- <br /> Thomas E. Spanjaard<br /> <a class="email" href="mailto:tgen@netphreax.net">tgen@netphreax.net</a><br /> <a class="email" href="mailto:tgen@deepbone.net">tgen@deepbone.net</a></p> DragonFlyBSD - Bug #1589: ACPI updatehttps://bugs.dragonflybsd.org/issues/1589?journal_id=83382010-04-03T05:42:28Zalexh
<ul></ul><p>The ACPI update seems to work decently. If new problems crop up they should and <br />will be reported separately anyways, so I'm closing this.</p>
<p>Cheers,<br />Alex Hornung</p>