<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c, branch linux-5.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-06-22T12:27:48Z</updated>
<entry>
<title>drm/amdgpu: Resolve RAS GFX error count issue after cold boot on Arcturus</title>
<updated>2022-06-22T12:27:48Z</updated>
<author>
<name>Candice Li</name>
</author>
<published>2022-06-01T09:10:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=97d3d1246fe740754af5d36439bc70c996353445'/>
<id>urn:sha1:97d3d1246fe740754af5d36439bc70c996353445</id>
<content type='text'>
[ Upstream commit 2a460963350ec6b1534d28d7f943b5f84815aff2 ]

Adjust the sequence for ras late init and separate ras reset error status
from query status.

v2: squash in fix from Candice

Signed-off-by: Candice Li &lt;candice.li@amd.com&gt;
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/amdgpu: fix off by one in amdgpu_gfx_kiq_acquire()</title>
<updated>2022-03-25T16:40:24Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2022-03-16T08:41:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1647b54ed55d4d48c7199d439f8834626576cbe9'/>
<id>urn:sha1:1647b54ed55d4d48c7199d439f8834626576cbe9</id>
<content type='text'>
This post-op should be a pre-op so that we do not pass -1 as the bit
number to test_bit().  The current code will loop downwards from 63 to
-1.  After changing to a pre-op, it loops from 63 to 0.

Fixes: 71c37505e7ea ("drm/amdgpu/gfx: move more common KIQ code to amdgpu_gfx.c")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: Remove redundant calls of amdgpu_ras_block_late_fini in gfx ras block</title>
<updated>2022-03-02T23:40:05Z</updated>
<author>
<name>yipechai</name>
</author>
<published>2022-02-14T07:59:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=35366481d0941e9b470ccf09d85407381b5d6135'/>
<id>urn:sha1:35366481d0941e9b470ccf09d85407381b5d6135</id>
<content type='text'>
Remove redundant calls of amdgpu_ras_block_late_fini in gfx ras block.

Signed-off-by: yipechai &lt;YiPeng.Chai@amd.com&gt;
Reviewed-by: Tao Zhou &lt;tao.zhou1@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: Optimize xxx_ras_fini function of each ras block</title>
<updated>2022-03-02T23:40:05Z</updated>
<author>
<name>yipechai</name>
</author>
<published>2022-02-17T06:55:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=667c7091a39e8b360d34f37aed5f8dd85bdc45f7'/>
<id>urn:sha1:667c7091a39e8b360d34f37aed5f8dd85bdc45f7</id>
<content type='text'>
1. Move the variables of ras block instance members from
   specific xxx_ras_fini to general ras_fini call.
2. Function calls inside the modules only use parameters
   passed from xxx_ras_fini instead of ras block instance
   members.

Signed-off-by: yipechai &lt;YiPeng.Chai@amd.com&gt;
Reviewed-by: Tao Zhou &lt;tao.zhou1@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: Modify .ras_fini function pointer parameter</title>
<updated>2022-03-02T23:40:05Z</updated>
<author>
<name>yipechai</name>
</author>
<published>2022-02-17T06:52:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=01d468d9a420152e4a1270992e69a37ea0c98e04'/>
<id>urn:sha1:01d468d9a420152e4a1270992e69a37ea0c98e04</id>
<content type='text'>
Modify .ras_fini function pointer parameter so that
we can remove redundant intermediate calls in some
ras blocks.

Signed-off-by: yipechai &lt;YiPeng.Chai@amd.com&gt;
Reviewed-by: Tao Zhou &lt;tao.zhou1@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: Optimize xxx_ras_late_init function of each ras block</title>
<updated>2022-02-17T20:59:05Z</updated>
<author>
<name>yipechai</name>
</author>
<published>2022-02-14T06:38:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=caae42f00924498e78da8a960561936aa7eba503'/>
<id>urn:sha1:caae42f00924498e78da8a960561936aa7eba503</id>
<content type='text'>
1. Move calling ras block instance members from module internal
   function to the top calling xxx_ras_late_init.
