diff options
| author | Jun Lei <[email protected]> | 2019-04-08 19:27:53 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-04-23 22:28:19 +0000 |
| commit | a9a3c0da1427153e74a4ad97b1a897384a6b0404 (patch) | |
| tree | 1d847d9ddd02f904ca1a963473f49ecf97157b39 /drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h | |
| parent | drm/amd/display: Allow cursor position when plane_res.ipp is NULL (diff) | |
| download | kernel-a9a3c0da1427153e74a4ad97b1a897384a6b0404.tar.gz kernel-a9a3c0da1427153e74a4ad97b1a897384a6b0404.zip | |
drm/amd/display: add explicit handshake between x86 and DMCU
[why]
When DMCU interrupts x86, it leads to undefined phy programming
[how]
expand dmcu interface to support new PHY lock and unlock commands
if DMCU FW doesn't support these commands, they fail silently so its okay
Signed-off-by: Jun Lei <[email protected]>
Reviewed-by: Anthony Koo <[email protected]>
Acked-by: Leo Li <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h b/drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h index cbaa43853611..c68f0ce346c7 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h @@ -70,6 +70,8 @@ struct dmcu_funcs { void (*get_psr_wait_loop)(struct dmcu *dmcu, unsigned int *psr_wait_loop_number); bool (*is_dmcu_initialized)(struct dmcu *dmcu); + bool (*lock_phy)(struct dmcu *dmcu); + bool (*unlock_phy)(struct dmcu *dmcu); }; #endif |
