Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp360239ybx; Wed, 6 Nov 2019 01:42:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxrBbQy0mbPxngvtpKm73HhS7Iyt5xJsF42s90Q+ZKX5DyEPZYTtjzLYrlTAWnqIDLgvMXu X-Received: by 2002:a50:d7c9:: with SMTP id m9mr1588649edj.93.1573033338374; Wed, 06 Nov 2019 01:42:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573033338; cv=none; d=google.com; s=arc-20160816; b=Wl0kv2NqvjPVTS20ytyP++D1NoV9kzn8f/nStzreJYbnA69h7E46rjb+TX9iEW9HPa D6oztT1J+Pz9Xuydj4A0b8Kmr+XB3jnbYtFtifOSYv6E8BH47f9P7eBYi1/snNnYhmvZ Uc3H9GkJvzjklOIezixjfFdbxA9i4Y8PK/tVTCk/ab5FFaNg2ph8vatJy5rvZLIAexry 8OwQhzAlmo+x3HfnyEwsB8CLpr4WnUnDwAXdRVD3TSICMPLYYuf9UDlvraa1cNql6RHa XPW9JVKh40HR8Zvxy8YN/wObZmaVIbTdbpBXz7JLYJE6+IW+JoVeOG2ZITZV31vS6epQ UE9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/YQ9LfHefZM8w/IcM4p+bj0fVJMJxLHGZzxqfEZnLwE=; b=E+96ZFLLwwkSBEOXEAfXgkZPf6HQcYGrXpZgI77P4awulF2AlWYRQc1XHPEMqlxwXi +9MkgbweXxVEtaFU17+WNmrLwde8s5+QyWbwp9wVCKibTSgVWSpqoEwrIyjjt3too3lJ Qiw6a6lYzCvSSjyx87d0nHIqCpFnTK0jW+ZnsE2Vi1h+UWTvh9g5qJahWwo7kMmtjszZ NCCvAunvw73mjzWlfF+BlMC0zmAGJq9LGgwphc5cBOHwXcYfVcWau2+Ujp/jZsEbjrv7 vO6TrDrURHaIpO/PUDz7gNKP4cch8FYDaLTb/+WwfwyoUWC8i+DpgZx3oKYBlul9VvSl xkfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=i44IRP3w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w25si12112458edl.418.2019.11.06.01.41.54; Wed, 06 Nov 2019 01:42:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=i44IRP3w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730620AbfKFJki (ORCPT + 99 others); Wed, 6 Nov 2019 04:40:38 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:46648 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbfKFJkh (ORCPT ); Wed, 6 Nov 2019 04:40:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/YQ9LfHefZM8w/IcM4p+bj0fVJMJxLHGZzxqfEZnLwE=; b=i44IRP3wDyAe84Z1rp5zkOS+4 /vJhxu4UO8U1F52m8AH0k6cV6GitjIwq0zuzMVt3GH+eGIEJTuFQi9uceN7tK7twwn+lPyRQ4ky6V eIHQNc5lyxzRca3fzXKwYzmuX0Iyzo2MC55iA/aUv1Tn6UZScvBSHf3oc+WxrtV1CwxH7nO//4v0r xA7/VSFbCMVIXpxqmE9hJzKR6L4aRa+GTwKumN1SIZbE3fC/LL/yvcFKfUeOKGmjx+RYfPQatNAjd dKwT0dfdrPM987KmXoIJdl+0qheY4CXPACSazbMHnYOB/eqAEuyK8Z3rZwf3vsoB+A7JSyuCgqY1B MgRcLmYrg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSHnm-0004AE-KN; Wed, 06 Nov 2019 09:40:34 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 280B4300692; Wed, 6 Nov 2019 10:39:28 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2881C29ABB5F9; Wed, 6 Nov 2019 10:40:32 +0100 (CET) Date: Wed, 6 Nov 2019 10:40:32 +0100 From: Peter Zijlstra To: Ganapatrao Prabhakerrao Kulkarni Cc: "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "mingo@redhat.com" , "will@kernel.org" , "mark.rutland@arm.com" , "corbet@lwn.net" , "gklkml16@gmail.com" Subject: Re: [PATCH 1/2] perf/core: Adding capability to disable PMUs event multiplexing Message-ID: <20191106094032.GV4131@hirez.programming.kicks-ass.net> References: <1573002091-9744-1-git-send-email-gkulkarni@marvell.com> <1573002091-9744-2-git-send-email-gkulkarni@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1573002091-9744-2-git-send-email-gkulkarni@marvell.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 06, 2019 at 01:01:40AM +0000, Ganapatrao Prabhakerrao Kulkarni wrote: > When PMUs are registered, perf core enables event multiplexing > support by default. There is no provision for PMUs to disable > event multiplexing, if PMUs want to disable due to unavoidable > circumstances like hardware errata etc. > > Adding PMU capability flag PERF_PMU_CAP_NO_MUX_EVENTS and support > to allow PMUs to explicitly disable event multiplexing. This doesn't make sense, multiplexing relies on nothing that normal event scheduling doesn't also rely on. Either you can schedule different sets of events, or you cannot. NAK.