ACPI woes in my O.S. [SOLVED]

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
DaveG
Posts: 10
Joined: Wed Sep 07, 2011 3:20 am

Re: ACPI woes in my O.S.

Post by DaveG »

Follow up to my previous post:

My woes have gone and I managed to get R.I. working perfectly :wink:
What got me thinking is SMI and SMM that Brendan mentioned, so I did some reading.

What I found is that the SMI has a control port that values are normally written to
and the "normal" address for the SMI port is 0xB2.
The two magic values to write to this port as follows:

0xA0 (ACPI SMI enable value)
0xA1 (ACPI SMI disable value)

Now all is well and the computer no longer freezes when the R.I. pin is asserted.
By the way, I also found that ACPI makes use of IRQ9 on all Intel boards (not sure about others).

Dave.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: ACPI woes in my O.S.

Post by Brendan »

Hi,
DaveG wrote:Now all is well and the computer no longer freezes when the R.I. pin is asserted.
By the way, I also found that ACPI makes use of IRQ9 on all Intel boards (not sure about others).
So, you enable "ACPI mode", and when ACPI generates an SCI (IRQ 9) to tell you to increase fan speed/s because the system is getting too hot you ignore it (because you don't actually support ACPI) and let your motherboard melt?

That sounds, um... stay away from my computers.


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
DaveG
Posts: 10
Joined: Wed Sep 07, 2011 3:20 am

Re: ACPI woes in my O.S. [SOLVED]

Post by DaveG »

Nope, the D410PT is a fan-less board.
So no chance of making toasted sandwiches on the CPU :mrgreen:

Even if the board did require a fan, one can always make it stay on in BIOS.

Dave.
rdos
Member
Member
Posts: 3310
Joined: Wed Oct 01, 2008 1:55 pm

Re: ACPI woes in my O.S. [SOLVED]

Post by rdos »

So what probably happens is that the SMM interrupt fires, and it doesn't return until the RI is off again (because of a software-bug). The RI logic is kind of flawed, because it does not generate the interrupt when you think it would (on change). I know since I use it in a project as well, but wish I'd used some other signal instead with proper interrupt-change logic.

As for ACPI-support, I'm on my way to provide full support in my OS. I've managed to build ACPICA, and provide the OS-interface. Just needs some serious debugging now.
Post Reply