<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/amd/pm/amdgpu_pm.c, branch linux-6.15.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.15.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.15.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-08-20T16:36:03Z</updated>
<entry>
<title>drm/amd/pm: fix null pointer access</title>
<updated>2025-08-20T16:36:03Z</updated>
<author>
<name>Umio Yasuno</name>
</author>
<published>2025-07-15T14:44:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5d8cc029e5595760c7d18c64632e8e40a86a9b2e'/>
<id>urn:sha1:5d8cc029e5595760c7d18c64632e8e40a86a9b2e</id>
<content type='text'>
[ Upstream commit d524d40e3a6152a3ea1125af729f8cd8ca65efde ]

Writing a string without delimiters (' ', '\n', '\0') to the under
gpu_od/fan_ctrl sysfs or pp_power_profile_mode for the CUSTOM profile
will result in a null pointer dereference.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4401
Signed-off-by: Umio Yasuno &lt;coelacanth_dream@protonmail.com&gt;
Acked-by: Alex Deucher &lt;alexander.deucher@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/amdgpu: Add amdgpu_sriov_multi_vf_mode function</title>
<updated>2025-03-14T03:12:52Z</updated>
<author>
<name>Emily Deng</name>
</author>
<published>2025-02-06T05:09:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8d5e70ba5da21452735474b70322446aeb442c94'/>
<id>urn:sha1:8d5e70ba5da21452735474b70322446aeb442c94</id>
<content type='text'>
Use amdgpu_sriov_multi_vf_mode to replace amdgpu_sriov_vf(adev) &amp;&amp; !amdgpu_sriov_is_pp_one_vf(adev).

Signed-off-by: Emily Deng &lt;Emily.Deng@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: enable vcn busy sysfs for GC 9.3.0</title>
<updated>2025-03-14T03:12:43Z</updated>
<author>
<name>Alex Deucher</name>
</author>
<published>2025-03-11T20:34:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=15030aeec3934d32622f73909d54944c8cacf227'/>
<id>urn:sha1:15030aeec3934d32622f73909d54944c8cacf227</id>
<content type='text'>
Make it visible for the all GC 9.3.0 chips that support it.

Reviewed-by: Lijo Lazar &lt;lijo.lazar@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>drm/amdgpu/pm: enable vcn busy sysfs for GC 12.x</title>
<updated>2025-03-14T03:12:35Z</updated>
<author>
<name>Alex Deucher</name>
</author>
<published>2025-03-11T19:53:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5b3922222cea2d1e95a72994bd79abd02e0f3f5e'/>
<id>urn:sha1:5b3922222cea2d1e95a72994bd79abd02e0f3f5e</id>
<content type='text'>
Make it visible for the all GC 12.x chips that support it.

Reviewed-by: Lijo Lazar &lt;lijo.lazar@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>drm/amdgpu/pm: enable vcn busy sysfs for additional GC 11.x</title>
<updated>2025-03-14T03:12:21Z</updated>
<author>
<name>Alex Deucher</name>
</author>
<published>2025-03-11T19:37:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=18537feb182d8506d4ee2778e11aad7c60e1453f'/>
<id>urn:sha1:18537feb182d8506d4ee2778e11aad7c60e1453f</id>
<content type='text'>
Make it visible for the all GC 11.x chips that support it.

Reviewed-by: Lijo Lazar &lt;lijo.lazar@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>drm/amd/pm: add unique_id for gfx12</title>
<updated>2025-03-14T03:09:49Z</updated>
<author>
<name>Harish Kasiviswanathan</name>
</author>
<published>2025-03-11T18:15:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=16fbc18cb07470cd33fb5f37ad181b51583e6dc0'/>
<id>urn:sha1:16fbc18cb07470cd33fb5f37ad181b51583e6dc0</id>
<content type='text'>
Expose unique_id for gfx12

Signed-off-by: Harish Kasiviswanathan &lt;Harish.Kasiviswanathan@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/pm: Remove unnecessary device state checks</title>
<updated>2025-02-13T02:04:06Z</updated>
<author>
<name>Lijo Lazar</name>
</author>
<published>2025-02-04T06:32:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a53cbd9e6f520a252ecce31f8b555203674a3413'/>
<id>urn:sha1:a53cbd9e6f520a252ecce31f8b555203674a3413</id>
<content type='text'>
For amdgpu_get_pp_force_state, amdgpu_get_pp_cur_state already takes
care of device state check. In other cases, values are returned from
driver cached variables and are not dependent on device state.

Signed-off-by: Lijo Lazar &lt;lijo.lazar@amd.com&gt;
Reviewed-by: Feifei Xu &lt;feifei.xu@amd.com&gt;
Reviewed-by: Asad Kamal &lt;asad.kamal@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/pm: Fix get_if_active usage</title>
<updated>2025-02-13T02:04:06Z</updated>
<author>
<name>Lijo Lazar</name>
</author>
<published>2025-02-04T06:23:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=543f6e7163d781eb989db0c32331e5d5ade68fdd'/>
<id>urn:sha1:543f6e7163d781eb989db0c32331e5d5ade68fdd</id>
<content type='text'>
If a device supports runtime pm, then pm_runtime_get_if_active returns 0
if a device is not active and 1 if already active. However, if a device
doesn't support runtime pm, the API returns -EINVAL. A device not
supporting runtime pm implies it's not affected by runtime pm and it's
active. Hence no need to get() to increment usage count. Remove &lt; 0
return value check. Also, ignore runpm state to determine active status.
If the device is already in suspend state, disallow access.

Signed-off-by: Lijo Lazar &lt;lijo.lazar@amd.com&gt;
Reviewed-by: Feifei Xu &lt;feifei.xu@amd.com&gt;
Reviewed-by: Asad Kamal &lt;asad.kamal@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/pm: Add APIs for device access checks</title>
<updated>2025-02-13T02:04:06Z</updated>
<author>
<name>Lijo Lazar</name>
</author>
<published>2025-02-04T05:44:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=55aa33c3fe38763e4f285d5192fb9892133360a7'/>
<id>urn:sha1:55aa33c3fe38763e4f285d5192fb9892133360a7</id>
<content type='text'>
Wrap the checks before device access in helper functions and use them
for device access. The generic order of APIs now is to do input argument
validation first and check if device access is allowed.

Signed-off-by: Lijo Lazar &lt;lijo.lazar@amd.com&gt;
Reviewed-by: Feifei Xu &lt;feifei.xu@amd.com&gt;
Reviewed-by: Asad Kamal &lt;asad.kamal@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/pm: Update pm attr for gc_9_5_0</title>
<updated>2025-02-13T02:02:58Z</updated>
<author>
<name>Asad Kamal</name>
</author>
<published>2025-01-17T09:08:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c003b5ccaf625c4e8077a0e7a8a1d9e6e403d603'/>
<id>urn:sha1:c003b5ccaf625c4e8077a0e7a8a1d9e6e403d603</id>
<content type='text'>
Update power management &amp; clk attributes for gc_v_9_5_0

Signed-off-by: Asad Kamal &lt;asad.kamal@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>
</feed>
