drm/amd/display: update cursor position to DMUB FW
authorDavid Zhang <dingchen.zhang@amd.com>
Wed, 4 May 2022 16:30:24 +0000 (12:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Jun 2022 18:42:53 +0000 (14:42 -0400)
commit1b0da5a3e90d3920f6967e4303fdeaaec6f62208
tree81b3348a703a2f8ed0091f02c36ec27242fc6f1f
parent381b590c307f29d0990c4b99ae3a2e02aff2a5b9
drm/amd/display: update cursor position to DMUB FW

[why]
To involve the cursor position into dirty rectangle calculation.

[how]
- separate plane and cursor update by different DMUB command
- send the cursor information while cursor updating, when updating
  cursor position/attribute, store cursor pos/attr to hubp, and
  notify dmub FW to exit psr before program cursor registers

Signed-off-by: David Zhang <dingchen.zhang@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c
drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h