Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3874153rdb; Thu, 14 Sep 2023 05:34:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEFYvrxwAbBuW/eWcE5I9VmqdHStaIjcLzXI05H9jUGGmOTz0jOxwB9ZFNHPyc6ThOhEmQO X-Received: by 2002:a05:6870:c58c:b0:1d0:f5bd:6cf with SMTP id ba12-20020a056870c58c00b001d0f5bd06cfmr5854439oab.43.1694694874745; Thu, 14 Sep 2023 05:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694694874; cv=none; d=google.com; s=arc-20160816; b=LZFs13XgFelpTC3S1Aikd8D5ymgt+vNZk0KsMjBrR2+a9HDSZ6JaZ4CYljmcR2J2CM 6pO+0l7q6C/SCRBLBT35aMDTxXQh1HYWUkCmEqLa0/OKm2WXYX3YBiLJgA65oUjRLrBX U61R5iUPsEmTHKJ9OEc1O8ZQQ9Tgf9BG4JOxyP5M88beTKKipkRuCiiQ1Ll6nGzRhzPu esUEBA9XzEEGji1VeVykCSGjNt/CTOyMU/ZJt5dhyW3DpXtC4rfK2BMs9c6hm7nA9lfu P9IN52yi5qXKyV0uMwcxHS7S9Usu9GPwlRHX3/tBX1gZgJGawlFcEPSsMY9n8g7v5732 sSXg== 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; bh=t7IZyQdVtdbZHBl3wbHmMmV0IyMQ1PCAgLkaTrOg3sE=; fh=LTBW3KGJoNWqzqIVAnx0pausbHy/9LIfKxCaSm8CPDU=; b=T04fki1qFW4jcx1YSTHw96WvQxox9HC3xsJ2Ieidvp5aAVVKq6Apt+vbCZJiu7j6JD nMp9/eFwjWAiY8JkVHe2ovr/6/P4Q8YGt07yOdTZg0GEOq8QppcasgkcNlA555ZsRtsq 6CWhrhLq1phsH6q/dO7/57lcVi0gWhjicL/fRSYdPLzil8xAUMfGdVooL8vKw3mNp62y ZbIjOtItsmRSUl5IUVjsOkReeleTzkBMHHL8mDYWR7P3eOjR3ckeKPojzi11XkShum+w lCWvmLL8m5Qvt/PwAabCU9rguiYuLnLYbEoGeQO6WDSy/Vd2dXsDUe1+KxCaKUid9EPv 14Zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id r20-20020a6560d4000000b00563f627f2ecsi1390597pgv.13.2023.09.14.05.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 05:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 51C738184E30; Thu, 14 Sep 2023 05:22:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238396AbjINMWC (ORCPT + 99 others); Thu, 14 Sep 2023 08:22:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234522AbjINMWB (ORCPT ); Thu, 14 Sep 2023 08:22:01 -0400 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 894241FC0; Thu, 14 Sep 2023 05:21:57 -0700 (PDT) Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-99bcf2de59cso126164866b.0; Thu, 14 Sep 2023 05:21:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694694116; x=1695298916; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=t7IZyQdVtdbZHBl3wbHmMmV0IyMQ1PCAgLkaTrOg3sE=; b=sQNhs10XLk5p7xw2N0jdYXI6FFrcn2Y5yE4X7M1MbUjUiVO1jVGMsDLu9mI9W+cYii xObKAEoRzdMJA+ZrkcUrILIKe0iczsZNx/2f5GLmaFmMZ3xlt3nrt9GIsgmUfGjhVaKA CEtJcJE40usjloteabY9gHvvli6tZRLKozgyA1+XHUDJjySrooyaaAiccU1WQiybsVwv NtxrjydZ26HYD0+OTdyHIX/9emblrK9z6hvSVFk/VS1qkae8zy3OKT6d2ivhrMpN3CZL b6kI+x1mXF2yBFW9s7x0ZuOlXBZgD+dSuP81ZttTdtle3qddjyAxeE2X5wJoH0yBiQHy YEIw== X-Gm-Message-State: AOJu0Yw5zjOPRcP6xKp6/ri2Ri6RKU8IAaZ8Di7737N3bC/FsFaQMREt SzS2uOAHNsPV9WEZSwslzyk= X-Received: by 2002:a17:907:7742:b0:9a5:d657:47ee with SMTP id kx2-20020a170907774200b009a5d65747eemr4753065ejc.58.1694694115763; Thu, 14 Sep 2023 05:21:55 -0700 (PDT) Received: from gmail.com (fwdproxy-cln-012.fbsv.net. [2a03:2880:31ff:c::face:b00c]) by smtp.gmail.com with ESMTPSA id t25-20020a1709064f1900b009ad8084e08asm947925eju.0.2023.09.14.05.21.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 05:21:55 -0700 (PDT) Date: Thu, 14 Sep 2023 05:21:53 -0700 From: Breno Leitao To: Sandipan Das Cc: Peter Zijlstra , Jirka Hladky , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Thomas Gleixner , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , leit@fb.com, dcostantino@meta.com, "open list:PERFORMANCE EVENTS SUBSYSTEM" , "open list:PERFORMANCE EVENTS SUBSYSTEM" Subject: Re: [PATCH] perf/x86/amd: Do not WARN on every IRQ Message-ID: References: <20230616115316.3652155-1-leitao@debian.org> <20230616132954.GG4253@hirez.programming.kicks-ass.net> <20230914091234.GE16631@noisy.programming.kicks-ass.net> <20230914111845.GF16631@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Sep 2023 05:22:01 -0700 (PDT) On Thu, Sep 14, 2023 at 04:52:13PM +0530, Sandipan Das wrote: > On 9/14/2023 4:48 PM, Peter Zijlstra wrote: > > On Thu, Sep 14, 2023 at 02:30:43AM -0700, Breno Leitao wrote: > >> On Thu, Sep 14, 2023 at 11:12:34AM +0200, Peter Zijlstra wrote: > >>> On Thu, Sep 14, 2023 at 02:25:40PM +0530, Sandipan Das wrote: > >> > >>>> I agree with using WARN_ON_ONCE() to make this less intrusive. > >>> > >>> Could you send a patch that AMD is happy with? > >> > >> Why the current patch is not good enough? > > > > Sandipan, can you answer this? I don't tihnk I'm qualified to speak for > > the AMD pmu and certainly I don't have insight into their design future. > > Hi Breno, > > Functionally, the patch looks good to me and I will be reusing it > without any change to the authorship. However, as Peter suggested, I > wanted to add a message to prompt users to update the microcode and > also call out the required patch levels in the commit message since > different Zen 4 variants and steppings use different microcode. > > Here's what I plan to send. Awesome. Thanks for addressing it.