From: sashiko-bot@kernel.org
To: "George Zhang" <george.zhang@amd.com>, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH v2 11/30] drm/amd/display: Add pipe init to core2
Date: Tue, 01 Dec 2026 20:54:43 +0000 [thread overview]
Message-ID: <sashiko-outbox-244255@kernel.org> (raw)
In-Reply-To: <20261201202451.463794-13-george.zhang@amd.com>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] drm/amd/display: dcn401_private_funcs re-enables commit HPO
toggle
- [Medium] drm/amd/display: incomplete NULL dmub_srv handling in core2
wrapped init
- [Low] drm/amd/display: unimplemented FPGA_SET_* block sequence opcodes
--
commit 1b7331c47125a1ce9d6e5eaf45bf45e4636568b5
Author: Tomasz Siemek <tomasz.siemek@amd.com>
drm/amd/display: Add pipe init to core2
This commit adds pipe state initialization and a stage-based build-and-run
loop to core2 hardware initialization, adds HUBBUB and MPC init block
sequence steps, and renames init_hpo_hw_control to setup_hpo_hw_control.
[ ... ]
> diff --git a/drivers/gpu/drm/amd/display/dc/core2/dc_core2_init.c b/drivers/gpu/drm/amd/display/dc/core2/dc_core2_init.c
> index 6d5dd6f00b9fe..0e8e2d299bd31 100644
> --- a/drivers/gpu/drm/amd/display/dc/core2/dc_core2_init.c
> +++ b/drivers/gpu/drm/amd/display/dc/core2/dc_core2_init.c
> @@ -45,7 +46,8 @@ static void core2_resolve_dmub_abi(struct dc *dc,
>
> dc2->dmub_abi = initialization->dmub_abi;
> dc2->dmub_abi_resolved = true;
> - dc->ctx->dmub_srv->dmub->feature_caps = initialization->dmub_abi.feature_caps;
> + if (dc->ctx->dmub_srv && dc->ctx->dmub_srv->dmub)
> + dc->ctx->dmub_srv->dmub->feature_caps = initialization->dmub_abi.feature_caps;
> dc->caps.dmub_caps.psr = initialization->dmub_abi.feature_caps.psr;
> dc->caps.dmub_caps.mclk_sw = initialization->dmub_abi.feature_caps.fw_assisted_mclk_switch_ver > 0;
> dc->caps.dmub_caps.fams_ver = initialization->dmub_abi.feature_caps.fw_assisted_mclk_switch_ver;
[Severity: Medium]
Can core2_run_wrapped_hardware_init() reach core2_resolve_dmub_abi() or
core2_init_pipe_state() when dc->ctx->dmub_srv or dc->ctx->dmub_srv->dmub
is NULL?
Earlier in core2_run_wrapped_hardware_init(), dcn401_build_stage1()
unconditionally emits DMUB_SEND_DMCUB_CMD2 steps that
dc2_bls_step_supported() rejects when ctx->dmub_srv or ctx->dmub_srv->dmub
is NULL, causing core2_run_sequence() to fail and abort initialization on
stage 1. In addition, stage 2 postprocessing in
dcn401_fill_initialization_output() unconditionally dereferences
params->dc->ctx->dmub_srv->dmub->fw_version before
core2_resolve_dmub_abi() is called.
[ ... ]
> diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_init.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_init.c
> index 53d6fab1f4005..7da504fc05b0d 100644
> --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_init.c
> +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_init.c
> @@ -151,7 +151,7 @@ static const struct hwseq_private_funcs dcn401_private_funcs = {
> .plane_atomic_power_down = dcn401_plane_atomic_power_down,
> .plane_atomic_power_down_sequence = dcn401_plane_atomic_power_down_sequence,
> .enable_power_gating_plane = dcn32_enable_power_gating_plane,
> - .init_hpo_hw_control = dcn401_setup_hpo_hw_control,
> + .setup_hpo_hw_control = dcn401_setup_hpo_hw_control,
> .init_odm_mem_power = dcn401_init_odm_mem_power,
> .power_down_vga_mem = dcn401_power_down_vga_mem,
> .dcfclk_gating_control = dcn401_dcfclk_gating_control,
[Severity: Medium]
Does wiring dcn401_setup_hpo_hw_control into setup_hpo_hw_control instead
of the init-only init_hpo_hw_control hook cause dce110_apply_ctx_to_hw()
to disable HPO_IO_EN on DCN 4.01 commits?
On DCN 4.01, apply_ctx_to_hw uses dce110_apply_ctx_to_hw(), which calls
dc->hwseq->funcs.setup_hpo_hw_control(dc->hwseq, is_hpo_acquired) whenever
a commit transitions between HPO and non-HPO streams:
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c:dce110_apply_ctx_to_hw() {
...
if (dc->hwseq->funcs.setup_hpo_hw_control && was_hpo_acquired != is_hpo_acquired) {
dc->hwseq->funcs.setup_hpo_hw_control(dc->hwseq, is_hpo_acquired);
}
...
}
Commit a4758aa3d1d9 ("drm/amd/display: Always enable HPO for DCN4 dGPU")
removed setup_hpo_hw_control from dcn401_private_funcs because disabling
HPO on DCN4 dGPUs breaks DP EDID CTS tests. Once HPO_IO_EN is cleared by
a DC1 commit, neither dp_retrain_link_dp_test() (which checks
dc->hwss.setup_hpo_hw_control, left NULL in dcn401_funcs) nor DC2 commits
via dcn401_non_seamless_builder re-enable it.
> 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 3bf9a15be3dc2..68f7bb01bdd32 100644
> --- a/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
> +++ b/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
[ ... ]
> @@ -1973,6 +1996,12 @@ enum block_sequence_func {
> TG_DELAY_CURSOR_UNTIL_VUPDATE,
> MPC_CURSOR_LOCK,
> DMUB_HW_LOCK_MGR_CMD,
> + HUBBUB_INIT,
> + HUBBUB_GLOBAL_TIMER_ENABLE,
> + MPC_INIT,
> + FPGA_SET_DTBCLK,
> + FPGA_SET_DPREFCLK,
> + FPGA_SET_REFCLK,
> /* This must be the last value in this enum, add new ones above */
> HWSS_BLOCK_SEQUENCE_FUNC_COUNT
> };
[Severity: Low]
Are FPGA_SET_DTBCLK, FPGA_SET_DPREFCLK, FPGA_SET_REFCLK, struct
fpga_set_clk_params, and the dm_helpers.h include in bls_executor.c left
over from another change? None of these opcodes are handled in
dc2_bls_step_supported() or dc2_bls_execute(), and adding them to enum
block_sequence_func increases MAX_HWSS_BLOCK_SEQUENCE_SIZE.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201202451.463794-2-george.zhang@amd.com?part=11
next prev parent reply other threads:[~2026-12-01 20:54 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 20:22 [PATCH v2 00/30] DC Patches for Nov 30 2026 George Zhang
2026-12-01 20:22 ` [PATCH v2 01/30] drm/amd/display: cast clamped rate conversion George Zhang
2026-12-01 20:22 ` [PATCH v2 02/30] drm/amd/display: Split HWSS_CURSOR_LOCK into flat BLS operations George Zhang
2026-12-01 20:22 ` [PATCH v2 03/30] drm/amd/display: clamp AUX reply length as unsigned George Zhang
2026-12-01 20:22 ` [PATCH v2 04/30] drm/amd/display: keep the DPCD read result signed in the MST ISR George Zhang
2026-12-01 20:22 ` [PATCH v2 05/30] drm/amd/display: copy only the status byte on a DMUB AUX write status retry George Zhang
2026-12-01 20:22 ` [PATCH v2 06/30] drm/amd/display: test the DMUB AUX write status reply copy George Zhang
2026-12-01 20:22 ` [PATCH v2 07/30] drm/amd/display: Account for downspread and DFS in clock validation George Zhang
2026-12-01 20:49 ` sashiko-bot
2026-12-01 20:22 ` [PATCH v2 08/30] drm/amd/display: Read max LSDMA BW from DMU George Zhang
2026-12-01 20:22 ` [PATCH v2 09/30] drm/amd/display: Precompute EASF lookup thresholds George Zhang
2026-12-01 20:22 ` [PATCH v2 10/30] drm/amd/display: Make DPP_SET_INPUT_TRANSFER_FUNC BLS compliant George Zhang
2026-12-01 20:22 ` [PATCH v2 11/30] drm/amd/display: Add pipe init to core2 George Zhang
2026-12-01 20:54 ` sashiko-bot [this message]
2026-12-01 20:22 ` [PATCH v2 12/30] drm/amd/display: Fix HDMI FRL no_timeout behavior George Zhang
2026-12-01 20:42 ` sashiko-bot
2026-12-01 20:22 ` [PATCH v2 13/30] drm/amd/display: Re-enable HUBP/DPP Driver PG on DCN42 George Zhang
2026-12-01 20:22 ` [PATCH v2 14/30] drm/amd/display: Program DSC on one stream in DC2 George Zhang
2026-12-01 20:55 ` sashiko-bot
2026-12-01 20:22 ` [PATCH v2 15/30] drm/amd/display: enable dcn42b hubp/dpp pg control from driver side George Zhang
2026-12-01 20:22 ` [PATCH v2 16/30] drm/amd/display: cover gamma 2.4 and 2.6 on the wide curve George Zhang
2026-12-01 20:22 ` [PATCH v2 17/30] drm/amd/display: Revoke alternate channel P-State before pipe teardown George Zhang
2026-12-01 21:09 ` sashiko-bot
2026-12-01 20:22 ` [PATCH v2 18/30] drm/amd/display: block pr in mst right George Zhang
2026-12-01 20:46 ` sashiko-bot
2026-12-01 20:22 ` [PATCH v2 19/30] drm/amd/display: Add a per-ASIC default for the DC2 selection George Zhang
2026-12-01 20:22 ` [PATCH v2 20/30] drm/amd/display: Refactor Max VStartup calculations for DCN6 George Zhang
2026-12-01 20:22 ` [PATCH v2 21/30] drm/amd/display: Improve P-state admissability logic George Zhang
2026-12-01 20:50 ` sashiko-bot
2026-12-01 20:22 ` [PATCH v2 22/30] drm/amd/display: Flip every DPP pipe of the stream in DC2 George Zhang
2026-12-01 21:00 ` sashiko-bot
2026-12-01 20:22 ` [PATCH v2 23/30] drm/amd/display: Report a DC2 BLS step overflow behind a debug option George Zhang
2026-12-01 20:22 ` [PATCH v2 24/30] drm/amd/display: VRR Support on Direct MST Sinks George Zhang
2026-12-01 20:22 ` [PATCH v2 25/30] drm/amd/display: Program YCbCr output in DC2 George Zhang
2026-12-01 20:23 ` [PATCH v2 26/30] drm/amd/display: Skip a stream with no OTG master " George Zhang
2026-12-01 20:23 ` [PATCH v2 27/30] drm/amd/display: Sync OTG timing in the DC2 non-seamless commit George Zhang
2026-12-01 20:57 ` sashiko-bot
2026-12-01 20:23 ` [PATCH v2 28/30] drm/amd/display: Move shared dcn401 builder code to its own file George Zhang
2026-12-01 20:23 ` [PATCH v2 29/30] drm/amd/display: Allow disabling CRC capture when the stream is gone George Zhang
2026-12-01 20:52 ` sashiko-bot
2026-12-01 20:23 ` [PATCH v2 30/30] drm/amd/display: Promote DC to 3.2.410 George Zhang
2026-12-01 20:45 ` sashiko-bot
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=sashiko-outbox-244255@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=amd-gfx@lists.freedesktop.org \
--cc=george.zhang@amd.com \
--cc=sashiko-reviews@lists.linux.dev \
/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.