Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2657363pxj; Mon, 14 Jun 2021 04:12:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLBjCpwNVIP5EF9JDodG/sJydZgC8fHlm7+x5q7rftPxXOYvQqAohMrC4aQ4bca6nh9zFJ X-Received: by 2002:aa7:c9c5:: with SMTP id i5mr16317857edt.160.1623669157210; Mon, 14 Jun 2021 04:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623669157; cv=none; d=google.com; s=arc-20160816; b=G5mkurL0+tI9w/G1oujgqOXiHc1mPzNDuzg3RYedi8AbwHT5XHA739SwvJgJ8byyz4 KsF6s5BCE4XVqHdORFRZUUg0Hv72m4yHfJQ6JKgNg/5W0klc1KOQzXzoI87fRyNj87Y6 yPEqj8ww+K18l14lhPq/xG7l7xbadcUkBBzqjsXCZYCWI991K+a71LBJ8Oym5fUKHNrQ UwqLwYVUhdo5YsbgwxKJmV0efikkewJIDy0DhETpfOMHaPE8aStnbbBry4y1Bgb63wvi RARtFvoiEjhduZCgp7dtJRTD4UeuYD/i8EyKFGtlwI7ZfRm4O39HvjHbs9astKEsPTT4 yr6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3TMz1PDussj00dwO3fBXaoAGhE//CsPHjWQUGUpTURM=; b=uiriomdnUXrhfxgSeF347UQwUm5/HECZf4mLmXzYKbA47ZnIZkMaKwfhvTayMIoGb2 Vor2BhQeBGpeNiEU27H/WR5QACLWcnnefOgWmLrmgM/nR6AOHD8rDXSfrF2Xf/BV7H1+ rUhl/jQMQxjl4kRLbJragIWesnjDfSb+lNbz9eASlFsryTTZoF6qRaiKPhOIz2zQFGnS Bt6zWFYY0xCAa7X4ZoWUvVo875k923N5t+Fq+98w9tzvFbX+l2XimOaUUu1JNIPYdzgU oqrwQNGhMs21EMIAbJQCc0tGrmv1fhZnufIDqzC8EHJcAtj5zBI5V186wAbqPnfazwop 7+oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j0xWgWQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si12234746edf.406.2021.06.14.04.12.14; Mon, 14 Jun 2021 04:12:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j0xWgWQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234927AbhFNLMY (ORCPT + 99 others); Mon, 14 Jun 2021 07:12:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:35838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234079AbhFNLAx (ORCPT ); Mon, 14 Jun 2021 07:00:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1E7B2616E9; Mon, 14 Jun 2021 10:43:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623667398; bh=l99QUVxOd0wTmQVHZDR6sSnkO+h0/lCiQR1BFpcFR4o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j0xWgWQ5eJn0Fz819ux73ItT/tCbvZRLCyaExJ46fdQ2n2gXc3Zix96+IPS+eHC3C 3JTjmK3NWoqKSXPJxDRB1NkzXO4g+sEsuCUqdtsICQ70zaqQgqJBnAPy1NAW9mQ9g9 9RQCfBOxf4G5ebNjT++PeNU31HpDHDqFNLjwp/CM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jin Yao , Kan Liang , "Peter Zijlstra (Intel)" Subject: [PATCH 5.10 056/131] perf/x86/intel/uncore: Fix M2M event umask for Ice Lake server Date: Mon, 14 Jun 2021 12:26:57 +0200 Message-Id: <20210614102654.927486580@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210614102652.964395392@linuxfoundation.org> References: <20210614102652.964395392@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kan Liang commit 848ff3768684701a4ce73a2ec0e5d438d4e2b0da upstream. Perf tool errors out with the latest event list for the Ice Lake server. event syntax error: 'unc_m2m_imc_reads.to_pmm' \___ value too big for format, maximum is 255 The same as the Snow Ridge server, the M2M uncore unit in the Ice Lake server has the unit mask extension field as well. Fixes: 2b3b76b5ec67 ("perf/x86/intel/uncore: Add Ice Lake server uncore support") Reported-by: Jin Yao Signed-off-by: Kan Liang Signed-off-by: Peter Zijlstra (Intel) Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/1622552943-119174-1-git-send-email-kan.liang@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/events/intel/uncore_snbep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/x86/events/intel/uncore_snbep.c +++ b/arch/x86/events/intel/uncore_snbep.c @@ -5067,9 +5067,10 @@ static struct intel_uncore_type icx_unco .perf_ctr = SNR_M2M_PCI_PMON_CTR0, .event_ctl = SNR_M2M_PCI_PMON_CTL0, .event_mask = SNBEP_PMON_RAW_EVENT_MASK, + .event_mask_ext = SNR_M2M_PCI_PMON_UMASK_EXT, .box_ctl = SNR_M2M_PCI_PMON_BOX_CTL, .ops = &snr_m2m_uncore_pci_ops, - .format_group = &skx_uncore_format_group, + .format_group = &snr_m2m_uncore_format_group, }; static struct attribute *icx_upi_uncore_formats_attr[] = {