From patchwork Tue Oct 24 09:29:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yicong Yang X-Patchwork-Id: 13434163 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 165E9C07545 for ; Tue, 24 Oct 2023 09:33:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=N69ae9pXbw0a5rWepH9H/t4545avxxWCniSeNhNpTd8=; b=BOgf2vefZPqD0K PjrOxgPQSPfj0PiWEez0h0naaogT7wsPNrZWwmsEFRVKvsUYjabaXZ/RngqqqCUMXZXGy8GDjwKeH AoFzjvwJYEOYKoK2H1JX3QF3W3W/pfmi6LpIVAQ7/v5Fy9ahC3tnsyMXaEIArpejCPZ6CKZy/AWia KzEx97znk8dGAPz7cXmmvgHFJSmEQ2cB4KRGdnJ+YLvZRIJx7+9sVq/A6H4fGhZmsiXRyFNxhdM7k tcuxBJMK1uwSQSVClF5bMpjCpyyLa1ovtSumC29ZzeWief7Y2zc/NLmYbhX73P1Lvmieiiag4ab/V SIGLCSjCZkksuWKB1UlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvDmn-009KlQ-1R; Tue, 24 Oct 2023 09:33:17 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qvDmf-009Kiv-0i for linux-arm-kernel@lists.infradead.org; Tue, 24 Oct 2023 09:33:10 +0000 Received: from canpemm500009.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SF6Gf2ySWzrTwf; Tue, 24 Oct 2023 17:30:02 +0800 (CST) Received: from localhost.localdomain (10.50.163.32) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Tue, 24 Oct 2023 17:32:53 +0800 From: Yicong Yang To: , , , , CC: , , , Subject: [PATCH 0/2] Minor fix and cleanup for hisi_pcie_pmu Date: Tue, 24 Oct 2023 17:29:52 +0800 Message-ID: <20231024092954.42297-1-yangyicong@huawei.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 X-Originating-IP: [10.50.163.32] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231024_023309_455618_176C02B8 X-CRM114-Status: UNSURE ( 7.01 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Yicong Yang This patchset includes 2 minor updates for the hisi_pcie_pmu: - fix issue that we may touch others events in some case - modify the event->cpu only on the success pmu::event_init() Yicong Yang (2): drivers/perf: hisi_pcie: Check the type first in pmu::event_init() drivers/perf: hisi_pcie: Initialize event->cpu only on success drivers/perf/hisilicon/hisi_pcie_pmu.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)