Module: Mesa
Branch: main
Commit: 468904e833f7598dab68c7b8ff6d751de0952516
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=468904e833f7598dab68c7b8ff6d751de0952516

Author: Francisco Jerez <curroje...@riseup.net>
Date:   Fri Sep 29 01:04:12 2023 -0700

intel/dg2: Import L3 cache configurations.

Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25493>

---

 src/intel/common/intel_l3_config.c | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/src/intel/common/intel_l3_config.c 
b/src/intel/common/intel_l3_config.c
index 1f1c2008aab..0018d0acaf0 100644
--- a/src/intel/common/intel_l3_config.c
+++ b/src/intel/common/intel_l3_config.c
@@ -155,6 +155,17 @@ static const struct intel_l3_config empty_l3_configs[] = {
 };
 DECLARE_L3_LIST(empty);
 
+/**
+ * DG2 validated L3 configurations. \sa dg2_l3_configs.
+ */
+static const struct intel_l3_config dg2_l3_configs[] = {
+   /* SLM URB  ALL   DC   RO  IS   C   T  TC */
+   {{  0,  0,  128,   0,   0,  0,  0,  0,  0 }},
+   {{  0,  0,   96,   0,   0,  0,  0,  0, 32 }},
+   {{  0,  0,   64,   0,   0,  0,  0,  0, 64 }},
+};
+DECLARE_L3_LIST(dg2);
+
 /**
  * Return a zero-terminated array of validated L3 configurations for the
  * specified device.
@@ -178,7 +189,9 @@ get_l3_list(const struct intel_device_info *devinfo)
       return &icl_l3_list;
 
    case 12:
-      if (devinfo->platform == INTEL_PLATFORM_DG1 || devinfo->verx10 == 125)
+      if (intel_device_info_is_dg2(devinfo))
+         return &dg2_l3_list;
+      else if (devinfo->platform == INTEL_PLATFORM_DG1 || devinfo->verx10 == 
125)
          return &empty_l3_list;
       else
          return &tgl_l3_list;

Reply via email to