Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improper accessing the Nuvoton eSIO causes problems with other monitoring software #1243

Open
malikm opened this issue Jan 19, 2024 · 0 comments

Comments

@malikm
Copy link

malikm commented Jan 19, 2024

Nct677X doesn't properly access internal registers of the eSIO (ReadByte, WriteByte) which results in blocking other software.
The eSIO features a "sort of mutex" to handle parallel access, which is realized via the PagePort register (EC_SPACE_PAGE_REGISTER_OFFSET).
When PagePort != 0xFF => There's someone accessing the registers.
OHM doesn't wait for "access clear" but instead acquires the access straight. At the end of access it doesn't release it.
Proper access sequence should be:

  1. Wait till PagePort == 0xFF
  2. Set the desired bank and do your access.
  3. Write 0xFF to PagePort to release the "mutex"
sebastian-dev added a commit to sebastian-dev/LibreHardwareMonitor that referenced this issue Jan 29, 2024
Fix the access with multiple devices.
Issue: LibreHardwareMonitor#1243
Improper accessing the Nuvoton eSIO causes problems with other monitoring software
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant