Software > Operating Systems and Porting
New Kernel 5.16 and new problem
matgraf:
Was able to fix the bug. Now I have a working kernel 5.17.3 !
--- Code: ---diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
index 2a72517e2b28..1f83c7331b06 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
@@ -3721,7 +3721,7 @@ static bool dcn20_resource_construct(
int i;
struct dc_context *ctx = dc->ctx;
struct irq_service_init_data init_data;
- struct ddc_service_init_data ddc_init_data = {0};
+ struct ddc_service_init_data ddc_init_data;
struct _vcs_dpi_soc_bounding_box_st *loaded_bb =
get_asic_rev_soc_bb(ctx->asic_id.hw_internal_rev);
struct _vcs_dpi_ip_params_st *loaded_ip =
diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
index 8ca26383b568..f93b944f75fa 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
@@ -2559,7 +2559,7 @@ static bool dcn30_resource_construct(
int i;
struct dc_context *ctx = dc->ctx;
struct irq_service_init_data init_data;
- struct ddc_service_init_data ddc_init_data = {0};
+ struct ddc_service_init_data ddc_init_data;
uint32_t pipe_fuses = read_pipe_fuses(ctx);
uint32_t num_pipes = 0;
--- End code ---
MauryG5:
Great Matgraf, great job, how can we take advantage of the correction now? Should we simply wait for the Linux Kernel team to fix it and then regularly download the tarball from the linux-archive site or do we need to do something else? Thanks
matgraf:
@MauryG5 Download a kernel source tree of choice and unpack it. Then download my patch and save it inside the top directory of the kernel source. Now apply the patch as follows from inside of the kernel source directory:
--- Code: ---patch -p1 < fpu_exeption_fix_for_ppc64le_with_amdgpu.patch
--- End code ---
Now configure and compile as usual.
Warning: I don't know what my patch exactly does. It was mere guess work. I found the solution by looking at resembling code in the file drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c applying it to the other two files and the error was gone. I have no clue if my patch has any implications whatsoever. Use at your own risk.
MauryG5:
Excuse me but when you make a correction, shouldn't you tell the Kernel developers, warning them that a correction must be made regarding that architecture and therefore to make the Kernel work, you must make a correction for everyone?
matgraf:
Upstream is informed, see https://gitlab.freedesktop.org/drm/amd/-/issues/1949
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version