Patch "drm/i915/migrate: fix offset calculation" has been added to the 5.15-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/i915/migrate: fix offset calculation

to the 5.15-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-i915-migrate-fix-offset-calculation.patch
and it can be found in the queue-5.15 subdirectory.

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



commit 8d9eb2f4e7710d886a242f7731ea85dda01a5e69
Author: Matthew Auld <matthew.auld@xxxxxxxxx>
Date:   Mon Dec 6 11:25:37 2021 +0000

    drm/i915/migrate: fix offset calculation
    
    [ Upstream commit 08c7c122ad90799cc3ae674e7f29f236f91063ce ]
    
    Ensure we add the engine base only after we calculate the qword offset
    into the PTE window.
    
    Signed-off-by: Matthew Auld <matthew.auld@xxxxxxxxx>
    Cc: Thomas Hellström <thomas.hellstrom@xxxxxxxxxxxxxxx>
    Cc: Ramalingam C <ramalingam.c@xxxxxxxxx>
    Reviewed-by: Ramalingam C <ramalingam.c@xxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211206112539.3149779-2-matthew.auld@xxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/i915/gt/intel_migrate.c b/drivers/gpu/drm/i915/gt/intel_migrate.c
index aa05c26ff792..fb7fe3a2b6c6 100644
--- a/drivers/gpu/drm/i915/gt/intel_migrate.c
+++ b/drivers/gpu/drm/i915/gt/intel_migrate.c
@@ -279,10 +279,10 @@ static int emit_pte(struct i915_request *rq,
 	GEM_BUG_ON(GRAPHICS_VER(rq->engine->i915) < 8);
 
 	/* Compute the page directory offset for the target address range */
-	offset += (u64)rq->engine->instance << 32;
 	offset >>= 12;
 	offset *= sizeof(u64);
 	offset += 2 * CHUNK_SZ;
+	offset += (u64)rq->engine->instance << 32;
 
 	cs = intel_ring_begin(rq, 6);
 	if (IS_ERR(cs))



[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