Patch "drm/nouveau/dp: Fix incorrect return code in r535_dp_aux_xfer()" has been added to the 6.8-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/nouveau/dp: Fix incorrect return code in r535_dp_aux_xfer()

to the 6.8-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-nouveau-dp-fix-incorrect-return-code-in-r535_dp_.patch
and it can be found in the queue-6.8 subdirectory.

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



commit 1898e92841734675e599b4b1e82b5823b38df9e1
Author: Lyude Paul <lyude@xxxxxxxxxx>
Date:   Fri Mar 15 17:20:56 2024 -0400

    drm/nouveau/dp: Fix incorrect return code in r535_dp_aux_xfer()
    
    [ Upstream commit 97252d0a4bfbb07079503d059f7522d305fe0f7a ]
    
    I've recently been seeing some unexplained GSP errors on my RTX 6000 from
    failed aux transactions:
    
      [  132.915867] nouveau 0000:1f:00.0: gsp: cli:0xc1d00002 obj:0x00730000
      ctrl cmd:0x00731341 failed: 0x0000ffff
    
    While the cause of these is not yet clear, these messages made me notice
    that the aux transactions causing these transactions were succeeding - not
    failing. As it turns out, this is because we're currently not returning the
    correct variable when r535_dp_aux_xfer() hits an error - causing us to
    never propagate GSP errors for failed aux transactions to userspace.
    
    So, let's fix that.
    
    Fixes: 4ae3a20102b2 ("nouveau/gsp: don't free ctrl messages on errors")
    Signed-off-by: Lyude Paul <lyude@xxxxxxxxxx>
    Reviewed-by: Dave Airlie <airlied@xxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240315212104.776936-1-lyude@xxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/r535.c b/drivers/gpu/drm/nouveau/nvkm/engine/disp/r535.c
index 6a0a4d3b8902d..027867c2a8c5b 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/r535.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/r535.c
@@ -1080,7 +1080,7 @@ r535_dp_aux_xfer(struct nvkm_outp *outp, u8 type, u32 addr, u8 *data, u8 *psize)
 	ret = nvkm_gsp_rm_ctrl_push(&disp->rm.objcom, &ctrl, sizeof(*ctrl));
 	if (ret) {
 		nvkm_gsp_rm_ctrl_done(&disp->rm.objcom, ctrl);
-		return PTR_ERR(ctrl);
+		return ret;
 	}
 
 	memcpy(data, ctrl->data, size);




[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