Patch "drm/i915/migrate: fix length 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 length 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-length-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 c0bf242232f66d961668453c34c9312bd9be48cc
Author: Matthew Auld <matthew.auld@xxxxxxxxx>
Date:   Mon Dec 6 11:25:38 2021 +0000

    drm/i915/migrate: fix length calculation
    
    [ Upstream commit 31d70749bfe110593fbe8bf45e7c7788c7d85035 ]
    
    No need to insert PTEs for the PTE window itself, also foreach expects a
    length not an end offset, which could be gigantic here with a second
    engine.
    
    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-3-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 fb7fe3a2b6c6..5b59a6effc20 100644
--- a/drivers/gpu/drm/i915/gt/intel_migrate.c
+++ b/drivers/gpu/drm/i915/gt/intel_migrate.c
@@ -133,7 +133,7 @@ static struct i915_address_space *migrate_vm(struct intel_gt *gt)
 			goto err_vm;
 
 		/* Now allow the GPU to rewrite the PTE via its own ppGTT */
-		vm->vm.foreach(&vm->vm, base, base + sz, insert_pte, &d);
+		vm->vm.foreach(&vm->vm, base, d.offset - base, insert_pte, &d);
 	}
 
 	return &vm->vm;



[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