Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4191106rdb; Thu, 14 Sep 2023 14:57:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGt1kDGJ5VVAaB45EboIbYaYxhZreJqopsV2dfIhwFaHtj0F/50VqXZ9cWT0EI4zwuqCj9g X-Received: by 2002:a05:6a20:3d0d:b0:13d:d5bd:758f with SMTP id y13-20020a056a203d0d00b0013dd5bd758fmr11063pzi.6.1694728671708; Thu, 14 Sep 2023 14:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694728671; cv=none; d=google.com; s=arc-20160816; b=f9KRWNCQXQF3Zl8jNO1RkK6RiBzdR8KX2T/4A7eyIx4/OQg3/XrQLEeOg/VObbUdAV KHPG2DTsZRqK7AeWkyKPdBpbkxD7LpC0oVraFef7vvOavcggtC8WT8dFTK9Pg8bSXj2B LwMVICnNoCQtYGl4zf+trtN2dBL8Jan+2APUnsBREllhronN7EmPvimOkIUPss05clgV GBcWOkqINLFb7MIzBrGmaMpO09SsKx7RXYevOZCr8IqJa6r5ibPWbLd6VGyIY2Mx1CX7 94hGd6iy0ZLD0NyRMSYURM5iWxWnMlzOl2eiez6bSdLPcUcDvKfGHJll3kqcpIH4CeXu Swsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=K1aANZQtwFDU4g/VWeNDGent7e6hMjtrdWucBBS3aak=; fh=f1k5lAnIdpMJ3ZioH7SHdUk0H7LUpaXGOyUkhMl4WKs=; b=sRMVbmSubiO+qT3CC168BeYmq7EXm988BXjAXHAWCMdaG7yduOBgyV8HDISdVJy4uV 3bo0cr/D8cUauqvKZKy3PyximOQ4psTgCMk9XU0VZoBB8SzQDeUkbjSZiE6TrlcXfrBD miB/Gb9Zv8rc/FfPaOw6Z9wxya+EoPfm3NVlpRJhbcv5CEd+CyacMJk+DOZXFDsGzR8a RDQePp9YsX6CzBN747+KRY437UE0kFnMnME5KSbUZi5ifxoFp8XqhWMsBHPRq8upPFxl +YLJS22RvgHVfqvh48FiHOoAKuOdxctzdUdyu9g838WUhYeFc3QuZgrRRq9qIgWMqaOC 65RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UQayGSK0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id z15-20020a65610f000000b00577461296a9si2203914pgu.338.2023.09.14.14.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 14:57:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UQayGSK0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0F2118282A35; Thu, 14 Sep 2023 06:52:02 -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 S239192AbjINNwE (ORCPT + 99 others); Thu, 14 Sep 2023 09:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239273AbjINNwD (ORCPT ); Thu, 14 Sep 2023 09:52:03 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 48BB51BE for ; Thu, 14 Sep 2023 06:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694699472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=K1aANZQtwFDU4g/VWeNDGent7e6hMjtrdWucBBS3aak=; b=UQayGSK0b+mo+8T73EKI4aswLlWNmA+SCTxy60guCh+txhUtztqv/9QdZlWT/WDSMkZ+dU Ezwo5wdKzderosmHKpLX5sUu+NHWzoTTbkUHh+1lmiAyeo8LMqq0f8uZg7YW0n4h8pz/0U 3jxdxfrux3UahoECUgVa93amRt92SRo= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-404-VW-wcnJnPHe2mo6N2Hs_OQ-1; Thu, 14 Sep 2023 09:51:11 -0400 X-MC-Unique: VW-wcnJnPHe2mo6N2Hs_OQ-1 Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2be370ff948so12353071fa.3 for ; Thu, 14 Sep 2023 06:51:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694699469; x=1695304269; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K1aANZQtwFDU4g/VWeNDGent7e6hMjtrdWucBBS3aak=; b=oLQdPKgIqTChqH5Kqt+dqUYdTD+38SeGN2wMr2vSTdb2HFA43GesM0PhT85Xdd56rF Ibg8rI/k1lCmLrzgh5gq+utC/oTdifOzAlj0Zqbtn7OiFZIHiQgruiYDqcLbi3u0ZWqE zXSWchOM7tGjRgPYMAAO0SogOg2MBH5coA6lVHn/YFWJkho/N+a5L0OeFtV9LTxiu9Z7 3B2eMy2ImAN1ByZPVTxTzno3Xd9ToOsRBa2PAndEXx6gxz2OspRUA2seNgG+ZkGPvUsA bk4x5wbiWLPFW0va9N1KNLmWSg4xCssNaJ/0WZF4OQPV1hn0WdBEFpucstygz9H12w3h G/eg== X-Gm-Message-State: AOJu0YzXfJaFxOZysez1XsdX2rzDAiXqOKh+ucPRlQte1vUiiJjgjfjL eBo8cKoRdD1fBO9hgm96Od+5JcwrEpjilX52lx4Q7/qj1xZEe4DjgRo8c2s/b9ZSenQx/DeqmX5 IILeLzajL7O3GnXGsjuPsNEyQWrH+bp0ir/X4lTM3 X-Received: by 2002:a2e:924d:0:b0:2bc:bf29:18d3 with SMTP id v13-20020a2e924d000000b002bcbf2918d3mr4921036ljg.31.1694699469466; Thu, 14 Sep 2023 06:51:09 -0700 (PDT) X-Received: by 2002:a2e:924d:0:b0:2bc:bf29:18d3 with SMTP id v13-20020a2e924d000000b002bcbf2918d3mr4921011ljg.31.1694699469086; Thu, 14 Sep 2023 06:51:09 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Jirka Hladky Date: Thu, 14 Sep 2023 15:50:57 +0200 Message-ID: Subject: Re: [PATCH] perf/x86/amd: Do not WARN on every IRQ To: Breno Leitao Cc: Sandipan Das , Peter Zijlstra , 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" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 06:52:02 -0700 (PDT) Thank you, all! I have confirmed that the latest microcode fixes the issue. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D cat /proc/cpuinfo microcode : 0xaa00212 perf top runs fine, without any kernel warnings =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Jirka On Thu, Sep 14, 2023 at 2:22=E2=80=AFPM Breno Leitao wr= ote: > > 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 f= or > > > the AMD pmu and certainly I don't have insight into their design futu= re. > > > > 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. > --=20 -Jirka