@@ -6660,10 +6660,19 @@ static const struct attribute_group dmr_cxlcm_uncore_format_group = {
66606660 .attrs = dmr_cxlcm_uncore_formats_attr ,
66616661};
66626662
6663+ static struct event_constraint dmr_uncore_cxlcm_constraints [] = {
6664+ UNCORE_EVENT_CONSTRAINT_RANGE (0x1 , 0x24 , 0x0f ),
6665+ UNCORE_EVENT_CONSTRAINT_RANGE (0x41 , 0x41 , 0xf0 ),
6666+ UNCORE_EVENT_CONSTRAINT_RANGE (0x50 , 0x5e , 0xf0 ),
6667+ UNCORE_EVENT_CONSTRAINT_RANGE (0x60 , 0x61 , 0xf0 ),
6668+ EVENT_CONSTRAINT_END
6669+ };
6670+
66636671static struct intel_uncore_type dmr_uncore_cxlcm = {
66646672 .name = "cxlcm" ,
66656673 .event_mask = GENERIC_PMON_RAW_EVENT_MASK ,
66666674 .event_mask_ext = DMR_CXLCM_EVENT_MASK_EXT ,
6675+ .constraints = dmr_uncore_cxlcm_constraints ,
66676676 .format_group = & dmr_cxlcm_uncore_format_group ,
66686677 .attr_update = uncore_alias_groups ,
66696678};
@@ -6675,9 +6684,20 @@ static struct intel_uncore_type dmr_uncore_hamvf = {
66756684 .attr_update = uncore_alias_groups ,
66766685};
66776686
6687+ static struct event_constraint dmr_uncore_cbo_constraints [] = {
6688+ UNCORE_EVENT_CONSTRAINT (0x11 , 0x1 ),
6689+ UNCORE_EVENT_CONSTRAINT_RANGE (0x19 , 0x1a , 0x1 ),
6690+ UNCORE_EVENT_CONSTRAINT (0x1f , 0x1 ),
6691+ UNCORE_EVENT_CONSTRAINT (0x21 , 0x1 ),
6692+ UNCORE_EVENT_CONSTRAINT (0x25 , 0x1 ),
6693+ UNCORE_EVENT_CONSTRAINT (0x36 , 0x1 ),
6694+ EVENT_CONSTRAINT_END
6695+ };
6696+
66786697static struct intel_uncore_type dmr_uncore_cbo = {
66796698 .name = "cbo" ,
66806699 .event_mask_ext = DMR_HAMVF_EVENT_MASK_EXT ,
6700+ .constraints = dmr_uncore_cbo_constraints ,
66816701 .format_group = & dmr_sca_uncore_format_group ,
66826702 .attr_update = uncore_alias_groups ,
66836703};
@@ -6711,9 +6731,16 @@ static struct intel_uncore_type dmr_uncore_dda = {
67116731 .attr_update = uncore_alias_groups ,
67126732};
67136733
6734+ static struct event_constraint dmr_uncore_sbo_constraints [] = {
6735+ UNCORE_EVENT_CONSTRAINT (0x1f , 0x01 ),
6736+ UNCORE_EVENT_CONSTRAINT (0x25 , 0x01 ),
6737+ EVENT_CONSTRAINT_END
6738+ };
6739+
67146740static struct intel_uncore_type dmr_uncore_sbo = {
67156741 .name = "sbo" ,
67166742 .event_mask_ext = DMR_HAMVF_EVENT_MASK_EXT ,
6743+ .constraints = dmr_uncore_sbo_constraints ,
67176744 .format_group = & dmr_sca_uncore_format_group ,
67186745 .attr_update = uncore_alias_groups ,
67196746};
0 commit comments