Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3085114rwe; Mon, 29 Aug 2022 05:41:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ZzVZ4r++CLJZCZOYOErcQh2xBkeR1Fa/w6SCwFbLUJSSyzKhbq+pZJP9MKPwSiRBJQ6/h X-Received: by 2002:a17:90b:2bca:b0:1fd:a06b:ef4f with SMTP id ru10-20020a17090b2bca00b001fda06bef4fmr9352424pjb.201.1661776918016; Mon, 29 Aug 2022 05:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661776918; cv=none; d=google.com; s=arc-20160816; b=Z8/+xMyCQahBKmA7YmGVpuPlZdsyLqoU+zOx+Ddv8ndWeSs8936SsLUDfLoLKTewoK CT6HbYuQjJpjR4qhNhjV1UtTkquBWHYSl1FZYHdUiXejlQch5JUD2y7Kx30qzE91sJs2 HqCL7EJBNhfXooCJQXLsbu+kWWV/vxZVrajwjy6WTd18HtluAMIZ0jZFgGu5UCPnbyh3 aZiUlhSVJDp1X9XMMCBYdUgsuhN6dpQEd1ZLFbm2GrTHkR5TkTYt7j3kH+hwDRnXz5Nx lINh06Hal5ogB3L4++bwd9/+T2aLEK5UG+aHarTpq0piasnLgEGh13MtMg4WDGrRwZi8 D6oA== 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=B7n71/NkrtHYvF9gedtNk1oY9cS74shjCaQIwnnXV8Y=; b=CU3u1ccEdPbSF8DrwAvNzg6mr8FMakFpH88oDB/EADLYtSNSdY9v1/YoMuF/ce3BFo 5JprV8jjXvVU14/jtpz6hQud3WySLuXQvF27dQHdzH+Z3P7dwCNFplF6SgASo/p0yhrW D5R2VrHhp3cU2KsvCX1ZAIQfDuYwRCDfP5j+rJDYKGtv6Kx5XF3i8d36AawvNhKJ2ZcA cCS4N2fwLPJkd8rFEFWy7Rl/Bvbal9IRfQYouzvdWnKXfBK3z2qA+8xxEYZyqimtb9l0 5y0EnwgUaEMYymG+64rSPJoUStanCz/0q+yt38M9cGhPe7DteScWQ3ks7PnFRyBWw/WF pFLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b="fEUXVBk/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a17090a710900b001fab0eae126si8882885pjk.114.2022.08.29.05.41.46; Mon, 29 Aug 2022 05:41:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b="fEUXVBk/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231283AbiH2MPp (ORCPT + 99 others); Mon, 29 Aug 2022 08:15:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231382AbiH2MPT (ORCPT ); Mon, 29 Aug 2022 08:15:19 -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 BCB9AA00F4 for ; Mon, 29 Aug 2022 04:59:18 -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=B7n71/NkrtHYvF9gedtNk1oY9cS74shjCaQIwnnXV8Y=; b=fEUXVBk/2raflvOiZZ7QVgwExz c6ElBLPEwxKEIBI2MKcCrp/8vlJRLsO2azx5vf2xEBCBRSE0PMqp1IrbCuQ1DfhD8t17Y8Jnb16xy O0hccUeNwgUmT8u2EVeeR+guhFly0wsDlhJVVeyS5Hv85dBMoiFPJJ306VR4MzJ20HY9DyY+Csr5Q BgzbajkgVVzQ3iETJpzajYNx+GF73DangpXA8midaIGww8iaQCTBEU9nRbQIZm/Klh9aYtd0NyrV0 CkyvxdkZOzkJjdQ1h/9maLPgq7vDMyOMl3x95PoNjkFBg2B3q6t0QZgGHZAQEtVDAFaKvpqj+QQd7 J7AZEePg==; 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.94.2 #2 (Red Hat Linux)) id 1oSdPT-007U95-6Z; Mon, 29 Aug 2022 11:58:32 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AB506300137; Mon, 29 Aug 2022 13:58:29 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9452D2083F6F4; Mon, 29 Aug 2022 13:58:29 +0200 (CEST) Date: Mon, 29 Aug 2022 13:58:29 +0200 From: Peter Zijlstra To: Ravi Bangoria Cc: acme@kernel.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, songliubraving@fb.com, eranian@google.com, alexey.budankov@linux.intel.com, ak@linux.intel.com, mark.rutland@arm.com, megha.dey@intel.com, frederic@kernel.org, maddy@linux.ibm.com, irogers@google.com, kim.phillips@amd.com, linux-kernel@vger.kernel.org, santosh.shukla@amd.com Subject: Re: [RFC v2] perf: Rewrite core context handling Message-ID: References: <20220113134743.1292-1-ravi.bangoria@amd.com> <8d91528b-e830-6ad0-8a92-621ce9f944ca@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8d91528b-e830-6ad0-8a92-621ce9f944ca@amd.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 29, 2022 at 09:30:50AM +0530, Ravi Bangoria wrote: > > With this, I can run 'perf test' and perf_event_tests without any error in > > dmesg. I'll run perf fuzzer over night and see if it reports any issue. > > I also ran fuzzer on Intel machine over the weekend. I see only one WARN_ON() > hit. Otherwise system is running normal. FWIW, I was running fuzzer as normal > user with perf_event_paranoid=0. > > WARNING: CPU: 3 PID: 2840537 at arch/x86/events/core.c:1606 x86_pmu_stop+0xd0/0x100 That's the WARN about PERF_HES_STOPPED already being set. > Call Trace: > > x86_pmu_del+0x8e/0x2d0 > ? debug_smp_processor_id+0x17/0x20 > event_sched_out+0x10b/0x2b0 > ? x86_pmu_del+0x5c/0x2d0 > merge_sched_in+0x39f/0x410 And this callchain suggests this is the group_error path. I can't immediately spot a fail there, but I'll try and stare at it some.