Received: by 2002:a05:6622:f08:0:0:0:0 with SMTP id l8csp4486670ivc; Tue, 3 Nov 2020 13:18:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmBVvMMEZskgMVQf4owQCKx3Mz1q8JvN76F+kOzf5wbuG2R4Iax9Gd1AlpUcE5JmWoZ4a1 X-Received: by 2002:a17:906:b255:: with SMTP id ce21mr3315067ejb.137.1604438326996; Tue, 03 Nov 2020 13:18:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604438326; cv=none; d=google.com; s=arc-20160816; b=GlWU2ZDfZzI8Xne+fjnvM5fS4rSahY9+yLGGy+Q7nFNPkI6vA3KmovSuUQ5M8p7jcz bVL3rsL/+3nRMT04sa6As1FTBN7YV9wqvr599wsGg+Ne9XhWUoIdk+JDwpZNKKk/VV3O kzuT1i2hTHCb/tH6NByEmBQ/OSV7H2IYvMbNOTWRJrZsj1Qv9dHznlCVlecyWfMq7vwz 4xgF6pFOlKmAygNngWhkphI0bGzZhH/OshyRwARkdssa5bHkdUrN3hxN5ToB7fu0FJ7Z ds6tY2Tw1Fw00To45GT5BDlNG4vnk6DGVV/3Hb1yfuBEk51RiBShlqYnWfpHXtZ2ytqU 0x4g== 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=Z3YlR0NuxmiwduCynm83AvB+/rXCWuKBNibBpbkW2zA=; b=adObR7gYM9r+N2C8e9vxQQooHNEpeMAxLwLJ2G/Qu/T6RW25Lck35uuIu400byU3Sl I6DqvXrWvCkdIm5Efx+WQ8oioT9/vXxp/eiIfFiKTn241xR8KhYem4qcYSJ5D7IAki/6 t3KGMKk/oKPJ3M+lK7mSKT+eNpHq84pGncTQwdQF/3Ofu3fCcXCqcca3XAD/esoZLwej aXeOgs8u+J257I26r5MXlYr9/F4dpDz4WiBAPdKI3jXOB+wuSFJNV90K7eqSEQly2LQ0 +yRVW8A01fvEvoPt6U5zQn37HdCQvQ4wVyGE36G+8nchS9P/ceVnXksm0piKvn6j3ph+ x/Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=k9nFqzYO; 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=fail (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 c25si7304746edy.364.2020.11.03.13.18.24; Tue, 03 Nov 2020 13:18:46 -0800 (PST) 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=@kernel.org header.s=default header.b=k9nFqzYO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389009AbgKCVPy (ORCPT + 99 others); Tue, 3 Nov 2020 16:15:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:60112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388643AbgKCVPq (ORCPT ); Tue, 3 Nov 2020 16:15:46 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D0400206B5; Tue, 3 Nov 2020 21:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604438145; bh=awURhvlnj6+VV9teji5iY18RHMzQ1U3QDyMFsbvi7d0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k9nFqzYOM+l522P7xvIitJEKEVTIxqG4YJQa70X18lEdLHDAqwuaQMIP4gUGFvpTy auVv+WW656t5xs/3ipBevRfPWCEhGXFd3rAwNAnCoh8RUkm4gaAB+XI847b0Qb1gbZ d6f5zdznRSv7bZFa/9sH2GpyzAvuHMfPTxrTGDak= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Yi, Ammy" , Kan Liang , "Peter Zijlstra (Intel)" Subject: [PATCH 5.4 101/214] perf/x86/intel: Fix Ice Lake event constraint table Date: Tue, 3 Nov 2020 21:35:49 +0100 Message-Id: <20201103203300.006197892@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@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 010cb00265f150bf82b23c02ad1fb87ce5c781e1 upstream. An error occues when sampling non-PEBS INST_RETIRED.PREC_DIST(0x01c0) event. perf record -e cpu/event=0xc0,umask=0x01/ -- sleep 1 Error: The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cpu/event=0xc0,umask=0x01/). /bin/dmesg | grep -i perf may provide additional information. The idxmsk64 of the event is set to 0. The event never be successfully scheduled. The event should be limit to the fixed counter 0. Fixes: 6017608936c1 ("perf/x86/intel: Add Icelake support") Reported-by: Yi, Ammy Signed-off-by: Kan Liang Signed-off-by: Peter Zijlstra (Intel) Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20200928134726.13090-1-kan.liang@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/events/intel/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -243,7 +243,7 @@ static struct extra_reg intel_skl_extra_ static struct event_constraint intel_icl_event_constraints[] = { FIXED_EVENT_CONSTRAINT(0x00c0, 0), /* INST_RETIRED.ANY */ - INTEL_UEVENT_CONSTRAINT(0x1c0, 0), /* INST_RETIRED.PREC_DIST */ + FIXED_EVENT_CONSTRAINT(0x01c0, 0), /* INST_RETIRED.PREC_DIST */ FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ FIXED_EVENT_CONSTRAINT(0x0300, 2), /* CPU_CLK_UNHALTED.REF */ FIXED_EVENT_CONSTRAINT(0x0400, 3), /* SLOTS */