Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1765849rda; Tue, 24 Oct 2023 02:34:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmV/fOV/iWzlgzc+LSMpJqOaw3IUNXcOPGd9v4ON1NL6EsAO0UHfifKCbxptI5fRyvKkpR X-Received: by 2002:a05:6359:190c:b0:168:e01a:2002 with SMTP id mf12-20020a056359190c00b00168e01a2002mr5150574rwb.10.1698140095091; Tue, 24 Oct 2023 02:34:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698140095; cv=none; d=google.com; s=arc-20160816; b=H2IvEzFgo9FdVpN+yVxkpYi/Xc7lQsdz9Rup6gbpFPkBrivig/OONWrLjYT7/MNcEk y/g9FgmVlURmUEYAz+E3JTmd2F/kUT3KuspYcBmIV2Y+JuyM3R1cLuiL+bIFu0qDmJRg erg9+en8AyQoT6de1D+KDl8oMoD9XlQkqiRyy0zR7TTSgyy6fOM9ZTe4fjFIBybYQH8y uGujipB0IQGAA6eUxFA/zDMT99V3Gk5y1vUjXIXh29R3R1p6eU+VUVbWiadg5763pdYg 0j5ZaLQR0wMEND9ccIC9qP82QeS+wMly7iCXy2qleSR2Da6xabVsDemsi5w7BAmV4dOX 9hzw== 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 :message-id:date:subject:cc:to:from; bh=cKKSlbSOnJFSA/6VTBUhlsvb3q7ZVH/03i5kObgQsk0=; fh=xoaP1/qmyEPzq9R51vMaZS6yh5pwCixcbcGH9XObUYE=; b=C4uWVZ4sW9iSa9/K9oC/EOTEPx2JBtS8pPGYetgtGwk73HWOCRRDs+GADK2wIZBs+D K+4gP1W6zVIyW/2N4my6TnxdW2mO4tMD2nbMT3b5s5cHSTcHlP4gsvC5Y2o+FO4DYAqJ 8Z8LMK/JJUmajmdrEd2HCm+1ABzPhj9RlxUva+G1rSEFwruXl8eaAwFVPJMOXEZkm77d o6XlJLTfBaB+FxBZII7BrZ9kw5tMtrlQ9HKu9giaQ/x08G6sxyuA11hQrGrZTFuSB5rm cmBx0+lusYj/0/A7YUSOtkafyC0Cvpu2w7d2w+xvKSRbG69zwpFnrM005QCP8csMsw2X KCJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x26-20020aa78f1a000000b006b5860b226asi7831755pfr.312.2023.10.24.02.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:34:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 12CAA8034A9C; Tue, 24 Oct 2023 02:34:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234168AbjJXJei (ORCPT + 99 others); Tue, 24 Oct 2023 05:34:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234175AbjJXJdt (ORCPT ); Tue, 24 Oct 2023 05:33:49 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E083B10F6 for ; Tue, 24 Oct 2023 02:32:56 -0700 (PDT) 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 24 Oct 2023 02:34:52 -0700 (PDT) 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(-) -- 2.24.0