drm/i915/bxt: Broxton DDB is 512 blocks
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 17 Mar 2015 09:39:34 +0000 (11:39 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 9 Apr 2015 13:57:49 +0000 (15:57 +0200)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Antti Koskipää <antti.koskipaa@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c

index fa4ccb346389e2369effb3b3c48f6f211afa4832..1e25e3e26a6787a19a99347e4324ecef7381eb3d 100644 (file)
@@ -2538,6 +2538,7 @@ static bool ilk_disable_lp_wm(struct drm_device *dev)
  */
 
 #define SKL_DDB_SIZE           896     /* in blocks */
+#define BXT_DDB_SIZE           512
 
 static void
 skl_ddb_get_pipe_allocation_limits(struct drm_device *dev,
@@ -2556,7 +2557,10 @@ skl_ddb_get_pipe_allocation_limits(struct drm_device *dev,
                return;
        }
 
-       ddb_size = SKL_DDB_SIZE;
+       if (IS_BROXTON(dev))
+               ddb_size = BXT_DDB_SIZE;
+       else
+               ddb_size = SKL_DDB_SIZE;
 
        ddb_size -= 4; /* 4 blocks for bypass path allocation */