diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-10 01:50:20 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-10 01:50:20 +0000 |
commit | 8dd0da9ad07d3f9a00609d98206e8e24536b6665 (patch) | |
tree | b237f51fcddad7a9b8983df600f16bd8973d8c8e /sys/dev | |
parent | 2130bccd31c3dd35d192004faa8cad9102bac612 (diff) |
bring back a local change to use DC_FP_START()/DC_FP_END() in
update_bw_bounding_box() lost in drm 5.15 update
should avoid 'SSE FP exception trap' infrequently seen on boot
with renoir and cezanne
problem reported by beck@ and claudio@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_resource.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_resource.c b/sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_resource.c index dfae4340d14..c8707d89494 100644 --- a/sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_resource.c +++ b/sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_resource.c @@ -1597,6 +1597,8 @@ static void update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_param unsigned int i, closest_clk_lvl = 0, k = 0; int j; + DC_FP_START(); + dcn2_1_ip.max_num_otg = pool->base.res_cap->num_timing_generator; dcn2_1_ip.max_num_dpp = pool->base.pipe_count; dcn2_1_soc.num_chans = bw_params->num_channels; @@ -1647,6 +1649,8 @@ static void update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_param dcn2_1_soc.clock_limits[dcn2_1_soc.num_states].state = dcn2_1_soc.num_states; } + DC_FP_END(); + dml_init_instance(&dc->dml, &dcn2_1_soc, &dcn2_1_ip, DML_PROJECT_DCN21); } |