Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4498733rwd; Tue, 30 May 2023 06:19:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XL+yQlItmQrXNa8pvH0+gQ0iwoRBXRVeT6IYQAMA0/UCe7Xt6CJiQarlGLid6Bcyal6BQ X-Received: by 2002:a17:902:e5d0:b0:1ae:10a5:8349 with SMTP id u16-20020a170902e5d000b001ae10a58349mr2483350plf.23.1685452780390; Tue, 30 May 2023 06:19:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685452780; cv=none; d=google.com; s=arc-20160816; b=aJZXg6IbsnJTKTLGF2+IVsP8aGn364haCxrEEUJY7UjBW0a9+JQjQMk+ZMLjHTSJbo x/bQxXLkBhoO+SEj7FjkdIc7rIyS7d6JDmErZeMA7nPd5XmhPeuZ4VgeprOqznt5u7nb d/HhIXLpg/XX8gw/Jm6KzlOdcwebsNe7H80n7nwMJojrUALDIYX0rBz4/uv1AUhn874P wLEm9Bv+lC1uExz6GSh81Uv8NHN1VroyV5TH8Bd0/1EHSmNjAvZC+BCVTmFewTDd/Gm/ 52YfXmf7uXM4KmWhyDrd1wJb1BGZe3WIlHnwMRIfEENL+LBkKlJ/ljALEoy5A0g7OmrU v6pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=K1hDAaJf5R7vyTxdAGmSOoO8MJ+hrH2RzSgOKNETM+w=; b=ciV1fzgYF+q6bVi2kctm6aHqD8NqOPgQs+4bHain1eNv0lTavHSRT5jDkDsCy+rWBH zFORfaHp+8GzHHkNPRIg+E/8dhgS8XgaAWT5k4ilbQBearWsu3WQ0yOUiJErLu+DJ8c7 yPpZI3IfpxBpXgS2z5Hg70L37+20auOl0bpfiA+NpmuZiuPbiymEowu+5Ccstlg3jQjT ovykFjpnyYlnG91sTXa7SxSLVnAHhFGmpkoqINwhHkgM3sZPXa5jtdRH9bsO+dotbuCe zbhLtI7aDqhguMgkH/u1O1VO2LjYJ3T8KMI9c4Hr0h/AIyt5Yvvofz7DREzfTkheaG2S Gzlw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a170902c40e00b001affb6b00f1si9964457plk.455.2023.05.30.06.19.25; Tue, 30 May 2023 06:19:40 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232535AbjE3ND1 (ORCPT + 99 others); Tue, 30 May 2023 09:03:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232519AbjE3NDX (ORCPT ); Tue, 30 May 2023 09:03:23 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 05835F3; Tue, 30 May 2023 06:03:16 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BBE11C14; Tue, 30 May 2023 06:04:01 -0700 (PDT) Received: from [10.57.55.247] (unknown [10.57.55.247]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8C9863F67D; Tue, 30 May 2023 06:03:14 -0700 (PDT) Message-ID: <79fec396-94c8-6f69-b869-d19b89ccd2cc@arm.com> Date: Tue, 30 May 2023 14:03:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH V10 00/10] arm64/perf: Enable branch stack sampling Content-Language: en-US To: Anshuman Khandual , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, will@kernel.org, catalin.marinas@arm.com, mark.rutland@arm.com Cc: Mark Brown , Rob Herring , Marc Zyngier , Suzuki Poulose , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , linux-perf-users@vger.kernel.org References: <20230517022410.722287-1-anshuman.khandual@arm.com> <632289e3-6f3c-20b9-0454-77d6295c1c87@arm.com> From: James Clark In-Reply-To: <632289e3-6f3c-20b9-0454-77d6295c1c87@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 29/05/2023 05:35, Anshuman Khandual wrote: > > > On 5/17/23 07:54, Anshuman Khandual wrote: >> This series enables perf branch stack sampling support on arm64 platform >> via a new arch feature called Branch Record Buffer Extension (BRBE). All >> relevant register definitions could be accessed here. >> >> https://developer.arm.com/documentation/ddi0601/2021-12/AArch64-Registers >> >> This series applies on 6.4-rc2. >> >> Changes in V10: >> >> - Rebased the series on v6.4-rc2 >> - Moved ARMV8 PMUV3 changes inside drivers/perf/arm_pmuv3.c >> - Moved BRBE driver changes inside drivers/perf/arm_brbe.[c|h] >> - Moved the WARN_ON() inside the if condition in armv8pmu_handle_irq() > > Hello Will/Mark, > > There was a crash reported on V9 (applicable here in V10 as well) because of > accessing event->pmu_ctx->task_ctx_data during a PMU IRQ for per-cpu events, > where it would not have been allocated in the first place. I have proposed a > fix for that on the other thread [1]. Besides, does the series looks good in > the current form ? Unless there are other comments, will respin with the fix > later in the week. Thank you. > > [1] https://lore.kernel.org/linux-arm-kernel/d02df808-6d2b-c24b-bc8d-8f4859c0c71b@arm.com/ > > - Anshuman Hi Anshuman, With the new fix I don't get the crash anymore and the tests are all passing so: Tested-by: James Clark