Patch "drm/v3d: fix wait for TMU write combiner flush" has been added to the 5.4-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

    drm/v3d: fix wait for TMU write combiner flush

to the 5.4-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:
     drm-v3d-fix-wait-for-tmu-write-combiner-flush.patch
and it can be found in the queue-5.4 subdirectory.

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



commit 50643d491ef07c57634f90fd81710456201a4f73
Author: Iago Toral Quiroga <itoral@xxxxxxxxxx>
Date:   Wed Sep 15 12:05:07 2021 +0200

    drm/v3d: fix wait for TMU write combiner flush
    
    [ Upstream commit e4f868191138975f2fdf2f37c11318b47db4acc9 ]
    
    The hardware sets the TMUWCF bit back to 0 when the TMU write
    combiner flush completes so we should be checking for that instead
    of the L2TFLS bit.
    
    v2 (Melissa Wen):
      - Add Signed-off-by and Fixes tags.
      - Change the error message for the timeout to be more clear.
    
    Fixes spurious Vulkan CTS failures in:
    dEQP-VK.binding_model.descriptorset_random.*
    
    Fixes: d223f98f02099 ("drm/v3d: Add support for compute shader dispatch.")
    Signed-off-by: Iago Toral Quiroga <itoral@xxxxxxxxxx>
    Reviewed-by: Melissa Wen <mwen@xxxxxxxxxx>
    Signed-off-by: Melissa Wen <melissa.srw@xxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210915100507.3945-1-itoral@xxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/v3d/v3d_gem.c b/drivers/gpu/drm/v3d/v3d_gem.c
index 19c092d75266b..1609a85429cef 100644
--- a/drivers/gpu/drm/v3d/v3d_gem.c
+++ b/drivers/gpu/drm/v3d/v3d_gem.c
@@ -195,8 +195,8 @@ v3d_clean_caches(struct v3d_dev *v3d)
 
 	V3D_CORE_WRITE(core, V3D_CTL_L2TCACTL, V3D_L2TCACTL_TMUWCF);
 	if (wait_for(!(V3D_CORE_READ(core, V3D_CTL_L2TCACTL) &
-		       V3D_L2TCACTL_L2TFLS), 100)) {
-		DRM_ERROR("Timeout waiting for L1T write combiner flush\n");
+		       V3D_L2TCACTL_TMUWCF), 100)) {
+		DRM_ERROR("Timeout waiting for TMU write combiner flush\n");
 	}
 
 	mutex_lock(&v3d->cache_clean_lock);



[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