Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2672733rwd; Sun, 28 May 2023 21:54:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5PBNb2GBh8va6W5xJ4v1Bo4qJoWxJrIb7iyVXbzRC+9FFFucBX9u3A5fgzAR5G3VuEZyxu X-Received: by 2002:a17:902:e848:b0:1af:aafb:64c8 with SMTP id t8-20020a170902e84800b001afaafb64c8mr12645078plg.21.1685336078562; Sun, 28 May 2023 21:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685336078; cv=none; d=google.com; s=arc-20160816; b=Pnq/55aIPtSqUQ5ddCwtlbMgj1zR42ha5frCA2BQjt0EMoOUhKEnuRTyKby7WLPmXY b9i7IaeLJtv2QPi0GYa9b0eNiRduyDLUERDent+wWV4DDDfQQhC2VUFkPyGzNGLlI657 /Zi/6Yuhe2nC2NQ8AdkX46jdcjNPvjzQ4Wt3LbiFYEzG6kUArg3soySnqv9rgSBVLpRM U6NYulX0DG4oxo8OKq65g/ftSvjdPS86DJlQUjISlVCQ35gsHXJaCW0suBQlx6Yf9bW7 WGem07YXD0wUusQX4lNZaICyyQ7bpR9xjCcQNZ4Jgj9J63E2vKSt8ZIJjD+8pbP1Lb87 tC8Q== 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=OiaAWNs3UQxD/MnAUK9AuXqDBA1EQIekBFkIcl+qbKA=; b=KytuoyodWEmHgsTEZLLPPrTEDhHuo5pJrqneoabf8/roFT9Z1Xy5MpP81zdLFv+kQU jA4jo5/6mdemaipQ8PFFNwcRCfhvoSmTHLrDPsEgRN0BCI8Ya5sRh6TMshoWQWG7XERA iwEl0GuO2wpN0tXIZBgTU13DVi8GVbHEw/xlzK/gDgdWoujUKSBOzdrfugb07nZpWDLE ie+3/Tr23+xDbVd+lnpfyEP5osE+BTzjgTNLX4aWzPTizxEUa2PwZc/fp1sRSjJ18iTc NojBGHVD/Lf7kb88QRJTNiBrimhd5anMtwKQk4+kq0JnqliVvE9oVaxFre8ROxT1vup4 2xiw== 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 b21-20020a170902b61500b001b025685062si3624713pls.574.2023.05.28.21.54.26; Sun, 28 May 2023 21:54:38 -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 S231829AbjE2Ev1 (ORCPT + 99 others); Mon, 29 May 2023 00:51:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231570AbjE2EvH (ORCPT ); Mon, 29 May 2023 00:51:07 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BC1A549C3; Sun, 28 May 2023 21:44:25 -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 10F6CAB6; Sun, 28 May 2023 21:36:01 -0700 (PDT) Received: from [10.162.40.17] (a077893.blr.arm.com [10.162.40.17]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 168683F64C; Sun, 28 May 2023 21:35:10 -0700 (PDT) Message-ID: <632289e3-6f3c-20b9-0454-77d6295c1c87@arm.com> Date: Mon, 29 May 2023 10:05:07 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH V10 00/10] arm64/perf: Enable branch stack sampling Content-Language: en-US To: 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 , James Clark , 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> From: Anshuman Khandual In-Reply-To: <20230517022410.722287-1-anshuman.khandual@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 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 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