From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4EEBC433F5 for ; Tue, 9 Nov 2021 01:50:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 930E66113D for ; Tue, 9 Nov 2021 01:50:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 930E66113D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EWnmdCU9NxdOZJw/5lPh5WJCHEPRPAYdscMGyC42eyE=; b=ExmuFsLXQUVwjf ykjaBoWNjRmKN0lNV9+323BV7ny8Tb+cYOnG5uXG3V7ESO91GFg8oNdXVUa8O+We6gIeHEPLNBNTH JKDo5t4CqID9T+zO/NRW3SFPTcmiaRU2J0f6Mf3cH3DkH2tlOVXI449qM/gxJVk8HDALdawtlKdrb mPEybUZsXIryrK9p+D90HwHaDyMynrvgAKnhPJlK1qvs9jmSw8MzNZiyeIpTe5XpUz2h3ZeJAJp/J z/MA4W6FwFE3UYU1S3tOAgY4/q8tvliTR9PwsGbx/iZwae8nlcYVNyKfRJ4SLedLQH0hlSqWAyvNa x8jXCNBSx8eJfcDlvR7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkGFq-000TZQ-3Z; Tue, 09 Nov 2021 01:48:54 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkGFk-000TX7-In for linux-arm-kernel@lists.infradead.org; Tue, 09 Nov 2021 01:48:50 +0000 Received: by mail-pl1-x62d.google.com with SMTP id b11so4759199pld.12 for ; Mon, 08 Nov 2021 17:48:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nmjVrpmF2KKGvFEgq/XE5mXulYLRvLz+Yf/tqScYzE8=; b=mMeY/rHFIKR0L+1vwdeY62NRpsgzSEud8m2/8toS4e+MsciWJKJ0zPQynYCetxOn09 eacjvT+rgE7luYUPqaWrlp0U7xAzoRcsHu0bwK9Qzz6FndsEShsKNwfbmD6OpqvuyudT FfNIt366DefmcSzIy4qHe6u4zjIaLoiOMjfkkR/8m3Urtm2zddZsvYmyJX59J8h0LdB0 iqUmc8Cy85crXDAEIEnW6h5YMviL1kCsWzhxAzszuskq8PvFJJa1AUJiaqPFiBshWJ4n GZYaT9jkxpJY+6OTJvICK/v7Af8UW4xguyqNeQPYwWxAfwuD40JLxL3MSiHLIMMS4Rkq oVvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nmjVrpmF2KKGvFEgq/XE5mXulYLRvLz+Yf/tqScYzE8=; b=PYXg0FAjao87sAVpJ+8tF3KtIkafIJsTXlNk86TvJXbuoun8QAh4rgpstAIMnRpVbq lH9BXw3I1tj23lHgl6atdI/iW6GD3i2xQeT0PDWgqzoSuM49p6jVtG/Ms5e7z6xbcF1+ C8L5Y+IhsJprc1FzLMoT8AyX5lf37kdrKAnMGjTGwM9a+7JndineXWtUfTu3lyHKjft4 BklTK3J+/eYhCjuQqQB/uhDnxYefFZlOCCPJgORgtp7xHOLwBa1OW13Lui+G9WWx7eJf AcrbPxJNyoT3N6ZQMkc5isqYg9OiP2nXx+YZm/nYE5cJJ657cwqYc+SETDPsuHpC9HkC m7pg== X-Gm-Message-State: AOAM533Ry7YNf3A/3tO/p2M4QBLKuxndbOrnAOWqb0NhRLEqs7x3KnxT sQjAoynwbqjpjDAw+toaOz8JlKzc74KoHOovILk= X-Google-Smtp-Source: ABdhPJwFsNS7oDpQpm8FccCWtvXaUWFfGCkAXKxTipaSdTti1p9fA26jFYpEHR9K/caKCjyGT6Towg== X-Received: by 2002:a17:90a:c58d:: with SMTP id l13mr3024556pjt.189.1636422526914; Mon, 08 Nov 2021 17:48:46 -0800 (PST) Received: from leoy-ThinkPad-X240s ([134.195.101.46]) by smtp.gmail.com with ESMTPSA id k1sm9135177pfu.31.2021.11.08.17.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 17:48:46 -0800 (PST) Date: Tue, 9 Nov 2021 09:48:43 +0800 From: Leo Yan To: John Garry Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, "linux-arm-kernel@lists.infradead.org" Subject: Re: Question: SMMUv3 PMU event aliasing Message-ID: <20211109014843.GD1388819@leoy-ThinkPad-X240s> References: <20211108121941.GC1267967@leoy-ThinkPad-X240s> <8b24f36b-6459-c13c-bf19-b9f588eb6b8e@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8b24f36b-6459-c13c-bf19-b9f588eb6b8e@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211108_174848_716514_D65F649B X-CRM114-Status: GOOD ( 18.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi John, On Mon, Nov 08, 2021 at 12:41:33PM +0000, John Garry wrote: [...] > > Could you share current status (or plan) for upstreaming SMMUv3 PMU > > event alias? Or if there have any block issue to prevent merging the > > changes in the mainline kernel? > > This feature should be supported in the SMMUv3 PMU kernel driver and perf > tool. > > However it relies on the SMMU PMU identifier sysfs file to work. This relies > on SMMU_PMCG_IIDR being set, which is introduced latest spec, which not much > HW will support yet - see commit 2c255223362e. In theory we don't need that > for the fixed, non-IMPDEF events, but I did not complicate perf tool with > that mixed support. > > That's the reason for which I paused smmuv3-pmcg.json upstream in [3]. I > will revive that for new gen HW when concrete IMPDEF events known and > shared. Thanks for info. When send out the new patch, you are welcome to Cc to me, I am glad to give a test on D06 board (its IIDR is zero, so I need to tweak a bit in driver for IIDR :)). Thanks, Leo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel