<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.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-06-09T08:25:24Z</updated>
<entry>
<title>drm/amdgpu/psp: move PSP memory alloc from hw_init to sw_init</title>
<updated>2022-06-09T08:25:24Z</updated>
<author>
<name>Alex Deucher</name>
</author>
<published>2022-04-21T05:21:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1fa992f61fa8e1ce65373251ebef1078f3d98410'/>
<id>urn:sha1:1fa992f61fa8e1ce65373251ebef1078f3d98410</id>
<content type='text'>
[ Upstream commit b95b5391684b39695887afb4a13cccee7820f5d6 ]

Memory allocations should be done in sw_init.  hw_init should
just be hardware programming needed to initialize the IP block.
This is how most other IP blocks work.  Move the GPU memory
allocations from psp hw_init to psp sw_init and move the memory
free to sw_fini.  This also fixes a potential GPU memory leak
if psp hw_init fails.

Reviewed-by: Hawking Zhang &lt;Hawking.Zhang@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/amdgpu: fix psp tmr bo pin count leak in SRIOV</title>
<updated>2021-12-14T21:09:49Z</updated>
<author>
<name>Jingwen Chen</name>
</author>
<published>2021-12-14T03:31:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=85dfc1d692c9434c37842e610be37cd4ae4e0081'/>
<id>urn:sha1:85dfc1d692c9434c37842e610be37cd4ae4e0081</id>
<content type='text'>
[Why]
psp tmr bo will be pinned during loading amdgpu and reset in SRIOV while
only unpinned in unload amdgpu

[How]
add amdgpu_in_reset and sriov judgement to skip pin bo

v2: fix wrong judgement

Signed-off-by: Jingwen Chen &lt;Jingwen.Chen2@amd.com&gt;
Reviewed-by: Horace Chen &lt;horace.chen@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: added PSP XGMI initialization for SRIOV VF during recover</title>
<updated>2021-12-13T21:32:34Z</updated>
<author>
<name>Zhigang Luo</name>
</author>
<published>2021-12-06T19:52:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dd26e018aaa408faaf16168cbc7e83c2b159ae63'/>
<id>urn:sha1:dd26e018aaa408faaf16168cbc7e83c2b159ae63</id>
<content type='text'>
For SRIOV VF, XGMI was not initialized in PSP during recover. This change
added PSP XGMI initialization for SRIOV VF during recover.

Signed-off-by: Zhigang Luo &lt;zhigang.luo@amd.com&gt;
Reviewed-by: Shaoyun Liu &lt;shaoyun.liu@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: declare static function to fix compiler warning</title>
<updated>2021-12-01T21:03:56Z</updated>
<author>
<name>Guchun Chen</name>
</author>
<published>2021-11-26T05:14:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6c18ecefaba7ccb8150bbcf997f7a796a43f786b'/>
<id>urn:sha1:6c18ecefaba7ccb8150bbcf997f7a796a43f786b</id>
<content type='text'>
&gt;&gt; drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:503:6: warning: no previous prototype for function 'release_psp_cmd_buf' [-Wmissing-prototypes]
   void release_psp_cmd_buf(struct psp_context *psp)
        ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:503:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void release_psp_cmd_buf(struct psp_context *psp)
   ^
   static
   1 warning generated.

Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Signed-off-by: Guchun Chen &lt;guchun.chen@amd.com&gt;
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/amdgpu: Update TA version output in driver</title>
<updated>2021-10-28T18:26:12Z</updated>
<author>
<name>Candice Li</name>
</author>
<published>2021-10-21T06:52:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4320e6f86d976f86d836441c31e23ef8cfed048e'/>
<id>urn:sha1:4320e6f86d976f86d836441c31e23ef8cfed048e</id>
<content type='text'>
TA version should only be displayed in firmware version column.

Signed-off-by: Candice Li &lt;candice.li@amd.com&gt;
Reviewed-by: John Clements &lt;john.clements@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: output warning for unsupported ras error inject (v2)</title>
<updated>2021-10-19T21:32:52Z</updated>
<author>
<name>Tao Zhou</name>
</author>
<published>2021-10-18T09:02:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=42f88ab772a3be6e94cca559e2270f04164dc3ac'/>
<id>urn:sha1:42f88ab772a3be6e94cca559e2270f04164dc3ac</id>
<content type='text'>
Output a warning message if RAS TA returns UNSUPPORTED_ERROR_INJ status.

v2: implement it in psp_ras_ta_check_status function.

Signed-off-by: Tao Zhou &lt;tao.zhou1@amd.com&gt;
Reviewed-by: Hawking Zhang &lt;Hawking.Zhang@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: centralize checking for RAS TA status</title>
<updated>2021-10-19T21:32:52Z</updated>
<author>
<name>Tao Zhou</name>
</author>
<published>2021-10-15T08:57:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1b5254e8d9322d34909cc452d76117e743432549'/>
<id>urn:sha1:1b5254e8d9322d34909cc452d76117e743432549</id>
<content type='text'>
Create new function to check status returned by RAS TA.

Signed-off-by: Tao Zhou &lt;tao.zhou1@amd.com&gt;
Reviewed-by: Hawking Zhang &lt;Hawking.Zhang@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: load PSP RL in resume path</title>
<updated>2021-10-19T21:14:33Z</updated>
<author>
<name>Tao Zhou</name>
</author>
<published>2021-10-15T06:29:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c72942c167c1329f0aaa348e764f52e0aac09459'/>
<id>urn:sha1:c72942c167c1329f0aaa348e764f52e0aac09459</id>
<content type='text'>
Some registers' access will fail without PSP RL after resume.

Signed-off-by: Tao Zhou &lt;tao.zhou1@amd.com&gt;
Reviewed-by: Hawking Zhang &lt;Hawking.Zhang@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu/psp: add some missing cases to psp_check_pmfw_centralized_cstate_management</title>
<updated>2021-10-14T02:51:41Z</updated>
<author>
<name>Alex Deucher</name>
</author>
<published>2021-10-12T15:47:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=48737ac4d70faffeb516e2a9847e24f9a7eee05f'/>
<id>urn:sha1:48737ac4d70faffeb516e2a9847e24f9a7eee05f</id>
<content type='text'>
Missed a few asics.

v2: update comment

Fixes: 82d05736c47b19 ("drm/amdgpu/amdgpu_psp: convert to IP version checking")
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>drm/amdgpu: use adev_to_drm for consistency when accessing drm_device</title>
<updated>2021-10-08T17:22:13Z</updated>
<author>
<name>Guchun Chen</name>
</author>
<published>2021-10-08T17:21:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c58a863b1ccf638feb52cf3d9c756a9f578a57ae'/>
<id>urn:sha1:c58a863b1ccf638feb52cf3d9c756a9f578a57ae</id>
<content type='text'>
adev_to_drm is used everywhere, so improve recent changes
when accessing drm_device pointer from amdgpu_device.

Signed-off-by: Guchun Chen &lt;guchun.chen@amd.com&gt;
Acked-by: Christian König &lt;christian.koenig@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
</feed>
