Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6082117iob; Tue, 10 May 2022 09:55:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCxluT9QhKE7Q5T+56BQX6hdHRErBVu8dtDop0bn0Fyh4U33NuhNT0DG13GZUmCc9bC+YO X-Received: by 2002:a17:906:fca:b0:6f3:e2d8:7c57 with SMTP id c10-20020a1709060fca00b006f3e2d87c57mr20568008ejk.320.1652201753061; Tue, 10 May 2022 09:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652201753; cv=none; d=google.com; s=arc-20160816; b=VnMoURcJ+DAEJaWoUxRBE7w69ipKc7+ha2uC/Ak4YucLWzj/hPSyN7hqgOZrjTb+7I eotRhS+z2x+xY9DhN0xjPUkh5V1ZkAOHAJZXUli/06hlmdjBjhrIDAIdoaYYKmdRPawp hFRWQYbWDhNR8mc1ka0uqiRVr/BMHlL0F3P89oMLCdpqZBN8AaYnrWJKNbtssXqOug6K yDCB9OP/ZIJUkKB2NyfO6aRR4LeeKgHeIKsZ6TCfLUe7UDXy+GVAzZ6wqPtxAw0d4/xE ToSq51NXlfc3GeKomheUpSH8UqYS4ko1+1Q542hMhFBrUBZCKAtFfSIXPHoJaWZ+Y/1V +VCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QyrX8j3lLNav63obR4kPuV4cnNGX+RFmx5t9met21VQ=; b=GRutkQYN3xiDEYtympu/4erLitYhj/du51toIj0alInA+8Sew+FoYHlPGotwmCJjbf Qc+gLBn9ahHSPM6x5LtCuOUd0Vx5V65aErzxQfEenkOAS9Cr17OCl3JW3T84jxS7w8Ci CayBre4C2VZX8f72J5PhkULTaApr4b2EEnqDaa53FLbj3x0N773rqbrPki4Gg2kvidbj FSwfeANAlRAE5qf06M5lJ4Z5ru+pbEAXR3T30DkEy91MQbKDKU0cyEGW4BRIYTNdljZT zL0RdCAYY+A9Om94N9y/D2PS4mEM/v1eZVpF8vHqq1mLUfSkMTeea1DSRrFrM0a94yjL lcRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qDnIPNGY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a170906504500b006f4dcbbc558si16626010ejk.257.2022.05.10.09.55.27; Tue, 10 May 2022 09:55:53 -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=@kernel.org header.s=k20201202 header.b=qDnIPNGY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241054AbiEJLhr (ORCPT + 99 others); Tue, 10 May 2022 07:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233899AbiEJLhY (ORCPT ); Tue, 10 May 2022 07:37:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87BE447386 for ; Tue, 10 May 2022 04:33:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 46CDCB81CDB for ; Tue, 10 May 2022 11:33:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 186F5C385C9; Tue, 10 May 2022 11:33:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652182405; bh=oX5MSkN7sl6vwUSAvWzzKOhMPQxhWJZgKLqUrVd7LPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qDnIPNGYDlnXHMR9ltcODL+N4zBbqPqnSGkfIibzg+UuFvB9Vjo1dBlKgsS+9JVSN eh1zKvsjXE7LxNOMXzXRFk3/VN3s5A4gfmntkl6pBmBtBfWb9zgs1H7g1LNkU/u8rK RLaf3BEjhCGPJrHUHutB3Df+nyjCCrvXZebRBqES6B5yWjzaEaSXx1/o18YWEdHJ7M /dDyqkfx84thIxNXa19MGgDvi9sYPKbLClAW1I2K4sMBC2YqFg48RJTVQGW0Yv7aFc aJJOvCCUAFgeZbUhh0EAZA+ni9ZgqW2rcMu3qC1tAV/ZbUlLm+kNC+r2HbVR77vb5v iBJKQSUwcaMZw== From: Will Deacon To: Tanmay Jagdale , mark.rutland@arm.com Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , linux-kernel@vger.kernel.org, lcherian@marvell.com, sgoutham@marvell.com, bbhushan2@marvell.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] perf/marvell_cn10k: Fix tad_pmu_event_init() to check pmu type first Date: Tue, 10 May 2022 12:33:14 +0100 Message-Id: <165218126812.3521483.9650067929105831571.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220510102657.487539-1-tanmay@marvell.com> References: <20220510102657.487539-1-tanmay@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Tue, 10 May 2022 15:56:57 +0530, Tanmay Jagdale wrote: > Make sure to check the pmu type first and then check event->attr.disabled. > Doing so would avoid reading the disabled attribute of an event that is > not handled by TAD PMU. > > Applied to will (for-next/perf), thanks! [1/1] perf/marvell_cn10k: Fix tad_pmu_event_init() to check pmu type first https://git.kernel.org/will/c/33835e8dfb3c Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev