Currently the SMU version only used to determine whether the SMU supports
reading the idle mask. To speed up startup, move it to the first time
the idle mask is read.
This decreases the startup time from ~28500us to 100us.
Reviewed-by: Hans de Goede <email address hidden>
Signed-off-by: Mario Limonciello <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Hans de Goede <email address hidden>
(cherry picked from commit b0c07116c894325d40a218f558047f925e4b3bdb linux-next)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>
d70470f...
by
Mario Limonciello <email address hidden>
SMU logging is setup when the device is probed currently.
In analyzing boot performance it was observed that amd_pmc_probe is
taking ~116800us on startup on an OEM platform. This is longer than
expected, and is caused by enabling SMU logging at startup.
As the SMU logging is only needed for debugging, initialize it only upon
use. This decreases the time for amd_pmc_probe to ~28800us.
Reviewed-by: Hans de Goede <email address hidden>
Signed-off-by: Mario Limonciello <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Hans de Goede <email address hidden>
(cherry picked from commit 0c211cecc6af608b5e3137d0d898b08fc7fc14ed linux-next)
Signed-off-by: You-Sheng Yang (vicamo) <email address hidden>