Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2189798rda; Tue, 24 Oct 2023 15:36:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsB+8CxvkhfMSPFGWBK3/va/Ctcffd9GMTT5hOSBk1mBhNqyjZ+DR+xaWxh1gM5yRsh8MJ X-Received: by 2002:a05:6a00:1a4e:b0:693:4108:1eb7 with SMTP id h14-20020a056a001a4e00b0069341081eb7mr11754076pfv.30.1698186998042; Tue, 24 Oct 2023 15:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698186998; cv=none; d=google.com; s=arc-20160816; b=zBPi0sIxAhaLkoO1nzSCjXY+A66oNANUWBUTgvJGdtOGaVkIRbnXCTbOEe751ImOXx NHowDYdcMTXMN1Dc7zBIzwvZBn6YqvZlZijRKxGHSJDObPT8WGpTqOzdqjOT5UwftyDL MyWw75LE0rRHjvLQA99PH1ks+ZDHbYjonTcJh0HXitkZCQlquAWjlu61aqXQD/wPp8vr zGOkHJeHhcxlCP16THBdFeTAwZ4XX/UAYNvmq/+0EfxEE/IbPmLWRejDoIWUCIgtn47g rpjBJ1mTx9aNCaaO44hRvZFmR/G+SAKd1z68VgMyCtQq5iGWvYVUHMzM6VhaHNACNuoW t3eQ== 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=tdtY+rOfxTbr9drW5NLNeRW9YMJyiKxVA9Zf3q8HibE=; fh=5yK0IAkTibzc8ZNJ5uE9XAXKrJeuQ9x+zCqI3Rqiiqc=; b=iWJuebQGZ5Bifb7WzmbdxI7BahWdA5HStW66LUFGZUr7/nlbNpctS082brJgtLWKJK ijXuJXHpkBx0Qwe6KffqGLEJoTHNPA4pl+N8uIQlhvAeigJMKu/jTkNxdlXIbpfIrKhY 13joC2lIhjA4SPfj73Q1RlceKjAiGFD1XhAJCADyZ13DnansqtlCf3FZGG8ywoovRGnL 0Ll7OMRcdMv8csnQLb8eAictBmixmkOWJQt/wnFzaAQzKK+mVC+Q/Oq2hgxdUW/YcY2j KRjZ9b7ZKgIKKWM5FKnvL3zv3rHS1cdrPTQj1afahAVM+YPGkbHi156neWPxgFszOSQR sThQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ePLGJIvd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id j3-20020a056a00174300b00690ffbb46e6si9325111pfc.261.2023.10.24.15.36.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 15:36:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ePLGJIvd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 0B040809DE6F; Tue, 24 Oct 2023 15:36:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344571AbjJXWfx (ORCPT + 99 others); Tue, 24 Oct 2023 18:35:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344557AbjJXWfu (ORCPT ); Tue, 24 Oct 2023 18:35:50 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09A521991; Tue, 24 Oct 2023 15:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=tdtY+rOfxTbr9drW5NLNeRW9YMJyiKxVA9Zf3q8HibE=; b=ePLGJIvdK78pGMF9dtQv/hD8KY H2uxMOBgTglKUg5+JeAfl7KPq/BEnBPSyV+/hOMXvVo+5Bg6oJDS2Ed+gaLkechO+HUF85Rp+Guw4 kVsByxpUsbn4k8Z7Tfw2Qz3Dfq5UxqwSKN8KOuv9z7+PkLnEUf7vSkEIyWrlVOA2CDXynpn+Soyz6 hcCm4Y0Zq8B5oTclYAh6eZIYp6SkP6ZHzwecdgvmck1ebyZ+fICYg79naepTJyhWEF+uih/DNq/Uj eNXg7icLxIDuULiiV3alDDGfbMAISM+KO4eGEn6mZlCRQ0n47zKIcoTkJdz97j7aRUpZAn3wh7SER fLDd17Vg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qvPpE-0054eF-Sx; Tue, 24 Oct 2023 22:24:36 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 825E630072F; Wed, 25 Oct 2023 00:24:36 +0200 (CEST) Date: Wed, 25 Oct 2023 00:24:36 +0200 From: Peter Zijlstra To: Mario Limonciello Cc: Ingo Molnar , Borislav Petkov , Thomas Gleixner , Dave Hansen , Sandipan Das , "H . Peter Anvin" , linux-kernel@vger.kernel.org, x86@kernel.org, linux-pm@vger.kernel.org, rafael@kernel.org, pavel@ucw.cz, linux-perf-users@vger.kernel.org, Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter Subject: Re: [PATCH 2/2] perf/x86/amd: Don't allow pre-emption in amd_pmu_lbr_reset() Message-ID: <20231024222436.GG33965@noisy.programming.kicks-ass.net> References: <20231023160018.164054-1-mario.limonciello@amd.com> <20231023160018.164054-3-mario.limonciello@amd.com> <0022df64-b7f5-43b4-87ed-5df5d47c5c6a@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0022df64-b7f5-43b4-87ed-5df5d47c5c6a@amd.com> X-Spam-Status: No, score=-0.8 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 morse.vger.email 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 (morse.vger.email [0.0.0.0]); Tue, 24 Oct 2023 15:36:04 -0700 (PDT) On Tue, Oct 24, 2023 at 01:30:59PM -0500, Mario Limonciello wrote: > In that case - should preemption be disabled for all of x86_pmu_dying_cpu() > perhaps? > > For good measure x86_pmu_starting_cpu() too? starting and dying are with IRQs disabled.