1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display
Wesley Chalmers 30adeee52d drm/amd/display: Enforce DPCD Address ranges
[WHY]
Some DPCD addresses, notably LTTPR Capability registers, are expected to
be read all together in a single DPCD transaction. Rather than force callers to
read registers they don't need, we want to quietly extend the addresses
read, and only return back the values the caller asked for.
This does not affect DPCD writes.

[HOW]
Create an additional layer above AUX to perform 'checked' DPCD
transactions.
Iterate through an array of DPCD address ranges that are marked as being
contiguous. If a requested read falls within one of those ranges, extend
the read to include the entire range.
After DPCD has been queried, copy the requested bytes into the caller's
data buffer, and deallocate all resources used.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@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-06-15 17:25:41 -04:00
..
amdgpu_dm drm/amd/display: move psr dm interface to separate files 2021-06-15 17:25:40 -04:00
dc drm/amd/display: Enforce DPCD Address ranges 2021-06-15 17:25:41 -04:00
dmub drm/amd/display: [FW Promotion] Release 0.0.70 2021-06-15 17:25:40 -04:00
include drm/amd/display: Add DCN3.1 yellow carp asic family IDs 2021-06-04 16:03:26 -04:00
modules drm/amd/display: tune backlight ramping profiles 2021-06-15 17:25:40 -04:00
Kconfig drm/amd/display: Add DC DCN3.1 support to Kconfig 2021-06-04 16:39:19 -04:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_DMUB guards 2019-11-13 15:29:42 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00