Patch "drm/i915: Fix one wrong caching mode enum usage" 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: Fix one wrong caching mode enum usage

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-fix-one-wrong-caching-mode-enum-usage.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 738cb33610deac306e20935bc4eb7e297519b060
Author: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
Date:   Fri Jul 7 13:55:03 2023 +0100

    drm/i915: Fix one wrong caching mode enum usage
    
    [ Upstream commit 113899c2669dff148b2a5bea4780123811aecc13 ]
    
    Commit a4d86249c773 ("drm/i915/gt: Provide a utility to create a scratch
    buffer") mistakenly passed in uapi I915_CACHING_CACHED as argument to
    i915_gem_object_set_cache_coherency(), which actually takes internal
    enum i915_cache_level.
    
    No functional issue since the value matches I915_CACHE_LLC (1 == 1), which
    is the intended caching mode, but lets clean it up nevertheless.
    
    Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
    Fixes: a4d86249c773 ("drm/i915/gt: Provide a utility to create a scratch buffer")
    Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@xxxxxxxxx>
    Reviewed-by: Tejas Upadhyay <tejas.upadhyay@xxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20230707125503.3965817-1-tvrtko.ursulin@xxxxxxxxxxxxxxx
    (cherry picked from commit 49c60b2f0867ac36fd54d513882a48431aeccae7)
    Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/i915/gt/intel_gtt.c b/drivers/gpu/drm/i915/gt/intel_gtt.c
index 2d3a979736cc1..f9d4094916e3d 100644
--- a/drivers/gpu/drm/i915/gt/intel_gtt.c
+++ b/drivers/gpu/drm/i915/gt/intel_gtt.c
@@ -547,7 +547,7 @@ __vm_create_scratch_for_read(struct i915_address_space *vm, unsigned long size)
 	if (IS_ERR(obj))
 		return ERR_CAST(obj);
 
-	i915_gem_object_set_cache_coherency(obj, I915_CACHING_CACHED);
+	i915_gem_object_set_cache_coherency(obj, I915_CACHE_LLC);
 
 	vma = i915_vma_instance(obj, vm, NULL);
 	if (IS_ERR(vma)) {



[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