From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6582C25B6B for ; Tue, 24 Oct 2023 22:35:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344650AbjJXWfy (ORCPT ); Tue, 24 Oct 2023 18:35:54 -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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.