Patch "amd/display: downgrade validation failure log level" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    amd/display: downgrade validation failure log level

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     amd-display-downgrade-validation-failure-log-level.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 6899d0ef732225e71fc6425758a0d5fa148287bc
Author: Simon Ser <contact@xxxxxxxxxxx>
Date:   Tue Sep 7 14:19:34 2021 +0000

    amd/display: downgrade validation failure log level
    
    [ Upstream commit 7bbee36d71502ab9a341505da89a017c7ae2e6b2 ]
    
    In amdgpu_dm_atomic_check, dc_validate_global_state is called. On
    failure this logs a warning to the kernel journal. However warnings
    shouldn't be used for atomic test-only commit failures: user-space
    might be perfoming a lot of atomic test-only commits to find the
    best hardware configuration.
    
    Downgrade the log to a regular DRM atomic message. While at it, use
    the new device-aware logging infrastructure.
    
    This fixes error messages in the kernel when running gamescope [1].
    
    [1]: https://github.com/Plagman/gamescope/issues/245
    
    Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@xxxxxxx>
    Signed-off-by: Simon Ser <contact@xxxxxxxxxxx>
    Cc: Alex Deucher <alexander.deucher@xxxxxxx>
    Cc: Harry Wentland <hwentlan@xxxxxxx>
    Cc: Nicholas Kazlauskas <nicholas.kazlauskas@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 6a4c6c47dcfa..a4a4bb43c108 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -10469,7 +10469,8 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
 			goto fail;
 		status = dc_validate_global_state(dc, dm_state->context, false);
 		if (status != DC_OK) {
-			DC_LOG_WARNING("DC global validation failure: %s (%d)",
+			drm_dbg_atomic(dev,
+				       "DC global validation failure: %s (%d)",
 				       dc_status_to_str(status), status);
 			ret = -EINVAL;
 			goto fail;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux