drm/i915/gvt: Drop redundant prepare_write/pin_pages
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Jun 2020 23:45:42 +0000 (00:45 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 20 Jun 2020 08:57:09 +0000 (09:57 +0100)
commit033ef711bbfb671ae58a1acb0f8440889c6000c6
treecee8a692489c8e9a52068ef43b50307c4f159dc7
parent4fb33953438bf3c67c655a4d187f1645446863fb
drm/i915/gvt: Drop redundant prepare_write/pin_pages

Since gvt calls pin_map for the shadow batch buffer, this makes the
action of prepare_write [+pin_pages] redundant. We can write into the
obj->mm.mapping directory and the flush_map routine knows when it has to
flush the cpu cache afterwards.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200619234543.17499-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gvt/cmd_parser.c
drivers/gpu/drm/i915/gvt/scheduler.c
drivers/gpu/drm/i915/gvt/scheduler.h