drm/i915/gvt: Parse default state to update reg whitelist
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Jan 2021 00:49:32 +0000 (00:49 +0000)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 22 Feb 2021 08:13:19 +0000 (16:13 +0800)
commit97ea656521c8e94c202d24f9d953cb65297f9aec
tree2eb307892f04a1babe05bd50be001eead7b85139
parent81ce8f04aa96f7f6cae05770f68b5d15be91f5a2
drm/i915/gvt: Parse default state to update reg whitelist

Rather than break existing context objects by incorrectly forcing them
to rogue cache coherency and trying to assert a new mapping, read the
reg whitelist from the default context image.

And use gvt->gt, never &dev_priv->gt.

Fixes: 493f30cd086e ("drm/i915/gvt: parse init context to update cmd accessible reg whitelist")
Acked-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Cc: Wang Zhi <zhi.a.wang@intel.com>
Cc: Yan Zhao <yan.y.zhao@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210129004933.29755-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gvt/cmd_parser.c