Skip to content

RyzenSMU: Remove unnecessary io space map in main#73

Open
irusanov wants to merge 2 commits into
namazso:mainfrom
irusanov:main
Open

RyzenSMU: Remove unnecessary io space map in main#73
irusanov wants to merge 2 commits into
namazso:mainfrom
irusanov:main

Conversation

@irusanov

@irusanov irusanov commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

I don't know how I messed this up, but the current version of the module has wrong logic as it maps the space on module load, which is really not desired. Not only this, but it would require pci mutex lock on module load due to the get_pm_table_version which sends a smu command.

  • Remove io map from main method
  • Move memory address range map to ioctl_read_pm_table, but map only once and unmap on module unload in comparison with older versions of the module. This seems the correct approach for me as some clients might not need the pm table functionality at all.
  • Remove g_table_size global var as that's not really needed at the moment, since the whole page window (PAGE_SIZE) is mapped. The real table size is not fetched.

Sorry for the possible incovenience caused for other projects using this module.

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

Successfully merging this pull request may close these issues.

1 participant