Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1496605ybf; Thu, 27 Feb 2020 12:07:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzSL1E3c/SlQgFP2T6G2ecfFBpOQLpUQh2khIzzFOWcuAXVVNvlNSf/xj5NgyAkgnLpNwtv X-Received: by 2002:a9d:da5:: with SMTP id 34mr4474ots.226.1582834049300; Thu, 27 Feb 2020 12:07:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582834049; cv=none; d=google.com; s=arc-20160816; b=C3l2LL4HZR+QQz4rQkKBnZZL8a1vTlI21S6jdurqvXrOczPAf8QP5Hjbl8vEHMELZN 7kfhlNiA/lUsYR3qAwLcdYXLY0DPW+fvFa8q1GWvSEglPg72irktti5O+BKm0x869aro p1fJGICp1Xy44MwGiJwZ2/ue7Syj48klDONaYNrr57wR4ef60H/KMdiITHl9/aX5KGeJ zL4I6vgSCsRAZHZqoDGUkkWwLiyvGL2TU5SntzDL/D4KwBo9Ksd1gycmHLsfJ0p/flIE d6bt+JAi2xEUhZBMWW2lRdkDnUePpwuZQ7gVlO32TYJUdHw5cadNbJ52KvePo4GWib73 8HAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=JYNKugIJWyzo77R6VplipDGlj2abNXrkHHhg21IHtgk=; b=vWrBNcPgH8srvoqIwhcwu1dAG93IQLkjjwnpd8j1MNhki7cKHGhQMT1WMrTZk+7VWs +Z7C390IgCfWMX6SL4j00KddYBuLoOkN8LyyDfLHc4iPAr88OM/IusqRVyLF+Ei2fBwZ JgCISllVvLbhPXLFyeLK/8ncr1vos9QsuXWOlUxvzyGmn3aCyLbpKN/shL4dd+LR7VcK 4F4Auw3yKb2AzpnG/0okGMjFJ7rv1MRTFyKL2ykMJiErCk3NVOEZDHOj1iMx1dbnUK0t ypQXRWd4lO6NkLuLAB6rpyP3jjzyW+xlCGmaYqiae6j+FZJpGkOCmic4h52yyWToUkaX F7mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=Q3PvQfjH; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y22si158663oti.269.2020.02.27.12.07.16; Thu, 27 Feb 2020 12:07:29 -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=pass header.i=@me.com header.s=1a1hai header.b=Q3PvQfjH; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730179AbgB0UGo (ORCPT + 99 others); Thu, 27 Feb 2020 15:06:44 -0500 Received: from ms11p00im-qufo17281901.me.com ([17.58.38.56]:60662 "EHLO ms11p00im-qufo17281901.me.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730012AbgB0UGo (ORCPT ); Thu, 27 Feb 2020 15:06:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1582833629; bh=JYNKugIJWyzo77R6VplipDGlj2abNXrkHHhg21IHtgk=; h=Date:From:To:Subject:Message-ID:Content-Type; b=Q3PvQfjHaFzRx7qDnYCCmQSxzUe5cmEIyzMorLqIyl0/8ieDpqq/7dHbhm+cJExEG hPNBizwo/fGX/FHJWDl6edUu6dnJZE6zJ4UXoNda2AQUg16amfxJ0y9OxWs+PDLFTw eUoOIWFrFXFqSewHjmbn6LsyS27v70Y6sWzgOD0DSosJuSbIOei0UEKntBPBx7J694 fTyZzmspe7dnkEvNy1XAcCAeQVWzLmSQXHoEC3ZBKXbHC10HyQwI/irEdbDEX5tOFI ZT6xbxa23DakzkgDbGEXQMmHroTM/yuRLgAf+iVWWYSYCrVwJuQ3PTgOauf2hUxclx nltACiC8baQSQ== Received: from shwetrath.localdomain (unknown [66.199.8.131]) by ms11p00im-qufo17281901.me.com (Postfix) with ESMTPSA id ABC7F740439; Thu, 27 Feb 2020 20:00:28 +0000 (UTC) Date: Thu, 27 Feb 2020 15:00:26 -0500 From: Vijay Thakkar To: Kim Phillips Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Martin =?utf-8?B?TGnFoWth?= , Jon Grimm , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH v2 3/3] perf vendor events amd: update Zen1 events to V2 Message-ID: <20200227200026.GA8493@shwetrath.localdomain> References: <20200225192815.50388-1-vijaythakkar@me.com> <20200225192815.50388-4-vijaythakkar@me.com> <73b5b731-9597-1243-485a-788437500c7a@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <73b5b731-9597-1243-485a-788437500c7a@amd.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2020-02-27_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-2002270137 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > OSRR for AMD Family 17h processors, Models 00h-2Fh, 56255 Rev 3.03 - July, 2018 I have included this for v3 that I will submit later, including all the changes for the FPU counters. Sorry, I messed up copy-pasting the text and forgot to change the trailing pipe number. > and their counts don't seem to match up very well when running > various workloads. The microarchitecture is likely to have changed > in this area from families prior to 17h, so a MAB alloc can likely > count different events than what is presumed here: a Data cache > load/store/prefetch miss. > > I think it's safer to just leave the PPR text "LS MAB Allocates > by Type" as-is, instead of assuming they are L1 load/store misses. > What do you think? I did some checking accross PPRs, and this counter seems to have changed names multiple times throughout the PPR revisions. Zen1 PPR (54945 Rev 1.14 - April 15, 2017) lists counter called "LsMabAllocPipe" with 5 subcounters that have different names compared to ones we see in the mainline right now. PPRs for stepping B2 onwards change this to the 3 sub-counter and primary counter name we see right now. This public description still changes accross various PPR revisions, which is why I had this set to what it was. The lastest PPR I can find is indeed lists it as "LS MAB Allocates by Type"; I will change it to that with the fuffix of tehe sub-counter name. Since the same counter is in Zen2 as well, I will make the same changes there too. Let me know if this sounds good to you! Best, Vijay