-
Notifications
You must be signed in to change notification settings - Fork 105
[Deepin-Kernel-SIG] [linux 6.6-y] [Upstream] Revert "drm/amd/display: more liberal vmin/vmax update for freesync" #880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Deepin-Kernel-SIG] [linux 6.6-y] [Upstream] Revert "drm/amd/display: more liberal vmin/vmax update for freesync" #880
Conversation
Reviewer's GuideThis PR reverts the more liberal vmin/vmax update logic introduced for freesync in the high IRQ handler by removing the extra replay and PSR checks and restoring the original unconditional adjustment when freesync is active variable. Sequence diagram for reverted vmin/vmax update logic in Freesync IRQ handlersequenceDiagram
participant IRQ_Handler as dm_crtc_high_irq
participant Stream as dm_irq_params.stream
participant FreesyncModule as freesync_module
participant DC as dc
IRQ_Handler->>Stream: Check vrr_params.supported && freesync_config.state == VRR_STATE_ACTIVE_VARIABLE
alt Condition true
IRQ_Handler->>FreesyncModule: mod_freesync_handle_v_update()
IRQ_Handler->>DC: dc_stream_adjust_vmin_vmax()
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
commit 1b824ee upstream. This reverts commit cfb2d41 since it causes regressions on certain configs. Revert until the issue can be isolated and debugged. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4238 Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 3f369af6750583728c8766874ba8a383a16434d1)
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
a01a321 to
cc3554d
Compare
deepin pr auto review代码审查意见:
总体来说,代码的简化可能提高了可读性,但是需要确保这种简化的正确性和必要性。同时,建议进行充分的测试和代码审查,以确保代码的质量和稳定性。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR reverts the recent change that broadened vmin/vmax updates for Freesync, restoring the original conditional logic to prevent regressions on certain configurations.
- Removed replay and PSR checks in the vmin/vmax update path
- Require both VRR support and active-variable Freesync state for updates
- Simplified the
ifcondition and call todc_stream_adjust_vmin_vmax
Comments suppressed due to low confidence (2)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:615
- [nitpick] Indentation of this line is deeper than the other condition lines; consider aligning all parts of the multi-line
ifcondition uniformly for readability.
VRR_STATE_ACTIVE_VARIABLE) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:620
- [nitpick] Split arguments across two lines; consider placing each argument on its own line with consistent indentation or keep the call on one line if it fits within line length limits.
dc_stream_adjust_vmin_vmax(adev->dm.dc, acrtc->dm_irq_params.stream,
…OUGH to default deepin inclusion category: other Removed CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y from defconfig to enforce strict DMA isolation by default. This change aligns ARM64 desktop kernel configuration with other arch. The config also affect cix in link [1]. Link: deepin-community#1335 Fixes: 7821b9fb89ca ("add deepin-community#880 config") Fixes: ce41a38 ("arm64: Add deepin_arm64_desktop_defconfig") Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
…OUGH to default deepin inclusion category: other Removed CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y from defconfig to enforce strict DMA isolation by default. This change aligns ARM64 desktop kernel configuration with other arch. The config also affect cix in link [1]. Note that may bring some affect in some phytium FT2000 or Kunpeng 920 device. Link: deepin-community#1335 Fixes: 7821b9fb89ca ("add deepin-community#880 config") Fixes: ce41a38 ("arm64: Add deepin_arm64_desktop_defconfig") Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
…OUGH to default deepin inclusion category: other Removed CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y from defconfig to enforce strict DMA isolation by default. This change aligns ARM64 desktop kernel configuration with other arch. The config also affect cix in link [1]. Note that may bring some affect in some phytium FT2000 or Kunpeng 920 device. Link: deepin-community#1335 Fixes: 7821b9fb89ca ("add deepin-community#880 config") Fixes: ce41a38 ("arm64: Add deepin_arm64_desktop_defconfig") Reported-by: Dylan.Wu" <Dylan.Wu@cixtech.com> Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
This reverts commit cfb2d41 since it causes regressions on certain configs. Revert until the issue can be isolated and debugged.
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4238
Acked-by: Alex Deucher alexander.deucher@amd.com
Cc: stable@vger.kernel.org
(cherry picked from commit 1b824ee)
Summary by Sourcery
Revert the recent liberalized vmin/vmax update for Freesync to prevent regression issues
Bug Fixes: