linux_dsm_epyc7002/drivers/gpu/drm/amd/display
Yogesh Mohan Marimuthu 50f9ca048c drm/amd/display: fix sporadic multiple aux transaction failure
[why]
When there are multiple aux transaction in parallel, it is sometime
sporadically the aux transaction starts to continuously fail. The
aux transaction was failing because the busy bit for the given gpio
pin was always set. The busy bit was alway set because the
programming sequence to read, modify and write busy bit was not
atomic. Due to which when multiple threads are trying to modify the
busy bits for their gpio pins in the same integer variable sometimes
the busy bits integer variable is written with old data causing
failure.

[how]
Instead of using individual bits to track gpio pins and grouping
them to integers, one byte will be allcoated for each gpio pin.
Now whenever a gpio pin needs to be set to mark being used, only
writing a value of one to that byte is sufficient, other bytes
are not impacted. Also no need to have atomicity with bytes unlike
with bits.

Signed-off-by: Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-11-30 12:01:42 -05:00
..
amdgpu_dm drm/amd/display: Fix NULL ptr deref for commit_planes_to_stream 2018-11-30 12:00:38 -05:00
dc drm/amd/display: fix sporadic multiple aux transaction failure 2018-11-30 12:01:42 -05:00
include drm/amd/display: Add a check-function for virtual signal type 2018-10-09 17:01:48 -05:00
modules drm/amd/display: Load DMCU IRAM 2018-11-26 15:47:53 -05:00
Kconfig
Makefile drm/amd/display: Load DMCU IRAM 2018-11-26 15:47:53 -05:00
TODO