OSDN Git Service

drm/i915: Fix preallocated barrier list append
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 29 Jan 2020 23:23:45 +0000 (15:23 -0800)
committerJani Nikula <jani.nikula@intel.com>
Wed, 12 Feb 2020 11:24:45 +0000 (13:24 +0200)
commit52144db1309897f279b53e8df8a0d17e1cda7960
tree53d3bcbdef71f408341692d7157e81b76fb76ec3
parent5b92415e64e145e7da60420ead66b62aa41917bf
drm/i915: Fix preallocated barrier list append

Only the first and the last nodes were being added to
ref->preallocated_barriers.

Renaming variables to make it more easy to read.

Fixes: 841350223816 ("drm/i915/gt: Drop mutex serialisation between context pin/unpin")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200129232345.84512-1-jose.souza@intel.com
(cherry picked from commit d4c3c0b8221a72107eaf35c80c40716b81ca463e)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_active.c