diff options
author | Min He <min.he@intel.com> | 2018-03-02 05:00:25 +0300 |
---|---|---|
committer | Zhi Wang <zhi.a.wang@intel.com> | 2018-03-09 16:53:18 +0300 |
commit | fa3dd623e559e8e7004179f9594b090318df0d05 (patch) | |
tree | a77a09c7b4dcc81f1fbba56da95f640fc4e06772 /drivers/gpu/drm/i915/gvt/scheduler.h | |
parent | b24881e0b0b69155b092c525b7fded258d78a46d (diff) | |
download | linux-fa3dd623e559e8e7004179f9594b090318df0d05.tar.xz |
drm/i915/gvt: keep oa config in shadow ctx
When populating shadow ctx from guest, we should handle oa related
registers in hw ctx, so that they will not be overlapped by guest oa
configs. This patch made it possible to capture oa data from host for
both host and guests.
Signed-off-by: Min He <min.he@intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/scheduler.h')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/scheduler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/scheduler.h b/drivers/gpu/drm/i915/gvt/scheduler.h index ff175a98b19e..2603336b7c6d 100644 --- a/drivers/gpu/drm/i915/gvt/scheduler.h +++ b/drivers/gpu/drm/i915/gvt/scheduler.h @@ -110,6 +110,10 @@ struct intel_vgpu_workload { /* shadow batch buffer */ struct list_head shadow_bb; struct intel_shadow_wa_ctx wa_ctx; + + /* oa registers */ + u32 oactxctrl; + u32 flex_mmio[7]; }; struct intel_vgpu_shadow_bb { |