<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/amd/pm/amdgpu_pm.c, branch linux-5.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-04-08T11:58:07Z</updated>
<entry>
<title>drm/amd/pm: enable pm sysfs write for one VF mode</title>
<updated>2022-04-08T11:58:07Z</updated>
<author>
<name>Yiqing Yao</name>
</author>
<published>2022-01-24T08:11:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d13c90e636cd363bc5b01f4694c408f28d772f9a'/>
<id>urn:sha1:d13c90e636cd363bc5b01f4694c408f28d772f9a</id>
<content type='text'>
[ Upstream commit e610941c45bad75aa839af015c27d236ab6749e5 ]

[why]
pm sysfs should be writable in one VF mode as is in passthrough

[how]
do not remove write access on pm sysfs if device is in one VF mode

Fixes: 11c9cc95f818 ("amdgpu/pm: Make sysfs pm attributes as read-only for VFs")
Signed-off-by: Yiqing Yao &lt;yiqing.yao@amd.com&gt;
Reviewed-by: Monk Liu &lt;Monk.liu@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>drm/amd/pm: fix hwmon node of power1_label create issue</title>
<updated>2022-02-09T20:14:31Z</updated>
<author>
<name>Yang Wang</name>
</author>
<published>2022-02-08T06:23:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a8b1e8636a3252daa729762b2e3cc9015cc91a5c'/>
<id>urn:sha1:a8b1e8636a3252daa729762b2e3cc9015cc91a5c</id>
<content type='text'>
it will cause hwmon node of power1_label is not created.

v2:
the hwmon node of "power1_label" is always needed for all ASICs.
and the patch will remove ASIC type check for "power1_label".

Fixes: ae07970a0621d6 ("drm/amd/pm: add support for hwmon control of slow and fast PPT limit on vangogh")

Signed-off-by: Yang Wang &lt;KevinYang.Wang@amd.com&gt;
Reviewed-by: Kenneth Feng &lt;kenneth.feng@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>amdgpu/pm: Make sysfs pm attributes as read-only for VFs</title>
<updated>2021-12-30T13:54:45Z</updated>
<author>
<name>Marina Nikolic</name>
</author>
<published>2021-12-14T12:57:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=11c9cc95f818f0f187e9b579a7f136f532b42445'/>
<id>urn:sha1:11c9cc95f818f0f187e9b579a7f136f532b42445</id>
<content type='text'>
== Description ==
Setting values of pm attributes through sysfs
should not be allowed in SRIOV mode.
These calls will not be processed by FW anyway,
but error handling on sysfs level should be improved.

== Changes ==
This patch prohibits performing of all set commands
in SRIOV mode on sysfs level.
It offers better error handling as calls that are
not allowed will not be propagated further.

== Test ==
Writing to any sysfs file in passthrough mode will succeed.
Writing to any sysfs file in ONEVF mode will yield error:
"calling process does not have sufficient permission to execute a command".

Signed-off-by: Marina Nikolic &lt;Marina.Nikolic@amd.com&gt;
Acked-by: Evan Quan &lt;evan.quan@amd.com&gt;
Reviewed-by: Lijo Lazar &lt;lijo.lazar@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: Enable unique_id for Aldebaran</title>
<updated>2021-12-30T13:54:43Z</updated>
<author>
<name>Kent Russell</name>
</author>
<published>2021-12-13T18:15:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4ad31fa15ba472866d538b3cee05708a9d8e8197'/>
<id>urn:sha1:4ad31fa15ba472866d538b3cee05708a9d8e8197</id>
<content type='text'>
It's supported, so support the unique_id sysfs file

