Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5570603pxu; Thu, 22 Oct 2020 06:02:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHM3+rWfBI/TuTKcqu7SLKm0UHxYJ8dsxO8p58UVmR4X0HbkgAxK54V9mVBlsPO3US79ek X-Received: by 2002:a50:fb0d:: with SMTP id d13mr2144627edq.85.1603371727319; Thu, 22 Oct 2020 06:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603371727; cv=none; d=google.com; s=arc-20160816; b=KIolQDmmqr0JG3W8hdxNfhdxeOT+Lju4EwbNuI+UyIEC9Zkdp5+QqaXS+GBewQyPoB ZF08qYGtDtWehUW9Iv90YYiAfspr5BUUlifKDMCPVIS+mqIPQdyGTFQb86MhRZnfRewv +RyDmzjcmkrzv9f1NTwLjkDWo3Gnl0r27Tg70hfgoGiQw92uSzHd8FhRu0t13Rt9vdFc SkEaF5CfY4nOPioIQWCEOswfK4SxHIbddG8PGxRnAMw4GdgdysdESI9IzGKWFVKmw+V9 i3C22Zvh5KFMmbG+jOiVBweWNpny458aTFKStv30ifFptX0802WYqwm+3qGF8+Fbr49O 2Ozg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=CpEb35FhNL6oXeOdh1rdfGl05YJ40u7hn5rcjwrF2xs=; b=z8ZTnFtrUrkE3CsgHL51x3IxZwKr0OHOCjB2fd7xWUmdhlsSJrVmGPsEFVWfjSLVUI feN/evyjVcUOVsjyUuXFfvrIs1vM8oQc8bpXffEzEWCVlBYOYPUPot+t/3mU5dXZTBll i/7kf1YkCBJDv6ZtzxHUfGXeeRh7VmW3r/v7XTkUABcu9+WfJNU+PL0zLIA/1DouKYJd eGjRHcA3vrLBRflSuAk+UdoRQyuMtQS2hmp4jwc0twjgGE718+7V4wT/VkH0tWe/JFYl 5No8mrbBFxdgWRrX26H6Lj24UUIm34+o1UeRsAV98c7kNozoVZ2bHJVLPTur9Xs+AWEv rbEA== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si867986edx.121.2020.10.22.06.01.39; Thu, 22 Oct 2020 06:02:07 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2506841AbgJUWjf (ORCPT + 99 others); Wed, 21 Oct 2020 18:39:35 -0400 Received: from mga11.intel.com ([192.55.52.93]:55175 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2506826AbgJUWjf (ORCPT ); Wed, 21 Oct 2020 18:39:35 -0400 IronPort-SDR: rIDdQlgALiuoSJ1dD096SBs0B7om9x/klowQ08DEGFjO8V56oZdGoeYIkIQpztGzAf7SsdkyeG FumbZR5brqNA== X-IronPort-AV: E=McAfee;i="6000,8403,9781"; a="163951281" X-IronPort-AV: E=Sophos;i="5.77,402,1596524400"; d="scan'208";a="163951281" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2020 15:39:33 -0700 IronPort-SDR: W97OYR0agkN6TAlZuHKb58WWV18JKY9PMagwAJUdkPPFOgMMn7bUVubWgpxgo1WWgs/xNz3rx3 6ub3EJ7AoNfA== X-IronPort-AV: E=Sophos;i="5.77,402,1596524400"; d="scan'208";a="533706728" Received: from tassilo.jf.intel.com ([10.54.74.11]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2020 15:39:33 -0700 Date: Wed, 21 Oct 2020 15:39:32 -0700 From: Andi Kleen To: Stephane Eranian Cc: linux-kernel@vger.kernel.org, kan.liang@intel.com, jolsa@redhat.com, peterz@infradead.org, mingo@elte.hu, irogers@google.com, namhyung@kernel.org Subject: Re: [PATCH] perf/x86/intel: make anythread filter support conditional Message-ID: <20201021223932.GP466880@tassilo.jf.intel.com> References: <20201021211612.2026234-1-eranian@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201021211612.2026234-1-eranian@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 21, 2020 at 02:16:12PM -0700, Stephane Eranian wrote: > Starting with Arch Perfmon v5, the anythread filter on generic counters may be > deprecated. The current kernel was exporting the any filter without checking. > On Icelake, it means you could do cpu/event=0x3c,any/ even though the filter > does not exist. This patch corrects the problem by relying on the CPUID 0xa leaf > function to determine if anythread is supported or not as described in the > Intel SDM Vol3b 18.2.5.1 AnyThread Deprecation section. Reviewed-by: Andi Kleen -Andi