mirror_ubuntu-kernels/drivers/gpu/drm/amd/display/dc
Bhawanpreet Lakha fa2a3786c4 drm/amd/display: reuse current context instead of recreating one
[Why]
Currently we discard the current context and recreate it. The current
context is what is applied to the HW so we should be re-using this
rather than creating a new context.

Recreating the context can lead to mismatch between new context and the
current context

For example: gsl groups get changed when we create a new context this
can cause issues in a multi display config (with flip immediate) because
we don't align the existing gsl groups in the new and current context.
If we reuse the current context the gsl group assignment stays the same.

[How]
Instead of discarding the current context, we instead just copy the
current state and add/remove planes and streams.

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-02-02 12:08:50 -05:00
..
basics drm/amd/display: Unblank hubp based on plane visibility 2021-01-13 23:43:14 -05:00
bios drm/amd/display: Fix HDMI deep color output for DCE 6-11. 2021-01-25 17:49:47 -05:00
calcs drm/amd/display/dc/calcs/dce_calcs: Demote non-conformant kernel-doc function headers 2021-01-14 13:20:20 -05:00
clk_mgr drm/amd/display: Add null pointer check to is_dig_enabled func 2021-02-02 12:08:43 -05:00
core drm/amd/display: reuse current context instead of recreating one 2021-02-02 12:08:50 -05:00
dce drm/amd/display: Fix HDMI deep color output for DCE 6-11. 2021-01-25 17:49:47 -05:00
dce60 drm/amd/display/dc/dce60/dce60_resource: Include our own header containing prototypes 2021-01-14 13:20:21 -05:00
dce80 drm/amd/display/dc/dce80/dce80_resource: Include our own header containing prototypes 2021-01-14 13:20:20 -05:00
dce100 drm/amd/display/dc/dce100/dce100_resource: Include our own header containing prototypes 2021-01-14 13:20:20 -05:00
dce110 drm/amdgpu: Repeat assignment to max_slave_planes 2021-01-14 13:20:21 -05:00
dce112 drm/amd/display/dc/dce112/dce112_resource: Include our own header file containing prototypes 2021-01-14 13:20:20 -05:00
dce120 drm/amd/display/dc/dce120/dce120_timing_generator: Remove unused function 'dce120_timing_generator_get_position' 2021-01-13 23:53:26 -05:00
dcn10 drm/amd/display: Simplify bool conversion 2021-02-01 11:51:46 -05:00
dcn20 drm/amd/display: Drop SOC bounding box hookup in DM/DC 2021-02-02 12:08:04 -05:00
dcn21 drm/amd/display: Update dram_clock_change_latency for DCN2.1 2021-01-20 16:38:22 -05:00
dcn30 drm/amd/display: Drop SOC bounding box hookup in DM/DC 2021-02-02 12:08:04 -05:00
dcn301 drm/amd/display: Drop SOC bounding box hookup in DM/DC 2021-02-02 12:08:04 -05:00
dcn302 amdgpu: fix clang build warning 2021-01-25 17:48:46 -05:00
dml drm/amdgpu: Assign boolean values to a bool variable 2021-01-21 09:54:46 -05:00
dsc drm/amdgpu/display: drop DCN support for aarch64 2021-01-05 11:35:53 -05:00
gpio drm/amd/display/dc/gpio/diagnostics/hw_factory_diag: Include our own header containing prototypes 2021-01-13 23:53:26 -05:00
hdcp drm/amd/display: query hdcp capability during link detect 2020-04-09 10:43:17 -04:00
inc drm/amd/display: Dynamic cursor cache size for MALL eligibility check 2021-01-21 09:54:26 -05:00
irq drm/amd/display/dc/irq/irq_service: Make local function static 2021-01-13 23:53:26 -05:00
virtual drm/amd/display: Add dp_set_dsc_pps_info_packet to virtual stream encoder 2020-09-29 16:08:31 -04:00
dc_bios_types.h drm/amd/display: Add internal display info 2020-11-24 12:08:15 -05:00
dc_ddc_types.h drm/amd/display: Proper return of result when aux engine acquire fails 2019-10-25 16:50:09 -04:00
dc_dmub_srv.c drm/amd/display: implement notify stream mask 2020-09-15 17:52:41 -04:00
dc_dmub_srv.h drm/amd/display: implement notify stream mask 2020-09-15 17:52:41 -04:00
dc_dp_types.h drm/amd/display: doesn't reprogram AMD OUI 2021-01-13 23:43:38 -05:00
dc_dsc.h drm/amd/display: Add an option to limit max DSC target bpp per sink 2020-10-26 13:29:39 -04:00
dc_helper.c drm/amd/display/dc/dc_helper: Include our own header, containing prototypes 2021-01-14 13:20:20 -05:00
dc_hw_types.h drm/amd/display: Update idle optimization handling 2021-01-05 11:34:35 -05:00
dc_link.h drm/amd/display: implement T12 compliance 2021-01-13 23:43:56 -05:00
dc_stream.h drm/amd/display: reuse current context instead of recreating one 2021-02-02 12:08:50 -05:00
dc_trace.h drm/amd/display: Add tracepoint for capturing clocks state 2020-10-26 13:34:26 -04:00
dc_types.h drm/amd/display: Add dual edp optimization flag. 2020-11-16 12:19:33 -05:00
dc.h drm/amd/display: Drop SOC bounding box hookup in DM/DC 2021-02-02 12:08:04 -05:00
dm_cp_psp.h drm/amd/display: enable assr 2020-07-01 01:59:25 -04:00
dm_event_log.h
dm_helpers.h drm/amd/display: Clear dc remote sinks on MST disconnect 2020-12-01 15:59:57 -05:00
dm_pp_smu.h drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3) 2020-11-04 17:11:37 -05:00
dm_services_types.h drm/amd/display: Add definition for number of backlight data points 2019-12-18 16:09:08 -05:00
dm_services.h drm/amd/display: Decouple amdgpu_dm_trace from service 2020-10-26 13:33:59 -04:00
irq_types.h
Makefile drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3) 2020-11-04 17:11:37 -05:00
os_types.h drm/amdgpu/display: drop DCN support for aarch64 2021-01-05 11:35:53 -05:00