Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp373529ybx; Wed, 6 Nov 2019 02:00:27 -0800 (PST) X-Google-Smtp-Source: APXvYqyys49sKclpCeq0gLlZgnqcSA/CgpYPpKzSAnIVIanBsfkp8wivlrtmHp01i69ED0YmBtIl X-Received: by 2002:a50:da4b:: with SMTP id a11mr1601392edk.17.1573034427381; Wed, 06 Nov 2019 02:00:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573034427; cv=none; d=google.com; s=arc-20160816; b=cTH2ZIWEt+Sg4y7ZoWR9UkjM/o2Heluy7O6O2ltwOYRALbQ9/M4yAL2uqbap9HbyEB 4anSwbGg4RVxgFXZsEPm3I7K72zdQWO/0+wTprYqMNqpo3dlO75UEVFue3ToxIcXD0le IIfrhC0mcOlleKMXuJPaClDT0xz3H1nKIuIv3QiuY1Wk/xchNo+GUQR1UuhzoN7iQx8P j0XxMmxtouM8e5xKEbsQxEj5u9z/NFTXO7eK2xeqFHHJd0K3VFV0Nsh5Xv7RTgbMxLOr OVJLf6/LLE3KAnUxGh88xlHAPGB9C202VVoxH2clQQ5LEf4Yf9WJ7iiZvYLBGPqrwgKq Oqgg== 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=pEOi60hxj9rUlpmt3AQ2uyxpDVk2yVdnMhMixbzTFeI=; b=zo29qHdygvR5nKo9unPkR4l1sryzvC1IxXXWQOuL5DUtWIViaDRwdlPyZFN4FxMG+1 nPBe6PNUn5E2nQpHKMu+6kAqTFoKbZFnleNoED5mQPvot3RUQjKYF/6rPV8aXHYOGjKE l+CCwrKNZiSyjuIPtW8Mg78wzgvwbyFKr/7XDB9WfttElF4t8LHx6IvXmHOG24qSxhI4 LuQIi6ziiKDlqLbfGOhNRN4pBljxGeF1yAbI2TtLtstd7+yvCqeRn6llQvBnmwzXGoRC +QFMYstpVpqoU8+/JGTgJcdm+HNEd/uzMw8sMrfxX2YAyYvdObjei1cgx18huTSiF3CS 1Wdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HRYyyvVQ; 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 gu7si14768563ejb.405.2019.11.06.02.00.03; Wed, 06 Nov 2019 02:00:27 -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=HRYyyvVQ; 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 S1727618AbfKFJ6Q (ORCPT + 99 others); Wed, 6 Nov 2019 04:58:16 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:34012 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbfKFJ6Q (ORCPT ); Wed, 6 Nov 2019 04:58:16 -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=pEOi60hxj9rUlpmt3AQ2uyxpDVk2yVdnMhMixbzTFeI=; b=HRYyyvVQsAS6nAl+fCluFegk1 jeYNquWSMkN9TaXSNwh6k8vUGgVyIpMek9be5kmVO4ugopk1YFD/5gHHx7mnrmnmHewqbMlrsloJa WcwXroIxDJYrHs4dfHjc4Z7dBq1Yv/YT3gpCNQL7VGpZV4N8T6VzYL+i3WXk/+BXC9DXvR24lyAXL L/wbBjPI/zGJrWhOrNVumMj5YTFL/t+Y8hkAVY1668Afwkn9D0GmZiBLeQwZJ3UvR3THH5540hPrV cRtHfpjY9TE/VLcpAYt+yxNk8sTSQGNeZvxbOsDgvOBRCBa+MP06lFzaekAEi+G0aXc27Y3r1rHHH Aqgx/lpvA==; 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 1iSI4q-0003dA-BR; Wed, 06 Nov 2019 09:58:12 +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 6FB11301A79; Wed, 6 Nov 2019 10:57:06 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7142529ABB5FD; Wed, 6 Nov 2019 10:58:10 +0100 (CET) Date: Wed, 6 Nov 2019 10:58:10 +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: <20191106095810.GK5671@hirez.programming.kicks-ass.net> References: <1573002091-9744-1-git-send-email-gkulkarni@marvell.com> <1573002091-9744-2-git-send-email-gkulkarni@marvell.com> <20191106094032.GV4131@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191106094032.GV4131@hirez.programming.kicks-ass.net> 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 10:40:32AM +0100, Peter Zijlstra wrote: > 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. More specifically, how is a reschedule due to rotation any different than a reschedule due to context switch? Both cases we do a full reprogram of the PMU.