diff options
author | Yan Zhao <[email protected]> | 2020-12-23 11:44:30 +0800 |
---|---|---|
committer | Zhenyu Wang <[email protected]> | 2020-12-25 11:12:46 +0800 |
commit | 493f30cd086e5250e77f1ff201d22872a46e83e4 (patch) | |
tree | 3d13085550f86e620db498c209cc14007eef8bdd /lib/mpi/mpi-sub-ui.c | |
parent | fe7bcfaeb2b775f257348dc7b935f8e80eef3e7d (diff) |
drm/i915/gvt: parse init context to update cmd accessible reg whitelist
Logical Context is actually a big batch buffer consisting of multiple
LRI commands + saved registers. It comprises Ring Context (the first
0x50 dwords) and Engine Context. The registers defined in Engine Context
are command accessible, and safe to execute in VM Context.
However, not all of them are currently tracked in existing register
whitelist. Here we kick hardware to generate a dummy Engine Context and
then scan the dummy Engine context to update whitelist dynamically. Based
on updated list, later patches will audit future VM Engine Contexts to
disallow undesired LRIs (if out of what hardware generates).
Cc: Kevin Tian <[email protected]>
Signed-off-by: Wang Zhi <[email protected]>
Signed-off-by: Yan Zhao <[email protected]>
Signed-off-by: Zhenyu Wang <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Zhenyu Wang <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions