Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp14761lqp; Fri, 12 Apr 2024 09:14:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYTRgw1YIL4NWb66LXTP40+vy+z/Zp+g92oVpNL5fFE87obkFbLhGeVMNBrGN5DXEPe/ziziqsJstR1j7E2dhQfYMWLujtQWl6lcsSkA== X-Google-Smtp-Source: AGHT+IEKRsh2wP+rbCRAzAK6UsXo7PRa1puVc3devdTis7mKZSoRGL1k8CS9hroEgxn9bGhybVaZ X-Received: by 2002:a05:6102:d8e:b0:47a:2e1e:6701 with SMTP id d14-20020a0561020d8e00b0047a2e1e6701mr3161474vst.17.1712938480936; Fri, 12 Apr 2024 09:14:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712938480; cv=pass; d=google.com; s=arc-20160816; b=mOUgPJX2Y83W6WcxGiFUBTiClBIbX4gzHjcK4gGO+xaWcjxtfbXQMvCS94WL4QMSin NcpMrRVSA9ylSwOqUuqSWvoS//eeRWttKDW4g1fch82Sr8mswtrbBmRgjMYgMPM4i7d1 fywxym7VYz5o5cWZD3rO6kE2JRBPsGBruqv6Vxn6ygkODQJfdCjiJtWmZWNQ/OgYyn6G jGFFk5g7quXRY3EJ2y0rS0hRkFG3c+mQbR0vKx1SG9Y1Dk91CNExEQ6Z53UDuBpLy9Ed xljr4fDNWU4+fkHMoay1RC3Z8Mp0mQx58avWqB+J/OiwqLVERSI4WbZWe++7hznPVa5t M0Eg== 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=4rBJzmoUtb029WPcnCU3iGhX6MKLWw/QqO/E0h1O2kk=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=1CT9dJJk0H/0lN1YNCOutV0K21i98Gu2Mo1YsAXsAJQvpSp55lFD3a7wgqm47v3DAW 0mMJtjhHE+uZOCxduMSOv2jlinxRm4AW5pQCa+JG7uUDk1JRHrbmMiwy+X+dX1D9oKoq B6lYzqHNPVQ5Jpi3WhnKhaenyB6Y8GToCvSzlL7ApEpZbcEV0wCQTHw+V/7ugPAfxq9e Uc1pPl0SAhnAvLEknI0WxKTJ9+cFUONNyZiM0PZs5UfvPn/82utSLXRTOuBGqz7AxAU9 6NOoVYA2ZtIYcgnpUr0fmQg1huBpsF10C2AZ1yHGnkukS5IevuRCsMGr81ASNfYVVGc3 xrGQ==; 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-143031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143031-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f20-20020a056102037400b0047a29e123d2si641645vsa.181.2024.04.12.09.14.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:14:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-143031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143031-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 A128E1C20E35 for ; Fri, 12 Apr 2024 16:14:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB0D0148850; Fri, 12 Apr 2024 16:14:34 +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 043505491F; Fri, 12 Apr 2024 16:14:32 +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=1712938474; cv=none; b=p1tqY5n7iIhgaYxOZ6Ih6yE6Hsn63AXz44hcK4oM1Ee5S7jb4ihbtMXyah6zOf7PdzIzscr9E7aCtO6hJhOcbCN/AKpUkyFUSHx/5eYB2VKRFMyKJuq4tnPgh1Zrwdkpdq4i52hg0TqPiQqhxBgGqdpsvmgItvc3V3174jU0Ams= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938474; c=relaxed/simple; bh=p06OpvC2AIuj5o4k6GXceeMNnldcodHgVRHyGIW19es=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XWvlf0LL6kHVI313b1Qcplh+NljY6MzDEX9Jkg8ZUluPvdFpIc1Omt605aPS8EY5ZVLuWXLzPKdVCaiBIacibZK8d1ILPucwKfJE8A95z6D5nNJFaDrLzsISq1B8mnO3+dHfv6cj7d/DJ95IKkzWkAadnxx9XqSKKwrg5BgeGxg= 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 4VGM6N67tzz6J9hN; Sat, 13 Apr 2024 00:12:44 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id BE15E1400F4; Sat, 13 Apr 2024 00:14:30 +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:14:30 +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 07/30] perf/arm_cspmu: Assign parents for event_source devices Date: Fri, 12 Apr 2024 17:10:34 +0100 Message-ID: <20240412161057.14099-8-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 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/ Reviewed-by: Suzuki K Poulose Signed-off-by: Jonathan Cameron --- drivers/perf/arm_cspmu/arm_cspmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_cspmu/arm_cspmu.c b/drivers/perf/arm_cspmu/arm_cspmu.c index b9a252272f1e..601d7d0d81d4 100644 --- a/drivers/perf/arm_cspmu/arm_cspmu.c +++ b/drivers/perf/arm_cspmu/arm_cspmu.c @@ -1206,6 +1206,7 @@ static int arm_cspmu_register_pmu(struct arm_cspmu *cspmu) cspmu->pmu = (struct pmu){ .task_ctx_nr = perf_invalid_context, .module = cspmu->impl.module, + .parent = cspmu->dev, .pmu_enable = arm_cspmu_enable, .pmu_disable = arm_cspmu_disable, .event_init = arm_cspmu_event_init, -- 2.39.2