From: Wayne Lin <Wayne.Lin@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Harry Wentland <harry.wentland@amd.com>,
Leo Li <sunpeng.li@amd.com>,
Aurabindo Pillai <aurabindo.pillai@amd.com>,
Roman Li <roman.li@amd.com>, Wayne Lin <wayne.lin@amd.com>,
Tom Chung <chiahsuan.chung@amd.com>,
"Fangzhi Zuo" <jerry.zuo@amd.com>,
Dan Wheeler <daniel.wheeler@amd.com>, Ray Wu <Ray.Wu@amd.com>,
Ivan Lipski <ivan.lipski@amd.com>, Alex Hung <alex.hung@amd.com>,
James Lin <PingLei.Lin@amd.com>,
Chenyu Chen <Chen-Yu.Chen@amd.com>,
Rafal Ostrowski <rafal.ostrowski@amd.com>,
Alvin Lee <alvin.lee2@amd.com>
Subject: [PATCH 03/74] drm/amd/display: Remove duplicate block sequence leftovers
Date: Wed, 11 Nov 2026 09:28:09 +0800 [thread overview]
Message-ID: <20261111014100.3596072-4-Wayne.Lin@amd.com> (raw)
In-Reply-To: <20261111014100.3596072-1-Wayne.Lin@amd.com>
From: Rafal Ostrowski <rafal.ostrowski@amd.com>
[Why]
hw_sequencer.h carried parameter structs, union members, executor
declarations that no builder, adder or dispatcher case uses.
Each one duplicates work that existing opcodes already do.
These are also breaking BLS rules as contain dc,
dc_state or pipe_ctx pointers.
Below list contains removed structures and information where
it is already supported by other HWSS operations:
- program_tg_params, hwss_program_tg:
TG_PROGRAM_GLOBAL_SYNC, TG_WAIT_FOR_STATE, TG_SET_VTG_PARAMS,
TG_SETUP_VERTICAL_INTERRUPT2
- setup_vupdate_interrupt_params:
TG_SETUP_VERTICAL_INTERRUPT2
- update_dchubp_dpp_params:
update_dchubp_dpp_sequence steps
- set_disp_pattern_generator_params:
OPP_SET_DISP_PATTERN_GENERATOR
- mpc_update_mpcc_params, hwss_mpc_update_mpcc:
MPC_UPDATE_BLENDING, MPC_REMOVE_MPCC, MPC_INSERT_PLANE,
MPC_UPDATE_VISUAL_CONFIRM
- hubp_program_mcache_id_and_split_coordinate_params:
HUBP_PROGRAM_MCACHE_ID
- hwss_blank_pixel_data:
blank_pixel_data_sequence steps
- PROGRAM_MALL_PIPE_CONFIG:
HUBP_UPDATE_MALL_SEL and HUBP_PREPARE_SUBVP_BUFFERING from
program_mall_pipe_config_sequence
[How]
Remove the unused structs and union members, the hwss_mpc_update_mpcc
executor, the hwss_blank_pixel_data and hwss_program_tg declarations and
the PROGRAM_MALL_PIPE_CONFIG enumerator.
Cc: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Rafal Ostrowski <rafal.ostrowski@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
---
.../drm/amd/display/dc/core/dc_hw_sequencer.c | 10 ----
.../drm/amd/display/dc/hwss/hw_sequencer.h | 51 -------------------
2 files changed, 61 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
index 694c425e22b4..512e128d52b3 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
@@ -4191,16 +4191,6 @@ void hwss_dpp_set_cursor_matrix(union block_sequence_params *params)
dpp->funcs->set_cursor_matrix(dpp, color_space, *cursor_csc_color_matrix);
}
-void hwss_mpc_update_mpcc(union block_sequence_params *params)
-{
- struct dc *dc = params->mpc_update_mpcc_params.dc;
- struct pipe_ctx *pipe_ctx = params->mpc_update_mpcc_params.pipe_ctx;
- struct dce_hwseq *hws = dc->hwseq;
-
- if (hws->funcs.update_mpcc)
- hws->funcs.update_mpcc(dc, pipe_ctx);
-}
-
void hwss_mpc_update_blending(union block_sequence_params *params)
{
struct mpc *mpc = params->mpc_update_blending_params.mpc;
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h b/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
index 6580d13d9041..9f97503a02ff 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
+++ b/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
@@ -456,12 +456,6 @@ struct dsc_enable_with_opp_params {
int opp_inst;
};
-struct program_tg_params {
- struct dc *dc;
- struct pipe_ctx *pipe_ctx;
- struct dc_state *context;
-};
-
struct tg_program_global_sync_params {
struct timing_generator *tg;
int vready_offset;
@@ -504,11 +498,6 @@ struct pipe_control_lock_params {
struct tg_3dlut_wa_unlock_params tg_3dlut_wa_unlock_params;
};
-struct setup_vupdate_interrupt_params {
- struct dc *dc;
- struct pipe_ctx *pipe_ctx;
-};
-
struct tg_setup_vertical_interrupt2_params {
struct timing_generator *tg;
int start_line;
@@ -531,12 +520,6 @@ struct program_det_segments_params {
unsigned int det_size;
};
-struct update_dchubp_dpp_params {
- struct dc *dc;
- struct pipe_ctx *pipe_ctx;
- struct dc_state *context;
-};
-
struct opp_set_dyn_expansion_params {
struct output_pixel_processor *opp;
enum dc_color_space color_space;
@@ -583,18 +566,6 @@ struct set_abm_immediate_disable_params {
struct pipe_ctx *pipe_ctx;
};
-struct set_disp_pattern_generator_params {
- struct dc *dc;
- struct pipe_ctx *pipe_ctx;
- enum controller_dp_test_pattern test_pattern;
- enum controller_dp_color_space color_space;
- enum dc_color_depth color_depth;
- const struct tg_color *solid_color;
- int width;
- int height;
- int offset;
-};
-
struct mpc_update_blending_params {
struct mpc *mpc;
struct mpcc_blnd_cfg blnd_cfg;
@@ -935,11 +906,6 @@ struct dpp_set_cursor_matrix_params {
struct dc_csc_transform *cursor_csc_color_matrix;
};
-struct mpc_update_mpcc_params {
- struct dc *dc;
- struct pipe_ctx *pipe_ctx;
-};
-
struct dpp_set_scaler_params {
struct dpp *dpp;
const struct scaler_data *scl_data;
@@ -951,11 +917,6 @@ struct hubp_mem_program_viewport_params {
const struct rect *viewport_c;
};
-struct hubp_program_mcache_id_and_split_coordinate_params {
- struct hubp *hubp;
- struct mcache_regs_struct *mcache_regs;
-};
-
struct cursor_lock_params {
struct dc *dc;
struct pipe_ctx *pipe_ctx;
@@ -1237,7 +1198,6 @@ union block_sequence_params {
struct dsc_disconnect_params dsc_disconnect_params;
struct dsc_read_state_params dsc_read_state_params;
struct dsc_enable_with_opp_params dsc_enable_with_opp_params;
- struct program_tg_params program_tg_params;
struct tg_program_global_sync_params tg_program_global_sync_params;
struct tg_wait_for_state_params tg_wait_for_state_params;
struct tg_set_vtg_params_params tg_set_vtg_params_params;
@@ -1245,10 +1205,8 @@ union block_sequence_params {
struct dpp_set_hdr_multiplier_params dpp_set_hdr_multiplier_params;
struct tg_set_gsl_params tg_set_gsl_params;
struct tg_set_gsl_source_select_params tg_set_gsl_source_select_params;
- struct setup_vupdate_interrupt_params setup_vupdate_interrupt_params;
struct program_det_size_params program_det_size_params;
struct program_det_segments_params program_det_segments_params;
- struct update_dchubp_dpp_params update_dchubp_dpp_params;
struct opp_set_dyn_expansion_params opp_set_dyn_expansion_params;
struct opp_program_fmt_params opp_program_fmt_params;
struct opp_program_bit_depth_reduction_params opp_program_bit_depth_reduction_params;
@@ -1256,7 +1214,6 @@ union block_sequence_params {
struct set_abm_pipe_params set_abm_pipe_params;
struct set_abm_level_params set_abm_level_params;
struct set_abm_immediate_disable_params set_abm_immediate_disable_params;
- struct set_disp_pattern_generator_params set_disp_pattern_generator_params;
struct mpc_remove_mpcc_params mpc_remove_mpcc_params;
struct dc_set_optimized_required_params dc_set_optimized_required_params;
struct hubp_disconnect_params hubp_disconnect_params;
@@ -1318,7 +1275,6 @@ union block_sequence_params {
struct hubp_setup_interdependent2_params hubp_setup_interdependent2_params;
struct hubp_setup_interdependent_params hubp_setup_interdependent_params;
struct dpp_set_cursor_matrix_params dpp_set_cursor_matrix_params;
- struct mpc_update_mpcc_params mpc_update_mpcc_params;
struct mpc_update_blending_params mpc_update_blending_params;
struct mpc_assert_idle_mpcc_params mpc_assert_idle_mpcc_params;
struct mpc_insert_plane_params mpc_insert_plane_params;
@@ -1467,7 +1423,6 @@ enum block_sequence_func {
HUBP_WAIT_FLIP_PENDING,
TG_WAIT_DOUBLE_BUFFER_PENDING,
UPDATE_FORCE_PSTATE,
- PROGRAM_MALL_PIPE_CONFIG,
HUBBUB_APPLY_DEDCN21_147_WA,
MPC_SET_DWB_MUX,
MPC_DISABLE_DWB_MUX,
@@ -2112,8 +2067,6 @@ void hwss_opp_pipe_clock_control(union block_sequence_params *params);
void hwss_opp_program_left_edge_extra_pixel(union block_sequence_params *params);
-void hwss_blank_pixel_data(union block_sequence_params *params);
-
void hwss_dccg_set_dto_dscclk(union block_sequence_params *params);
void hwss_dsc_set_config(union block_sequence_params *params);
@@ -2164,8 +2117,6 @@ void hwss_prepare_bandwidth(struct dc *dc, union block_sequence_params *params);
void hwss_link_set_dpms_on(union block_sequence_params *params);
-void hwss_program_tg(union block_sequence_params *params);
-
void hwss_tg_program_global_sync(union block_sequence_params *params);
void hwss_tg_wait_for_state(union block_sequence_params *params);
@@ -2327,8 +2278,6 @@ void hwss_hubp_setup_interdependent(union block_sequence_params *params);
void hwss_dpp_set_cursor_matrix(union block_sequence_params *params);
-void hwss_mpc_update_mpcc(union block_sequence_params *params);
-
void hwss_mpc_update_blending(union block_sequence_params *params);
void hwss_mpc_assert_idle_mpcc(union block_sequence_params *params);
--
2.43.0
next prev parent reply other threads:[~2026-11-11 1:40 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 1:28 [PATCH 00/74] DC Patches November 16, 2026 Wayne Lin
2026-11-11 1:28 ` [PATCH 01/74] drm/amd/display: Fix elapsed time indentation Wayne Lin
2026-11-11 1:28 ` [PATCH 02/74] drm/amd/display: Correct the forced YCbCr420 comment Wayne Lin
2026-11-11 1:28 ` Wayne Lin [this message]
2026-11-11 1:28 ` [PATCH 04/74] drm/amd/display: Skip UPSP programming when UPSP regs are absent Wayne Lin
2026-11-11 1:28 ` [PATCH 05/74] drm/amd/display: Dispatch commit_state_hw through dc2_funcs Wayne Lin
2026-11-11 1:28 ` [PATCH 06/74] drm/amd/display: Add leaf BLS entries for a virtual commit Wayne Lin
2026-11-11 1:28 ` [PATCH 07/74] drm/amd/display: Build the dcn401 virtual commit natively Wayne Lin
2026-11-11 1:28 ` [PATCH 08/74] drm/amd/display: Move HDMI FRL Polling Outside dc_lock Wayne Lin
2026-11-11 1:28 ` [PATCH 09/74] drm/amd/display: Extend the IOMMU mismatch workaround to DCN42B Wayne Lin
2026-11-11 1:28 ` [PATCH 10/74] drm/amd/display: Stop HDMI FRL status polling on fini Wayne Lin
2026-11-12 8:51 ` Eren Özen
2026-11-11 1:28 ` [PATCH 11/74] drm/amd/display: Relax stutter constraints for DRR streams Wayne Lin
2026-11-11 1:28 ` [PATCH 12/74] drm/amd/display: Include Ramless Idle in stutter relaxation Wayne Lin
2026-11-11 1:28 ` [PATCH 13/74] drm/amd/display: Initialize DMUB LSDMA ring buffer Wayne Lin
2026-11-11 1:28 ` [PATCH 14/74] drm/amd/display: Fix FFE test automation link rate change Wayne Lin
2026-11-11 1:28 ` [PATCH 15/74] drm/amd/display: Update indicate pstate enable sequence Wayne Lin
2026-11-11 1:28 ` [PATCH 16/74] drm/amd/display: HWSS Refactor - Watermarks Wayne Lin
2026-11-11 1:28 ` [PATCH 17/74] drm/amd/display: Resolve clk_mgr DPP DTO targets when the sequence is built Wayne Lin
2026-11-11 1:28 ` [PATCH 18/74] drm/amd/display: Resolve clk_mgr DTBCLK " Wayne Lin
2026-11-11 1:28 ` [PATCH 19/74] drm/amd/display: Resolve the DCN401 DENTIST divider " Wayne Lin
2026-11-11 1:28 ` [PATCH 20/74] drm/amd/display: Update default VCO frequency Wayne Lin
2026-11-11 1:28 ` [PATCH 21/74] drm/amd/display: commit validated target when minimal transition cannot be built Wayne Lin
2026-11-11 1:28 ` [PATCH 22/74] drm/amd/display: Update DP HPO to use correct APG instance Wayne Lin
2026-11-11 1:28 ` [PATCH 23/74] drm/amd/display: cleanup tiling and address formats Wayne Lin
2026-11-11 1:28 ` [PATCH 24/74] drm/amd/display: Enable SST PCON FRL DSC passthrough Wayne Lin
2026-11-11 1:28 ` [PATCH 25/74] drm/amd/display: Don't let HPD IRQ handler take dc_lock in reset Wayne Lin
2026-11-11 1:28 ` [PATCH 26/74] drm/amd/display: Skip visual confirm color programming when FW owns it Wayne Lin
2026-11-11 1:28 ` [PATCH 27/74] drm/amd/display: Fix Stage Optimizer Parameter Naming Wayne Lin
2026-11-11 1:28 ` [PATCH 28/74] drm/amd/display: Build the dcn401 seamless update in DC2 Wayne Lin
2026-11-11 1:28 ` [PATCH 29/74] drm/amd/display: Read accelerated mode through a query builder Wayne Lin
2026-11-11 1:28 ` [PATCH 30/74] drm/amd/display: Ensure exit IPS before checking flip status Wayne Lin
2026-11-11 1:28 ` [PATCH 31/74] drm/amd/display: Updating missing assignments for DCN6 Wayne Lin
2026-11-11 1:28 ` [PATCH 32/74] drm/amd/display: update dcn42b based on dcn42 Wayne Lin
2026-11-11 1:28 ` [PATCH 33/74] drm/amd/display: Build the kept-plane surface update in DC2 Wayne Lin
2026-11-11 1:28 ` [PATCH 34/74] drm/amd/display: Skip first-enable steps on a kept plane Wayne Lin
2026-11-11 1:28 ` [PATCH 35/74] drm/amd/display: Enable DRR stutter constraint relaxation on DCN42 Wayne Lin
2026-11-11 1:28 ` [PATCH 36/74] drm/amd/display: detect static screen state and propagate Wayne Lin
2026-11-11 1:28 ` [PATCH 37/74] drm/amd/display: Allow DC_PSR_MASK to enable PSR without DMUB PSR cap Wayne Lin
2026-11-11 1:28 ` [PATCH 38/74] drm/amd/display: Fix DSC teardown gating in post-unlock BLS sequence Wayne Lin
2026-11-11 1:28 ` [PATCH 39/74] drm/amd/display: Enable HDCP on DCN6 Wayne Lin
2026-11-11 1:28 ` [PATCH 40/74] drm/amd/display: enable DF C-state vote on DCN42B Wayne Lin
2026-11-11 1:28 ` [PATCH 41/74] drm/amd/display: Increase the DCN42 DDR5 stutter latency Wayne Lin
2026-11-11 1:28 ` [PATCH 42/74] drm/amd/display: [FW Promotion] Release 0.1.83.0 Wayne Lin
2026-11-11 1:28 ` [PATCH 43/74] drm/amd/display: Promote DC to 3.2.406 Wayne Lin
2026-11-11 1:28 ` [PATCH 44/74] drm/amd/display: Fix KUnit tiled EDID size Wayne Lin
2026-11-12 7:17 ` Eren Özen
2026-11-11 1:28 ` [PATCH 45/74] drm/amd/display: fix hubbub read state logging Wayne Lin
2026-11-11 1:28 ` [PATCH 46/74] drm/amd/display: Keep panel power across link-loss retrain Wayne Lin
2026-11-11 1:28 ` [PATCH 47/74] drm/amd/display: Don't shrink zero-area recout in full viewport visual confirm Wayne Lin
2026-11-11 1:28 ` [PATCH 48/74] drm/amd/display: Keep patched HDMI panels on FRL across detect Wayne Lin
2026-11-11 1:28 ` [PATCH 49/74] drm/amd/display: Use expanded DMUB-provided SoC BB and IP caps Wayne Lin
2026-11-11 1:28 ` [PATCH 50/74] drm/amd/display: Only force P-State on first plane if TTU is below WM Wayne Lin
2026-11-11 1:28 ` [PATCH 51/74] drm/amd/display: Program the kept-plane scaler in DC2 Wayne Lin
2026-11-11 1:28 ` [PATCH 52/74] drm/amd/display: Add and remove two MPO planes " Wayne Lin
2026-11-11 1:28 ` [PATCH 53/74] drm/amd/display: Add DC2 state facts and split the builders Wayne Lin
2026-11-11 1:29 ` [PATCH 54/74] drm/amd/display: Program DC2 commit stereo once Wayne Lin
2026-11-11 1:29 ` [PATCH 55/74] drm/amd/display: Read DCN6 SOP constraints from the idle row Wayne Lin
2026-11-11 1:29 ` [PATCH 56/74] drm/amd/display: Use soc_bb hostvm fraction instead of hardcoded value Wayne Lin
2026-11-11 1:29 ` [PATCH 57/74] drm/amd/display: Increase state if dcfclk deep sleep needed exceeds dcfclk Wayne Lin
2026-11-11 1:29 ` [PATCH 58/74] drm/amd/display: Flip dml2_core_utils_get_segment_horizontal_contiguous() Inputs Wayne Lin
2026-11-11 1:29 ` [PATCH 59/74] drm/amd/display: Update DCN6 Calcs Wayne Lin
2026-11-11 1:29 ` [PATCH 60/74] drm/amd/display: Add effective_number_of_dpp parameter Wayne Lin
2026-11-11 1:29 ` [PATCH 61/74] drm/amd/display: Read DRAM channel width from SMU init table Wayne Lin
2026-11-11 1:29 ` [PATCH 62/74] drm/amd/display: Update DCN42B stutter latency to match DCN42 Wayne Lin
2026-11-11 1:29 ` [PATCH 63/74] drm/amd/display: Expect VRAM|GTT for the DMUB framebuffer Wayne Lin
2026-11-12 7:17 ` Eren Özen
2026-11-11 1:29 ` [PATCH 64/74] drm/amd/display: Report QoS latency bounds and request Wayne Lin
2026-11-11 1:29 ` [PATCH 65/74] drm/amd/display: Bypass chroma upsampling without the DPP cap Wayne Lin
2026-11-11 1:29 ` [PATCH 66/74] drm/amd/display: Limit VRAM aperture retrieval to DCN6 Wayne Lin
2026-11-11 1:29 ` [PATCH 67/74] drm/amd/display: Make DPP_PG_CONTROL and HUBP_PG_CONTROL BLS compliant Wayne Lin
2026-11-11 1:29 ` [PATCH 68/74] drm/amd/display: Seed boot clocks to avoid lowering pre-OS display clocks Wayne Lin
2026-11-11 1:29 ` [PATCH 69/74] drm/amd/display: Account for split pipe overlap in alt channel copy size Wayne Lin
2026-11-11 1:29 ` [PATCH 70/74] drm/amd/display: Get OPP heads and DPP pipes by stream in dc_resource Wayne Lin
2026-11-11 1:29 ` [PATCH 71/74] drm/amd/display: Program ODM 2:1 and 3:1 on one stream in DC2 Wayne Lin
2026-11-11 1:29 ` [PATCH 72/74] drm/amd/display: Enable Replay timing sync by default Wayne Lin
2026-11-11 1:29 ` [PATCH 73/74] drm/amd/display: [FW Promotion] Release 0.1.84.0 Wayne Lin
2026-11-11 1:29 ` [PATCH 74/74] drm/amd/display: Promote DC to 3.2.407 Wayne Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261111014100.3596072-4-Wayne.Lin@amd.com \
--to=wayne.lin@amd.com \
--cc=Chen-Yu.Chen@amd.com \
--cc=PingLei.Lin@amd.com \
--cc=Ray.Wu@amd.com \
--cc=alex.hung@amd.com \
--cc=alvin.lee2@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=aurabindo.pillai@amd.com \
--cc=chiahsuan.chung@amd.com \
--cc=daniel.wheeler@amd.com \
--cc=harry.wentland@amd.com \
--cc=ivan.lipski@amd.com \
--cc=jerry.zuo@amd.com \
--cc=rafal.ostrowski@amd.com \
--cc=roman.li@amd.com \
--cc=sunpeng.li@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.