<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/gpu/drm/amd/pm/powerplay/hwmgr, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/gpu/drm/amd/pm/powerplay/hwmgr?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/gpu/drm/amd/pm/powerplay/hwmgr?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2022-11-09T23:04:52Z</updated>
<entry>
<title>Revert "drm/amdgpu: Revert "drm/amdgpu: getting fan speed pwm for vega10 properly""</title>
<updated>2022-11-09T23:04:52Z</updated>
<author>
<name>Asher Song</name>
<email>Asher.Song@amd.com</email>
</author>
<published>2022-11-03T10:28:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=30b8e7b8ee3be003e0df85c857c5cd0e0bd58b82'/>
<id>urn:sha1:30b8e7b8ee3be003e0df85c857c5cd0e0bd58b82</id>
<content type='text'>
This reverts commit 4545ae2ed3f2f7c3f615a53399c9c8460ee5bca7.

The origin patch "drm/amdgpu: getting fan speed pwm for vega10 properly" works fine.
Test failure is caused by test case self.

Signed-off-by: Asher Song &lt;Asher.Song@amd.com&gt;
Reviewed-by: Guchun Chen &lt;guchun.chen@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: Revert "drm/amdgpu: getting fan speed pwm for vega10 properly"</title>
<updated>2022-10-19T02:08:49Z</updated>
<author>
<name>Asher Song</name>
<email>Asher.Song@amd.com</email>
</author>
<published>2022-10-14T03:36:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=4545ae2ed3f2f7c3f615a53399c9c8460ee5bca7'/>
<id>urn:sha1:4545ae2ed3f2f7c3f615a53399c9c8460ee5bca7</id>
<content type='text'>
This reverts commit 16fb4dca95daa9d8e037201166a58de8284f4268.

Unfortunately, that commit causes fan monitors can't be read and written
properly.

Fixes: 16fb4dca95daa9 ("drm/amdgpu: getting fan speed pwm for vega10 properly")
Signed-off-by: Asher Song &lt;Asher.Song@amd.com&gt;
Reviewed-by: Guchun Chen &lt;guchun.chen@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/pm: smu7_hwmgr: fix potential off-by-one overflow in 'performance_levels'</title>
<updated>2022-10-10T21:32:56Z</updated>
<author>
<name>Alexey Kodanev</name>
<email>aleksei.kodanev@bell-sw.com</email>
</author>
<published>2022-10-04T08:14:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=d2bd0831b51d1123fc86c019db3452d6a1ce5029'/>
<id>urn:sha1:d2bd0831b51d1123fc86c019db3452d6a1ce5029</id>
<content type='text'>
Since 'hardwareActivityPerformanceLevels' is set to the size of the
'performance_levels' array in smu7_hwmgr_backend_init(), using the
'&lt;=' assertion to check for the next index value is incorrect.
Replace it with '&lt;'.

Detected using the static analysis tool - Svace.
Fixes: 599a7e9fe1b6 ("drm/amd/powerplay: implement smu7 hwmgr to manager asics with smu ip version 7.")
Reviewed-by: Evan Quan &lt;evan.quan@amd.com&gt;
Signed-off-by: Alexey Kodanev &lt;aleksei.kodanev@bell-sw.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/pm: vega10_hwmgr: fix potential off-by-one overflow in 'performance_levels'</title>
<updated>2022-10-10T21:32:56Z</updated>
<author>
<name>Alexey Kodanev</name>
<email>aleksei.kodanev@bell-sw.com</email>
</author>
<published>2022-10-04T08:14:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2cc4a5914ce952d6fc83b0f8089a23095ad4f677'/>
<id>urn:sha1:2cc4a5914ce952d6fc83b0f8089a23095ad4f677</id>
<content type='text'>
Since 'hardwareActivityPerformanceLevels' is set to the size of the
'performance_levels' array in vega10_hwmgr_backend_init(), using the
'&lt;=' assertion to check for the next index value is incorrect.
Replace it with '&lt;'.

Detected using the static analysis tool - Svace.
Fixes: f83a9991648b ("drm/amd/powerplay: add Vega10 powerplay support (v5)")
Reviewed-by: Evan Quan &lt;evan.quan@amd.com&gt;
Signed-off-by: Alexey Kodanev &lt;aleksei.kodanev@bell-sw.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/pm: Remove the unneeded result variable</title>
<updated>2022-09-20T16:42:40Z</updated>
<author>
<name>ye xingchen</name>
<email>ye.xingchen@zte.com.cn</email>
</author>
<published>2022-09-20T06:35:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=fe6f695d8d03f98a04f6ce6f6e8eb8e4d0c450fc'/>
<id>urn:sha1:fe6f695d8d03f98a04f6ce6f6e8eb8e4d0c450fc</id>
<content type='text'>
Return the value append_vbios_pptable() directly instead of storing it in
another redundant variable.

Reported-by: Zeal Robot &lt;zealci@zte.com.cn&gt;
Signed-off-by: ye xingchen &lt;ye.xingchen@zte.com.cn&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: getting fan speed pwm for vega10 properly</title>
<updated>2022-09-20T16:39:49Z</updated>
<author>
<name>Yury Zhuravlev</name>
<email>stalkerg@gmail.com</email>
</author>
<published>2022-09-18T07:23:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=16fb4dca95daa9d8e037201166a58de8284f4268'/>
<id>urn:sha1:16fb4dca95daa9d8e037201166a58de8284f4268</id>
<content type='text'>
Instead of using RPM speed, we will use a function from vega20 based on PWM registers.

Reviewed-by: Evan Quan &lt;evan.quan@amd.com&gt;
Signed-off-by: Yury Zhuravlev &lt;stalkerg@gmail.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu/smu10: fix SoC/fclk units in auto mode</title>
<updated>2022-04-06T14:20:45Z</updated>
<author>
<name>Alex Deucher</name>
<email>alexander.deucher@amd.com</email>
</author>
<published>2022-04-01T15:08:48Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=9bbcf182060842a652c30f63692c6b6a8eb54386'/>
<id>urn:sha1:9bbcf182060842a652c30f63692c6b6a8eb54386</id>
<content type='text'>
SMU takes clock limits in Mhz units.  socclk and fclk were
using 10 khz units in some cases.  Switch to Mhz units.
Fixes higher than required SoC clocks.

Fixes: 97cf32996c46d9 ("drm/amd/pm: Removed fixed clock in auto mode DPM")
Reviewed-by: Paul Menzel &lt;pmenzel@molgen.mpg.de&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>amdgpu/pm: Implement emit_clk_levels for vega10</title>
<updated>2022-03-28T16:54:32Z</updated>
<author>
<name>Darren Powell</name>
<email>darren.powell@amd.com</email>
</author>
<published>2022-03-08T02:40:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=a63e6b83c21424b6ecfca7ecbf605f9af75ae296'/>
<id>urn:sha1:a63e6b83c21424b6ecfca7ecbf605f9af75ae296</id>
<content type='text'>
   (v1)
     - implement emit_clk_levels for vega10, based on print_clk_levels,
       but using sysfs_emit rather than sprintf
     - modify local int vars to use uint32_t to match arg type of
       called functions
     - add return of error codes
     - refactor OD_XXX cases to return early with -EOPNOTSUPP if
       !(hwmgr-&gt;od_enabled)

Signed-off-by: Darren Powell &lt;darren.powell@amd.com&gt;
Reviewed-by: Evan Quan &lt;evan.quan@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>gpu/amd: vega10_hwmgr: fix inappropriate private variable name</title>
<updated>2022-03-02T23:40:05Z</updated>
<author>
<name>Meng Tang</name>
<email>tangmeng@uniontech.com</email>
</author>
<published>2022-02-25T09:47:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=b8cb6ab68674d7889c0dcfac2d542a63b9e36d82'/>
<id>urn:sha1:b8cb6ab68674d7889c0dcfac2d542a63b9e36d82</id>
<content type='text'>
In file vega10_hwmgr.c, the names of struct vega10_power_state *
and struct pp_power_state * are confusingly used, which may lead
to some confusion.

Status quo is that variables of type struct vega10_power_state *
are named "vega10_ps", "ps", "vega10_power_state". A more
appropriate usage is that struct are named "ps" is used for
variabled of type struct pp_power_state *.

So rename struct vega10_power_state * which are named "ps" and
"vega10_power_state" to "vega10_ps", I also renamed "psa" to
"vega10_psa" and "psb" to "vega10_psb" to make it more clearly.

The rows longer than 100 columns are involved.

Reviewed-by: Evan Quan &lt;evan.quan@amd.com&gt;
Signed-off-by: Meng Tang &lt;tangmeng@uniontech.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd: smu7: downgrade voltage error to info</title>
<updated>2022-02-16T22:30:02Z</updated>
<author>
<name>Mario Limonciello</name>
<email>mario.limonciello@amd.com</email>
</author>
<published>2022-02-16T14:55:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=d9f8a22aaf84be5640e0fd8e2adf0ace61ee3703'/>
<id>urn:sha1:d9f8a22aaf84be5640e0fd8e2adf0ace61ee3703</id>
<content type='text'>
The message `Voltage value looks like a Leakage ID but it's not patched`
shows up as an error on Dell Precision 3540.  This doesn't cause functional
problems and should be downgraded to info.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1162
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
</feed>
