AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/18] drm/amd/display: Enable writeback for amdgpu
@ 2023-08-16 21:26 Alex Hung
  2023-08-16 21:26 ` [PATCH 01/18] drm/amd/display: Skip entire amdgpu_dm build if !CONFIG_DRM_AMD_DC Alex Hung
                   ` (18 more replies)
  0 siblings, 19 replies; 31+ messages in thread
From: Alex Hung @ 2023-08-16 21:26 UTC (permalink / raw)
  To: amd-gfx; +Cc: alexander.deucher, Alex Hung, harry.wentland

This patchset adds drm_writeback connector supports and enables display
writeback block (DWB) in AMD hardware.

The function can be tested by IGT's kms_writeback test which also
requires a number of patches to enable 10bit (DRM_FORMAT_XRGB2101010).
Patches are available @ https://patchwork.freedesktop.org/series/122536/

Alex Hung (10):
  drm/amd/display: Initialize writeback connector
  drm/amd/display: Hande writeback request from userspace
  drm/amd/display: Add writeback enable/disable in dc
  drm/amd/display: Fix writeback_info never got updated
  drm/amd/display: Validate hw_points_num before using it
  drm/amd/display: Fix writeback_info is not removed
  drm/amd/display: Add writeback enable field (wb_enabled)
  drm/amd/display: Setup for mmhubbub3_warmup_mcif with big buffer
  drm/amd/display: Add new set_fc_enable to struct dwbc_funcs
  drm/amd/display: Disable DWB frame capture to emulate oneshot

Harry Wentland (8):
  drm/amd/display: Skip entire amdgpu_dm build if !CONFIG_DRM_AMD_DC
  drm/amd/display: Create one virtual connector in DC
  drm/amd/display: Skip writeback connector when we get
    amdgpu_dm_connector
  drm/amd/display: Return drm_connector from
    find_first_crtc_matching_connector
  drm/amd/display: Use drm_connector in create_stream_for_sink
  drm/amd/display: Use drm_connector in create_validate_stream_for_sink
  drm/amd/display: Create amdgpu_dm_wb_connector
  drm/amd/display: Create fake sink and stream for writeback connector

 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h      |   4 +
 .../gpu/drm/amd/display/amdgpu_dm/Makefile    |  14 +-
 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 375 ++++++++++++++++--
 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h |  12 +-
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c |   3 +
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c |  22 +-
 .../display/amdgpu_dm/amdgpu_dm_mst_types.c   |   8 +-
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_wb.c  | 215 ++++++++++
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_wb.h  |  36 ++
 .../gpu/drm/amd/display/dc/core/dc_stream.c   |  80 +++-
 drivers/gpu/drm/amd/display/dc/dc_stream.h    |   4 +
 .../gpu/drm/amd/display/dc/dcn30/dcn30_dwb.c  |  23 ++
 .../gpu/drm/amd/display/dc/dcn30/dcn30_dwb.h  |   2 +
 .../drm/amd/display/dc/dcn30/dcn30_dwb_cm.c   |   3 +
 .../drm/amd/display/dc/dcn30/dcn30_hwseq.c    |   4 +
 .../drm/amd/display/dc/dcn31/dcn31_hwseq.c    |   3 +-
 drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h   |   4 +
 17 files changed, 742 insertions(+), 70 deletions(-)
 create mode 100644 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_wb.c
 create mode 100644 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_wb.h

-- 
2.41.0


^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2023-09-05 18:50 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-16 21:26 [PATCH 00/18] drm/amd/display: Enable writeback for amdgpu Alex Hung
2023-08-16 21:26 ` [PATCH 01/18] drm/amd/display: Skip entire amdgpu_dm build if !CONFIG_DRM_AMD_DC Alex Hung
2023-09-05 18:46   ` Alex Hung
2023-08-16 21:26 ` [PATCH 02/18] drm/amd/display: Create one virtual connector in DC Alex Hung
2023-08-17 13:58   ` Alex Deucher
2023-08-17 14:07     ` Harry Wentland
2023-09-05 18:47   ` Alex Hung
2023-08-16 21:26 ` [PATCH 03/18] drm/amd/display: Initialize writeback connector Alex Hung
2023-08-16 21:26 ` [PATCH 04/18] drm/amd/display: Skip writeback connector when we get amdgpu_dm_connector Alex Hung
2023-09-05 18:47   ` Alex Hung
2023-08-16 21:26 ` [PATCH 05/18] drm/amd/display: Return drm_connector from find_first_crtc_matching_connector Alex Hung
2023-09-05 18:47   ` Alex Hung
2023-08-16 21:26 ` [PATCH 06/18] drm/amd/display: Use drm_connector in create_stream_for_sink Alex Hung
2023-09-05 18:48   ` Alex Hung
2023-08-16 21:26 ` [PATCH 07/18] drm/amd/display: Use drm_connector in create_validate_stream_for_sink Alex Hung
2023-09-05 18:48   ` Alex Hung
2023-08-16 21:26 ` [PATCH 08/18] drm/amd/display: Create amdgpu_dm_wb_connector Alex Hung
2023-09-05 18:48   ` Alex Hung
2023-08-16 21:26 ` [PATCH 09/18] drm/amd/display: Create fake sink and stream for writeback connector Alex Hung
2023-09-05 18:48   ` Alex Hung
2023-08-16 21:26 ` [PATCH 10/18] drm/amd/display: Hande writeback request from userspace Alex Hung
2023-08-16 21:26 ` [PATCH 11/18] drm/amd/display: Add writeback enable/disable in dc Alex Hung
2023-08-16 21:26 ` [PATCH 12/18] drm/amd/display: Fix writeback_info never got updated Alex Hung
2023-08-16 21:26 ` [PATCH 13/18] drm/amd/display: Validate hw_points_num before using it Alex Hung
2023-08-16 21:26 ` [PATCH 14/18] drm/amd/display: Fix writeback_info is not removed Alex Hung
2023-08-16 21:26 ` [PATCH 15/18] drm/amd/display: Add writeback enable field (wb_enabled) Alex Hung
2023-08-16 21:26 ` [PATCH 16/18] drm/amd/display: Setup for mmhubbub3_warmup_mcif with big buffer Alex Hung
2023-08-16 21:26 ` [PATCH 17/18] drm/amd/display: Add new set_fc_enable to struct dwbc_funcs Alex Hung
2023-08-16 21:26 ` [PATCH 18/18] drm/amd/display: Disable DWB frame capture to emulate oneshot Alex Hung
2023-09-05 14:20 ` [PATCH 00/18] drm/amd/display: Enable writeback for amdgpu Harry Wentland
2023-09-05 18:50   ` Alex Hung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox