aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_dp_mst.c
diff options
context:
space:
mode:
authorMatthew Auld <[email protected]>2021-10-18 17:45:07 +0000
committerMatthew Auld <[email protected]>2021-10-20 15:50:25 +0000
commit3884d8af9b3fcc0c41f04fbd4131be61101d4a4d (patch)
tree22221ceaf9bf9bc1ade31a0c73dba3c8f17add2d /drivers/gpu/drm/i915/display/intel_dp_mst.c
parentdrm/i915: expand on the kernel-doc for cache_dirty (diff)
downloadkernel-3884d8af9b3fcc0c41f04fbd4131be61101d4a4d.tar.gz
kernel-3884d8af9b3fcc0c41f04fbd4131be61101d4a4d.zip
drm/i915: mark up internal objects with start_cpu_write
While the pages can't be swapped out, they can be discarded by the shrinker. Normally such objects are marked with __I915_MADV_PURGED, which can't be unset, and therefore requires a new object. For kernel internal objects this is not true, since the madv hint is reset for our special volatile objects, such that we can re-acquire new pages, if so desired, without needing a new object. As a result we should probably be paranoid here and put the object back into the CPU domain when discarding the pages, and also correctly set cache_dirty, if required. Signed-off-by: Matthew Auld <[email protected]> Cc: Thomas Hellström <[email protected]> Reviewed-by: Thomas Hellström <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp_mst.c')
0 files changed, 0 insertions, 0 deletions