Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3810677rdb; Thu, 14 Sep 2023 03:29:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEEP00oh0tLoumCI3PSjdbn8yIFym6fjx5FrY3/OQRjg9kzV8BCWgM5pYg6ljsrCL8cXvh2 X-Received: by 2002:a05:6830:45a3:b0:6b9:db20:4d25 with SMTP id az35-20020a05683045a300b006b9db204d25mr5562345otb.1.1694687396071; Thu, 14 Sep 2023 03:29:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694687396; cv=pass; d=google.com; s=arc-20160816; b=x1GVTdJMu2yXEM+HvUqseZUFVER4kH6BiLO0dXbPoFwospF7VfA21oJfMNUYkbCLWc hYSjnenG8XHCfsalJ1dDyoyl3sSPfMjxsNEDMdVTJCoyaLqyc1GTbjE/jrSkUcGZCS1u 0DDgYgIvi6MzbGe7Z5JFZOYe8ZEQA3Ng7iw2HeEhQRsvaNJMJsjsyfaEafzLNNvDamc3 uNCTPciOauy++gd8QcSR7KlYDZu8EKoT8u0vT+W/wpsYxO63NBL59BHrc/jCOD33luD+ 5l1jfqZAhclULqQzPZZYpN1pN/NZW1KxWt5Cu6WIkmgRJDjPjmZmcGQOlWAuk4lwG/Xi PcWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=vmDGPgwwONcaHCoWXoZJvZVu9m9wc65jxWZcBsUgbIc=; fh=csVUzjgbOp9TYeSeWpFXKnhL/m6y3Mgoqt5uYFgJLxI=; b=J4coLHnw+2Yk9ye4J7AiLZrh1B5iAU7u9VDJdaLO0TRVD4Is580wdk6RA72EOmG1Nf FlJjnnxOdJQ8RUXf78TL0RQwn5DNDhFpPD5aSXhvsdvIt4IQ8F3fWro1V9OqZVq3tKOI JGFEtI5l5soFAe/rnCsEr9iwFr5RxO6CEa4nMgtlNsEv9D+TO+74Q+hUM3yQGmiEA+Mx tKz9I4QgcaCTsWixFbHnoVeTtjFgAD8m84FftYfMk0X/LYr8ySdAG9pehRZOvjScGhQW PcWU0pFaA0sxhhY3k1si/Z2fjLK6UOMwENtocHbY8PWNMbveHhg7CDwoQUMFMEU+7aBa BrOw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="pYOTeD5/"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id z66-20020a633345000000b0056fceee6789si1232438pgz.682.2023.09.14.03.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:29:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="pYOTeD5/"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 105D38276C25; Thu, 14 Sep 2023 02:14:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235978AbjINJOf (ORCPT + 99 others); Thu, 14 Sep 2023 05:14:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232077AbjINJOe (ORCPT ); Thu, 14 Sep 2023 05:14:34 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2057.outbound.protection.outlook.com [40.107.93.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D5F1A8; Thu, 14 Sep 2023 02:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z5yzPktL5BoBdWnWXG1xRuKMMclmXXVZGkGMU9GEZ+UYHCjV0Ae+fqEGl33IDFYIoNH1wDTo7MRyYvDVZOc79spjV8phJbGI9d3fNyDxT9UsGFi4VfdtfN2WipGeSbOvT3j7Kn5OTfyn5fK4egZlnLutFVU9qOxUGVqjHVjXM/SYHhHZvnq2ePjpB/AHA7mw2HP6nUvDztKV82lda5PxQDRlBcpw+mJ+BQNju6wXCvOcBI1qkypVBexTP9HY/t/IOOJmsn4QX58BT+Zcrb4ZEzoI/VQDaEeMQMSoKVjiKs+WXhNUtanN0hFEGQLoBTgj4VUS/iDhngtO7FZjJMdeeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vmDGPgwwONcaHCoWXoZJvZVu9m9wc65jxWZcBsUgbIc=; b=X4GKZBgX9+XH8ymbzFntmdoN46ctfkLVuDOuxKm+fGBBkwMwvjucvD/g86WF5+RVxP9DOIvZWY+teK/dyJ72himwI0lzNf51mc4UtkteLr9zE6xCodmocfLzuewDWmayaVNFFbDAFkuFWo8ZO4RDxVRPNE3uzvtnDL+pTCgDxJNG8Z6OHetKXVeJ1yEEc++ZD6B4Hn1aNEz2R8Rz0+7TgNbmlSZbg8EdveWPJGv8X/qE6ylt4CrJJBqGE/BnHIIZwLzo/9BpxZl2dAY8sRDB9IVCZGTjT0Gng3SBLe6ZI57xOe7aFwLcD13Y6XFQhQNU9p11aXqN/m5Wjfb4fmDKRg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vmDGPgwwONcaHCoWXoZJvZVu9m9wc65jxWZcBsUgbIc=; b=pYOTeD5/KybCIE0xjqJpKlqYJQBhfqpnGzJkqM+SiD2pUIg9HW0wiWIw9/fJU1fhHQAEUU5M+uL88c2n0W+cL+k5q/595Lc/N6UukOOCwogIaLeqdos3aGBVZcueuYNlZgNzOdRVTFN7jo8NS+56SmmDp+HuuO+XkVCIJ3kGBig= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from PH7PR12MB5712.namprd12.prod.outlook.com (2603:10b6:510:1e3::13) by CYYPR12MB8937.namprd12.prod.outlook.com (2603:10b6:930:cb::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19; Thu, 14 Sep 2023 09:14:28 +0000 Received: from PH7PR12MB5712.namprd12.prod.outlook.com ([fe80::a285:eb6e:8fc:7cd7]) by PH7PR12MB5712.namprd12.prod.outlook.com ([fe80::a285:eb6e:8fc:7cd7%4]) with mapi id 15.20.6745.035; Thu, 14 Sep 2023 09:14:28 +0000 Message-ID: Date: Thu, 14 Sep 2023 14:44:19 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] perf/x86/amd: Do not WARN on every IRQ Content-Language: en-US To: Peter Zijlstra 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" References: <20230616115316.3652155-1-leitao@debian.org> <20230616132954.GG4253@hirez.programming.kicks-ass.net> <20230914091234.GE16631@noisy.programming.kicks-ass.net> From: Sandipan Das In-Reply-To: <20230914091234.GE16631@noisy.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN2PR01CA0143.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:6::28) To PH7PR12MB5712.namprd12.prod.outlook.com (2603:10b6:510:1e3::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB5712:EE_|CYYPR12MB8937:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ce60b05-d963-4000-107f-08dbb502ff61 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SzrsvVwlhEM12heQ96+ZBeM0MFNNND0vLp52K4z4sayIgzTaIpTkLzqQXV1fDCrL2X+IsWbag6OSm0mcefzDgmsLs8uwNgmYBZ7sQnxEwmkttQxTDrp4Nk/ciNqF9KwvoPK+eEDAMGHtlPB7CyyTLC5rYORS3gOU6tPM/Ntb0drxUvQq8Z4lOfWHU3O9ZWFXV6v2bk84xps5hEqh88XuBjy7OafV+k1y3yvJ8l2jqvY/BowgCmbhibsawk8Ud5t9ox4JbUNPQIej1W2XGWIC4qE4OmtI0YAQBe4+I/QQCI/rHI0vXaMjSXCHnbHKSHDHOn1mgsRHJ+9/UhutTLgjpDA4mCBnjizRNm5FCffewjDSUlcrRWkBourTtMuNT0ZAGSxcN0ZuAmTde6s5xngmo2nV8i0Q/VGwY6oiLMRudGsHZ2j1hoSyXjjhqei4h0S7MqMF9PXTbiZy35FIIFr+HB9W4/0KHmFONwZUlZKztkk4dDf6/CnoONBloRqXPLFVk9WCi0y/uvakPXZbHvabyzX+16vhedUwmMs6Nn9jWDBITG9WWsM0M5ZHn+soL2cHkj5OallhZ7OKGVLa2Hh2Izr5h+jwBzMBXdSiO1hmGd7xphAAYgy9ya/NmtDYesBIz4lnFgaK+D4XykJtufBFGQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB5712.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(346002)(376002)(396003)(39860400002)(366004)(1800799009)(451199024)(186009)(4744005)(31686004)(38100700002)(2906002)(54906003)(6916009)(6512007)(4326008)(66556008)(316002)(41300700001)(36756003)(8936002)(8676002)(66476007)(44832011)(5660300002)(6666004)(7416002)(6506007)(53546011)(31696002)(6486002)(2616005)(26005)(86362001)(66946007)(478600001)(83380400001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ODJJengvVkFOSFJ5OGxtalNiWHpjS0lvRkpseEFFWnNtd0tyUHFlZm13TE4w?= =?utf-8?B?QzhuYjQvNFltTXR0SzlIdWpUbTVsbFV3KzBhVzVQVGVPUWFaQlY2RXk2dmRL?= =?utf-8?B?YmE4WEJmQ2ltWXhxOWFUUEhMRzJja3h0RGNrcWF3Q1lVQ1ROMmc1Y3J6OXZl?= =?utf-8?B?WW9FM3FTMExOdGRtMy9VcXZ2d3dUd0l1MXlTS3g3d1Yvd21ON1Z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k2aHh0VHk2QkdxSXRzdE1DVlJWN05zRlBVN2MzaXdDNHZw?= =?utf-8?B?TndqRkFxTFFmNzk4aXdRTFhJMjVvT05DRlY2a0djU1lEZTR2SEpLTVQzWmR6?= =?utf-8?Q?Zno3CdyojzhTxn5tr2UWGvxAo?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ce60b05-d963-4000-107f-08dbb502ff61 X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB5712.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2023 09:14:28.5430 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DldQjigqLo67EC9KAiE9FwynzMFgrXnWuVcsirHr16uVopb5tjBZPJJ/XQHuKQQOav+b6q8V3VM/FRpJbIUg6g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8937 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 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 02:14:36 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,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 fry.vger.email On 9/14/2023 2:42 PM, Peter Zijlstra wrote: > 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 ? Sure. Will do.