Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp14384lqp; Fri, 12 Apr 2024 09:14:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUr+Wvi5H6SgMz9dVEw9bgqsRRS5j4oC2huRLkGPycEGr7UUXQd2QQmKrLnv3tmtqvMMexx5dpHxHtXdtuYeFullp5QgemU0DJFEPhMhQ== X-Google-Smtp-Source: AGHT+IHRxrDVGsuFAT5mq4GBL+EpNtQYzOar6uch/BlzMjaw3xFrWrq5nPvbtl/wgv9caUmumK+H X-Received: by 2002:a25:870b:0:b0:dc2:48af:bf17 with SMTP id a11-20020a25870b000000b00dc248afbf17mr2762245ybl.62.1712938446748; Fri, 12 Apr 2024 09:14:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712938446; cv=pass; d=google.com; s=arc-20160816; b=VY61Bs8ObTi+/iqKW10kXXzhNFhB6KcXgJw9EvbTaBvTd3C/+n7xY11HBCnP6/S7Vf 4xqqZV/0/75XaozWxP6C3RqEWMjxKYCjEaRmEs1k1kO0HFfjzVtqaTfuu73MypSgfgrE jOsOIrHsjJMb0dK32AI7iF+6MLYlPsg0LIbkJCdoddM0OG/KFBl9ar+CiqwgaH/Do/cI a8XLUzcRAwbM7S921sVU6UQv88VYUZfCl8p3QCrEurCKh3I3DMIv7H7bJgQgOqcRpaKO 4XQdZtt8IyK/1pJZVHEg1z1LCu7rq9D6+1DR6auafSDFmA9NtJMHU5ApuVMScqOTKUoQ i1vQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=cpJk5WR8nI+m1K2bP1EbqgGKXcWToOoYXz2iN5YoyzM=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=rCITQedh0q77SRVN0Kt/dqWaKg1mrvsH9qaid/d1ABx4K0gH4qZDfwaBVHa4x9eZLX xHYgupBlSy1bAWIcZx3byKJVvAF2jjr+NxugOItd81UnIVhV0djJIQ0oJIHcOb6s6QVU MpnNDQ5vE4GZ8kvi5CfsBuyApEs5DbJVGo1Q7HtrnoAXLLF9fv3smiY3TJYGmQrp/TMp +A1hoxKl4xh+kn9y4oRqtKj4JHvuegDOEQVESZKa8jOBIjB6FhahHFzot437FBIIX6S5 FZVrTf09xYflu81jPuNvUdFCZauHApuPvThXrdFum7ZlnJru62TOC4ClLGOnWSEUoPUY 86Ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-143029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n19-20020a0561023ed300b0047a11fa43a3si747409vsv.8.2024.04.12.09.14.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-143029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id ACD751C210F1 for ; Fri, 12 Apr 2024 16:14:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66B321494DE; Fri, 12 Apr 2024 16:13:33 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92102148852; Fri, 12 Apr 2024 16:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938412; cv=none; b=R4+ZjxPFh0QRxCVbEOXGKHbg4g1wvzGj2OrMMzHIT1QKcPgsQKzR59Sqsatr0T8AT72uq3jiFbH+6Z5CTUtsy5tVLCCsRP8AxdmEk23VyZMxKVjS/8aDLeyq1XHcv3Bmsdl6d7ppsPu4OyfR8cooqhx0D7o2EcN1Yuv3FBws3As= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938412; c=relaxed/simple; bh=XjrtP3T1hTZKulkOporA9XOhQqRvhyYGCrtzl5gRrZc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kA9FhwAHbAoWlI2xwgr7EZTM/KpeH7CjJ8JHFIrWv9NymOC61FeUKJt71pUwhl0n1bK+oX8zC0kqI0ciVuvR2bIfuk0ZR2Dn1uUU2uTSEVA0wTm9xA6GIzl4cL/J0167yW9RXvksBL8nXvh71WjvbhcaphUSrlrpCdUIZ5Q8Bq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGM5D65sGz67g1F; Sat, 13 Apr 2024 00:11:44 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 5DDF8140119; Sat, 13 Apr 2024 00:13:29 +0800 (CST) Received: from SecurePC-101-06.china.huawei.com (10.122.247.231) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 12 Apr 2024 17:13:28 +0100 From: Jonathan Cameron To: Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , , , CC: , Shaokun Zhang , Yicong Yang , Jiucheng Xu , Khuong Dinh , Atish Patra , Anup Patel , Andy Gross , Bjorn Andersson , Frank Li , Shuai Xue , Vineet Gupta , Shawn Guo , Fenghua Yu , Dave Jiang , Wu Hao , Tom Rix , , Suzuki K Poulose , Liang Kan Subject: [PATCH v2 05/30] perf/hisi-hns3: Assign parents for event_source device Date: Fri, 12 Apr 2024 17:10:32 +0100 Message-ID: <20240412161057.14099-6-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> References: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: lhrpeml100003.china.huawei.com (7.191.160.210) To lhrpeml500005.china.huawei.com (7.191.163.240) Currently the PMU device appears directly under /sys/devices/ Only root busses should appear there, so instead assign the pmu->dev parent to be the PCI device. Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ Signed-off-by: Jonathan Cameron --- drivers/perf/hisilicon/hns3_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/hisilicon/hns3_pmu.c b/drivers/perf/hisilicon/hns3_pmu.c index 16869bf5bf4c..5236acdcc2e1 100644 --- a/drivers/perf/hisilicon/hns3_pmu.c +++ b/drivers/perf/hisilicon/hns3_pmu.c @@ -1419,6 +1419,7 @@ static int hns3_pmu_alloc_pmu(struct pci_dev *pdev, struct hns3_pmu *hns3_pmu) hns3_pmu->pmu = (struct pmu) { .name = name, .module = THIS_MODULE, + .parent = &pdev->dev, .event_init = hns3_pmu_event_init, .pmu_enable = hns3_pmu_enable, .pmu_disable = hns3_pmu_disable, -- 2.39.2