};
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.
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");
gen_get_l3_config_urb_size(const struct gen_device_info *devinfo,
const struct gen_l3_config *cfg)
{
+ /* We don't have to program the URB size in DG1, it's a fixed value. */
+ if (devinfo->is_dg1)
+ return devinfo->urb.size;
+
/* From the SKL "L3 Allocation and Programming" documentation:
*
* "URB is limited to 1008KB due to programming restrictions. This is not