From nobody Mon Feb 9 19:26:54 2026 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 15CDE1487FF; Fri, 12 Apr 2024 16:16:35 +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=1712938600; cv=none; b=sykD5nTQHU/g8curEpKXxhO6dgjQmki/Gk2LKsqfSPTPXGERAOa8s4Zkfo8xjoxkTYxK4Z++RX2qWc+pFstCgW9olBllBpivyHQJ63QUJADZ+a+UVQxluRFinKUTp5eRk4bkH28zZFSijCGtYLAfkKamQy7k7Oc37H/7WWjMuKA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938600; c=relaxed/simple; bh=UTmBGfCL89xYsE05whtOjzMgevEx1fJhhdN5vbKvee0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IxYrYjOGp+yN2QlHtGCBxCkGBhNt+1i//7ZcEO3eFScyJcOlmCIQUj5bMxMzVt5sYsV05gFZeTP5npe/aEUz0Q5WaUqJZdADR7A+UQVVJcHeENHbgFUfv9nWSJM1cTat9R/nLiuIOf/8tqndSQQBcdL7QHG8Ovfz8vXNMB1/ALs= 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.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGM8n1JBKz6K5s9; Sat, 13 Apr 2024 00:14:49 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id AA0E11400F4; Sat, 13 Apr 2024 00:16:33 +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:16:33 +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 11/30] perf/thunderx2: Assign parents for event_source devices Date: Fri, 12 Apr 2024 17:10:38 +0100 Message-ID: <20240412161057.14099-12-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: quoted-printable X-ClientProxiedBy: lhrpeml100003.china.huawei.com (7.191.160.210) To lhrpeml500005.china.huawei.com (7.191.163.240) Content-Type: text/plain; charset="utf-8" Currently all these devices appear directly under /sys/devices/ Only root busses should appear there, so instead assign the pmu->dev parents to be the platform device. Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ Cc: Robert Richter Signed-off-by: Jonathan Cameron --- drivers/perf/thunderx2_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/thunderx2_pmu.c b/drivers/perf/thunderx2_pmu.c index e16d10c763de..4af1510d196d 100644 --- a/drivers/perf/thunderx2_pmu.c +++ b/drivers/perf/thunderx2_pmu.c @@ -729,6 +729,7 @@ static int tx2_uncore_pmu_register( /* Perf event registration */ tx2_pmu->pmu =3D (struct pmu) { .module =3D THIS_MODULE, + .parent =3D tx2_pmu->dev, .attr_groups =3D tx2_pmu->attr_groups, .task_ctx_nr =3D perf_invalid_context, .event_init =3D tx2_uncore_event_init, --=20 2.39.2