Signed-off-by: Kent Russell &lt;kent.russell@amd.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>amdgpu/pm: Create shared array of power profile name strings</title>
<updated>2021-12-01T21:03:42Z</updated>
<author>
<name>Darren Powell</name>
</author>
<published>2021-11-23T05:26:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3867e3704f136beadf5e004b61696ef7f990bee4'/>
<id>urn:sha1:3867e3704f136beadf5e004b61696ef7f990bee4</id>
<content type='text'>
 == Description ==
 All the power profile modes use the same strings (or a subset of)
 Creating a public array of the strings will allow sharing rather than
 duplicating for each chip
 First patch only implements change for navi10, followup with other chips

 == Changes ==
 Create a declaration of the public array in kgd_pp_interface.h
 Define the public array in amdgpu_pm.c
 Modify the implementaiton of navi10_get_power_profile_mode to use new array

 == Test ==
 LOGFILE=pp_profile_strings.test.log
 AMDGPU_PCI_ADDR=`lspci -nn | grep "VGA\|Display" | cut -d " " -f 1`
 AMDGPU_HWMON=`ls -la /sys/class/hwmon | grep $AMDGPU_PCI_ADDR | awk '{print $9}'`
 HWMON_DIR=/sys/class/hwmon/${AMDGPU_HWMON}

 lspci -nn | grep "VGA\|Display"  &gt; $LOGFILE
 FILES="pp_power_profile_mode "

 for f in $FILES
 do
   echo === $f === &gt;&gt; $LOGFILE
   cat $HWMON_DIR/device/$f &gt;&gt; $LOGFILE
 done
 cat $LOGFILE

Signed-off-by: Darren Powell &lt;darren.powell@amd.com&gt;
Reviewed-by: Lijo Lazar &lt;lijo.lazar@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/pm: Add debugfs info for STB</title>
<updated>2021-11-22T19:58:59Z</updated>
<author>
<name>Andrey Grodzovsky</name>
</author>
<published>2021-09-24T18:24:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1f5fc7a50955e20c019ddc73575d8a663301d999'/>
<id>urn:sha1:1f5fc7a50955e20c019ddc73575d8a663301d999</id>
<content type='text'>
Add debugfs hook.

Signed-off-by: Andrey Grodzovsky &lt;andrey.grodzovsky@amd.com&gt;
Reviewed-by: Lijo Lazar &lt;lijo.lazar@amd.com&gt;
Reviewed-by: Luben Tuikov &lt;luben.tuikov@amd.com&gt;
Acked-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu/pm: Don't show pp_power_profile_mode for unsupported devices</title>
<updated>2021-11-03T16:22:07Z</updated>
<author>
<name>Mario Limonciello</name>
</author>
<published>2021-10-29T21:09:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a750559132c64f3fa40418876bc43881e169a8f0'/>
<id>urn:sha1:a750559132c64f3fa40418876bc43881e169a8f0</id>
<content type='text'>
For ASICs not supporting power profile mode, don't show the attribute.
Verify that the function has been implemented by the subsystem.

Suggested-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Reviewed-by: Lijo Lazar &lt;lijo.lazar@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu/pm: look up current_level for asics without pm callback</title>
<updated>2021-10-28T18:26:13Z</updated>
<author>
<name>Alex Deucher</name>
</author>
<published>2021-10-25T19:02:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9fac5799c8985aa0263dbed7f16f99f85c4d6cd7'/>
<id>urn:sha1:9fac5799c8985aa0263dbed7f16f99f85c4d6cd7</id>
<content type='text'>
For asics without a callback, use the current level rather than 0xff.
This can avoid an unnecesary forced level set on older asics when
set by the user.

Reviewed-by: Kevin Wang &lt;kevinyang.wang@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/pm: Enable GPU metrics for One VF mode</title>
<updated>2021-10-22T03:37:52Z</updated>
<author>
<name>Vignesh Chander</name>
</author>
<published>2021-10-13T02:07:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ac82902df9cf448a9400ec5bb1416100b157a6c4'/>
<id>urn:sha1:ac82902df9cf448a9400ec5bb1416100b157a6c4</id>
<content type='text'>
Enable GPU metrics feature in one VF mode.
These are only possible in one VF mode because the VF is dedicated in that case.

Signed-off-by: Vignesh Chander &lt;Vignesh.Chander@amd.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/amdgpu: Enable some sysnodes for guest smi</title>
<updated>2021-09-14T19:36:06Z</updated>
<author>
<name>Roy Sun</name>
</author>
<published>2021-09-06T12:47:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8a4d393ef4977dd5b937f09753d603de9e29b9bf'/>
<id>urn:sha1:8a4d393ef4977dd5b937f09753d603de9e29b9bf</id>
<content type='text'>
Enable sysnode vclk and dclk on Navi21 asic for guest smi

Signed-off-by: Roy Sun &lt;Roy.Sun@amd.com&gt;
Reviewed-by: Emily.Deng &lt;Emily.Deng@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
</feed>
