From 4f9141607f40f0be9cee38ff6b006a05bba72e88 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Mon, 9 Dec 2019 10:51:40 -0800 Subject: [PATCH] intel: Add device info for DG2 Reworks: * Lionel: simulator_id * Rafael: has_llc * Merged Lionel's "intel/devinfo: store the different kind of DG2" Signed-off-by: Jordan Justen Acked-by: Kenneth Graunke Part-of: --- src/intel/dev/intel_device_info.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/intel/dev/intel_device_info.c b/src/intel/dev/intel_device_info.c index 7024ce0754c..ceba3053738 100644 --- a/src/intel/dev/intel_device_info.c +++ b/src/intel/dev/intel_device_info.c @@ -1028,6 +1028,31 @@ static const struct intel_device_info intel_device_info_sg1 = { GFX12_DG1_SG1_FEATURES, }; +#define XEHP_FEATURES(_gt, _slices, _l3) \ + GFX12_FEATURES(_gt, _slices, _l3), \ + .verx10 = 125, \ + .has_llc = false, \ + .has_local_mem = true, \ + .has_aux_map = false, \ + .simulator_id = 29, \ + .cs_prefetch_size = 1024 + +#define DG2_FEATURES \ + /* (Sub)slice info comes from the kernel topology info */ \ + XEHP_FEATURES(0, 1, 0), \ + .num_subslices = dual_subslices(1), \ + .has_lsc = true + +UNUSED static const struct intel_device_info intel_device_info_dg2_g10 = { + DG2_FEATURES, + .platform = INTEL_PLATFORM_DG2_G10, +}; + +UNUSED static const struct intel_device_info intel_device_info_dg2_g11 = { + DG2_FEATURES, + .platform = INTEL_PLATFORM_DG2_G11, +}; + static void reset_masks(struct intel_device_info *devinfo) {