]> Git Repo - linux.git/commitdiff
drm/i915/gvt: Fix Comet Lake
authorAlex Williamson <[email protected]>
Wed, 10 Aug 2022 21:55:48 +0000 (15:55 -0600)
committerZhenyu Wang <[email protected]>
Mon, 22 Aug 2022 03:33:12 +0000 (11:33 +0800)
Prior to the commit below the GAMT_CHKN_BIT_REG address was setup for
devices matching (D_KBL | D_CFL), where intel_gvt_get_device_type()
returns D_CFL for either Coffee Lake or Comet Lake.  Include the missed
platform.`

Link: https://lore.kernel.org/all/[email protected]
Fixes: e0f74ed4634d ("i915/gvt: Separate the MMIO tracking table from GVT-g")
Signed-off-by: Alex Williamson <[email protected]>
Signed-off-by: Zhenyu Wang <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/166016852965.780835.10366587502693016900.stgit@omen
Reviewed-by: Zhenyu Wang <[email protected]>
drivers/gpu/drm/i915/intel_gvt_mmio_table.c

index 72dac1718f3e7ed419f829254d7a3464c34c9df5..6163aeaee9b9886bd48dc418da09dd4b7e07bb7a 100644 (file)
@@ -1074,7 +1074,8 @@ static int iterate_skl_plus_mmio(struct intel_gvt_mmio_table_iter *iter)
        MMIO_D(GEN8_HDC_CHICKEN1);
        MMIO_D(GEN9_WM_CHICKEN3);
 
-       if (IS_KABYLAKE(dev_priv) || IS_COFFEELAKE(dev_priv))
+       if (IS_KABYLAKE(dev_priv) ||
+           IS_COFFEELAKE(dev_priv) || IS_COMETLAKE(dev_priv))
                MMIO_D(GAMT_CHKN_BIT_REG);
        if (!IS_BROXTON(dev_priv))
                MMIO_D(GEN9_CTX_PREEMPT_REG);
This page took 0.058607 seconds and 4 git commands to generate.