Allow additional ports 0x25c and 0x25d in is_port_allowed for EC mailbox#58
Conversation
|
Hi, Do you have any resources or docs about this? I looked and couldn't find any. |
|
Hi, Well this is a result of my own reverse engineering of the Asus drivers, that's why there are no resources about this. What do you need? I could tell you more about it. |
|
A link to the driver or how to get it would help. |
|
It's AsIO3.sys, used to be called AsusSAIO.sys. It's the Asus laptop kernel driver. Comes installed in all Asus laptops by default, as it's mostly used to log EC info alongside reading and writing to the EC by Asus's apps. |
|
You're right, my bad. Here you go ^^ Function 140001828 is the handler for the read/write of the EC mailbox. |
|
This is a tough one, this is the first driver I see that has any synchronization, with a proper KMUTANT even. How do you plan to handle cooperation with this driver? |
|
Any updates on this? |
|
Apologies, I planned to look into what exactly the original driver needs (besides synchronization, for which I'll add a comment to avoid having the original driver loaded) to allow the ports, but haven't gotten around to do that yet. |
|
Thanks a lot! I understand what you mean but yeah, theoratically I've tried all sorts of stress testing, e.g spam writing to the ports while another app was already writing to the ports via the driver while I was also accessing the EC through the 2e/2f (or 4e/4f) ports. So there's definitely an EC level hardware mutex as well, but putting a warning comment is better regardless. |
|
By the way, I'm raising this so that G-Helper also gets access to these ports. Currently it uses the ports via the driver but it's bringing up too many issues, using these ports will make it so much better. |



Hey there namazso,
This PR adds the ports 0x25C 0x25D for the EC mailbox on Asus laptops, for fan control and various other functions.