i965: Fix broxton 2x6 l3 config
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 7 Jun 2017 22:47:24 +0000 (15:47 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 20 Jun 2017 19:18:26 +0000 (12:18 -0700)
The new table added in this patch matches with the table
in gfxspecs. We were programming the wrong values earlier.

V2: Update the comment.

Cc: "17.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/intel/common/gen_l3_config.c

index ae31d08bdf384481be5177c45393a436c66ccf12..150ec261a5f3cbda4fb95ea21bab49bf4780c0ce 100644 (file)
@@ -101,6 +101,20 @@ static const struct gen_l3_config chv_l3_configs[] = {
    {{ 0 }}
 };
 
+/**
+ * BXT 2x6 validated L3 configurations.  \sa ivb_l3_configs.
+ */
+static const struct gen_l3_config bxt_2x6_l3_configs[] = {
+   /* SLM URB ALL DC  RO  IS   C   T */
+   {{  0, 32, 48,  0,  0,  0,  0,  0 }},
+   {{  0, 32,  0,  8, 40,  0,  0,  0 }},
+   {{  0, 32,  0, 32, 16,  0,  0,  0 }},
+   {{ 16, 16, 48,  0,  0,  0,  0,  0 }},
+   {{ 16, 16,  0, 40,  8,  0,  0,  0 }},
+   {{ 16, 16,  0, 16, 32,  0,  0,  0 }},
+   {{ 0 }}
+};
+
 /**
  * Return a zero-terminated array of validated L3 configurations for the
  * specified device.
@@ -117,6 +131,8 @@ get_l3_configs(const struct gen_device_info *devinfo)
 
    case 9:
    case 10:
+      if (devinfo->l3_banks == 1)
+         return bxt_2x6_l3_configs;
       return chv_l3_configs;
 
    default: