<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c, branch v6.1.60</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.1.60</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.1.60'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2023-04-26T12:28:37+00:00</updated>
<entry>
<title>drm/amdgpu/vcn: Disable indirect SRAM on Vangogh broken BIOSes</title>
<updated>2023-04-26T12:28:37+00:00</updated>
<author>
<name>Guilherme G. Piccoli</name>
<email>gpiccoli@igalia.com</email>
</author>
<published>2023-03-12T16:51:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9ad34ea8d2d60efbbfe1532298bac67a6e9e6b42'/>
<id>urn:sha1:9ad34ea8d2d60efbbfe1532298bac67a6e9e6b42</id>
<content type='text'>
commit 542a56e8eb4467ae654eefab31ff194569db39cd upstream.

The VCN firmware loading path enables the indirect SRAM mode if it's
advertised as supported. We might have some cases of FW issues that
prevents this mode to working properly though, ending-up in a failed
probe. An example below, observed in the Steam Deck:

[...]
[drm] failed to load ucode VCN0_RAM(0x3A)
[drm] psp gfx command LOAD_IP_FW(0x6) failed and response status is (0xFFFF0000)
amdgpu 0000:04:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring vcn_dec_0 test failed (-110)
[drm:amdgpu_device_init.cold [amdgpu]] *ERROR* hw_init of IP block &lt;vcn_v3_0&gt; failed -110
amdgpu 0000:04:00.0: amdgpu: amdgpu_device_ip_init failed
amdgpu 0000:04:00.0: amdgpu: Fatal error during GPU init
[...]

Disabling the VCN block circumvents this, but it's a very invasive
workaround that turns off the entire feature. So, let's add a quirk
on VCN loading that checks for known problematic BIOSes on Vangogh,
so we can proactively disable the indirect SRAM mode and allow the
HW proper probe and VCN IP block to work fine.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2385
Fixes: 82132ecc5432 ("drm/amdgpu: enable Vangogh VCN indirect sram mode")
Cc: stable@vger.kernel.org
Cc: James Zhu &lt;James.Zhu@amd.com&gt;
Cc: Leo Liu &lt;leo.liu@amd.com&gt;
Signed-off-by: Guilherme G. Piccoli &lt;gpiccoli@igalia.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: enable Vangogh VCN indirect sram mode</title>
<updated>2022-12-01T20:09:49+00:00</updated>
<author>
<name>Leo Liu</name>
<email>leo.liu@amd.com</email>
</author>
<published>2022-11-29T23:53:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9a8cc8cabc1e351614fd7f9e774757a5143b6fe8'/>
<id>urn:sha1:9a8cc8cabc1e351614fd7f9e774757a5143b6fe8</id>
<content type='text'>
So that uses PSP to initialize HW.

Fixes: 0c2c02b66c672e ("drm/amdgpu/vcn: add firmware support for dimgrey_cavefish")
Signed-off-by: Leo Liu &lt;leo.liu@amd.com&gt;
Reviewed-by: James Zhu &lt;James.Zhu@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Cc: stable@vger.kernel.org
</content>
</entry>
<entry>
<title>drm/amdgpu: Enable sram on vcn_4_0_2</title>
<updated>2022-09-29T19:05:11+00:00</updated>
<author>
<name>Sonny Jiang</name>
<email>sonny.jiang@amd.com</email>
</author>
<published>2022-09-29T16:26:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=541540b9045c2665d6736a77c776ac81d4225eec'/>
<id>urn:sha1:541540b9045c2665d6736a77c776ac81d4225eec</id>
<content type='text'>
Enable sram on vcn_4_0_2

Signed-off-by: Sonny Jiang &lt;sonny.jiang@amd.com&gt;
Reviewed-by: James Zhu &lt;James.Zhu@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: add VCN_4_0_2 firmware support</title>
<updated>2022-07-28T20:28:54+00:00</updated>
<author>
<name>Sonny Jiang</name>
<email>sonny.jiang@amd.com</email>
</author>
<published>2022-07-21T17:27:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=cbe93a234bcce489be319e678dbf167b7a5f915a'/>
<id>urn:sha1:cbe93a234bcce489be319e678dbf167b7a5f915a</id>
<content type='text'>
Add VCN_4_0_2 firmware support

