Patch "drm/vc4: Match drm_dev_enter and exit calls in vc4_hvs_lut_load" has been added to the 6.11-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/vc4: Match drm_dev_enter and exit calls in vc4_hvs_lut_load

to the 6.11-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-vc4-match-drm_dev_enter-and-exit-calls-in-vc4_hv.patch
and it can be found in the queue-6.11 subdirectory.

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



commit 7b4aef09e550c6aa35801295b142778852be2f51
Author: Dave Stevenson <dave.stevenson@xxxxxxxxxxxxxxx>
Date:   Tue Oct 8 17:44:34 2024 +0100

    drm/vc4: Match drm_dev_enter and exit calls in vc4_hvs_lut_load
    
    [ Upstream commit cf1c87d978d47339a39bfa7a6133ecd3f8f87525 ]
    
    Commit 52efe364d196 ("drm/vc4: hvs: Don't write gamma luts on 2711")
    added a return path to vc4_hvs_lut_load that had called
    drm_dev_enter, but not drm_dev_exit.
    
    Ensure we call drm_dev_exit.
    
    Fixes: 52efe364d196 ("drm/vc4: hvs: Don't write gamma luts on 2711")
    Reported-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
    Closes: https://lore.kernel.org/dri-devel/37051126-3921-4afe-a936-5f828bff5752@xxxxxxxxxxx/
    Tested-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
    Reviewed-by: Maíra Canal <mcanal@xxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20241008-drm-vc4-fixes-v1-1-9d0396ca9f42@xxxxxxxxxxxxxxx
    Signed-off-by: Dave Stevenson <dave.stevenson@xxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/vc4/vc4_hvs.c b/drivers/gpu/drm/vc4/vc4_hvs.c
index 64d2410b4b860..ad2d8f6f1e9ef 100644
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
@@ -225,7 +225,7 @@ static void vc4_hvs_lut_load(struct vc4_hvs *hvs,
 		return;
 
 	if (hvs->vc4->gen == VC4_GEN_4)
-		return;
+		goto exit;
 
 	/* The LUT memory is laid out with each HVS channel in order,
 	 * each of which takes 256 writes for R, 256 for G, then 256
@@ -242,6 +242,7 @@ static void vc4_hvs_lut_load(struct vc4_hvs *hvs,
 	for (i = 0; i < crtc->gamma_size; i++)
 		HVS_WRITE(SCALER_GAMDATA, vc4_crtc->lut_b[i]);
 
+exit:
 	drm_dev_exit(idx);
 }
 




[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