[Regression][Bisected] Kodi not showing up anymore with GBM and Kernel 6.1.36
Brief summary of the problem:
Using LibreELEC Generic 11.0.3 (kernel 6.1.42 with GBM) and any recent AMD dGPU or APU (confirmed on Ryzen 5 2500U, Ryzen 3 4300GE, Ryzen 5 Pro 2400GE, RX 6900XT, ...), Kodi is not showing up anymore at startup although Kodi is running in the background (no crashes). On the screen, we only have the LibreELEC version printed in the top left corner. This happens every time we are booting LibreELEC 11.0.3. No crashlog, nor dmesg useful message.
This issue only concerns GBM. Using X with LibreELEC Generic-legacy there is no problem.
This issue did not happened with Kernel 6.1.35 and below (LibreELEC 11.0.1). This issue do not appear with Kernel 6.4.
After a bisect, the responsible commit is :
8d855bc67630fa2b17855d85de61b9cd4300e3ad is the first bad commit
commit 8d855bc67630fa2b17855d85de61b9cd4300e3ad
Author: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Date: Thu Oct 6 16:40:55 2022 -0400
drm/amd/display: Use dc_update_planes_and_stream
[ Upstream commit f7511289821ffccc07579406d6ab520aa11049f5 ]
[Why & How]
The old dc_commit_updates_for_stream lacks manipulation for many corner
cases where the DC feature requires special attention; as a result, it
starts to show its limitation (e.g., the SubVP feature is not supported
by it, among other cases). To modernize and unify our internal API, this
commit replaces the old dc_commit_updates_for_stream with
dc_update_planes_and_stream, which has more features.
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: ea2062dd1f03 ("drm/amd/display: fix the system hang while disable PSR")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 30 +++++++++++------------
1 file changed, 15 insertions(+), 15 deletions(-)
Corresponding issue on LibreELEC Github : https://github.com/LibreELEC/LibreELEC.tv/issues/8013
It seems like this commit was backported to 6.1 but is missing something and is causing GBM to not work with Kodi.
Hardware description:
- CPU: AMD Ryzen 3 4300GE
- GPU: Integrated
- System Memory: 8GB
- Display(s): Sony 4k TV
- Type of Display Connection: HDMI
System information:
- Distro name and Version: LibreELEC Generic 11.0.3
- Kernel version: 6.1.42
- Custom kernel: N/A
- AMD official driver version: N/A
How to reproduce the issue:
- Get LibreELEC 11.0.3 Generic (https://libreelec.tv/downloads/generic/)
- dd the image to an USB drive
- Boot from the USB drive
- Type "live" when asked
It should be also possible to reproduce this issue with any Linux distribution with Kodi 20.2 compiled for GBM and Kernel 6.1.36 or above.
Attached files:
Screenshots/video files
N/A : no rendering with GBM
Log files (for system lockups / game freezes / crashes)
- Dmesg log : http://ix.io/4CDC