Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3831460rdb; Thu, 14 Sep 2023 04:13:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHF9nX0KWO3BOMKuFC6zz0jbvAiefYL3JFb9ahyiDW/9hiFUyXpamdXvdAykRdBTP+v8zCZ X-Received: by 2002:a05:6870:c085:b0:1d5:a3e5:ca1a with SMTP id c5-20020a056870c08500b001d5a3e5ca1amr6286650oad.16.1694690031926; Thu, 14 Sep 2023 04:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694690031; cv=none; d=google.com; s=arc-20160816; b=alJtXC+m5RqREusmxP9Dec+AIu5rEvamHCjssL9nKWJ4Iyjpo9jqm4O3VXIdrvwO9L Ja6PWIDSgZtLhEs4sKXwfQ9JMQf6ZN8haejXxWS+KRpn2ahrvALT/xvQfwc8eX4BndkX 0c94u8ts/2d+yGkP8UQTMu0zU4t753JqgATyXqKlnrGJ1AQnk7Kr9aHDH+SqLzL880V6 vW7ziJ0jWzYsQNeE2xZ9THfRij33csmn1/S5dyARl2Td59PTNql319KMGaeJCuJXONtr 5p9AXciAM/xxv+0klUqOumpL6YBC13PHmDmna20rVLXCyohzty3vhkzqOAQZ2AL3aoQg nb1g== 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:dkim-signature; bh=L+ZvunpRm/z7cLGwWtc8p4pqmaQZLwzk2ltMH7TsBcE=; fh=VfLvOvGt9nJrulpMkW7v7Z4Fj0tv+fvUoRti6iMzB/0=; b=vzKRFzEr/atwMdpqTTVC33ipwpOuB9wbROzI/E3GnBZUc7GJwgIlom9MnAPKqALH1p DW64KpdFIxN7vYIRsFf7R1BXXc11cKQMAj/lckyrZNdm+Cv0ZqOvSCd4F9zE0bFDhqvH HE0CbhG2ZI+SpWKkrUvInplXnntDJTfFrOC4QunDhyGBrTmEYmqwgCmEdwTO1V8y7++F CQYLQkT0UkFXoeWAPYJ45YeWDw0UB2Eu1yVAIK40WB71llsmQBe+eNvTTN04bVvFCF9p ACGRMSMmc02xaLuXIVQX/ARKE8xDAMW92Bk6UEIQoTGPbWyKj7l/vma5rIhOqnJ2hl5d lyIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=MvZnjsC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m1-20020a656a01000000b0056fa1ac3722si1401089pgu.698.2023.09.14.04.13.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:13:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=MvZnjsC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 302B2802A3E6; Thu, 14 Sep 2023 02:13:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236610AbjINJNW (ORCPT + 99 others); Thu, 14 Sep 2023 05:13:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236647AbjINJNU (ORCPT ); Thu, 14 Sep 2023 05:13:20 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66C7DCEB; Thu, 14 Sep 2023 02:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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; bh=L+ZvunpRm/z7cLGwWtc8p4pqmaQZLwzk2ltMH7TsBcE=; b=MvZnjsC0cuO4NL7t43EdAEwAev ibMEroKhi7xfh5lE6WqVj0OJmYeHXQ4sAGx46jXSsbICeukb1UMRIF6zUuoF0HxR1yWg8MnxL3IQ5 0pqZWCCPCvY3ITDz+AV4ZgP8UPiVXYZOduI775IH8SN5jkVfCZpvfa0w+6S1LmmizxgYvmcH10HqV 6vnpf8llmtMF1+fzYjVfJgeet/MvBSnsmsL/2i4jkLEkgOyhODFEIV6Z6s8QMg6EMzLpnBuqEcHFQ hSsQv78+jPi/I+mTTYB0Syeamr9Tt8rE/XUW5KMchEjMd3Oe29S0zSY3EHpxSc+jtzSQJp8ZO77Cf VWWVrVeA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qgiOn-007l6s-0A; Thu, 14 Sep 2023 09:12:34 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 2BE8230036C; Thu, 14 Sep 2023 11:12:34 +0200 (CEST) Date: Thu, 14 Sep 2023 11:12:34 +0200 From: Peter Zijlstra To: Sandipan Das Cc: Jirka Hladky , Breno Leitao , 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: <20230914091234.GE16631@noisy.programming.kicks-ass.net> References: <20230616115316.3652155-1-leitao@debian.org> <20230616132954.GG4253@hirez.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 (groat.vger.email [0.0.0.0]); Thu, 14 Sep 2023 02:13:34 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email On Thu, Sep 14, 2023 at 02:25:40PM +0530, Sandipan Das wrote: > Hi Breno, Jirka, > > On 9/14/2023 2:15 PM, Jirka Hladky wrote: > > Hi Breno, > > > > I'm definitively voting for using WARN_ON_ONCE - in the current > > implementation, we are getting thousands of the same warnings and Call > > Traces, causing the system to become unusable. > > > >> Anyway, please let me know whatever is your preferred way and I will submit a v2. > > @Peter Zijlstra and @Sandipan - could you please comment on the > > preferred implementation of the patch? > > > > I agree with using WARN_ON_ONCE() to make this less intrusive. Could you send a patch that AMD is happy with? I think you wrote this was a firmware bug and is sorted with a new firmware, so perhaps make it WARN_ONCE() and tell the users to upgrade their firmware to $ver ?