2. Module internal function calls can only use parameter variables
   of xxx_ras_late_init instead of ras block instance members.

Signed-off-by: yipechai &lt;YiPeng.Chai@amd.com&gt;
Reviewed-by: Tao Zhou &lt;tao.zhou1@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: Modify .ras_late_init function pointer parameter</title>
<updated>2022-02-17T20:59:04Z</updated>
<author>
<name>yipechai</name>
</author>
<published>2022-02-14T06:12:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4e9b1fa5a2757d11a5c40eed2b2b4837dcb2f12e'/>
<id>urn:sha1:4e9b1fa5a2757d11a5c40eed2b2b4837dcb2f12e</id>
<content type='text'>
Modify .ras_late_init function pointer parameter so that
it can remove redundant intermediate calls in some ras blocks.

Signed-off-by: yipechai &lt;YiPeng.Chai@amd.com&gt;
Reviewed-by: Tao Zhou &lt;tao.zhou1@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: Optimize amdgpu_gfx_ras_late_init/amdgpu_gfx_ras_fini function code</title>
<updated>2022-02-14T20:08:40Z</updated>
<author>
<name>yipechai</name>
</author>
<published>2022-02-08T02:22:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=311065086ee15b4d5d544fba44b66349fa7cd246'/>
<id>urn:sha1:311065086ee15b4d5d544fba44b66349fa7cd246</id>
<content type='text'>
Optimize amdgpu_gfx_ras_late_init/amdgpu_gfx_ras_fini function code.

Signed-off-by: yipechai &lt;YiPeng.Chai@amd.com&gt;
Reviewed-by: Tao Zhou &lt;tao.zhou1@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: Modify gfx block to fit for the unified ras block data and ops</title>
<updated>2022-01-14T22:51:59Z</updated>
<author>
<name>yipechai</name>
</author>
<published>2022-01-04T05:52:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8b0fb0e967c1700bd729ae54b6f229501b8587ec'/>
<id>urn:sha1:8b0fb0e967c1700bd729ae54b6f229501b8587ec</id>
<content type='text'>
1.Modify gfx block to fit for the unified ras block data and ops.
2.Change amdgpu_gfx_ras_funcs to amdgpu_gfx_ras, and the corresponding variable name remove _funcs suffix.
3.Remove the const flag of gfx ras variable so that gfx ras block can be able to be inserted into amdgpu device ras block link list.
4.Invoke amdgpu_ras_register_ras_block function to register gfx ras block into amdgpu device ras block link list.
5.Remove the redundant code about gfx in amdgpu_ras.c after using the unified ras block.
6.Fill unified ras block .name .block .ras_late_init and .ras_fini for all of gfx versions. If .ras_late_init and .ras_fini had been defined by the selected gfx version, the defined functions will take effect; if not defined, default fill with amdgpu_gfx_ras_late_init and amdgpu_gfx_ras_fini.

Signed-off-by: yipechai &lt;YiPeng.Chai@amd.com&gt;
Reviewed-by: Hawking Zhang &lt;Hawking.Zhang@amd.com&gt;
Reviewed-by: John Clements &lt;john.clements@amd.com&gt;
Reviewed-by: Tao Zhou &lt;tao.zhou1@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/pm: do not expose implementation details to other blocks out of power</title>
<updated>2022-01-14T22:51:14Z</updated>
<author>
<name>Evan Quan</name>
</author>
<published>2021-11-22T02:57:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bc143d8b8387ff0a22e4ef8e2375e63aa24bc311'/>
<id>urn:sha1:bc143d8b8387ff0a22e4ef8e2375e63aa24bc311</id>
<content type='text'>
Those implementation details(whether swsmu supported, some ppt_funcs supported,
accessing internal statistics ...)should be kept internally. It's not a good
practice and even error prone to expose implementation details.

Signed-off-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>
</feed>