Signed-off-by: Sonny Jiang &lt;sonny.jiang@amd.com&gt;
Reviewed-by: James Zhu &lt;James.Zhu@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu/vcn: fix no previous prototype warning</title>
<updated>2022-06-22T20:55:30+00:00</updated>
<author>
<name>Ruijing Dong</name>
<email>ruijing.dong@amd.com</email>
</author>
<published>2022-06-22T14:10:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f12d07d6e9f22bbe65d158de1435ec515acfb50a'/>
<id>urn:sha1:f12d07d6e9f22bbe65d158de1435ec515acfb50a</id>
<content type='text'>
Declare 'static', as the function is not intended to be used
outside of this translation unit.

Fixes: 4ed49c954e35 ("drm/amdgpu/vcn: add unified queue ib test")
Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Reviewed-by: James Zhu &lt;James.Zhu@amd.com&gt;
Signed-off-by: Ruijing Dong &lt;ruijing.dong@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu/vcn: adjust unified queue code format</title>
<updated>2022-06-21T21:54:37+00:00</updated>
<author>
<name>Ruijing Dong</name>
<email>ruijing.dong@amd.com</email>
</author>
<published>2022-06-15T02:42:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e751e4be1eec4d427d91583f31ce56ccb5286a27'/>
<id>urn:sha1:e751e4be1eec4d427d91583f31ce56ccb5286a27</id>
<content type='text'>
Fixed some errors and warnings found by checkpatch.pl.

Acked-by: Christian König &lt;christian.koenig@amd.com&gt;
Signed-off-by: Ruijing Dong &lt;ruijing.dong@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu/vcn: add unified queue ib test</title>
<updated>2022-06-21T21:54:03+00:00</updated>
<author>
<name>Ruijing Dong</name>
<email>ruijing.dong@amd.com</email>
</author>
<published>2022-05-31T18:18:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4ed49c954e35559cb4a34ba049a15f54ec7fccf6'/>
<id>urn:sha1:4ed49c954e35559cb4a34ba049a15f54ec7fccf6</id>
<content type='text'>
- add unified queue headers
- add unified queue ib tests

Acked-by: Leo Liu &lt;leo.liu@amd.com&gt;
Signed-off-by: Ruijing Dong &lt;ruijing.dong@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu/vcn: Add vcn ras poison consumption event handling</title>
<updated>2022-05-10T21:53:13+00:00</updated>
<author>
<name>Mohammad Zafar Ziya</name>
<email>Mohammadzafar.ziya@amd.com</email>
</author>
<published>2022-05-07T06:09:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0ae99221f3f73ff284a1db27dcd0d80f39f5b445'/>
<id>urn:sha1:0ae99221f3f73ff284a1db27dcd0d80f39f5b445</id>
<content type='text'>
Add vcn ras poison consumption event handling

V2: Removed default poison consumption handling function cb

Signed-off-by: Mohammad Zafar Ziya &lt;Mohammadzafar.ziya@amd.com&gt;
Reviewed-by: Lijo Lazar &lt;lijo.lazar@amd.com&gt;
Reviewed-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: Enable vcn v4_0_4 sram</title>
<updated>2022-05-05T20:52:24+00:00</updated>
<author>
<name>Sonny Jiang</name>
<email>sonjiang@amd.com</email>
</author>
<published>2022-02-22T21:24:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f963052b55e6e60d4fc8f783860c8418759038fb'/>
<id>urn:sha1:f963052b55e6e60d4fc8f783860c8418759038fb</id>
<content type='text'>
enable vcn v4_0_4 sram

Signed-off-by: Sonny Jiang &lt;sonjiang@amd.com&gt;
Reviewed-by: Leo Liu &lt;leo.liu@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: add VCN4_0_4 firmware</title>
<updated>2022-05-05T20:52:10+00:00</updated>
<author>
<name>James Zhu</name>
<email>James.Zhu@amd.com</email>
</author>
<published>2022-01-06T01:27:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=fbd23b55983720ccc235e6ca341d38eb81cf876d'/>
<id>urn:sha1:fbd23b55983720ccc235e6ca341d38eb81cf876d</id>
<content type='text'>
Add VCN4_0_4 firmware.

Signed-off-by: James Zhu &lt;James.Zhu@amd.com&gt;
Reviewed-by: Sonny Jiang &lt;sonny.jiang@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
</feed>
