intel/l3: Add DG1 L3 configuration
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 2 Apr 2019 21:35:34 +0000 (14:35 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 22 Jun 2020 18:41:59 +0000 (11:41 -0700)
Reworks:
 * Jordan: Make DG1 L3 config table empty

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4956>

src/intel/common/gen_l3_config.c

index 6bfcb6ba7d7faf8d00ab8f6271a50b1980128e9c..059a1ed7c14e5a13cf652466ecf4e59e10f720c2 100644 (file)
@@ -165,6 +165,14 @@ static const struct gen_l3_config tgl_l3_configs[] = {
 };
 DECLARE_L3_LIST(tgl);
 
+/**
+ * DG1 validated L3 configurations.  \sa dg1_l3_configs.
+ */
+static const struct gen_l3_config dg1_l3_configs[] = {
+   /* No configurations. L3FullWayAllocationEnable is always set. */
+};
+DECLARE_L3_LIST(dg1);
+
 /**
  * Return a zero-terminated array of validated L3 configurations for the
  * specified device.
@@ -191,7 +199,10 @@ get_l3_list(const struct gen_device_info *devinfo)
       return &icl_l3_list;
 
    case 12:
-      return &tgl_l3_list;
+      if (devinfo->is_dg1)
+         return &dg1_l3_list;
+      else
+         return &tgl_l3_list;
 
    default:
       unreachable("Not implemented");